From 14c5e9e7cc6e4048a6dc6f8630f9281c5ca7d3ba Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Mon, 27 Feb 2023 11:48:17 -0500 Subject: [PATCH 1/7] chore: Update gapic-generator-python to v1.8.5 (#397) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore: Update gapic-generator-python to v1.8.5 PiperOrigin-RevId: 511892190 Source-Link: https://github.com/googleapis/googleapis/commit/a45d9c09c1287ffdf938f4e8083e791046c0b23b Source-Link: https://github.com/googleapis/googleapis-gen/commit/1907294b1d8365ea24f8c5f2e059a64124c4ed3b Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMTkwNzI5NGIxZDgzNjVlYTI0ZjhjNWYyZTA1OWE2NDEyNGM0ZWQzYiJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- .../accelerator_types/transports/rest.py | 8 +- .../services/addresses/transports/rest.py | 14 +-- .../services/autoscalers/transports/rest.py | 16 ++-- .../backend_buckets/transports/rest.py | 20 ++-- .../backend_services/transports/rest.py | 30 +++--- .../services/disk_types/transports/rest.py | 8 +- .../services/disks/transports/rest.py | 28 +++--- .../external_vpn_gateways/transports/rest.py | 14 +-- .../firewall_policies/transports/rest.py | 34 +++---- .../services/firewalls/transports/rest.py | 14 +-- .../forwarding_rules/transports/rest.py | 18 ++-- .../global_addresses/transports/rest.py | 12 +-- .../transports/rest.py | 16 ++-- .../transports/rest.py | 16 ++-- .../global_operations/transports/rest.py | 12 +-- .../transports/rest.py | 6 +- .../transports/rest.py | 12 +-- .../services/health_checks/transports/rest.py | 16 ++-- .../image_family_views/transports/rest.py | 4 +- .../services/images/transports/rest.py | 24 ++--- .../transports/rest.py | 42 ++++----- .../instance_groups/transports/rest.py | 20 ++-- .../instance_templates/transports/rest.py | 16 ++-- .../services/instances/transports/rest.py | 92 +++++++++---------- .../transports/rest.py | 16 ++-- .../interconnect_locations/transports/rest.py | 6 +- .../services/interconnects/transports/rest.py | 16 ++-- .../services/license_codes/transports/rest.py | 6 +- .../services/licenses/transports/rest.py | 16 ++-- .../machine_images/transports/rest.py | 16 ++-- .../services/machine_types/transports/rest.py | 8 +- .../network_attachments/transports/rest.py | 18 ++-- .../transports/rest.py | 12 +-- .../transports/rest.py | 20 ++-- .../transports/rest.py | 34 +++---- .../services/networks/transports/rest.py | 24 ++--- .../services/node_groups/transports/rest.py | 28 +++--- .../node_templates/transports/rest.py | 18 ++-- .../services/node_types/transports/rest.py | 8 +- .../packet_mirrorings/transports/rest.py | 16 ++-- .../services/projects/transports/rest.py | 28 +++--- .../transports/rest.py | 12 +-- .../transports/rest.py | 14 +-- .../region_autoscalers/transports/rest.py | 14 +-- .../transports/rest.py | 20 ++-- .../region_commitments/transports/rest.py | 12 +-- .../region_disk_types/transports/rest.py | 6 +- .../services/region_disks/transports/rest.py | 26 +++--- .../transports/rest.py | 12 +-- .../region_health_checks/transports/rest.py | 14 +-- .../transports/rest.py | 40 ++++---- .../region_instance_groups/transports/rest.py | 10 +- .../region_instances/transports/rest.py | 4 +- .../transports/rest.py | 10 +- .../transports/rest.py | 36 ++++---- .../transports/rest.py | 10 +- .../region_operations/transports/rest.py | 10 +- .../transports/rest.py | 12 +-- .../transports/rest.py | 10 +- .../region_ssl_policies/transports/rest.py | 14 +-- .../transports/rest.py | 12 +-- .../transports/rest.py | 16 ++-- .../transports/rest.py | 10 +- .../region_url_maps/transports/rest.py | 16 ++-- .../services/regions/transports/rest.py | 6 +- .../services/reservations/transports/rest.py | 22 ++--- .../resource_policies/transports/rest.py | 18 ++-- .../services/routers/transports/rest.py | 22 ++--- .../services/routes/transports/rest.py | 10 +- .../security_policies/transports/rest.py | 26 +++--- .../service_attachments/transports/rest.py | 20 ++-- .../services/snapshots/transports/rest.py | 18 ++-- .../ssl_certificates/transports/rest.py | 12 +-- .../services/ssl_policies/transports/rest.py | 16 ++-- .../services/subnetworks/transports/rest.py | 26 +++--- .../target_grpc_proxies/transports/rest.py | 12 +-- .../target_http_proxies/transports/rest.py | 16 ++-- .../target_https_proxies/transports/rest.py | 24 ++--- .../target_instances/transports/rest.py | 12 +-- .../services/target_pools/transports/rest.py | 24 ++--- .../target_ssl_proxies/transports/rest.py | 20 ++-- .../target_tcp_proxies/transports/rest.py | 16 ++-- .../target_vpn_gateways/transports/rest.py | 14 +-- .../services/url_maps/transports/rest.py | 20 ++-- .../services/vpn_gateways/transports/rest.py | 18 ++-- .../services/vpn_tunnels/transports/rest.py | 14 +-- .../zone_operations/transports/rest.py | 10 +- .../services/zones/transports/rest.py | 6 +- google/cloud/compute_v1/types/compute.py | 2 + 89 files changed, 764 insertions(+), 762 deletions(-) diff --git a/google/cloud/compute_v1/services/accelerator_types/transports/rest.py b/google/cloud/compute_v1/services/accelerator_types/transports/rest.py index d6fff9bd2..a20c06a14 100644 --- a/google/cloud/compute_v1/services/accelerator_types/transports/rest.py +++ b/google/cloud/compute_v1/services/accelerator_types/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 gapic_v1, path_template, rest_helpers, rest_streaming @@ -271,7 +271,7 @@ class _AggregatedList(AcceleratorTypesRestStub): def __hash__(self): return hash("AggregatedList") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -358,7 +358,7 @@ class _Get(AcceleratorTypesRestStub): def __hash__(self): return hash("Get") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -453,7 +453,7 @@ class _List(AcceleratorTypesRestStub): def __hash__(self): return hash("List") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): diff --git a/google/cloud/compute_v1/services/addresses/transports/rest.py b/google/cloud/compute_v1/services/addresses/transports/rest.py index 94c3c8b28..af806b06f 100644 --- a/google/cloud/compute_v1/services/addresses/transports/rest.py +++ b/google/cloud/compute_v1/services/addresses/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 gapic_v1, path_template, rest_helpers, rest_streaming @@ -345,7 +345,7 @@ class _AggregatedList(AddressesRestStub): def __hash__(self): return hash("AggregatedList") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -432,7 +432,7 @@ class _Delete(AddressesRestStub): def __hash__(self): return hash("Delete") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -534,7 +534,7 @@ class _Get(AddressesRestStub): def __hash__(self): return hash("Get") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -627,7 +627,7 @@ class _Insert(AddressesRestStub): def __hash__(self): return hash("Insert") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -738,7 +738,7 @@ class _List(AddressesRestStub): def __hash__(self): return hash("List") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -824,7 +824,7 @@ class _SetLabels(AddressesRestStub): def __hash__(self): return hash("SetLabels") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): diff --git a/google/cloud/compute_v1/services/autoscalers/transports/rest.py b/google/cloud/compute_v1/services/autoscalers/transports/rest.py index 4ebaab57e..d30b0b186 100644 --- a/google/cloud/compute_v1/services/autoscalers/transports/rest.py +++ b/google/cloud/compute_v1/services/autoscalers/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 gapic_v1, path_template, rest_helpers, rest_streaming @@ -380,7 +380,7 @@ class _AggregatedList(AutoscalersRestStub): def __hash__(self): return hash("AggregatedList") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -467,7 +467,7 @@ class _Delete(AutoscalersRestStub): def __hash__(self): return hash("Delete") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -569,7 +569,7 @@ class _Get(AutoscalersRestStub): def __hash__(self): return hash("Get") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -668,7 +668,7 @@ class _Insert(AutoscalersRestStub): def __hash__(self): return hash("Insert") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -779,7 +779,7 @@ class _List(AutoscalersRestStub): def __hash__(self): return hash("List") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -868,7 +868,7 @@ class _Patch(AutoscalersRestStub): def __hash__(self): return hash("Patch") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -979,7 +979,7 @@ class _Update(AutoscalersRestStub): def __hash__(self): return hash("Update") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): diff --git a/google/cloud/compute_v1/services/backend_buckets/transports/rest.py b/google/cloud/compute_v1/services/backend_buckets/transports/rest.py index 83c6292d6..1836f3326 100644 --- a/google/cloud/compute_v1/services/backend_buckets/transports/rest.py +++ b/google/cloud/compute_v1/services/backend_buckets/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 gapic_v1, path_template, rest_helpers, rest_streaming @@ -448,7 +448,7 @@ class _AddSignedUrlKey(BackendBucketsRestStub): def __hash__(self): return hash("AddSignedUrlKey") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -561,7 +561,7 @@ class _Delete(BackendBucketsRestStub): def __hash__(self): return hash("Delete") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -663,7 +663,7 @@ class _DeleteSignedUrlKey(BackendBucketsRestStub): def __hash__(self): return hash("DeleteSignedUrlKey") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = { + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = { "keyName": "", } @@ -769,7 +769,7 @@ class _Get(BackendBucketsRestStub): def __hash__(self): return hash("Get") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -861,7 +861,7 @@ class _Insert(BackendBucketsRestStub): def __hash__(self): return hash("Insert") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -972,7 +972,7 @@ class _List(BackendBucketsRestStub): def __hash__(self): return hash("List") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -1061,7 +1061,7 @@ class _Patch(BackendBucketsRestStub): def __hash__(self): return hash("Patch") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -1172,7 +1172,7 @@ class _SetEdgeSecurityPolicy(BackendBucketsRestStub): def __hash__(self): return hash("SetEdgeSecurityPolicy") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -1285,7 +1285,7 @@ class _Update(BackendBucketsRestStub): def __hash__(self): return hash("Update") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): diff --git a/google/cloud/compute_v1/services/backend_services/transports/rest.py b/google/cloud/compute_v1/services/backend_services/transports/rest.py index 9776c7c42..ed678cb5a 100644 --- a/google/cloud/compute_v1/services/backend_services/transports/rest.py +++ b/google/cloud/compute_v1/services/backend_services/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 gapic_v1, path_template, rest_helpers, rest_streaming @@ -601,7 +601,7 @@ class _AddSignedUrlKey(BackendServicesRestStub): def __hash__(self): return hash("AddSignedUrlKey") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -714,7 +714,7 @@ class _AggregatedList(BackendServicesRestStub): def __hash__(self): return hash("AggregatedList") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -803,7 +803,7 @@ class _Delete(BackendServicesRestStub): def __hash__(self): return hash("Delete") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -905,7 +905,7 @@ class _DeleteSignedUrlKey(BackendServicesRestStub): def __hash__(self): return hash("DeleteSignedUrlKey") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = { + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = { "keyName": "", } @@ -1011,7 +1011,7 @@ class _Get(BackendServicesRestStub): def __hash__(self): return hash("Get") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -1113,7 +1113,7 @@ class _GetHealth(BackendServicesRestStub): def __hash__(self): return hash("GetHealth") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -1209,7 +1209,7 @@ class _GetIamPolicy(BackendServicesRestStub): def __hash__(self): return hash("GetIamPolicy") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -1337,7 +1337,7 @@ class _Insert(BackendServicesRestStub): def __hash__(self): return hash("Insert") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -1448,7 +1448,7 @@ class _List(BackendServicesRestStub): def __hash__(self): return hash("List") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -1537,7 +1537,7 @@ class _Patch(BackendServicesRestStub): def __hash__(self): return hash("Patch") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -1648,7 +1648,7 @@ class _SetEdgeSecurityPolicy(BackendServicesRestStub): def __hash__(self): return hash("SetEdgeSecurityPolicy") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -1761,7 +1761,7 @@ class _SetIamPolicy(BackendServicesRestStub): def __hash__(self): return hash("SetIamPolicy") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -1898,7 +1898,7 @@ class _SetSecurityPolicy(BackendServicesRestStub): def __hash__(self): return hash("SetSecurityPolicy") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -2011,7 +2011,7 @@ class _Update(BackendServicesRestStub): def __hash__(self): return hash("Update") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): diff --git a/google/cloud/compute_v1/services/disk_types/transports/rest.py b/google/cloud/compute_v1/services/disk_types/transports/rest.py index 1e72520f4..00e6a9685 100644 --- a/google/cloud/compute_v1/services/disk_types/transports/rest.py +++ b/google/cloud/compute_v1/services/disk_types/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 gapic_v1, path_template, rest_helpers, rest_streaming @@ -262,7 +262,7 @@ class _AggregatedList(DiskTypesRestStub): def __hash__(self): return hash("AggregatedList") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -349,7 +349,7 @@ class _Get(DiskTypesRestStub): def __hash__(self): return hash("Get") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -446,7 +446,7 @@ class _List(DiskTypesRestStub): def __hash__(self): return hash("List") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): diff --git a/google/cloud/compute_v1/services/disks/transports/rest.py b/google/cloud/compute_v1/services/disks/transports/rest.py index 158971e1c..ddd1154ee 100644 --- a/google/cloud/compute_v1/services/disks/transports/rest.py +++ b/google/cloud/compute_v1/services/disks/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 gapic_v1, path_template, rest_helpers, rest_streaming @@ -550,7 +550,7 @@ class _AddResourcePolicies(DisksRestStub): def __hash__(self): return hash("AddResourcePolicies") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -663,7 +663,7 @@ class _AggregatedList(DisksRestStub): def __hash__(self): return hash("AggregatedList") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -750,7 +750,7 @@ class _CreateSnapshot(DisksRestStub): def __hash__(self): return hash("CreateSnapshot") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -861,7 +861,7 @@ class _Delete(DisksRestStub): def __hash__(self): return hash("Delete") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -962,7 +962,7 @@ class _Get(DisksRestStub): def __hash__(self): return hash("Get") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -1060,7 +1060,7 @@ class _GetIamPolicy(DisksRestStub): def __hash__(self): return hash("GetIamPolicy") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -1188,7 +1188,7 @@ class _Insert(DisksRestStub): def __hash__(self): return hash("Insert") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -1298,7 +1298,7 @@ class _List(DisksRestStub): def __hash__(self): return hash("List") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -1384,7 +1384,7 @@ class _RemoveResourcePolicies(DisksRestStub): def __hash__(self): return hash("RemoveResourcePolicies") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -1497,7 +1497,7 @@ class _Resize(DisksRestStub): def __hash__(self): return hash("Resize") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -1607,7 +1607,7 @@ class _SetIamPolicy(DisksRestStub): def __hash__(self): return hash("SetIamPolicy") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -1744,7 +1744,7 @@ class _SetLabels(DisksRestStub): def __hash__(self): return hash("SetLabels") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -1855,7 +1855,7 @@ class _TestIamPermissions(DisksRestStub): def __hash__(self): return hash("TestIamPermissions") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): diff --git a/google/cloud/compute_v1/services/external_vpn_gateways/transports/rest.py b/google/cloud/compute_v1/services/external_vpn_gateways/transports/rest.py index 9ce5d4c5a..833a3ca8c 100644 --- a/google/cloud/compute_v1/services/external_vpn_gateways/transports/rest.py +++ b/google/cloud/compute_v1/services/external_vpn_gateways/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 gapic_v1, path_template, rest_helpers, rest_streaming @@ -359,7 +359,7 @@ class _Delete(ExternalVpnGatewaysRestStub): def __hash__(self): return hash("Delete") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -461,7 +461,7 @@ class _Get(ExternalVpnGatewaysRestStub): def __hash__(self): return hash("Get") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -562,7 +562,7 @@ class _Insert(ExternalVpnGatewaysRestStub): def __hash__(self): return hash("Insert") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -673,7 +673,7 @@ class _List(ExternalVpnGatewaysRestStub): def __hash__(self): return hash("List") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -762,7 +762,7 @@ class _SetLabels(ExternalVpnGatewaysRestStub): def __hash__(self): return hash("SetLabels") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -873,7 +873,7 @@ class _TestIamPermissions(ExternalVpnGatewaysRestStub): def __hash__(self): return hash("TestIamPermissions") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): diff --git a/google/cloud/compute_v1/services/firewall_policies/transports/rest.py b/google/cloud/compute_v1/services/firewall_policies/transports/rest.py index 65dc52865..5074504ca 100644 --- a/google/cloud/compute_v1/services/firewall_policies/transports/rest.py +++ b/google/cloud/compute_v1/services/firewall_policies/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 gapic_v1, path_template, rest_helpers, rest_streaming @@ -715,7 +715,7 @@ class _AddAssociation(FirewallPoliciesRestStub): def __hash__(self): return hash("AddAssociation") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -826,7 +826,7 @@ class _AddRule(FirewallPoliciesRestStub): def __hash__(self): return hash("AddRule") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -937,7 +937,7 @@ class _CloneRules(FirewallPoliciesRestStub): def __hash__(self): return hash("CloneRules") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -1039,7 +1039,7 @@ class _Delete(FirewallPoliciesRestStub): def __hash__(self): return hash("Delete") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -1141,7 +1141,7 @@ class _Get(FirewallPoliciesRestStub): def __hash__(self): return hash("Get") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -1230,7 +1230,7 @@ class _GetAssociation(FirewallPoliciesRestStub): def __hash__(self): return hash("GetAssociation") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -1317,7 +1317,7 @@ class _GetIamPolicy(FirewallPoliciesRestStub): def __hash__(self): return hash("GetIamPolicy") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -1445,7 +1445,7 @@ class _GetRule(FirewallPoliciesRestStub): def __hash__(self): return hash("GetRule") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -1536,7 +1536,7 @@ class _Insert(FirewallPoliciesRestStub): def __hash__(self): return hash("Insert") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = { + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = { "parentId": "", } @@ -1803,7 +1803,7 @@ class _Move(FirewallPoliciesRestStub): def __hash__(self): return hash("Move") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = { + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = { "parentId": "", } @@ -1907,7 +1907,7 @@ class _Patch(FirewallPoliciesRestStub): def __hash__(self): return hash("Patch") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -2018,7 +2018,7 @@ class _PatchRule(FirewallPoliciesRestStub): def __hash__(self): return hash("PatchRule") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -2129,7 +2129,7 @@ class _RemoveAssociation(FirewallPoliciesRestStub): def __hash__(self): return hash("RemoveAssociation") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -2233,7 +2233,7 @@ class _RemoveRule(FirewallPoliciesRestStub): def __hash__(self): return hash("RemoveRule") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -2335,7 +2335,7 @@ class _SetIamPolicy(FirewallPoliciesRestStub): def __hash__(self): return hash("SetIamPolicy") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -2472,7 +2472,7 @@ class _TestIamPermissions(FirewallPoliciesRestStub): def __hash__(self): return hash("TestIamPermissions") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): diff --git a/google/cloud/compute_v1/services/firewalls/transports/rest.py b/google/cloud/compute_v1/services/firewalls/transports/rest.py index edd3bb8ab..0b858fd7b 100644 --- a/google/cloud/compute_v1/services/firewalls/transports/rest.py +++ b/google/cloud/compute_v1/services/firewalls/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 gapic_v1, path_template, rest_helpers, rest_streaming @@ -345,7 +345,7 @@ class _Delete(FirewallsRestStub): def __hash__(self): return hash("Delete") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -447,7 +447,7 @@ class _Get(FirewallsRestStub): def __hash__(self): return hash("Get") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -538,7 +538,7 @@ class _Insert(FirewallsRestStub): def __hash__(self): return hash("Insert") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -649,7 +649,7 @@ class _List(FirewallsRestStub): def __hash__(self): return hash("List") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -735,7 +735,7 @@ class _Patch(FirewallsRestStub): def __hash__(self): return hash("Patch") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -846,7 +846,7 @@ class _Update(FirewallsRestStub): def __hash__(self): return hash("Update") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): diff --git a/google/cloud/compute_v1/services/forwarding_rules/transports/rest.py b/google/cloud/compute_v1/services/forwarding_rules/transports/rest.py index caab2e936..60879d915 100644 --- a/google/cloud/compute_v1/services/forwarding_rules/transports/rest.py +++ b/google/cloud/compute_v1/services/forwarding_rules/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 gapic_v1, path_template, rest_helpers, rest_streaming @@ -413,7 +413,7 @@ class _AggregatedList(ForwardingRulesRestStub): def __hash__(self): return hash("AggregatedList") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -500,7 +500,7 @@ class _Delete(ForwardingRulesRestStub): def __hash__(self): return hash("Delete") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -602,7 +602,7 @@ class _Get(ForwardingRulesRestStub): def __hash__(self): return hash("Get") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -701,7 +701,7 @@ class _Insert(ForwardingRulesRestStub): def __hash__(self): return hash("Insert") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -812,7 +812,7 @@ class _List(ForwardingRulesRestStub): def __hash__(self): return hash("List") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -901,7 +901,7 @@ class _Patch(ForwardingRulesRestStub): def __hash__(self): return hash("Patch") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -1012,7 +1012,7 @@ class _SetLabels(ForwardingRulesRestStub): def __hash__(self): return hash("SetLabels") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -1123,7 +1123,7 @@ class _SetTarget(ForwardingRulesRestStub): def __hash__(self): return hash("SetTarget") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): diff --git a/google/cloud/compute_v1/services/global_addresses/transports/rest.py b/google/cloud/compute_v1/services/global_addresses/transports/rest.py index a26dd080b..fbcc23502 100644 --- a/google/cloud/compute_v1/services/global_addresses/transports/rest.py +++ b/google/cloud/compute_v1/services/global_addresses/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 gapic_v1, path_template, rest_helpers, rest_streaming @@ -322,7 +322,7 @@ class _Delete(GlobalAddressesRestStub): def __hash__(self): return hash("Delete") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -424,7 +424,7 @@ class _Get(GlobalAddressesRestStub): def __hash__(self): return hash("Get") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -518,7 +518,7 @@ class _Insert(GlobalAddressesRestStub): def __hash__(self): return hash("Insert") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -629,7 +629,7 @@ class _List(GlobalAddressesRestStub): def __hash__(self): return hash("List") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -716,7 +716,7 @@ class _SetLabels(GlobalAddressesRestStub): def __hash__(self): return hash("SetLabels") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): diff --git a/google/cloud/compute_v1/services/global_forwarding_rules/transports/rest.py b/google/cloud/compute_v1/services/global_forwarding_rules/transports/rest.py index dd339d3ef..6cada5e8b 100644 --- a/google/cloud/compute_v1/services/global_forwarding_rules/transports/rest.py +++ b/google/cloud/compute_v1/services/global_forwarding_rules/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 gapic_v1, path_template, rest_helpers, rest_streaming @@ -382,7 +382,7 @@ class _Delete(GlobalForwardingRulesRestStub): def __hash__(self): return hash("Delete") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -484,7 +484,7 @@ class _Get(GlobalForwardingRulesRestStub): def __hash__(self): return hash("Get") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -583,7 +583,7 @@ class _Insert(GlobalForwardingRulesRestStub): def __hash__(self): return hash("Insert") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -694,7 +694,7 @@ class _List(GlobalForwardingRulesRestStub): def __hash__(self): return hash("List") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -783,7 +783,7 @@ class _Patch(GlobalForwardingRulesRestStub): def __hash__(self): return hash("Patch") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -894,7 +894,7 @@ class _SetLabels(GlobalForwardingRulesRestStub): def __hash__(self): return hash("SetLabels") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -1005,7 +1005,7 @@ class _SetTarget(GlobalForwardingRulesRestStub): def __hash__(self): return hash("SetTarget") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): diff --git a/google/cloud/compute_v1/services/global_network_endpoint_groups/transports/rest.py b/google/cloud/compute_v1/services/global_network_endpoint_groups/transports/rest.py index a1d19e4b3..9d907c633 100644 --- a/google/cloud/compute_v1/services/global_network_endpoint_groups/transports/rest.py +++ b/google/cloud/compute_v1/services/global_network_endpoint_groups/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 gapic_v1, path_template, rest_helpers, rest_streaming @@ -405,7 +405,7 @@ class _AttachNetworkEndpoints(GlobalNetworkEndpointGroupsRestStub): def __hash__(self): return hash("AttachNetworkEndpoints") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -522,7 +522,7 @@ class _Delete(GlobalNetworkEndpointGroupsRestStub): def __hash__(self): return hash("Delete") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -624,7 +624,7 @@ class _DetachNetworkEndpoints(GlobalNetworkEndpointGroupsRestStub): def __hash__(self): return hash("DetachNetworkEndpoints") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -741,7 +741,7 @@ class _Get(GlobalNetworkEndpointGroupsRestStub): def __hash__(self): return hash("Get") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -839,7 +839,7 @@ class _Insert(GlobalNetworkEndpointGroupsRestStub): def __hash__(self): return hash("Insert") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -950,7 +950,7 @@ class _List(GlobalNetworkEndpointGroupsRestStub): def __hash__(self): return hash("List") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -1037,7 +1037,7 @@ class _ListNetworkEndpoints(GlobalNetworkEndpointGroupsRestStub): def __hash__(self): return hash("ListNetworkEndpoints") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): diff --git a/google/cloud/compute_v1/services/global_operations/transports/rest.py b/google/cloud/compute_v1/services/global_operations/transports/rest.py index 0264d9e0f..ec4e80576 100644 --- a/google/cloud/compute_v1/services/global_operations/transports/rest.py +++ b/google/cloud/compute_v1/services/global_operations/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 gapic_v1, path_template, rest_helpers, rest_streaming @@ -328,7 +328,7 @@ class _AggregatedList(GlobalOperationsRestStub): def __hash__(self): return hash("AggregatedList") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -415,7 +415,7 @@ class _Delete(GlobalOperationsRestStub): def __hash__(self): return hash("Delete") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -505,7 +505,7 @@ class _Get(GlobalOperationsRestStub): def __hash__(self): return hash("Get") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -607,7 +607,7 @@ class _List(GlobalOperationsRestStub): def __hash__(self): return hash("List") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -696,7 +696,7 @@ class _Wait(GlobalOperationsRestStub): def __hash__(self): return hash("Wait") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): diff --git a/google/cloud/compute_v1/services/global_organization_operations/transports/rest.py b/google/cloud/compute_v1/services/global_organization_operations/transports/rest.py index d4264dc2e..40cb90ee9 100644 --- a/google/cloud/compute_v1/services/global_organization_operations/transports/rest.py +++ b/google/cloud/compute_v1/services/global_organization_operations/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 gapic_v1, path_template, rest_helpers, rest_streaming @@ -272,7 +272,7 @@ class _Delete(GlobalOrganizationOperationsRestStub): def __hash__(self): return hash("Delete") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -362,7 +362,7 @@ class _Get(GlobalOrganizationOperationsRestStub): def __hash__(self): return hash("Get") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): diff --git a/google/cloud/compute_v1/services/global_public_delegated_prefixes/transports/rest.py b/google/cloud/compute_v1/services/global_public_delegated_prefixes/transports/rest.py index 4cee2be00..428982846 100644 --- a/google/cloud/compute_v1/services/global_public_delegated_prefixes/transports/rest.py +++ b/google/cloud/compute_v1/services/global_public_delegated_prefixes/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 gapic_v1, path_template, rest_helpers, rest_streaming @@ -340,7 +340,7 @@ class _Delete(GlobalPublicDelegatedPrefixesRestStub): def __hash__(self): return hash("Delete") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -442,7 +442,7 @@ class _Get(GlobalPublicDelegatedPrefixesRestStub): def __hash__(self): return hash("Get") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -538,7 +538,7 @@ class _Insert(GlobalPublicDelegatedPrefixesRestStub): def __hash__(self): return hash("Insert") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -649,7 +649,7 @@ class _List(GlobalPublicDelegatedPrefixesRestStub): def __hash__(self): return hash("List") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -736,7 +736,7 @@ class _Patch(GlobalPublicDelegatedPrefixesRestStub): def __hash__(self): return hash("Patch") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): diff --git a/google/cloud/compute_v1/services/health_checks/transports/rest.py b/google/cloud/compute_v1/services/health_checks/transports/rest.py index 36d621425..c86d3c13c 100644 --- a/google/cloud/compute_v1/services/health_checks/transports/rest.py +++ b/google/cloud/compute_v1/services/health_checks/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 gapic_v1, path_template, rest_helpers, rest_streaming @@ -382,7 +382,7 @@ class _AggregatedList(HealthChecksRestStub): def __hash__(self): return hash("AggregatedList") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -469,7 +469,7 @@ class _Delete(HealthChecksRestStub): def __hash__(self): return hash("Delete") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -571,7 +571,7 @@ class _Get(HealthChecksRestStub): def __hash__(self): return hash("Get") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -678,7 +678,7 @@ class _Insert(HealthChecksRestStub): def __hash__(self): return hash("Insert") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -789,7 +789,7 @@ class _List(HealthChecksRestStub): def __hash__(self): return hash("List") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -878,7 +878,7 @@ class _Patch(HealthChecksRestStub): def __hash__(self): return hash("Patch") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -989,7 +989,7 @@ class _Update(HealthChecksRestStub): def __hash__(self): return hash("Update") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): diff --git a/google/cloud/compute_v1/services/image_family_views/transports/rest.py b/google/cloud/compute_v1/services/image_family_views/transports/rest.py index ebe3790fc..f4483ecad 100644 --- a/google/cloud/compute_v1/services/image_family_views/transports/rest.py +++ b/google/cloud/compute_v1/services/image_family_views/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 gapic_v1, path_template, rest_helpers, rest_streaming @@ -206,7 +206,7 @@ class _Get(ImageFamilyViewsRestStub): def __hash__(self): return hash("Get") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): diff --git a/google/cloud/compute_v1/services/images/transports/rest.py b/google/cloud/compute_v1/services/images/transports/rest.py index 64cca555e..5ac9768b5 100644 --- a/google/cloud/compute_v1/services/images/transports/rest.py +++ b/google/cloud/compute_v1/services/images/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 gapic_v1, path_template, rest_helpers, rest_streaming @@ -488,7 +488,7 @@ class _Delete(ImagesRestStub): def __hash__(self): return hash("Delete") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -589,7 +589,7 @@ class _Deprecate(ImagesRestStub): def __hash__(self): return hash("Deprecate") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -700,7 +700,7 @@ class _Get(ImagesRestStub): def __hash__(self): return hash("Get") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -790,7 +790,7 @@ class _GetFromFamily(ImagesRestStub): def __hash__(self): return hash("GetFromFamily") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -881,7 +881,7 @@ class _GetIamPolicy(ImagesRestStub): def __hash__(self): return hash("GetIamPolicy") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -1009,7 +1009,7 @@ class _Insert(ImagesRestStub): def __hash__(self): return hash("Insert") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -1119,7 +1119,7 @@ class _List(ImagesRestStub): def __hash__(self): return hash("List") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -1205,7 +1205,7 @@ class _Patch(ImagesRestStub): def __hash__(self): return hash("Patch") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -1315,7 +1315,7 @@ class _SetIamPolicy(ImagesRestStub): def __hash__(self): return hash("SetIamPolicy") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -1452,7 +1452,7 @@ class _SetLabels(ImagesRestStub): def __hash__(self): return hash("SetLabels") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -1563,7 +1563,7 @@ class _TestIamPermissions(ImagesRestStub): def __hash__(self): return hash("TestIamPermissions") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): diff --git a/google/cloud/compute_v1/services/instance_group_managers/transports/rest.py b/google/cloud/compute_v1/services/instance_group_managers/transports/rest.py index 2f5510d58..63a5c65f6 100644 --- a/google/cloud/compute_v1/services/instance_group_managers/transports/rest.py +++ b/google/cloud/compute_v1/services/instance_group_managers/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 gapic_v1, path_template, rest_helpers, rest_streaming @@ -814,7 +814,7 @@ class _AbandonInstances(InstanceGroupManagersRestStub): def __hash__(self): return hash("AbandonInstances") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -928,7 +928,7 @@ class _AggregatedList(InstanceGroupManagersRestStub): def __hash__(self): return hash("AggregatedList") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -1015,7 +1015,7 @@ class _ApplyUpdatesToInstances(InstanceGroupManagersRestStub): def __hash__(self): return hash("ApplyUpdatesToInstances") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -1131,7 +1131,7 @@ class _CreateInstances(InstanceGroupManagersRestStub): def __hash__(self): return hash("CreateInstances") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -1244,7 +1244,7 @@ class _Delete(InstanceGroupManagersRestStub): def __hash__(self): return hash("Delete") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -1346,7 +1346,7 @@ class _DeleteInstances(InstanceGroupManagersRestStub): def __hash__(self): return hash("DeleteInstances") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -1459,7 +1459,7 @@ class _DeletePerInstanceConfigs(InstanceGroupManagersRestStub): def __hash__(self): return hash("DeletePerInstanceConfigs") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -1575,7 +1575,7 @@ class _Get(InstanceGroupManagersRestStub): def __hash__(self): return hash("Get") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -1671,7 +1671,7 @@ class _Insert(InstanceGroupManagersRestStub): def __hash__(self): return hash("Insert") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -1782,7 +1782,7 @@ class _List(InstanceGroupManagersRestStub): def __hash__(self): return hash("List") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -1869,7 +1869,7 @@ class _ListErrors(InstanceGroupManagersRestStub): def __hash__(self): return hash("ListErrors") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -1956,7 +1956,7 @@ class _ListManagedInstances(InstanceGroupManagersRestStub): def __hash__(self): return hash("ListManagedInstances") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -2047,7 +2047,7 @@ class _ListPerInstanceConfigs(InstanceGroupManagersRestStub): def __hash__(self): return hash("ListPerInstanceConfigs") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -2138,7 +2138,7 @@ class _Patch(InstanceGroupManagersRestStub): def __hash__(self): return hash("Patch") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -2249,7 +2249,7 @@ class _PatchPerInstanceConfigs(InstanceGroupManagersRestStub): def __hash__(self): return hash("PatchPerInstanceConfigs") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -2365,7 +2365,7 @@ class _RecreateInstances(InstanceGroupManagersRestStub): def __hash__(self): return hash("RecreateInstances") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -2480,7 +2480,7 @@ class _Resize(InstanceGroupManagersRestStub): def __hash__(self): return hash("Resize") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = { + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = { "size": 0, } @@ -2584,7 +2584,7 @@ class _SetInstanceTemplate(InstanceGroupManagersRestStub): def __hash__(self): return hash("SetInstanceTemplate") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -2699,7 +2699,7 @@ class _SetTargetPools(InstanceGroupManagersRestStub): def __hash__(self): return hash("SetTargetPools") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -2812,7 +2812,7 @@ class _UpdatePerInstanceConfigs(InstanceGroupManagersRestStub): def __hash__(self): return hash("UpdatePerInstanceConfigs") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): diff --git a/google/cloud/compute_v1/services/instance_groups/transports/rest.py b/google/cloud/compute_v1/services/instance_groups/transports/rest.py index a9facc721..1d7dd6115 100644 --- a/google/cloud/compute_v1/services/instance_groups/transports/rest.py +++ b/google/cloud/compute_v1/services/instance_groups/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 gapic_v1, path_template, rest_helpers, rest_streaming @@ -444,7 +444,7 @@ class _AddInstances(InstanceGroupsRestStub): def __hash__(self): return hash("AddInstances") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -555,7 +555,7 @@ class _AggregatedList(InstanceGroupsRestStub): def __hash__(self): return hash("AggregatedList") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -642,7 +642,7 @@ class _Delete(InstanceGroupsRestStub): def __hash__(self): return hash("Delete") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -744,7 +744,7 @@ class _Get(InstanceGroupsRestStub): def __hash__(self): return hash("Get") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -845,7 +845,7 @@ class _Insert(InstanceGroupsRestStub): def __hash__(self): return hash("Insert") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -956,7 +956,7 @@ class _List(InstanceGroupsRestStub): def __hash__(self): return hash("List") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -1043,7 +1043,7 @@ class _ListInstances(InstanceGroupsRestStub): def __hash__(self): return hash("ListInstances") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -1139,7 +1139,7 @@ class _RemoveInstances(InstanceGroupsRestStub): def __hash__(self): return hash("RemoveInstances") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -1252,7 +1252,7 @@ class _SetNamedPorts(InstanceGroupsRestStub): def __hash__(self): return hash("SetNamedPorts") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): diff --git a/google/cloud/compute_v1/services/instance_templates/transports/rest.py b/google/cloud/compute_v1/services/instance_templates/transports/rest.py index 4a89bd387..6f10d0846 100644 --- a/google/cloud/compute_v1/services/instance_templates/transports/rest.py +++ b/google/cloud/compute_v1/services/instance_templates/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 gapic_v1, path_template, rest_helpers, rest_streaming @@ -386,7 +386,7 @@ class _Delete(InstanceTemplatesRestStub): def __hash__(self): return hash("Delete") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -488,7 +488,7 @@ class _Get(InstanceTemplatesRestStub): def __hash__(self): return hash("Get") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -580,7 +580,7 @@ class _GetIamPolicy(InstanceTemplatesRestStub): def __hash__(self): return hash("GetIamPolicy") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -708,7 +708,7 @@ class _Insert(InstanceTemplatesRestStub): def __hash__(self): return hash("Insert") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -819,7 +819,7 @@ class _List(InstanceTemplatesRestStub): def __hash__(self): return hash("List") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -906,7 +906,7 @@ class _SetIamPolicy(InstanceTemplatesRestStub): def __hash__(self): return hash("SetIamPolicy") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -1043,7 +1043,7 @@ class _TestIamPermissions(InstanceTemplatesRestStub): def __hash__(self): return hash("TestIamPermissions") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): diff --git a/google/cloud/compute_v1/services/instances/transports/rest.py b/google/cloud/compute_v1/services/instances/transports/rest.py index 4cae8042a..76e2de98b 100644 --- a/google/cloud/compute_v1/services/instances/transports/rest.py +++ b/google/cloud/compute_v1/services/instances/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 gapic_v1, path_template, rest_helpers, rest_streaming @@ -1535,7 +1535,7 @@ class _AddAccessConfig(InstancesRestStub): def __hash__(self): return hash("AddAccessConfig") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = { + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = { "networkInterface": "", } @@ -1650,7 +1650,7 @@ class _AddResourcePolicies(InstancesRestStub): def __hash__(self): return hash("AddResourcePolicies") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -1763,7 +1763,7 @@ class _AggregatedList(InstancesRestStub): def __hash__(self): return hash("AggregatedList") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -1850,7 +1850,7 @@ class _AttachDisk(InstancesRestStub): def __hash__(self): return hash("AttachDisk") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -1961,7 +1961,7 @@ class _BulkInsert(InstancesRestStub): def __hash__(self): return hash("BulkInsert") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -2072,7 +2072,7 @@ class _Delete(InstancesRestStub): def __hash__(self): return hash("Delete") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -2174,7 +2174,7 @@ class _DeleteAccessConfig(InstancesRestStub): def __hash__(self): return hash("DeleteAccessConfig") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = { + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = { "accessConfig": "", "networkInterface": "", } @@ -2281,7 +2281,7 @@ class _DetachDisk(InstancesRestStub): def __hash__(self): return hash("DetachDisk") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = { + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = { "deviceName": "", } @@ -2385,7 +2385,7 @@ class _Get(InstancesRestStub): def __hash__(self): return hash("Get") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -2476,7 +2476,7 @@ class _GetEffectiveFirewalls(InstancesRestStub): def __hash__(self): return hash("GetEffectiveFirewalls") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = { + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = { "networkInterface": "", } @@ -2567,7 +2567,7 @@ class _GetGuestAttributes(InstancesRestStub): def __hash__(self): return hash("GetGuestAttributes") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -2656,7 +2656,7 @@ class _GetIamPolicy(InstancesRestStub): def __hash__(self): return hash("GetIamPolicy") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -2784,7 +2784,7 @@ class _GetScreenshot(InstancesRestStub): def __hash__(self): return hash("GetScreenshot") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -2871,7 +2871,7 @@ class _GetSerialPortOutput(InstancesRestStub): def __hash__(self): return hash("GetSerialPortOutput") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -2960,7 +2960,7 @@ class _GetShieldedInstanceIdentity(InstancesRestStub): def __hash__(self): return hash("GetShieldedInstanceIdentity") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -3050,7 +3050,7 @@ class _Insert(InstancesRestStub): def __hash__(self): return hash("Insert") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -3161,7 +3161,7 @@ class _List(InstancesRestStub): def __hash__(self): return hash("List") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -3247,7 +3247,7 @@ class _ListReferrers(InstancesRestStub): def __hash__(self): return hash("ListReferrers") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -3336,7 +3336,7 @@ class _RemoveResourcePolicies(InstancesRestStub): def __hash__(self): return hash("RemoveResourcePolicies") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -3449,7 +3449,7 @@ class _Reset(InstancesRestStub): def __hash__(self): return hash("Reset") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -3551,7 +3551,7 @@ class _Resume(InstancesRestStub): def __hash__(self): return hash("Resume") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -3653,7 +3653,7 @@ class _SendDiagnosticInterrupt(InstancesRestStub): def __hash__(self): return hash("SendDiagnosticInterrupt") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -3745,7 +3745,7 @@ class _SetDeletionProtection(InstancesRestStub): def __hash__(self): return hash("SetDeletionProtection") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -3849,7 +3849,7 @@ class _SetDiskAutoDelete(InstancesRestStub): def __hash__(self): return hash("SetDiskAutoDelete") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = { + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = { "autoDelete": False, "deviceName": "", } @@ -3956,7 +3956,7 @@ class _SetIamPolicy(InstancesRestStub): def __hash__(self): return hash("SetIamPolicy") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -4093,7 +4093,7 @@ class _SetLabels(InstancesRestStub): def __hash__(self): return hash("SetLabels") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -4204,7 +4204,7 @@ class _SetMachineResources(InstancesRestStub): def __hash__(self): return hash("SetMachineResources") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -4317,7 +4317,7 @@ class _SetMachineType(InstancesRestStub): def __hash__(self): return hash("SetMachineType") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -4430,7 +4430,7 @@ class _SetMetadata(InstancesRestStub): def __hash__(self): return hash("SetMetadata") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -4541,7 +4541,7 @@ class _SetMinCpuPlatform(InstancesRestStub): def __hash__(self): return hash("SetMinCpuPlatform") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -4654,7 +4654,7 @@ class _SetScheduling(InstancesRestStub): def __hash__(self): return hash("SetScheduling") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -4765,7 +4765,7 @@ class _SetServiceAccount(InstancesRestStub): def __hash__(self): return hash("SetServiceAccount") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -4878,7 +4878,7 @@ class _SetShieldedInstanceIntegrityPolicy(InstancesRestStub): def __hash__(self): return hash("SetShieldedInstanceIntegrityPolicy") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -4997,7 +4997,7 @@ class _SetTags(InstancesRestStub): def __hash__(self): return hash("SetTags") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -5108,7 +5108,7 @@ class _SimulateMaintenanceEvent(InstancesRestStub): def __hash__(self): return hash("SimulateMaintenanceEvent") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -5213,7 +5213,7 @@ class _Start(InstancesRestStub): def __hash__(self): return hash("Start") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -5315,7 +5315,7 @@ class _StartWithEncryptionKey(InstancesRestStub): def __hash__(self): return hash("StartWithEncryptionKey") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -5428,7 +5428,7 @@ class _Stop(InstancesRestStub): def __hash__(self): return hash("Stop") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -5529,7 +5529,7 @@ class _Suspend(InstancesRestStub): def __hash__(self): return hash("Suspend") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -5631,7 +5631,7 @@ class _TestIamPermissions(InstancesRestStub): def __hash__(self): return hash("TestIamPermissions") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -5729,7 +5729,7 @@ class _Update(InstancesRestStub): def __hash__(self): return hash("Update") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -5840,7 +5840,7 @@ class _UpdateAccessConfig(InstancesRestStub): def __hash__(self): return hash("UpdateAccessConfig") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = { + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = { "networkInterface": "", } @@ -5955,7 +5955,7 @@ class _UpdateDisplayDevice(InstancesRestStub): def __hash__(self): return hash("UpdateDisplayDevice") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -6068,7 +6068,7 @@ class _UpdateNetworkInterface(InstancesRestStub): def __hash__(self): return hash("UpdateNetworkInterface") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = { + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = { "networkInterface": "", } @@ -6183,7 +6183,7 @@ class _UpdateShieldedInstanceConfig(InstancesRestStub): def __hash__(self): return hash("UpdateShieldedInstanceConfig") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): diff --git a/google/cloud/compute_v1/services/interconnect_attachments/transports/rest.py b/google/cloud/compute_v1/services/interconnect_attachments/transports/rest.py index 526e0c75f..1eaa5612e 100644 --- a/google/cloud/compute_v1/services/interconnect_attachments/transports/rest.py +++ b/google/cloud/compute_v1/services/interconnect_attachments/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 gapic_v1, path_template, rest_helpers, rest_streaming @@ -390,7 +390,7 @@ class _AggregatedList(InterconnectAttachmentsRestStub): def __hash__(self): return hash("AggregatedList") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -479,7 +479,7 @@ class _Delete(InterconnectAttachmentsRestStub): def __hash__(self): return hash("Delete") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -581,7 +581,7 @@ class _Get(InterconnectAttachmentsRestStub): def __hash__(self): return hash("Get") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -676,7 +676,7 @@ class _Insert(InterconnectAttachmentsRestStub): def __hash__(self): return hash("Insert") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -787,7 +787,7 @@ class _List(InterconnectAttachmentsRestStub): def __hash__(self): return hash("List") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -877,7 +877,7 @@ class _Patch(InterconnectAttachmentsRestStub): def __hash__(self): return hash("Patch") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -988,7 +988,7 @@ class _SetLabels(InterconnectAttachmentsRestStub): def __hash__(self): return hash("SetLabels") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): diff --git a/google/cloud/compute_v1/services/interconnect_locations/transports/rest.py b/google/cloud/compute_v1/services/interconnect_locations/transports/rest.py index b95037d4e..705ee8b25 100644 --- a/google/cloud/compute_v1/services/interconnect_locations/transports/rest.py +++ b/google/cloud/compute_v1/services/interconnect_locations/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 gapic_v1, path_template, rest_helpers, rest_streaming @@ -239,7 +239,7 @@ class _Get(InterconnectLocationsRestStub): def __hash__(self): return hash("Get") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -333,7 +333,7 @@ class _List(InterconnectLocationsRestStub): def __hash__(self): return hash("List") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): diff --git a/google/cloud/compute_v1/services/interconnects/transports/rest.py b/google/cloud/compute_v1/services/interconnects/transports/rest.py index 3fe394056..7d3ea6001 100644 --- a/google/cloud/compute_v1/services/interconnects/transports/rest.py +++ b/google/cloud/compute_v1/services/interconnects/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 gapic_v1, path_template, rest_helpers, rest_streaming @@ -382,7 +382,7 @@ class _Delete(InterconnectsRestStub): def __hash__(self): return hash("Delete") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -484,7 +484,7 @@ class _Get(InterconnectsRestStub): def __hash__(self): return hash("Get") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -577,7 +577,7 @@ class _GetDiagnostics(InterconnectsRestStub): def __hash__(self): return hash("GetDiagnostics") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -666,7 +666,7 @@ class _Insert(InterconnectsRestStub): def __hash__(self): return hash("Insert") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -777,7 +777,7 @@ class _List(InterconnectsRestStub): def __hash__(self): return hash("List") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -866,7 +866,7 @@ class _Patch(InterconnectsRestStub): def __hash__(self): return hash("Patch") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -977,7 +977,7 @@ class _SetLabels(InterconnectsRestStub): def __hash__(self): return hash("SetLabels") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): diff --git a/google/cloud/compute_v1/services/license_codes/transports/rest.py b/google/cloud/compute_v1/services/license_codes/transports/rest.py index 008227f89..77b22f058 100644 --- a/google/cloud/compute_v1/services/license_codes/transports/rest.py +++ b/google/cloud/compute_v1/services/license_codes/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 gapic_v1, path_template, rest_helpers, rest_streaming @@ -237,7 +237,7 @@ class _Get(LicenseCodesRestStub): def __hash__(self): return hash("Get") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -329,7 +329,7 @@ class _TestIamPermissions(LicenseCodesRestStub): def __hash__(self): return hash("TestIamPermissions") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): diff --git a/google/cloud/compute_v1/services/licenses/transports/rest.py b/google/cloud/compute_v1/services/licenses/transports/rest.py index 7821a7f2c..fb48a1f34 100644 --- a/google/cloud/compute_v1/services/licenses/transports/rest.py +++ b/google/cloud/compute_v1/services/licenses/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 gapic_v1, path_template, rest_helpers, rest_streaming @@ -376,7 +376,7 @@ class _Delete(LicensesRestStub): def __hash__(self): return hash("Delete") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = { + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = { "license": "", } @@ -480,7 +480,7 @@ class _Get(LicensesRestStub): def __hash__(self): return hash("Get") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = { + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = { "license": "", } @@ -573,7 +573,7 @@ class _GetIamPolicy(LicensesRestStub): def __hash__(self): return hash("GetIamPolicy") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -701,7 +701,7 @@ class _Insert(LicensesRestStub): def __hash__(self): return hash("Insert") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -812,7 +812,7 @@ class _List(LicensesRestStub): def __hash__(self): return hash("List") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -898,7 +898,7 @@ class _SetIamPolicy(LicensesRestStub): def __hash__(self): return hash("SetIamPolicy") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -1035,7 +1035,7 @@ class _TestIamPermissions(LicensesRestStub): def __hash__(self): return hash("TestIamPermissions") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): diff --git a/google/cloud/compute_v1/services/machine_images/transports/rest.py b/google/cloud/compute_v1/services/machine_images/transports/rest.py index 178cdd85e..428f13b56 100644 --- a/google/cloud/compute_v1/services/machine_images/transports/rest.py +++ b/google/cloud/compute_v1/services/machine_images/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 gapic_v1, path_template, rest_helpers, rest_streaming @@ -384,7 +384,7 @@ class _Delete(MachineImagesRestStub): def __hash__(self): return hash("Delete") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -486,7 +486,7 @@ class _Get(MachineImagesRestStub): def __hash__(self): return hash("Get") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -581,7 +581,7 @@ class _GetIamPolicy(MachineImagesRestStub): def __hash__(self): return hash("GetIamPolicy") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -709,7 +709,7 @@ class _Insert(MachineImagesRestStub): def __hash__(self): return hash("Insert") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -820,7 +820,7 @@ class _List(MachineImagesRestStub): def __hash__(self): return hash("List") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -907,7 +907,7 @@ class _SetIamPolicy(MachineImagesRestStub): def __hash__(self): return hash("SetIamPolicy") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -1044,7 +1044,7 @@ class _TestIamPermissions(MachineImagesRestStub): def __hash__(self): return hash("TestIamPermissions") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): diff --git a/google/cloud/compute_v1/services/machine_types/transports/rest.py b/google/cloud/compute_v1/services/machine_types/transports/rest.py index b1eec8096..c3128f083 100644 --- a/google/cloud/compute_v1/services/machine_types/transports/rest.py +++ b/google/cloud/compute_v1/services/machine_types/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 gapic_v1, path_template, rest_helpers, rest_streaming @@ -266,7 +266,7 @@ class _AggregatedList(MachineTypesRestStub): def __hash__(self): return hash("AggregatedList") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -353,7 +353,7 @@ class _Get(MachineTypesRestStub): def __hash__(self): return hash("Get") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -445,7 +445,7 @@ class _List(MachineTypesRestStub): def __hash__(self): return hash("List") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): diff --git a/google/cloud/compute_v1/services/network_attachments/transports/rest.py b/google/cloud/compute_v1/services/network_attachments/transports/rest.py index 838ea0289..15d26aa97 100644 --- a/google/cloud/compute_v1/services/network_attachments/transports/rest.py +++ b/google/cloud/compute_v1/services/network_attachments/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 gapic_v1, path_template, rest_helpers, rest_streaming @@ -421,7 +421,7 @@ class _AggregatedList(NetworkAttachmentsRestStub): def __hash__(self): return hash("AggregatedList") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -510,7 +510,7 @@ class _Delete(NetworkAttachmentsRestStub): def __hash__(self): return hash("Delete") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -612,7 +612,7 @@ class _Get(NetworkAttachmentsRestStub): def __hash__(self): return hash("Get") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -701,7 +701,7 @@ class _GetIamPolicy(NetworkAttachmentsRestStub): def __hash__(self): return hash("GetIamPolicy") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -829,7 +829,7 @@ class _Insert(NetworkAttachmentsRestStub): def __hash__(self): return hash("Insert") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -940,7 +940,7 @@ class _List(NetworkAttachmentsRestStub): def __hash__(self): return hash("List") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -1027,7 +1027,7 @@ class _SetIamPolicy(NetworkAttachmentsRestStub): def __hash__(self): return hash("SetIamPolicy") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -1164,7 +1164,7 @@ class _TestIamPermissions(NetworkAttachmentsRestStub): def __hash__(self): return hash("TestIamPermissions") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): diff --git a/google/cloud/compute_v1/services/network_edge_security_services/transports/rest.py b/google/cloud/compute_v1/services/network_edge_security_services/transports/rest.py index ab96b8589..a24a4ce86 100644 --- a/google/cloud/compute_v1/services/network_edge_security_services/transports/rest.py +++ b/google/cloud/compute_v1/services/network_edge_security_services/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 gapic_v1, path_template, rest_helpers, rest_streaming @@ -335,7 +335,7 @@ class _AggregatedList(NetworkEdgeSecurityServicesRestStub): def __hash__(self): return hash("AggregatedList") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -424,7 +424,7 @@ class _Delete(NetworkEdgeSecurityServicesRestStub): def __hash__(self): return hash("Delete") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -526,7 +526,7 @@ class _Get(NetworkEdgeSecurityServicesRestStub): def __hash__(self): return hash("Get") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -615,7 +615,7 @@ class _Insert(NetworkEdgeSecurityServicesRestStub): def __hash__(self): return hash("Insert") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -726,7 +726,7 @@ class _Patch(NetworkEdgeSecurityServicesRestStub): def __hash__(self): return hash("Patch") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): diff --git a/google/cloud/compute_v1/services/network_endpoint_groups/transports/rest.py b/google/cloud/compute_v1/services/network_endpoint_groups/transports/rest.py index e3b76cda3..e30d75b87 100644 --- a/google/cloud/compute_v1/services/network_endpoint_groups/transports/rest.py +++ b/google/cloud/compute_v1/services/network_endpoint_groups/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 gapic_v1, path_template, rest_helpers, rest_streaming @@ -465,7 +465,7 @@ class _AggregatedList(NetworkEndpointGroupsRestStub): def __hash__(self): return hash("AggregatedList") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -552,7 +552,7 @@ class _AttachNetworkEndpoints(NetworkEndpointGroupsRestStub): def __hash__(self): return hash("AttachNetworkEndpoints") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -667,7 +667,7 @@ class _Delete(NetworkEndpointGroupsRestStub): def __hash__(self): return hash("Delete") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -769,7 +769,7 @@ class _DetachNetworkEndpoints(NetworkEndpointGroupsRestStub): def __hash__(self): return hash("DetachNetworkEndpoints") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -884,7 +884,7 @@ class _Get(NetworkEndpointGroupsRestStub): def __hash__(self): return hash("Get") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -982,7 +982,7 @@ class _Insert(NetworkEndpointGroupsRestStub): def __hash__(self): return hash("Insert") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -1093,7 +1093,7 @@ class _List(NetworkEndpointGroupsRestStub): def __hash__(self): return hash("List") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -1180,7 +1180,7 @@ class _ListNetworkEndpoints(NetworkEndpointGroupsRestStub): def __hash__(self): return hash("ListNetworkEndpoints") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -1280,7 +1280,7 @@ class _TestIamPermissions(NetworkEndpointGroupsRestStub): def __hash__(self): return hash("TestIamPermissions") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): diff --git a/google/cloud/compute_v1/services/network_firewall_policies/transports/rest.py b/google/cloud/compute_v1/services/network_firewall_policies/transports/rest.py index c69d075ea..e0041be39 100644 --- a/google/cloud/compute_v1/services/network_firewall_policies/transports/rest.py +++ b/google/cloud/compute_v1/services/network_firewall_policies/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 gapic_v1, path_template, rest_helpers, rest_streaming @@ -668,7 +668,7 @@ class _AddAssociation(NetworkFirewallPoliciesRestStub): def __hash__(self): return hash("AddAssociation") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -779,7 +779,7 @@ class _AddRule(NetworkFirewallPoliciesRestStub): def __hash__(self): return hash("AddRule") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -890,7 +890,7 @@ class _CloneRules(NetworkFirewallPoliciesRestStub): def __hash__(self): return hash("CloneRules") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -992,7 +992,7 @@ class _Delete(NetworkFirewallPoliciesRestStub): def __hash__(self): return hash("Delete") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -1094,7 +1094,7 @@ class _Get(NetworkFirewallPoliciesRestStub): def __hash__(self): return hash("Get") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -1183,7 +1183,7 @@ class _GetAssociation(NetworkFirewallPoliciesRestStub): def __hash__(self): return hash("GetAssociation") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -1270,7 +1270,7 @@ class _GetIamPolicy(NetworkFirewallPoliciesRestStub): def __hash__(self): return hash("GetIamPolicy") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -1398,7 +1398,7 @@ class _GetRule(NetworkFirewallPoliciesRestStub): def __hash__(self): return hash("GetRule") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -1489,7 +1489,7 @@ class _Insert(NetworkFirewallPoliciesRestStub): def __hash__(self): return hash("Insert") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -1600,7 +1600,7 @@ class _List(NetworkFirewallPoliciesRestStub): def __hash__(self): return hash("List") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -1687,7 +1687,7 @@ class _Patch(NetworkFirewallPoliciesRestStub): def __hash__(self): return hash("Patch") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -1798,7 +1798,7 @@ class _PatchRule(NetworkFirewallPoliciesRestStub): def __hash__(self): return hash("PatchRule") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -1909,7 +1909,7 @@ class _RemoveAssociation(NetworkFirewallPoliciesRestStub): def __hash__(self): return hash("RemoveAssociation") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -2015,7 +2015,7 @@ class _RemoveRule(NetworkFirewallPoliciesRestStub): def __hash__(self): return hash("RemoveRule") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -2117,7 +2117,7 @@ class _SetIamPolicy(NetworkFirewallPoliciesRestStub): def __hash__(self): return hash("SetIamPolicy") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -2254,7 +2254,7 @@ class _TestIamPermissions(NetworkFirewallPoliciesRestStub): def __hash__(self): return hash("TestIamPermissions") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): diff --git a/google/cloud/compute_v1/services/networks/transports/rest.py b/google/cloud/compute_v1/services/networks/transports/rest.py index b7f93dda0..9f864d39b 100644 --- a/google/cloud/compute_v1/services/networks/transports/rest.py +++ b/google/cloud/compute_v1/services/networks/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 gapic_v1, path_template, rest_helpers, rest_streaming @@ -492,7 +492,7 @@ class _AddPeering(NetworksRestStub): def __hash__(self): return hash("AddPeering") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -603,7 +603,7 @@ class _Delete(NetworksRestStub): def __hash__(self): return hash("Delete") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -705,7 +705,7 @@ class _Get(NetworksRestStub): def __hash__(self): return hash("Get") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -796,7 +796,7 @@ class _GetEffectiveFirewalls(NetworksRestStub): def __hash__(self): return hash("GetEffectiveFirewalls") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -885,7 +885,7 @@ class _Insert(NetworksRestStub): def __hash__(self): return hash("Insert") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -996,7 +996,7 @@ class _List(NetworksRestStub): def __hash__(self): return hash("List") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -1082,7 +1082,7 @@ class _ListPeeringRoutes(NetworksRestStub): def __hash__(self): return hash("ListPeeringRoutes") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -1171,7 +1171,7 @@ class _Patch(NetworksRestStub): def __hash__(self): return hash("Patch") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -1281,7 +1281,7 @@ class _RemovePeering(NetworksRestStub): def __hash__(self): return hash("RemovePeering") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -1392,7 +1392,7 @@ class _SwitchToCustomMode(NetworksRestStub): def __hash__(self): return hash("SwitchToCustomMode") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -1496,7 +1496,7 @@ class _UpdatePeering(NetworksRestStub): def __hash__(self): return hash("UpdatePeering") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): diff --git a/google/cloud/compute_v1/services/node_groups/transports/rest.py b/google/cloud/compute_v1/services/node_groups/transports/rest.py index c73f13cac..b9c3fa3f1 100644 --- a/google/cloud/compute_v1/services/node_groups/transports/rest.py +++ b/google/cloud/compute_v1/services/node_groups/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 gapic_v1, path_template, rest_helpers, rest_streaming @@ -558,7 +558,7 @@ class _AddNodes(NodeGroupsRestStub): def __hash__(self): return hash("AddNodes") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -669,7 +669,7 @@ class _AggregatedList(NodeGroupsRestStub): def __hash__(self): return hash("AggregatedList") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -756,7 +756,7 @@ class _Delete(NodeGroupsRestStub): def __hash__(self): return hash("Delete") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -858,7 +858,7 @@ class _DeleteNodes(NodeGroupsRestStub): def __hash__(self): return hash("DeleteNodes") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -969,7 +969,7 @@ class _Get(NodeGroupsRestStub): def __hash__(self): return hash("Get") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -1066,7 +1066,7 @@ class _GetIamPolicy(NodeGroupsRestStub): def __hash__(self): return hash("GetIamPolicy") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -1194,7 +1194,7 @@ class _Insert(NodeGroupsRestStub): def __hash__(self): return hash("Insert") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = { + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = { "initialNodeCount": 0, } @@ -1307,7 +1307,7 @@ class _List(NodeGroupsRestStub): def __hash__(self): return hash("List") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -1394,7 +1394,7 @@ class _ListNodes(NodeGroupsRestStub): def __hash__(self): return hash("ListNodes") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -1481,7 +1481,7 @@ class _Patch(NodeGroupsRestStub): def __hash__(self): return hash("Patch") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -1592,7 +1592,7 @@ class _SetIamPolicy(NodeGroupsRestStub): def __hash__(self): return hash("SetIamPolicy") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -1729,7 +1729,7 @@ class _SetNodeTemplate(NodeGroupsRestStub): def __hash__(self): return hash("SetNodeTemplate") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -1842,7 +1842,7 @@ class _TestIamPermissions(NodeGroupsRestStub): def __hash__(self): return hash("TestIamPermissions") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): diff --git a/google/cloud/compute_v1/services/node_templates/transports/rest.py b/google/cloud/compute_v1/services/node_templates/transports/rest.py index eac363458..b5476deb9 100644 --- a/google/cloud/compute_v1/services/node_templates/transports/rest.py +++ b/google/cloud/compute_v1/services/node_templates/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 gapic_v1, path_template, rest_helpers, rest_streaming @@ -415,7 +415,7 @@ class _AggregatedList(NodeTemplatesRestStub): def __hash__(self): return hash("AggregatedList") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -502,7 +502,7 @@ class _Delete(NodeTemplatesRestStub): def __hash__(self): return hash("Delete") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -604,7 +604,7 @@ class _Get(NodeTemplatesRestStub): def __hash__(self): return hash("Get") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -696,7 +696,7 @@ class _GetIamPolicy(NodeTemplatesRestStub): def __hash__(self): return hash("GetIamPolicy") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -824,7 +824,7 @@ class _Insert(NodeTemplatesRestStub): def __hash__(self): return hash("Insert") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -935,7 +935,7 @@ class _List(NodeTemplatesRestStub): def __hash__(self): return hash("List") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -1022,7 +1022,7 @@ class _SetIamPolicy(NodeTemplatesRestStub): def __hash__(self): return hash("SetIamPolicy") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -1159,7 +1159,7 @@ class _TestIamPermissions(NodeTemplatesRestStub): def __hash__(self): return hash("TestIamPermissions") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): diff --git a/google/cloud/compute_v1/services/node_types/transports/rest.py b/google/cloud/compute_v1/services/node_types/transports/rest.py index fa76f719e..fa359adac 100644 --- a/google/cloud/compute_v1/services/node_types/transports/rest.py +++ b/google/cloud/compute_v1/services/node_types/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 gapic_v1, path_template, rest_helpers, rest_streaming @@ -262,7 +262,7 @@ class _AggregatedList(NodeTypesRestStub): def __hash__(self): return hash("AggregatedList") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -349,7 +349,7 @@ class _Get(NodeTypesRestStub): def __hash__(self): return hash("Get") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -445,7 +445,7 @@ class _List(NodeTypesRestStub): def __hash__(self): return hash("List") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): diff --git a/google/cloud/compute_v1/services/packet_mirrorings/transports/rest.py b/google/cloud/compute_v1/services/packet_mirrorings/transports/rest.py index b0555d5b4..6bd232b10 100644 --- a/google/cloud/compute_v1/services/packet_mirrorings/transports/rest.py +++ b/google/cloud/compute_v1/services/packet_mirrorings/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 gapic_v1, path_template, rest_helpers, rest_streaming @@ -390,7 +390,7 @@ class _AggregatedList(PacketMirroringsRestStub): def __hash__(self): return hash("AggregatedList") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -477,7 +477,7 @@ class _Delete(PacketMirroringsRestStub): def __hash__(self): return hash("Delete") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -579,7 +579,7 @@ class _Get(PacketMirroringsRestStub): def __hash__(self): return hash("Get") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -676,7 +676,7 @@ class _Insert(PacketMirroringsRestStub): def __hash__(self): return hash("Insert") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -787,7 +787,7 @@ class _List(PacketMirroringsRestStub): def __hash__(self): return hash("List") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -876,7 +876,7 @@ class _Patch(PacketMirroringsRestStub): def __hash__(self): return hash("Patch") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -987,7 +987,7 @@ class _TestIamPermissions(PacketMirroringsRestStub): def __hash__(self): return hash("TestIamPermissions") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): diff --git a/google/cloud/compute_v1/services/projects/transports/rest.py b/google/cloud/compute_v1/services/projects/transports/rest.py index 87641d4d0..298bc9647 100644 --- a/google/cloud/compute_v1/services/projects/transports/rest.py +++ b/google/cloud/compute_v1/services/projects/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 gapic_v1, path_template, rest_helpers, rest_streaming @@ -566,7 +566,7 @@ class _DisableXpnHost(ProjectsRestStub): def __hash__(self): return hash("DisableXpnHost") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -670,7 +670,7 @@ class _DisableXpnResource(ProjectsRestStub): def __hash__(self): return hash("DisableXpnResource") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -783,7 +783,7 @@ class _EnableXpnHost(ProjectsRestStub): def __hash__(self): return hash("EnableXpnHost") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -885,7 +885,7 @@ class _EnableXpnResource(ProjectsRestStub): def __hash__(self): return hash("EnableXpnResource") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -998,7 +998,7 @@ class _Get(ProjectsRestStub): def __hash__(self): return hash("Get") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -1089,7 +1089,7 @@ class _GetXpnHost(ProjectsRestStub): def __hash__(self): return hash("GetXpnHost") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -1181,7 +1181,7 @@ class _GetXpnResources(ProjectsRestStub): def __hash__(self): return hash("GetXpnResources") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -1270,7 +1270,7 @@ class _ListXpnHosts(ProjectsRestStub): def __hash__(self): return hash("ListXpnHosts") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -1366,7 +1366,7 @@ class _MoveDisk(ProjectsRestStub): def __hash__(self): return hash("MoveDisk") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -1477,7 +1477,7 @@ class _MoveInstance(ProjectsRestStub): def __hash__(self): return hash("MoveInstance") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -1588,7 +1588,7 @@ class _SetCommonInstanceMetadata(ProjectsRestStub): def __hash__(self): return hash("SetCommonInstanceMetadata") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -1702,7 +1702,7 @@ class _SetDefaultNetworkTier(ProjectsRestStub): def __hash__(self): return hash("SetDefaultNetworkTier") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -1815,7 +1815,7 @@ class _SetUsageExportBucket(ProjectsRestStub): def __hash__(self): return hash("SetUsageExportBucket") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): diff --git a/google/cloud/compute_v1/services/public_advertised_prefixes/transports/rest.py b/google/cloud/compute_v1/services/public_advertised_prefixes/transports/rest.py index 9a1e4479a..9de3e10ff 100644 --- a/google/cloud/compute_v1/services/public_advertised_prefixes/transports/rest.py +++ b/google/cloud/compute_v1/services/public_advertised_prefixes/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 gapic_v1, path_template, rest_helpers, rest_streaming @@ -326,7 +326,7 @@ class _Delete(PublicAdvertisedPrefixesRestStub): def __hash__(self): return hash("Delete") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -428,7 +428,7 @@ class _Get(PublicAdvertisedPrefixesRestStub): def __hash__(self): return hash("Get") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -521,7 +521,7 @@ class _Insert(PublicAdvertisedPrefixesRestStub): def __hash__(self): return hash("Insert") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -632,7 +632,7 @@ class _List(PublicAdvertisedPrefixesRestStub): def __hash__(self): return hash("List") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -719,7 +719,7 @@ class _Patch(PublicAdvertisedPrefixesRestStub): def __hash__(self): return hash("Patch") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): diff --git a/google/cloud/compute_v1/services/public_delegated_prefixes/transports/rest.py b/google/cloud/compute_v1/services/public_delegated_prefixes/transports/rest.py index ee44ba5d7..e2ab700d7 100644 --- a/google/cloud/compute_v1/services/public_delegated_prefixes/transports/rest.py +++ b/google/cloud/compute_v1/services/public_delegated_prefixes/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 gapic_v1, path_template, rest_helpers, rest_streaming @@ -359,7 +359,7 @@ class _AggregatedList(PublicDelegatedPrefixesRestStub): def __hash__(self): return hash("AggregatedList") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -448,7 +448,7 @@ class _Delete(PublicDelegatedPrefixesRestStub): def __hash__(self): return hash("Delete") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -550,7 +550,7 @@ class _Get(PublicDelegatedPrefixesRestStub): def __hash__(self): return hash("Get") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -646,7 +646,7 @@ class _Insert(PublicDelegatedPrefixesRestStub): def __hash__(self): return hash("Insert") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -757,7 +757,7 @@ class _List(PublicDelegatedPrefixesRestStub): def __hash__(self): return hash("List") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -844,7 +844,7 @@ class _Patch(PublicDelegatedPrefixesRestStub): def __hash__(self): return hash("Patch") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): diff --git a/google/cloud/compute_v1/services/region_autoscalers/transports/rest.py b/google/cloud/compute_v1/services/region_autoscalers/transports/rest.py index e4202cc68..9bd800661 100644 --- a/google/cloud/compute_v1/services/region_autoscalers/transports/rest.py +++ b/google/cloud/compute_v1/services/region_autoscalers/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 gapic_v1, path_template, rest_helpers, rest_streaming @@ -353,7 +353,7 @@ class _Delete(RegionAutoscalersRestStub): def __hash__(self): return hash("Delete") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -455,7 +455,7 @@ class _Get(RegionAutoscalersRestStub): def __hash__(self): return hash("Get") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -554,7 +554,7 @@ class _Insert(RegionAutoscalersRestStub): def __hash__(self): return hash("Insert") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -665,7 +665,7 @@ class _List(RegionAutoscalersRestStub): def __hash__(self): return hash("List") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -752,7 +752,7 @@ class _Patch(RegionAutoscalersRestStub): def __hash__(self): return hash("Patch") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -863,7 +863,7 @@ class _Update(RegionAutoscalersRestStub): def __hash__(self): return hash("Update") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): diff --git a/google/cloud/compute_v1/services/region_backend_services/transports/rest.py b/google/cloud/compute_v1/services/region_backend_services/transports/rest.py index 93db498c8..1de3dbb85 100644 --- a/google/cloud/compute_v1/services/region_backend_services/transports/rest.py +++ b/google/cloud/compute_v1/services/region_backend_services/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 gapic_v1, path_template, rest_helpers, rest_streaming @@ -446,7 +446,7 @@ class _Delete(RegionBackendServicesRestStub): def __hash__(self): return hash("Delete") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -548,7 +548,7 @@ class _Get(RegionBackendServicesRestStub): def __hash__(self): return hash("Get") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -650,7 +650,7 @@ class _GetHealth(RegionBackendServicesRestStub): def __hash__(self): return hash("GetHealth") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -746,7 +746,7 @@ class _GetIamPolicy(RegionBackendServicesRestStub): def __hash__(self): return hash("GetIamPolicy") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -874,7 +874,7 @@ class _Insert(RegionBackendServicesRestStub): def __hash__(self): return hash("Insert") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -985,7 +985,7 @@ class _List(RegionBackendServicesRestStub): def __hash__(self): return hash("List") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -1074,7 +1074,7 @@ class _Patch(RegionBackendServicesRestStub): def __hash__(self): return hash("Patch") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -1185,7 +1185,7 @@ class _SetIamPolicy(RegionBackendServicesRestStub): def __hash__(self): return hash("SetIamPolicy") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -1322,7 +1322,7 @@ class _Update(RegionBackendServicesRestStub): def __hash__(self): return hash("Update") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): diff --git a/google/cloud/compute_v1/services/region_commitments/transports/rest.py b/google/cloud/compute_v1/services/region_commitments/transports/rest.py index 10edca5d9..78c76690c 100644 --- a/google/cloud/compute_v1/services/region_commitments/transports/rest.py +++ b/google/cloud/compute_v1/services/region_commitments/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 gapic_v1, path_template, rest_helpers, rest_streaming @@ -326,7 +326,7 @@ class _AggregatedList(RegionCommitmentsRestStub): def __hash__(self): return hash("AggregatedList") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -413,7 +413,7 @@ class _Get(RegionCommitmentsRestStub): def __hash__(self): return hash("Get") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -509,7 +509,7 @@ class _Insert(RegionCommitmentsRestStub): def __hash__(self): return hash("Insert") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -620,7 +620,7 @@ class _List(RegionCommitmentsRestStub): def __hash__(self): return hash("List") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -709,7 +709,7 @@ class _Update(RegionCommitmentsRestStub): def __hash__(self): return hash("Update") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): diff --git a/google/cloud/compute_v1/services/region_disk_types/transports/rest.py b/google/cloud/compute_v1/services/region_disk_types/transports/rest.py index 85c1dd8f7..54527520c 100644 --- a/google/cloud/compute_v1/services/region_disk_types/transports/rest.py +++ b/google/cloud/compute_v1/services/region_disk_types/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 gapic_v1, path_template, rest_helpers, rest_streaming @@ -237,7 +237,7 @@ class _Get(RegionDiskTypesRestStub): def __hash__(self): return hash("Get") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -335,7 +335,7 @@ class _List(RegionDiskTypesRestStub): def __hash__(self): return hash("List") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): diff --git a/google/cloud/compute_v1/services/region_disks/transports/rest.py b/google/cloud/compute_v1/services/region_disks/transports/rest.py index 99d665aca..0eae50994 100644 --- a/google/cloud/compute_v1/services/region_disks/transports/rest.py +++ b/google/cloud/compute_v1/services/region_disks/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 gapic_v1, path_template, rest_helpers, rest_streaming @@ -531,7 +531,7 @@ class _AddResourcePolicies(RegionDisksRestStub): def __hash__(self): return hash("AddResourcePolicies") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -644,7 +644,7 @@ class _CreateSnapshot(RegionDisksRestStub): def __hash__(self): return hash("CreateSnapshot") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -755,7 +755,7 @@ class _Delete(RegionDisksRestStub): def __hash__(self): return hash("Delete") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -857,7 +857,7 @@ class _Get(RegionDisksRestStub): def __hash__(self): return hash("Get") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -956,7 +956,7 @@ class _GetIamPolicy(RegionDisksRestStub): def __hash__(self): return hash("GetIamPolicy") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -1084,7 +1084,7 @@ class _Insert(RegionDisksRestStub): def __hash__(self): return hash("Insert") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -1195,7 +1195,7 @@ class _List(RegionDisksRestStub): def __hash__(self): return hash("List") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -1282,7 +1282,7 @@ class _RemoveResourcePolicies(RegionDisksRestStub): def __hash__(self): return hash("RemoveResourcePolicies") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -1395,7 +1395,7 @@ class _Resize(RegionDisksRestStub): def __hash__(self): return hash("Resize") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -1506,7 +1506,7 @@ class _SetIamPolicy(RegionDisksRestStub): def __hash__(self): return hash("SetIamPolicy") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -1643,7 +1643,7 @@ class _SetLabels(RegionDisksRestStub): def __hash__(self): return hash("SetLabels") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -1754,7 +1754,7 @@ class _TestIamPermissions(RegionDisksRestStub): def __hash__(self): return hash("TestIamPermissions") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): diff --git a/google/cloud/compute_v1/services/region_health_check_services/transports/rest.py b/google/cloud/compute_v1/services/region_health_check_services/transports/rest.py index 7cb44fd40..df0de8fb1 100644 --- a/google/cloud/compute_v1/services/region_health_check_services/transports/rest.py +++ b/google/cloud/compute_v1/services/region_health_check_services/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 gapic_v1, path_template, rest_helpers, rest_streaming @@ -330,7 +330,7 @@ class _Delete(RegionHealthCheckServicesRestStub): def __hash__(self): return hash("Delete") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -432,7 +432,7 @@ class _Get(RegionHealthCheckServicesRestStub): def __hash__(self): return hash("Get") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -521,7 +521,7 @@ class _Insert(RegionHealthCheckServicesRestStub): def __hash__(self): return hash("Insert") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -632,7 +632,7 @@ class _List(RegionHealthCheckServicesRestStub): def __hash__(self): return hash("List") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -719,7 +719,7 @@ class _Patch(RegionHealthCheckServicesRestStub): def __hash__(self): return hash("Patch") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): diff --git a/google/cloud/compute_v1/services/region_health_checks/transports/rest.py b/google/cloud/compute_v1/services/region_health_checks/transports/rest.py index bc112722f..a7f4cac05 100644 --- a/google/cloud/compute_v1/services/region_health_checks/transports/rest.py +++ b/google/cloud/compute_v1/services/region_health_checks/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 gapic_v1, path_template, rest_helpers, rest_streaming @@ -351,7 +351,7 @@ class _Delete(RegionHealthChecksRestStub): def __hash__(self): return hash("Delete") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -453,7 +453,7 @@ class _Get(RegionHealthChecksRestStub): def __hash__(self): return hash("Get") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -560,7 +560,7 @@ class _Insert(RegionHealthChecksRestStub): def __hash__(self): return hash("Insert") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -671,7 +671,7 @@ class _List(RegionHealthChecksRestStub): def __hash__(self): return hash("List") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -760,7 +760,7 @@ class _Patch(RegionHealthChecksRestStub): def __hash__(self): return hash("Patch") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -871,7 +871,7 @@ class _Update(RegionHealthChecksRestStub): def __hash__(self): return hash("Update") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): diff --git a/google/cloud/compute_v1/services/region_instance_group_managers/transports/rest.py b/google/cloud/compute_v1/services/region_instance_group_managers/transports/rest.py index 4ca2abd0f..8c093d800 100644 --- a/google/cloud/compute_v1/services/region_instance_group_managers/transports/rest.py +++ b/google/cloud/compute_v1/services/region_instance_group_managers/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 gapic_v1, path_template, rest_helpers, rest_streaming @@ -796,7 +796,7 @@ class _AbandonInstances(RegionInstanceGroupManagersRestStub): def __hash__(self): return hash("AbandonInstances") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -911,7 +911,7 @@ class _ApplyUpdatesToInstances(RegionInstanceGroupManagersRestStub): def __hash__(self): return hash("ApplyUpdatesToInstances") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -1029,7 +1029,7 @@ class _CreateInstances(RegionInstanceGroupManagersRestStub): def __hash__(self): return hash("CreateInstances") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -1144,7 +1144,7 @@ class _Delete(RegionInstanceGroupManagersRestStub): def __hash__(self): return hash("Delete") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -1246,7 +1246,7 @@ class _DeleteInstances(RegionInstanceGroupManagersRestStub): def __hash__(self): return hash("DeleteInstances") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -1361,7 +1361,7 @@ class _DeletePerInstanceConfigs(RegionInstanceGroupManagersRestStub): def __hash__(self): return hash("DeletePerInstanceConfigs") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -1479,7 +1479,7 @@ class _Get(RegionInstanceGroupManagersRestStub): def __hash__(self): return hash("Get") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -1575,7 +1575,7 @@ class _Insert(RegionInstanceGroupManagersRestStub): def __hash__(self): return hash("Insert") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -1686,7 +1686,7 @@ class _List(RegionInstanceGroupManagersRestStub): def __hash__(self): return hash("List") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -1775,7 +1775,7 @@ class _ListErrors(RegionInstanceGroupManagersRestStub): def __hash__(self): return hash("ListErrors") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -1864,7 +1864,7 @@ class _ListManagedInstances(RegionInstanceGroupManagersRestStub): def __hash__(self): return hash("ListManagedInstances") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -1957,7 +1957,7 @@ class _ListPerInstanceConfigs(RegionInstanceGroupManagersRestStub): def __hash__(self): return hash("ListPerInstanceConfigs") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -2052,7 +2052,7 @@ class _Patch(RegionInstanceGroupManagersRestStub): def __hash__(self): return hash("Patch") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -2163,7 +2163,7 @@ class _PatchPerInstanceConfigs(RegionInstanceGroupManagersRestStub): def __hash__(self): return hash("PatchPerInstanceConfigs") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -2281,7 +2281,7 @@ class _RecreateInstances(RegionInstanceGroupManagersRestStub): def __hash__(self): return hash("RecreateInstances") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -2396,7 +2396,7 @@ class _Resize(RegionInstanceGroupManagersRestStub): def __hash__(self): return hash("Resize") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = { + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = { "size": 0, } @@ -2500,7 +2500,7 @@ class _SetInstanceTemplate(RegionInstanceGroupManagersRestStub): def __hash__(self): return hash("SetInstanceTemplate") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -2615,7 +2615,7 @@ class _SetTargetPools(RegionInstanceGroupManagersRestStub): def __hash__(self): return hash("SetTargetPools") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -2730,7 +2730,7 @@ class _UpdatePerInstanceConfigs(RegionInstanceGroupManagersRestStub): def __hash__(self): return hash("UpdatePerInstanceConfigs") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): diff --git a/google/cloud/compute_v1/services/region_instance_groups/transports/rest.py b/google/cloud/compute_v1/services/region_instance_groups/transports/rest.py index 539148911..6720190a6 100644 --- a/google/cloud/compute_v1/services/region_instance_groups/transports/rest.py +++ b/google/cloud/compute_v1/services/region_instance_groups/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 gapic_v1, path_template, rest_helpers, rest_streaming @@ -301,7 +301,7 @@ class _Get(RegionInstanceGroupsRestStub): def __hash__(self): return hash("Get") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -402,7 +402,7 @@ class _List(RegionInstanceGroupsRestStub): def __hash__(self): return hash("List") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -491,7 +491,7 @@ class _ListInstances(RegionInstanceGroupsRestStub): def __hash__(self): return hash("ListInstances") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -587,7 +587,7 @@ class _SetNamedPorts(RegionInstanceGroupsRestStub): def __hash__(self): return hash("SetNamedPorts") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): diff --git a/google/cloud/compute_v1/services/region_instances/transports/rest.py b/google/cloud/compute_v1/services/region_instances/transports/rest.py index 2ff8035da..1d7aaf865 100644 --- a/google/cloud/compute_v1/services/region_instances/transports/rest.py +++ b/google/cloud/compute_v1/services/region_instances/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 gapic_v1, path_template, rest_helpers, rest_streaming @@ -206,7 +206,7 @@ class _BulkInsert(RegionInstancesRestStub): def __hash__(self): return hash("BulkInsert") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): diff --git a/google/cloud/compute_v1/services/region_network_endpoint_groups/transports/rest.py b/google/cloud/compute_v1/services/region_network_endpoint_groups/transports/rest.py index be90308c8..d14bc178f 100644 --- a/google/cloud/compute_v1/services/region_network_endpoint_groups/transports/rest.py +++ b/google/cloud/compute_v1/services/region_network_endpoint_groups/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 gapic_v1, path_template, rest_helpers, rest_streaming @@ -303,7 +303,7 @@ class _Delete(RegionNetworkEndpointGroupsRestStub): def __hash__(self): return hash("Delete") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -405,7 +405,7 @@ class _Get(RegionNetworkEndpointGroupsRestStub): def __hash__(self): return hash("Get") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -503,7 +503,7 @@ class _Insert(RegionNetworkEndpointGroupsRestStub): def __hash__(self): return hash("Insert") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -614,7 +614,7 @@ class _List(RegionNetworkEndpointGroupsRestStub): def __hash__(self): return hash("List") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): diff --git a/google/cloud/compute_v1/services/region_network_firewall_policies/transports/rest.py b/google/cloud/compute_v1/services/region_network_firewall_policies/transports/rest.py index d0f76a45a..d366e7b0f 100644 --- a/google/cloud/compute_v1/services/region_network_firewall_policies/transports/rest.py +++ b/google/cloud/compute_v1/services/region_network_firewall_policies/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 gapic_v1, path_template, rest_helpers, rest_streaming @@ -726,7 +726,7 @@ class _AddAssociation(RegionNetworkFirewallPoliciesRestStub): def __hash__(self): return hash("AddAssociation") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -839,7 +839,7 @@ class _AddRule(RegionNetworkFirewallPoliciesRestStub): def __hash__(self): return hash("AddRule") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -950,7 +950,7 @@ class _CloneRules(RegionNetworkFirewallPoliciesRestStub): def __hash__(self): return hash("CloneRules") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -1054,7 +1054,7 @@ class _Delete(RegionNetworkFirewallPoliciesRestStub): def __hash__(self): return hash("Delete") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -1156,7 +1156,7 @@ class _Get(RegionNetworkFirewallPoliciesRestStub): def __hash__(self): return hash("Get") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -1245,7 +1245,7 @@ class _GetAssociation(RegionNetworkFirewallPoliciesRestStub): def __hash__(self): return hash("GetAssociation") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -1334,7 +1334,7 @@ class _GetEffectiveFirewalls(RegionNetworkFirewallPoliciesRestStub): def __hash__(self): return hash("GetEffectiveFirewalls") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = { + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = { "network": "", } @@ -1433,7 +1433,7 @@ class _GetIamPolicy(RegionNetworkFirewallPoliciesRestStub): def __hash__(self): return hash("GetIamPolicy") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -1563,7 +1563,7 @@ class _GetRule(RegionNetworkFirewallPoliciesRestStub): def __hash__(self): return hash("GetRule") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -1654,7 +1654,7 @@ class _Insert(RegionNetworkFirewallPoliciesRestStub): def __hash__(self): return hash("Insert") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -1765,7 +1765,7 @@ class _List(RegionNetworkFirewallPoliciesRestStub): def __hash__(self): return hash("List") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -1852,7 +1852,7 @@ class _Patch(RegionNetworkFirewallPoliciesRestStub): def __hash__(self): return hash("Patch") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -1963,7 +1963,7 @@ class _PatchRule(RegionNetworkFirewallPoliciesRestStub): def __hash__(self): return hash("PatchRule") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -2074,7 +2074,7 @@ class _RemoveAssociation(RegionNetworkFirewallPoliciesRestStub): def __hash__(self): return hash("RemoveAssociation") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -2180,7 +2180,7 @@ class _RemoveRule(RegionNetworkFirewallPoliciesRestStub): def __hash__(self): return hash("RemoveRule") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -2284,7 +2284,7 @@ class _SetIamPolicy(RegionNetworkFirewallPoliciesRestStub): def __hash__(self): return hash("SetIamPolicy") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -2423,7 +2423,7 @@ class _TestIamPermissions(RegionNetworkFirewallPoliciesRestStub): def __hash__(self): return hash("TestIamPermissions") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): diff --git a/google/cloud/compute_v1/services/region_notification_endpoints/transports/rest.py b/google/cloud/compute_v1/services/region_notification_endpoints/transports/rest.py index 0f4e916ac..510410280 100644 --- a/google/cloud/compute_v1/services/region_notification_endpoints/transports/rest.py +++ b/google/cloud/compute_v1/services/region_notification_endpoints/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 gapic_v1, path_template, rest_helpers, rest_streaming @@ -303,7 +303,7 @@ class _Delete(RegionNotificationEndpointsRestStub): def __hash__(self): return hash("Delete") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -405,7 +405,7 @@ class _Get(RegionNotificationEndpointsRestStub): def __hash__(self): return hash("Get") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -499,7 +499,7 @@ class _Insert(RegionNotificationEndpointsRestStub): def __hash__(self): return hash("Insert") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -610,7 +610,7 @@ class _List(RegionNotificationEndpointsRestStub): def __hash__(self): return hash("List") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): diff --git a/google/cloud/compute_v1/services/region_operations/transports/rest.py b/google/cloud/compute_v1/services/region_operations/transports/rest.py index 273a3e4aa..eb746a7b5 100644 --- a/google/cloud/compute_v1/services/region_operations/transports/rest.py +++ b/google/cloud/compute_v1/services/region_operations/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 gapic_v1, path_template, rest_helpers, rest_streaming @@ -295,7 +295,7 @@ class _Delete(RegionOperationsRestStub): def __hash__(self): return hash("Delete") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -385,7 +385,7 @@ class _Get(RegionOperationsRestStub): def __hash__(self): return hash("Get") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -487,7 +487,7 @@ class _List(RegionOperationsRestStub): def __hash__(self): return hash("List") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -576,7 +576,7 @@ class _Wait(RegionOperationsRestStub): def __hash__(self): return hash("Wait") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): diff --git a/google/cloud/compute_v1/services/region_security_policies/transports/rest.py b/google/cloud/compute_v1/services/region_security_policies/transports/rest.py index e46168e20..4dd6642c2 100644 --- a/google/cloud/compute_v1/services/region_security_policies/transports/rest.py +++ b/google/cloud/compute_v1/services/region_security_policies/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 gapic_v1, path_template, rest_helpers, rest_streaming @@ -324,7 +324,7 @@ class _Delete(RegionSecurityPoliciesRestStub): def __hash__(self): return hash("Delete") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -426,7 +426,7 @@ class _Get(RegionSecurityPoliciesRestStub): def __hash__(self): return hash("Get") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -519,7 +519,7 @@ class _Insert(RegionSecurityPoliciesRestStub): def __hash__(self): return hash("Insert") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -630,7 +630,7 @@ class _List(RegionSecurityPoliciesRestStub): def __hash__(self): return hash("List") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -717,7 +717,7 @@ class _Patch(RegionSecurityPoliciesRestStub): def __hash__(self): return hash("Patch") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): diff --git a/google/cloud/compute_v1/services/region_ssl_certificates/transports/rest.py b/google/cloud/compute_v1/services/region_ssl_certificates/transports/rest.py index dc67480b2..354e741d2 100644 --- a/google/cloud/compute_v1/services/region_ssl_certificates/transports/rest.py +++ b/google/cloud/compute_v1/services/region_ssl_certificates/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 gapic_v1, path_template, rest_helpers, rest_streaming @@ -295,7 +295,7 @@ class _Delete(RegionSslCertificatesRestStub): def __hash__(self): return hash("Delete") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -397,7 +397,7 @@ class _Get(RegionSslCertificatesRestStub): def __hash__(self): return hash("Get") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -500,7 +500,7 @@ class _Insert(RegionSslCertificatesRestStub): def __hash__(self): return hash("Insert") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -611,7 +611,7 @@ class _List(RegionSslCertificatesRestStub): def __hash__(self): return hash("List") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): diff --git a/google/cloud/compute_v1/services/region_ssl_policies/transports/rest.py b/google/cloud/compute_v1/services/region_ssl_policies/transports/rest.py index a8e30e0f4..48919ee04 100644 --- a/google/cloud/compute_v1/services/region_ssl_policies/transports/rest.py +++ b/google/cloud/compute_v1/services/region_ssl_policies/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 gapic_v1, path_template, rest_helpers, rest_streaming @@ -355,7 +355,7 @@ class _Delete(RegionSslPoliciesRestStub): def __hash__(self): return hash("Delete") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -457,7 +457,7 @@ class _Get(RegionSslPoliciesRestStub): def __hash__(self): return hash("Get") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -550,7 +550,7 @@ class _Insert(RegionSslPoliciesRestStub): def __hash__(self): return hash("Insert") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -661,7 +661,7 @@ class _List(RegionSslPoliciesRestStub): def __hash__(self): return hash("List") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -748,7 +748,7 @@ class _ListAvailableFeatures(RegionSslPoliciesRestStub): def __hash__(self): return hash("ListAvailableFeatures") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -839,7 +839,7 @@ class _Patch(RegionSslPoliciesRestStub): def __hash__(self): return hash("Patch") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): diff --git a/google/cloud/compute_v1/services/region_target_http_proxies/transports/rest.py b/google/cloud/compute_v1/services/region_target_http_proxies/transports/rest.py index 575e98408..fb649d0e0 100644 --- a/google/cloud/compute_v1/services/region_target_http_proxies/transports/rest.py +++ b/google/cloud/compute_v1/services/region_target_http_proxies/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 gapic_v1, path_template, rest_helpers, rest_streaming @@ -326,7 +326,7 @@ class _Delete(RegionTargetHttpProxiesRestStub): def __hash__(self): return hash("Delete") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -428,7 +428,7 @@ class _Get(RegionTargetHttpProxiesRestStub): def __hash__(self): return hash("Get") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -528,7 +528,7 @@ class _Insert(RegionTargetHttpProxiesRestStub): def __hash__(self): return hash("Insert") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -639,7 +639,7 @@ class _List(RegionTargetHttpProxiesRestStub): def __hash__(self): return hash("List") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -726,7 +726,7 @@ class _SetUrlMap(RegionTargetHttpProxiesRestStub): def __hash__(self): return hash("SetUrlMap") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): diff --git a/google/cloud/compute_v1/services/region_target_https_proxies/transports/rest.py b/google/cloud/compute_v1/services/region_target_https_proxies/transports/rest.py index 4660cf15a..d29bfabfe 100644 --- a/google/cloud/compute_v1/services/region_target_https_proxies/transports/rest.py +++ b/google/cloud/compute_v1/services/region_target_https_proxies/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 gapic_v1, path_template, rest_helpers, rest_streaming @@ -389,7 +389,7 @@ class _Delete(RegionTargetHttpsProxiesRestStub): def __hash__(self): return hash("Delete") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -491,7 +491,7 @@ class _Get(RegionTargetHttpsProxiesRestStub): def __hash__(self): return hash("Get") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -590,7 +590,7 @@ class _Insert(RegionTargetHttpsProxiesRestStub): def __hash__(self): return hash("Insert") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -701,7 +701,7 @@ class _List(RegionTargetHttpsProxiesRestStub): def __hash__(self): return hash("List") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -790,7 +790,7 @@ class _Patch(RegionTargetHttpsProxiesRestStub): def __hash__(self): return hash("Patch") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -901,7 +901,7 @@ class _SetSslCertificates(RegionTargetHttpsProxiesRestStub): def __hash__(self): return hash("SetSslCertificates") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -1016,7 +1016,7 @@ class _SetUrlMap(RegionTargetHttpsProxiesRestStub): def __hash__(self): return hash("SetUrlMap") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): diff --git a/google/cloud/compute_v1/services/region_target_tcp_proxies/transports/rest.py b/google/cloud/compute_v1/services/region_target_tcp_proxies/transports/rest.py index 968eea619..8c13988cb 100644 --- a/google/cloud/compute_v1/services/region_target_tcp_proxies/transports/rest.py +++ b/google/cloud/compute_v1/services/region_target_tcp_proxies/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 gapic_v1, path_template, rest_helpers, rest_streaming @@ -295,7 +295,7 @@ class _Delete(RegionTargetTcpProxiesRestStub): def __hash__(self): return hash("Delete") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -397,7 +397,7 @@ class _Get(RegionTargetTcpProxiesRestStub): def __hash__(self): return hash("Get") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -492,7 +492,7 @@ class _Insert(RegionTargetTcpProxiesRestStub): def __hash__(self): return hash("Insert") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -603,7 +603,7 @@ class _List(RegionTargetTcpProxiesRestStub): def __hash__(self): return hash("List") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): diff --git a/google/cloud/compute_v1/services/region_url_maps/transports/rest.py b/google/cloud/compute_v1/services/region_url_maps/transports/rest.py index 88098dc84..fbcae4413 100644 --- a/google/cloud/compute_v1/services/region_url_maps/transports/rest.py +++ b/google/cloud/compute_v1/services/region_url_maps/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 gapic_v1, path_template, rest_helpers, rest_streaming @@ -382,7 +382,7 @@ class _Delete(RegionUrlMapsRestStub): def __hash__(self): return hash("Delete") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -484,7 +484,7 @@ class _Get(RegionUrlMapsRestStub): def __hash__(self): return hash("Get") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -592,7 +592,7 @@ class _Insert(RegionUrlMapsRestStub): def __hash__(self): return hash("Insert") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -703,7 +703,7 @@ class _List(RegionUrlMapsRestStub): def __hash__(self): return hash("List") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -790,7 +790,7 @@ class _Patch(RegionUrlMapsRestStub): def __hash__(self): return hash("Patch") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -901,7 +901,7 @@ class _Update(RegionUrlMapsRestStub): def __hash__(self): return hash("Update") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -1012,7 +1012,7 @@ class _Validate(RegionUrlMapsRestStub): def __hash__(self): return hash("Validate") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): diff --git a/google/cloud/compute_v1/services/regions/transports/rest.py b/google/cloud/compute_v1/services/regions/transports/rest.py index d933da48b..95d13b50b 100644 --- a/google/cloud/compute_v1/services/regions/transports/rest.py +++ b/google/cloud/compute_v1/services/regions/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 gapic_v1, path_template, rest_helpers, rest_streaming @@ -231,7 +231,7 @@ class _Get(RegionsRestStub): def __hash__(self): return hash("Get") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -321,7 +321,7 @@ class _List(RegionsRestStub): def __hash__(self): return hash("List") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): diff --git a/google/cloud/compute_v1/services/reservations/transports/rest.py b/google/cloud/compute_v1/services/reservations/transports/rest.py index b55cdd474..8c73b75e4 100644 --- a/google/cloud/compute_v1/services/reservations/transports/rest.py +++ b/google/cloud/compute_v1/services/reservations/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 gapic_v1, path_template, rest_helpers, rest_streaming @@ -471,7 +471,7 @@ class _AggregatedList(ReservationsRestStub): def __hash__(self): return hash("AggregatedList") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -558,7 +558,7 @@ class _Delete(ReservationsRestStub): def __hash__(self): return hash("Delete") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -660,7 +660,7 @@ class _Get(ReservationsRestStub): def __hash__(self): return hash("Get") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -753,7 +753,7 @@ class _GetIamPolicy(ReservationsRestStub): def __hash__(self): return hash("GetIamPolicy") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -881,7 +881,7 @@ class _Insert(ReservationsRestStub): def __hash__(self): return hash("Insert") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -992,7 +992,7 @@ class _List(ReservationsRestStub): def __hash__(self): return hash("List") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -1079,7 +1079,7 @@ class _Resize(ReservationsRestStub): def __hash__(self): return hash("Resize") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -1190,7 +1190,7 @@ class _SetIamPolicy(ReservationsRestStub): def __hash__(self): return hash("SetIamPolicy") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -1327,7 +1327,7 @@ class _TestIamPermissions(ReservationsRestStub): def __hash__(self): return hash("TestIamPermissions") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -1425,7 +1425,7 @@ class _Update(ReservationsRestStub): def __hash__(self): return hash("Update") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): diff --git a/google/cloud/compute_v1/services/resource_policies/transports/rest.py b/google/cloud/compute_v1/services/resource_policies/transports/rest.py index bdb420653..615f65920 100644 --- a/google/cloud/compute_v1/services/resource_policies/transports/rest.py +++ b/google/cloud/compute_v1/services/resource_policies/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 gapic_v1, path_template, rest_helpers, rest_streaming @@ -419,7 +419,7 @@ class _AggregatedList(ResourcePoliciesRestStub): def __hash__(self): return hash("AggregatedList") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -506,7 +506,7 @@ class _Delete(ResourcePoliciesRestStub): def __hash__(self): return hash("Delete") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -608,7 +608,7 @@ class _Get(ResourcePoliciesRestStub): def __hash__(self): return hash("Get") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -701,7 +701,7 @@ class _GetIamPolicy(ResourcePoliciesRestStub): def __hash__(self): return hash("GetIamPolicy") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -829,7 +829,7 @@ class _Insert(ResourcePoliciesRestStub): def __hash__(self): return hash("Insert") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -940,7 +940,7 @@ class _List(ResourcePoliciesRestStub): def __hash__(self): return hash("List") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -1027,7 +1027,7 @@ class _SetIamPolicy(ResourcePoliciesRestStub): def __hash__(self): return hash("SetIamPolicy") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -1164,7 +1164,7 @@ class _TestIamPermissions(ResourcePoliciesRestStub): def __hash__(self): return hash("TestIamPermissions") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): diff --git a/google/cloud/compute_v1/services/routers/transports/rest.py b/google/cloud/compute_v1/services/routers/transports/rest.py index ebeed10f2..06c170188 100644 --- a/google/cloud/compute_v1/services/routers/transports/rest.py +++ b/google/cloud/compute_v1/services/routers/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 gapic_v1, path_template, rest_helpers, rest_streaming @@ -461,7 +461,7 @@ class _AggregatedList(RoutersRestStub): def __hash__(self): return hash("AggregatedList") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -548,7 +548,7 @@ class _Delete(RoutersRestStub): def __hash__(self): return hash("Delete") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -649,7 +649,7 @@ class _Get(RoutersRestStub): def __hash__(self): return hash("Get") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -738,7 +738,7 @@ class _GetNatMappingInfo(RoutersRestStub): def __hash__(self): return hash("GetNatMappingInfo") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -829,7 +829,7 @@ class _GetRouterStatus(RoutersRestStub): def __hash__(self): return hash("GetRouterStatus") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -918,7 +918,7 @@ class _Insert(RoutersRestStub): def __hash__(self): return hash("Insert") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -1028,7 +1028,7 @@ class _List(RoutersRestStub): def __hash__(self): return hash("List") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -1114,7 +1114,7 @@ class _Patch(RoutersRestStub): def __hash__(self): return hash("Patch") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -1224,7 +1224,7 @@ class _Preview(RoutersRestStub): def __hash__(self): return hash("Preview") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -1320,7 +1320,7 @@ class _Update(RoutersRestStub): def __hash__(self): return hash("Update") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): diff --git a/google/cloud/compute_v1/services/routes/transports/rest.py b/google/cloud/compute_v1/services/routes/transports/rest.py index 9729da2a4..1cca34a25 100644 --- a/google/cloud/compute_v1/services/routes/transports/rest.py +++ b/google/cloud/compute_v1/services/routes/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 gapic_v1, path_template, rest_helpers, rest_streaming @@ -285,7 +285,7 @@ class _Delete(RoutesRestStub): def __hash__(self): return hash("Delete") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -386,7 +386,7 @@ class _Get(RoutesRestStub): def __hash__(self): return hash("Get") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -478,7 +478,7 @@ class _Insert(RoutesRestStub): def __hash__(self): return hash("Insert") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -588,7 +588,7 @@ class _List(RoutesRestStub): def __hash__(self): return hash("List") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): diff --git a/google/cloud/compute_v1/services/security_policies/transports/rest.py b/google/cloud/compute_v1/services/security_policies/transports/rest.py index ec0a89e2c..a17edeb02 100644 --- a/google/cloud/compute_v1/services/security_policies/transports/rest.py +++ b/google/cloud/compute_v1/services/security_policies/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 gapic_v1, path_template, rest_helpers, rest_streaming @@ -538,7 +538,7 @@ class _AddRule(SecurityPoliciesRestStub): def __hash__(self): return hash("AddRule") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -649,7 +649,7 @@ class _AggregatedList(SecurityPoliciesRestStub): def __hash__(self): return hash("AggregatedList") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -736,7 +736,7 @@ class _Delete(SecurityPoliciesRestStub): def __hash__(self): return hash("Delete") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -838,7 +838,7 @@ class _Get(SecurityPoliciesRestStub): def __hash__(self): return hash("Get") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -931,7 +931,7 @@ class _GetRule(SecurityPoliciesRestStub): def __hash__(self): return hash("GetRule") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -1022,7 +1022,7 @@ class _Insert(SecurityPoliciesRestStub): def __hash__(self): return hash("Insert") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -1133,7 +1133,7 @@ class _List(SecurityPoliciesRestStub): def __hash__(self): return hash("List") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -1220,7 +1220,7 @@ class _ListPreconfiguredExpressionSets(SecurityPoliciesRestStub): def __hash__(self): return hash("ListPreconfiguredExpressionSets") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -1319,7 +1319,7 @@ class _Patch(SecurityPoliciesRestStub): def __hash__(self): return hash("Patch") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -1430,7 +1430,7 @@ class _PatchRule(SecurityPoliciesRestStub): def __hash__(self): return hash("PatchRule") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -1541,7 +1541,7 @@ class _RemoveRule(SecurityPoliciesRestStub): def __hash__(self): return hash("RemoveRule") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -1643,7 +1643,7 @@ class _SetLabels(SecurityPoliciesRestStub): def __hash__(self): return hash("SetLabels") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): diff --git a/google/cloud/compute_v1/services/service_attachments/transports/rest.py b/google/cloud/compute_v1/services/service_attachments/transports/rest.py index 74fe30c52..5aa628977 100644 --- a/google/cloud/compute_v1/services/service_attachments/transports/rest.py +++ b/google/cloud/compute_v1/services/service_attachments/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 gapic_v1, path_template, rest_helpers, rest_streaming @@ -450,7 +450,7 @@ class _AggregatedList(ServiceAttachmentsRestStub): def __hash__(self): return hash("AggregatedList") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -539,7 +539,7 @@ class _Delete(ServiceAttachmentsRestStub): def __hash__(self): return hash("Delete") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -641,7 +641,7 @@ class _Get(ServiceAttachmentsRestStub): def __hash__(self): return hash("Get") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -737,7 +737,7 @@ class _GetIamPolicy(ServiceAttachmentsRestStub): def __hash__(self): return hash("GetIamPolicy") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -865,7 +865,7 @@ class _Insert(ServiceAttachmentsRestStub): def __hash__(self): return hash("Insert") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -976,7 +976,7 @@ class _List(ServiceAttachmentsRestStub): def __hash__(self): return hash("List") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -1063,7 +1063,7 @@ class _Patch(ServiceAttachmentsRestStub): def __hash__(self): return hash("Patch") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -1174,7 +1174,7 @@ class _SetIamPolicy(ServiceAttachmentsRestStub): def __hash__(self): return hash("SetIamPolicy") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -1311,7 +1311,7 @@ class _TestIamPermissions(ServiceAttachmentsRestStub): def __hash__(self): return hash("TestIamPermissions") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): diff --git a/google/cloud/compute_v1/services/snapshots/transports/rest.py b/google/cloud/compute_v1/services/snapshots/transports/rest.py index 7a21f7ab9..f220459be 100644 --- a/google/cloud/compute_v1/services/snapshots/transports/rest.py +++ b/google/cloud/compute_v1/services/snapshots/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 gapic_v1, path_template, rest_helpers, rest_streaming @@ -407,7 +407,7 @@ class _Delete(SnapshotsRestStub): def __hash__(self): return hash("Delete") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -509,7 +509,7 @@ class _Get(SnapshotsRestStub): def __hash__(self): return hash("Get") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -600,7 +600,7 @@ class _GetIamPolicy(SnapshotsRestStub): def __hash__(self): return hash("GetIamPolicy") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -728,7 +728,7 @@ class _Insert(SnapshotsRestStub): def __hash__(self): return hash("Insert") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -839,7 +839,7 @@ class _List(SnapshotsRestStub): def __hash__(self): return hash("List") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -927,7 +927,7 @@ class _SetIamPolicy(SnapshotsRestStub): def __hash__(self): return hash("SetIamPolicy") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -1064,7 +1064,7 @@ class _SetLabels(SnapshotsRestStub): def __hash__(self): return hash("SetLabels") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -1175,7 +1175,7 @@ class _TestIamPermissions(SnapshotsRestStub): def __hash__(self): return hash("TestIamPermissions") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): diff --git a/google/cloud/compute_v1/services/ssl_certificates/transports/rest.py b/google/cloud/compute_v1/services/ssl_certificates/transports/rest.py index 4cf65a23e..6f895f697 100644 --- a/google/cloud/compute_v1/services/ssl_certificates/transports/rest.py +++ b/google/cloud/compute_v1/services/ssl_certificates/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 gapic_v1, path_template, rest_helpers, rest_streaming @@ -326,7 +326,7 @@ class _AggregatedList(SslCertificatesRestStub): def __hash__(self): return hash("AggregatedList") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -413,7 +413,7 @@ class _Delete(SslCertificatesRestStub): def __hash__(self): return hash("Delete") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -515,7 +515,7 @@ class _Get(SslCertificatesRestStub): def __hash__(self): return hash("Get") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -618,7 +618,7 @@ class _Insert(SslCertificatesRestStub): def __hash__(self): return hash("Insert") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -729,7 +729,7 @@ class _List(SslCertificatesRestStub): def __hash__(self): return hash("List") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): diff --git a/google/cloud/compute_v1/services/ssl_policies/transports/rest.py b/google/cloud/compute_v1/services/ssl_policies/transports/rest.py index 09fcd0bd7..d29764ab7 100644 --- a/google/cloud/compute_v1/services/ssl_policies/transports/rest.py +++ b/google/cloud/compute_v1/services/ssl_policies/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 gapic_v1, path_template, rest_helpers, rest_streaming @@ -384,7 +384,7 @@ class _AggregatedList(SslPoliciesRestStub): def __hash__(self): return hash("AggregatedList") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -471,7 +471,7 @@ class _Delete(SslPoliciesRestStub): def __hash__(self): return hash("Delete") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -573,7 +573,7 @@ class _Get(SslPoliciesRestStub): def __hash__(self): return hash("Get") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -666,7 +666,7 @@ class _Insert(SslPoliciesRestStub): def __hash__(self): return hash("Insert") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -777,7 +777,7 @@ class _List(SslPoliciesRestStub): def __hash__(self): return hash("List") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -864,7 +864,7 @@ class _ListAvailableFeatures(SslPoliciesRestStub): def __hash__(self): return hash("ListAvailableFeatures") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -953,7 +953,7 @@ class _Patch(SslPoliciesRestStub): def __hash__(self): return hash("Patch") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): diff --git a/google/cloud/compute_v1/services/subnetworks/transports/rest.py b/google/cloud/compute_v1/services/subnetworks/transports/rest.py index 8b62ad44a..df4e12147 100644 --- a/google/cloud/compute_v1/services/subnetworks/transports/rest.py +++ b/google/cloud/compute_v1/services/subnetworks/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 gapic_v1, path_template, rest_helpers, rest_streaming @@ -535,7 +535,7 @@ class _AggregatedList(SubnetworksRestStub): def __hash__(self): return hash("AggregatedList") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -622,7 +622,7 @@ class _Delete(SubnetworksRestStub): def __hash__(self): return hash("Delete") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -724,7 +724,7 @@ class _ExpandIpCidrRange(SubnetworksRestStub): def __hash__(self): return hash("ExpandIpCidrRange") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -837,7 +837,7 @@ class _Get(SubnetworksRestStub): def __hash__(self): return hash("Get") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -931,7 +931,7 @@ class _GetIamPolicy(SubnetworksRestStub): def __hash__(self): return hash("GetIamPolicy") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -1059,7 +1059,7 @@ class _Insert(SubnetworksRestStub): def __hash__(self): return hash("Insert") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -1170,7 +1170,7 @@ class _List(SubnetworksRestStub): def __hash__(self): return hash("List") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -1259,7 +1259,7 @@ class _ListUsable(SubnetworksRestStub): def __hash__(self): return hash("ListUsable") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -1346,7 +1346,7 @@ class _Patch(SubnetworksRestStub): def __hash__(self): return hash("Patch") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -1457,7 +1457,7 @@ class _SetIamPolicy(SubnetworksRestStub): def __hash__(self): return hash("SetIamPolicy") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -1594,7 +1594,7 @@ class _SetPrivateIpGoogleAccess(SubnetworksRestStub): def __hash__(self): return hash("SetPrivateIpGoogleAccess") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -1708,7 +1708,7 @@ class _TestIamPermissions(SubnetworksRestStub): def __hash__(self): return hash("TestIamPermissions") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): diff --git a/google/cloud/compute_v1/services/target_grpc_proxies/transports/rest.py b/google/cloud/compute_v1/services/target_grpc_proxies/transports/rest.py index be258565e..78fb61827 100644 --- a/google/cloud/compute_v1/services/target_grpc_proxies/transports/rest.py +++ b/google/cloud/compute_v1/services/target_grpc_proxies/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 gapic_v1, path_template, rest_helpers, rest_streaming @@ -324,7 +324,7 @@ class _Delete(TargetGrpcProxiesRestStub): def __hash__(self): return hash("Delete") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -426,7 +426,7 @@ class _Get(TargetGrpcProxiesRestStub): def __hash__(self): return hash("Get") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -520,7 +520,7 @@ class _Insert(TargetGrpcProxiesRestStub): def __hash__(self): return hash("Insert") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -631,7 +631,7 @@ class _List(TargetGrpcProxiesRestStub): def __hash__(self): return hash("List") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -718,7 +718,7 @@ class _Patch(TargetGrpcProxiesRestStub): def __hash__(self): return hash("Patch") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): diff --git a/google/cloud/compute_v1/services/target_http_proxies/transports/rest.py b/google/cloud/compute_v1/services/target_http_proxies/transports/rest.py index da6e1f767..1d7c7a51b 100644 --- a/google/cloud/compute_v1/services/target_http_proxies/transports/rest.py +++ b/google/cloud/compute_v1/services/target_http_proxies/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 gapic_v1, path_template, rest_helpers, rest_streaming @@ -386,7 +386,7 @@ class _AggregatedList(TargetHttpProxiesRestStub): def __hash__(self): return hash("AggregatedList") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -473,7 +473,7 @@ class _Delete(TargetHttpProxiesRestStub): def __hash__(self): return hash("Delete") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -575,7 +575,7 @@ class _Get(TargetHttpProxiesRestStub): def __hash__(self): return hash("Get") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -675,7 +675,7 @@ class _Insert(TargetHttpProxiesRestStub): def __hash__(self): return hash("Insert") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -786,7 +786,7 @@ class _List(TargetHttpProxiesRestStub): def __hash__(self): return hash("List") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -873,7 +873,7 @@ class _Patch(TargetHttpProxiesRestStub): def __hash__(self): return hash("Patch") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -984,7 +984,7 @@ class _SetUrlMap(TargetHttpProxiesRestStub): def __hash__(self): return hash("SetUrlMap") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): diff --git a/google/cloud/compute_v1/services/target_https_proxies/transports/rest.py b/google/cloud/compute_v1/services/target_https_proxies/transports/rest.py index 05796b26d..33bb88dfe 100644 --- a/google/cloud/compute_v1/services/target_https_proxies/transports/rest.py +++ b/google/cloud/compute_v1/services/target_https_proxies/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 gapic_v1, path_template, rest_helpers, rest_streaming @@ -512,7 +512,7 @@ class _AggregatedList(TargetHttpsProxiesRestStub): def __hash__(self): return hash("AggregatedList") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -599,7 +599,7 @@ class _Delete(TargetHttpsProxiesRestStub): def __hash__(self): return hash("Delete") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -701,7 +701,7 @@ class _Get(TargetHttpsProxiesRestStub): def __hash__(self): return hash("Get") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -800,7 +800,7 @@ class _Insert(TargetHttpsProxiesRestStub): def __hash__(self): return hash("Insert") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -911,7 +911,7 @@ class _List(TargetHttpsProxiesRestStub): def __hash__(self): return hash("List") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -1000,7 +1000,7 @@ class _Patch(TargetHttpsProxiesRestStub): def __hash__(self): return hash("Patch") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -1111,7 +1111,7 @@ class _SetCertificateMap(TargetHttpsProxiesRestStub): def __hash__(self): return hash("SetCertificateMap") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -1224,7 +1224,7 @@ class _SetQuicOverride(TargetHttpsProxiesRestStub): def __hash__(self): return hash("SetQuicOverride") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -1337,7 +1337,7 @@ class _SetSslCertificates(TargetHttpsProxiesRestStub): def __hash__(self): return hash("SetSslCertificates") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -1450,7 +1450,7 @@ class _SetSslPolicy(TargetHttpsProxiesRestStub): def __hash__(self): return hash("SetSslPolicy") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -1561,7 +1561,7 @@ class _SetUrlMap(TargetHttpsProxiesRestStub): def __hash__(self): return hash("SetUrlMap") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): diff --git a/google/cloud/compute_v1/services/target_instances/transports/rest.py b/google/cloud/compute_v1/services/target_instances/transports/rest.py index bc38261eb..6ed53b32f 100644 --- a/google/cloud/compute_v1/services/target_instances/transports/rest.py +++ b/google/cloud/compute_v1/services/target_instances/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 gapic_v1, path_template, rest_helpers, rest_streaming @@ -326,7 +326,7 @@ class _AggregatedList(TargetInstancesRestStub): def __hash__(self): return hash("AggregatedList") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -413,7 +413,7 @@ class _Delete(TargetInstancesRestStub): def __hash__(self): return hash("Delete") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -515,7 +515,7 @@ class _Get(TargetInstancesRestStub): def __hash__(self): return hash("Get") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -610,7 +610,7 @@ class _Insert(TargetInstancesRestStub): def __hash__(self): return hash("Insert") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -721,7 +721,7 @@ class _List(TargetInstancesRestStub): def __hash__(self): return hash("List") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): diff --git a/google/cloud/compute_v1/services/target_pools/transports/rest.py b/google/cloud/compute_v1/services/target_pools/transports/rest.py index d076c446c..f64add30e 100644 --- a/google/cloud/compute_v1/services/target_pools/transports/rest.py +++ b/google/cloud/compute_v1/services/target_pools/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 gapic_v1, path_template, rest_helpers, rest_streaming @@ -500,7 +500,7 @@ class _AddHealthCheck(TargetPoolsRestStub): def __hash__(self): return hash("AddHealthCheck") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -613,7 +613,7 @@ class _AddInstance(TargetPoolsRestStub): def __hash__(self): return hash("AddInstance") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -724,7 +724,7 @@ class _AggregatedList(TargetPoolsRestStub): def __hash__(self): return hash("AggregatedList") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -811,7 +811,7 @@ class _Delete(TargetPoolsRestStub): def __hash__(self): return hash("Delete") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -913,7 +913,7 @@ class _Get(TargetPoolsRestStub): def __hash__(self): return hash("Get") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -1008,7 +1008,7 @@ class _GetHealth(TargetPoolsRestStub): def __hash__(self): return hash("GetHealth") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -1104,7 +1104,7 @@ class _Insert(TargetPoolsRestStub): def __hash__(self): return hash("Insert") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -1215,7 +1215,7 @@ class _List(TargetPoolsRestStub): def __hash__(self): return hash("List") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -1304,7 +1304,7 @@ class _RemoveHealthCheck(TargetPoolsRestStub): def __hash__(self): return hash("RemoveHealthCheck") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -1417,7 +1417,7 @@ class _RemoveInstance(TargetPoolsRestStub): def __hash__(self): return hash("RemoveInstance") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -1528,7 +1528,7 @@ class _SetBackup(TargetPoolsRestStub): def __hash__(self): return hash("SetBackup") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): diff --git a/google/cloud/compute_v1/services/target_ssl_proxies/transports/rest.py b/google/cloud/compute_v1/services/target_ssl_proxies/transports/rest.py index 52e3d0540..0c46dd208 100644 --- a/google/cloud/compute_v1/services/target_ssl_proxies/transports/rest.py +++ b/google/cloud/compute_v1/services/target_ssl_proxies/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 gapic_v1, path_template, rest_helpers, rest_streaming @@ -452,7 +452,7 @@ class _Delete(TargetSslProxiesRestStub): def __hash__(self): return hash("Delete") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -554,7 +554,7 @@ class _Get(TargetSslProxiesRestStub): def __hash__(self): return hash("Get") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -649,7 +649,7 @@ class _Insert(TargetSslProxiesRestStub): def __hash__(self): return hash("Insert") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -760,7 +760,7 @@ class _List(TargetSslProxiesRestStub): def __hash__(self): return hash("List") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -849,7 +849,7 @@ class _SetBackendService(TargetSslProxiesRestStub): def __hash__(self): return hash("SetBackendService") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -962,7 +962,7 @@ class _SetCertificateMap(TargetSslProxiesRestStub): def __hash__(self): return hash("SetCertificateMap") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -1075,7 +1075,7 @@ class _SetProxyHeader(TargetSslProxiesRestStub): def __hash__(self): return hash("SetProxyHeader") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -1188,7 +1188,7 @@ class _SetSslCertificates(TargetSslProxiesRestStub): def __hash__(self): return hash("SetSslCertificates") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -1301,7 +1301,7 @@ class _SetSslPolicy(TargetSslProxiesRestStub): def __hash__(self): return hash("SetSslPolicy") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): diff --git a/google/cloud/compute_v1/services/target_tcp_proxies/transports/rest.py b/google/cloud/compute_v1/services/target_tcp_proxies/transports/rest.py index 9c781f9c4..201d7ba19 100644 --- a/google/cloud/compute_v1/services/target_tcp_proxies/transports/rest.py +++ b/google/cloud/compute_v1/services/target_tcp_proxies/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 gapic_v1, path_template, rest_helpers, rest_streaming @@ -390,7 +390,7 @@ class _AggregatedList(TargetTcpProxiesRestStub): def __hash__(self): return hash("AggregatedList") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -477,7 +477,7 @@ class _Delete(TargetTcpProxiesRestStub): def __hash__(self): return hash("Delete") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -579,7 +579,7 @@ class _Get(TargetTcpProxiesRestStub): def __hash__(self): return hash("Get") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -674,7 +674,7 @@ class _Insert(TargetTcpProxiesRestStub): def __hash__(self): return hash("Insert") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -785,7 +785,7 @@ class _List(TargetTcpProxiesRestStub): def __hash__(self): return hash("List") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -874,7 +874,7 @@ class _SetBackendService(TargetTcpProxiesRestStub): def __hash__(self): return hash("SetBackendService") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -987,7 +987,7 @@ class _SetProxyHeader(TargetTcpProxiesRestStub): def __hash__(self): return hash("SetProxyHeader") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): diff --git a/google/cloud/compute_v1/services/target_vpn_gateways/transports/rest.py b/google/cloud/compute_v1/services/target_vpn_gateways/transports/rest.py index ef952599b..4879aa4fd 100644 --- a/google/cloud/compute_v1/services/target_vpn_gateways/transports/rest.py +++ b/google/cloud/compute_v1/services/target_vpn_gateways/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 gapic_v1, path_template, rest_helpers, rest_streaming @@ -357,7 +357,7 @@ class _AggregatedList(TargetVpnGatewaysRestStub): def __hash__(self): return hash("AggregatedList") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -444,7 +444,7 @@ class _Delete(TargetVpnGatewaysRestStub): def __hash__(self): return hash("Delete") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -546,7 +546,7 @@ class _Get(TargetVpnGatewaysRestStub): def __hash__(self): return hash("Get") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -638,7 +638,7 @@ class _Insert(TargetVpnGatewaysRestStub): def __hash__(self): return hash("Insert") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -749,7 +749,7 @@ class _List(TargetVpnGatewaysRestStub): def __hash__(self): return hash("List") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -838,7 +838,7 @@ class _SetLabels(TargetVpnGatewaysRestStub): def __hash__(self): return hash("SetLabels") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): diff --git a/google/cloud/compute_v1/services/url_maps/transports/rest.py b/google/cloud/compute_v1/services/url_maps/transports/rest.py index c29c25151..8658be61f 100644 --- a/google/cloud/compute_v1/services/url_maps/transports/rest.py +++ b/google/cloud/compute_v1/services/url_maps/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 gapic_v1, path_template, rest_helpers, rest_streaming @@ -430,7 +430,7 @@ class _AggregatedList(UrlMapsRestStub): def __hash__(self): return hash("AggregatedList") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -517,7 +517,7 @@ class _Delete(UrlMapsRestStub): def __hash__(self): return hash("Delete") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -618,7 +618,7 @@ class _Get(UrlMapsRestStub): def __hash__(self): return hash("Get") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -725,7 +725,7 @@ class _Insert(UrlMapsRestStub): def __hash__(self): return hash("Insert") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -835,7 +835,7 @@ class _InvalidateCache(UrlMapsRestStub): def __hash__(self): return hash("InvalidateCache") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -948,7 +948,7 @@ class _List(UrlMapsRestStub): def __hash__(self): return hash("List") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -1034,7 +1034,7 @@ class _Patch(UrlMapsRestStub): def __hash__(self): return hash("Patch") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -1144,7 +1144,7 @@ class _Update(UrlMapsRestStub): def __hash__(self): return hash("Update") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -1254,7 +1254,7 @@ class _Validate(UrlMapsRestStub): def __hash__(self): return hash("Validate") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): diff --git a/google/cloud/compute_v1/services/vpn_gateways/transports/rest.py b/google/cloud/compute_v1/services/vpn_gateways/transports/rest.py index 8b880d1ca..8af35b7f1 100644 --- a/google/cloud/compute_v1/services/vpn_gateways/transports/rest.py +++ b/google/cloud/compute_v1/services/vpn_gateways/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 gapic_v1, path_template, rest_helpers, rest_streaming @@ -413,7 +413,7 @@ class _AggregatedList(VpnGatewaysRestStub): def __hash__(self): return hash("AggregatedList") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -500,7 +500,7 @@ class _Delete(VpnGatewaysRestStub): def __hash__(self): return hash("Delete") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -602,7 +602,7 @@ class _Get(VpnGatewaysRestStub): def __hash__(self): return hash("Get") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -698,7 +698,7 @@ class _GetStatus(VpnGatewaysRestStub): def __hash__(self): return hash("GetStatus") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -785,7 +785,7 @@ class _Insert(VpnGatewaysRestStub): def __hash__(self): return hash("Insert") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -896,7 +896,7 @@ class _List(VpnGatewaysRestStub): def __hash__(self): return hash("List") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -985,7 +985,7 @@ class _SetLabels(VpnGatewaysRestStub): def __hash__(self): return hash("SetLabels") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -1096,7 +1096,7 @@ class _TestIamPermissions(VpnGatewaysRestStub): def __hash__(self): return hash("TestIamPermissions") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): diff --git a/google/cloud/compute_v1/services/vpn_tunnels/transports/rest.py b/google/cloud/compute_v1/services/vpn_tunnels/transports/rest.py index 70722542f..592453843 100644 --- a/google/cloud/compute_v1/services/vpn_tunnels/transports/rest.py +++ b/google/cloud/compute_v1/services/vpn_tunnels/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 gapic_v1, path_template, rest_helpers, rest_streaming @@ -351,7 +351,7 @@ class _AggregatedList(VpnTunnelsRestStub): def __hash__(self): return hash("AggregatedList") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -438,7 +438,7 @@ class _Delete(VpnTunnelsRestStub): def __hash__(self): return hash("Delete") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -540,7 +540,7 @@ class _Get(VpnTunnelsRestStub): def __hash__(self): return hash("Get") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -629,7 +629,7 @@ class _Insert(VpnTunnelsRestStub): def __hash__(self): return hash("Insert") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -740,7 +740,7 @@ class _List(VpnTunnelsRestStub): def __hash__(self): return hash("List") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -829,7 +829,7 @@ class _SetLabels(VpnTunnelsRestStub): def __hash__(self): return hash("SetLabels") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): diff --git a/google/cloud/compute_v1/services/zone_operations/transports/rest.py b/google/cloud/compute_v1/services/zone_operations/transports/rest.py index 47805fb03..02c58a971 100644 --- a/google/cloud/compute_v1/services/zone_operations/transports/rest.py +++ b/google/cloud/compute_v1/services/zone_operations/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 gapic_v1, path_template, rest_helpers, rest_streaming @@ -295,7 +295,7 @@ class _Delete(ZoneOperationsRestStub): def __hash__(self): return hash("Delete") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -385,7 +385,7 @@ class _Get(ZoneOperationsRestStub): def __hash__(self): return hash("Get") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -487,7 +487,7 @@ class _List(ZoneOperationsRestStub): def __hash__(self): return hash("List") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -576,7 +576,7 @@ class _Wait(ZoneOperationsRestStub): def __hash__(self): return hash("Wait") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): diff --git a/google/cloud/compute_v1/services/zones/transports/rest.py b/google/cloud/compute_v1/services/zones/transports/rest.py index 4c06278dd..0811fdf05 100644 --- a/google/cloud/compute_v1/services/zones/transports/rest.py +++ b/google/cloud/compute_v1/services/zones/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 gapic_v1, path_template, rest_helpers, rest_streaming @@ -231,7 +231,7 @@ class _Get(ZonesRestStub): def __hash__(self): return hash("Get") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -323,7 +323,7 @@ class _List(ZonesRestStub): def __hash__(self): return hash("List") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): diff --git a/google/cloud/compute_v1/types/compute.py b/google/cloud/compute_v1/types/compute.py index 6e4c3796c..5efaacc21 100644 --- a/google/cloud/compute_v1/types/compute.py +++ b/google/cloud/compute_v1/types/compute.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 import proto # type: ignore From 8e0cf614a3f469514ab4134411c5186c85d68bb4 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Mon, 27 Feb 2023 19:36:53 +0000 Subject: [PATCH 2/7] chore(python): upgrade gcp-releasetool in .kokoro [autoapprove] (#399) Source-Link: https://togithub.com/googleapis/synthtool/commit/5f2a6089f73abf06238fe4310f6a14d6f6d1eed3 Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:8555f0e37e6261408f792bfd6635102d2da5ad73f8f09bcb24f25e6afb5fac97 --- .github/.OwlBot.lock.yaml | 3 ++- .kokoro/requirements.in | 2 +- .kokoro/requirements.txt | 6 +++--- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml index 894fb6bc9..33a473d58 100644 --- a/.github/.OwlBot.lock.yaml +++ b/.github/.OwlBot.lock.yaml @@ -13,4 +13,5 @@ # limitations under the License. docker: image: gcr.io/cloud-devrel-public-resources/owlbot-python:latest - digest: sha256:f62c53736eccb0c4934a3ea9316e0d57696bb49c1a7c86c726e9bb8a2f87dadf + digest: sha256:8555f0e37e6261408f792bfd6635102d2da5ad73f8f09bcb24f25e6afb5fac97 + diff --git a/.kokoro/requirements.in b/.kokoro/requirements.in index cbd7e77f4..882178ce6 100644 --- a/.kokoro/requirements.in +++ b/.kokoro/requirements.in @@ -1,5 +1,5 @@ gcp-docuploader -gcp-releasetool +gcp-releasetool>=1.10.5 # required for compatibility with cryptography>=39.x importlib-metadata typing-extensions twine diff --git a/.kokoro/requirements.txt b/.kokoro/requirements.txt index 096e4800a..fa99c1290 100644 --- a/.kokoro/requirements.txt +++ b/.kokoro/requirements.txt @@ -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 \ From 13bc5765120e72708beb2d9eb0c80ce56754cf18 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Thu, 16 Mar 2023 07:05:11 -0400 Subject: [PATCH 3/7] feat: Update Compute Engine API to revision 20230307 (#770) (#400) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * feat: Update Compute Engine API to revision 20230307 (#770) Source-Link: https://github.com/googleapis/googleapis/commit/c2016e5ebbba3a0578fda69bd4ebf1ac16425f08 Source-Link: https://github.com/googleapis/googleapis-gen/commit/0885fd7ae8a805a377974edfba60ab7c9327f75a Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMDg4NWZkN2FlOGE4MDVhMzc3OTc0ZWRmYmE2MGFiN2M5MzI3Zjc1YSJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- docs/compute_v1/region_instance_templates.rst | 10 + docs/compute_v1/services.rst | 1 + google/cloud/compute/__init__.py | 32 + google/cloud/compute_v1/__init__.py | 30 + google/cloud/compute_v1/gapic_metadata.json | 49 + .../compute_v1/services/autoscalers/client.py | 4 +- .../services/backend_buckets/client.py | 4 +- .../services/backend_services/client.py | 3 +- .../compute_v1/services/disk_types/client.py | 3 +- .../cloud/compute_v1/services/disks/client.py | 246 +- .../services/disks/transports/base.py | 14 + .../services/disks/transports/rest.py | 143 + .../services/firewall_policies/client.py | 12 +- .../services/global_addresses/client.py | 3 +- .../global_network_endpoint_groups/client.py | 4 +- .../services/health_checks/client.py | 4 +- .../compute_v1/services/images/client.py | 12 +- .../instance_group_managers/client.py | 3 +- .../services/instance_templates/client.py | 97 +- .../services/instance_templates/pagers.py | 65 + .../instance_templates/transports/base.py | 17 + .../instance_templates/transports/rest.py | 133 + .../compute_v1/services/instances/client.py | 254 +- .../services/instances/transports/base.py | 14 + .../services/instances/transports/rest.py | 146 + .../services/machine_images/client.py | 3 +- .../services/machine_types/client.py | 3 +- .../network_endpoint_groups/client.py | 4 +- .../compute_v1/services/networks/client.py | 3 +- .../services/node_templates/client.py | 3 +- .../compute_v1/services/node_types/client.py | 3 +- .../services/region_commitments/client.py | 4 +- .../services/region_disk_types/client.py | 3 +- .../services/region_disks/client.py | 245 ++ .../services/region_disks/transports/base.py | 14 + .../services/region_disks/transports/rest.py | 146 + .../services/region_health_checks/client.py | 4 +- .../region_instance_templates/__init__.py | 18 + .../region_instance_templates/client.py | 1113 +++++ .../region_instance_templates/pagers.py | 89 + .../transports/__init__.py | 35 + .../transports/base.py | 214 + .../transports/rest.py | 728 ++++ .../region_network_endpoint_groups/client.py | 4 +- .../region_target_http_proxies/client.py | 3 +- .../region_target_https_proxies/client.py | 3 +- .../services/region_url_maps/client.py | 3 +- .../compute_v1/services/regions/client.py | 18 +- .../compute_v1/services/routers/client.py | 3 +- .../compute_v1/services/routes/client.py | 3 +- .../compute_v1/services/snapshots/client.py | 3 +- .../services/ssl_certificates/client.py | 4 +- .../services/ssl_policies/client.py | 8 +- .../compute_v1/services/subnetworks/client.py | 3 +- .../services/target_http_proxies/client.py | 4 +- .../services/target_https_proxies/client.py | 4 +- .../services/target_instances/client.py | 4 +- .../services/target_pools/client.py | 3 +- .../services/target_ssl_proxies/client.py | 4 +- .../services/target_tcp_proxies/client.py | 4 +- .../services/target_vpn_gateways/client.py | 4 +- .../compute_v1/services/url_maps/client.py | 3 +- .../services/vpn_gateways/client.py | 3 +- .../compute_v1/services/vpn_tunnels/client.py | 3 +- .../cloud/compute_v1/services/zones/client.py | 3 +- google/cloud/compute_v1/types/__init__.py | 28 + google/cloud/compute_v1/types/compute.py | 1408 ++++++- scripts/fixup_compute_v1_keywords.py | 1 + .../gapic/compute_v1/test_backend_services.py | 84 +- tests/unit/gapic/compute_v1/test_disks.py | 848 ++++ .../gapic/compute_v1/test_forwarding_rules.py | 20 + .../test_global_forwarding_rules.py | 20 + .../compute_v1/test_instance_templates.py | 376 ++ tests/unit/gapic/compute_v1/test_instances.py | 674 +++ .../test_region_backend_services.py | 84 +- .../gapic/compute_v1/test_region_disks.py | 858 ++++ .../test_region_instance_templates.py | 3739 +++++++++++++++++ .../test_region_security_policies.py | 136 + .../compute_v1/test_security_policies.py | 272 ++ 79 files changed, 12278 insertions(+), 299 deletions(-) create mode 100644 docs/compute_v1/region_instance_templates.rst create mode 100644 google/cloud/compute_v1/services/region_instance_templates/__init__.py create mode 100644 google/cloud/compute_v1/services/region_instance_templates/client.py create mode 100644 google/cloud/compute_v1/services/region_instance_templates/pagers.py create mode 100644 google/cloud/compute_v1/services/region_instance_templates/transports/__init__.py create mode 100644 google/cloud/compute_v1/services/region_instance_templates/transports/base.py create mode 100644 google/cloud/compute_v1/services/region_instance_templates/transports/rest.py create mode 100644 tests/unit/gapic/compute_v1/test_region_instance_templates.py diff --git a/docs/compute_v1/region_instance_templates.rst b/docs/compute_v1/region_instance_templates.rst new file mode 100644 index 000000000..bbeffb6e2 --- /dev/null +++ b/docs/compute_v1/region_instance_templates.rst @@ -0,0 +1,10 @@ +RegionInstanceTemplates +----------------------------------------- + +.. automodule:: google.cloud.compute_v1.services.region_instance_templates + :members: + :inherited-members: + +.. automodule:: google.cloud.compute_v1.services.region_instance_templates.pagers + :members: + :inherited-members: diff --git a/docs/compute_v1/services.rst b/docs/compute_v1/services.rst index aad91eef7..362c98cff 100644 --- a/docs/compute_v1/services.rst +++ b/docs/compute_v1/services.rst @@ -56,6 +56,7 @@ Services for Google Cloud Compute v1 API region_instance_group_managers region_instance_groups region_instances + region_instance_templates region_network_endpoint_groups region_network_firewall_policies region_notification_endpoints diff --git a/google/cloud/compute/__init__.py b/google/cloud/compute/__init__.py index 11772f30c..853aec1a7 100644 --- a/google/cloud/compute/__init__.py +++ b/google/cloud/compute/__init__.py @@ -132,6 +132,9 @@ from google.cloud.compute_v1.services.region_instance_groups.client import ( RegionInstanceGroupsClient, ) +from google.cloud.compute_v1.services.region_instance_templates.client import ( + RegionInstanceTemplatesClient, +) from google.cloud.compute_v1.services.region_instances.client import ( RegionInstancesClient, ) @@ -257,6 +260,7 @@ AggregatedListInstanceGroupManagersRequest, AggregatedListInstanceGroupsRequest, AggregatedListInstancesRequest, + AggregatedListInstanceTemplatesRequest, AggregatedListInterconnectAttachmentsRequest, AggregatedListMachineTypesRequest, AggregatedListNetworkAttachmentsRequest, @@ -416,6 +420,7 @@ DeleteRegionHealthCheckRequest, DeleteRegionHealthCheckServiceRequest, DeleteRegionInstanceGroupManagerRequest, + DeleteRegionInstanceTemplateRequest, DeleteRegionNetworkEndpointGroupRequest, DeleteRegionNetworkFirewallPolicyRequest, DeleteRegionNotificationEndpointRequest, @@ -596,6 +601,7 @@ GetRegionHealthCheckServiceRequest, GetRegionInstanceGroupManagerRequest, GetRegionInstanceGroupRequest, + GetRegionInstanceTemplateRequest, GetRegionNetworkEndpointGroupRequest, GetRegionNetworkFirewallPolicyRequest, GetRegionNotificationEndpointRequest, @@ -725,6 +731,7 @@ InsertRegionHealthCheckRequest, InsertRegionHealthCheckServiceRequest, InsertRegionInstanceGroupManagerRequest, + InsertRegionInstanceTemplateRequest, InsertRegionNetworkEndpointGroupRequest, InsertRegionNetworkFirewallPolicyRequest, InsertRegionNotificationEndpointRequest, @@ -812,10 +819,13 @@ InstancesSetMachineResourcesRequest, InstancesSetMachineTypeRequest, InstancesSetMinCpuPlatformRequest, + InstancesSetNameRequest, InstancesSetServiceAccountRequest, InstancesStartWithEncryptionKeyRequest, InstanceTemplate, + InstanceTemplateAggregatedList, InstanceTemplateList, + InstanceTemplatesScopedList, InstanceWithNamedPorts, Int64RangeMatch, Interconnect, @@ -910,6 +920,7 @@ ListRegionHealthChecksRequest, ListRegionInstanceGroupManagersRequest, ListRegionInstanceGroupsRequest, + ListRegionInstanceTemplatesRequest, ListRegionNetworkEndpointGroupsRequest, ListRegionNetworkFirewallPoliciesRequest, ListRegionNotificationEndpointsRequest, @@ -1248,6 +1259,9 @@ SecurityPolicyRuleHttpHeaderActionHttpHeaderOption, SecurityPolicyRuleMatcher, SecurityPolicyRuleMatcherConfig, + SecurityPolicyRulePreconfiguredWafConfig, + SecurityPolicyRulePreconfiguredWafConfigExclusion, + SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams, SecurityPolicyRuleRateLimitOptions, SecurityPolicyRuleRateLimitOptionsThreshold, SecurityPolicyRuleRedirectOptions, @@ -1318,6 +1332,7 @@ SetMinCpuPlatformInstanceRequest, SetNamedPortsInstanceGroupRequest, SetNamedPortsRegionInstanceGroupRequest, + SetNameInstanceRequest, SetNodeTemplateNodeGroupRequest, SetPrivateIpGoogleAccessSubnetworkRequest, SetProxyHeaderTargetSslProxyRequest, @@ -1461,6 +1476,7 @@ UpdateAutoscalerRequest, UpdateBackendBucketRequest, UpdateBackendServiceRequest, + UpdateDiskRequest, UpdateDisplayDeviceInstanceRequest, UpdateFirewallRequest, UpdateHealthCheckRequest, @@ -1472,6 +1488,7 @@ UpdateRegionAutoscalerRequest, UpdateRegionBackendServiceRequest, UpdateRegionCommitmentRequest, + UpdateRegionDiskRequest, UpdateRegionHealthCheckRequest, UpdateRegionUrlMapRequest, UpdateReservationRequest, @@ -1583,6 +1600,7 @@ "RegionInstanceGroupManagersClient", "RegionInstanceGroupsClient", "RegionInstancesClient", + "RegionInstanceTemplatesClient", "RegionNetworkEndpointGroupsClient", "RegionNetworkFirewallPoliciesClient", "RegionNotificationEndpointsClient", @@ -1662,6 +1680,7 @@ "AggregatedListInstanceGroupManagersRequest", "AggregatedListInstanceGroupsRequest", "AggregatedListInstancesRequest", + "AggregatedListInstanceTemplatesRequest", "AggregatedListInterconnectAttachmentsRequest", "AggregatedListMachineTypesRequest", "AggregatedListNetworkAttachmentsRequest", @@ -1821,6 +1840,7 @@ "DeleteRegionHealthCheckRequest", "DeleteRegionHealthCheckServiceRequest", "DeleteRegionInstanceGroupManagerRequest", + "DeleteRegionInstanceTemplateRequest", "DeleteRegionNetworkEndpointGroupRequest", "DeleteRegionNetworkFirewallPolicyRequest", "DeleteRegionNotificationEndpointRequest", @@ -2001,6 +2021,7 @@ "GetRegionHealthCheckServiceRequest", "GetRegionInstanceGroupManagerRequest", "GetRegionInstanceGroupRequest", + "GetRegionInstanceTemplateRequest", "GetRegionNetworkEndpointGroupRequest", "GetRegionNetworkFirewallPolicyRequest", "GetRegionNotificationEndpointRequest", @@ -2130,6 +2151,7 @@ "InsertRegionHealthCheckRequest", "InsertRegionHealthCheckServiceRequest", "InsertRegionInstanceGroupManagerRequest", + "InsertRegionInstanceTemplateRequest", "InsertRegionNetworkEndpointGroupRequest", "InsertRegionNetworkFirewallPolicyRequest", "InsertRegionNotificationEndpointRequest", @@ -2217,10 +2239,13 @@ "InstancesSetMachineResourcesRequest", "InstancesSetMachineTypeRequest", "InstancesSetMinCpuPlatformRequest", + "InstancesSetNameRequest", "InstancesSetServiceAccountRequest", "InstancesStartWithEncryptionKeyRequest", "InstanceTemplate", + "InstanceTemplateAggregatedList", "InstanceTemplateList", + "InstanceTemplatesScopedList", "InstanceWithNamedPorts", "Int64RangeMatch", "Interconnect", @@ -2315,6 +2340,7 @@ "ListRegionHealthChecksRequest", "ListRegionInstanceGroupManagersRequest", "ListRegionInstanceGroupsRequest", + "ListRegionInstanceTemplatesRequest", "ListRegionNetworkEndpointGroupsRequest", "ListRegionNetworkFirewallPoliciesRequest", "ListRegionNotificationEndpointsRequest", @@ -2653,6 +2679,9 @@ "SecurityPolicyRuleHttpHeaderActionHttpHeaderOption", "SecurityPolicyRuleMatcher", "SecurityPolicyRuleMatcherConfig", + "SecurityPolicyRulePreconfiguredWafConfig", + "SecurityPolicyRulePreconfiguredWafConfigExclusion", + "SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams", "SecurityPolicyRuleRateLimitOptions", "SecurityPolicyRuleRateLimitOptionsThreshold", "SecurityPolicyRuleRedirectOptions", @@ -2723,6 +2752,7 @@ "SetMinCpuPlatformInstanceRequest", "SetNamedPortsInstanceGroupRequest", "SetNamedPortsRegionInstanceGroupRequest", + "SetNameInstanceRequest", "SetNodeTemplateNodeGroupRequest", "SetPrivateIpGoogleAccessSubnetworkRequest", "SetProxyHeaderTargetSslProxyRequest", @@ -2866,6 +2896,7 @@ "UpdateAutoscalerRequest", "UpdateBackendBucketRequest", "UpdateBackendServiceRequest", + "UpdateDiskRequest", "UpdateDisplayDeviceInstanceRequest", "UpdateFirewallRequest", "UpdateHealthCheckRequest", @@ -2877,6 +2908,7 @@ "UpdateRegionAutoscalerRequest", "UpdateRegionBackendServiceRequest", "UpdateRegionCommitmentRequest", + "UpdateRegionDiskRequest", "UpdateRegionHealthCheckRequest", "UpdateRegionUrlMapRequest", "UpdateReservationRequest", diff --git a/google/cloud/compute_v1/__init__.py b/google/cloud/compute_v1/__init__.py index 85a514d98..5aa96998f 100644 --- a/google/cloud/compute_v1/__init__.py +++ b/google/cloud/compute_v1/__init__.py @@ -72,6 +72,7 @@ from .services.region_health_checks import RegionHealthChecksClient from .services.region_instance_group_managers import RegionInstanceGroupManagersClient from .services.region_instance_groups import RegionInstanceGroupsClient +from .services.region_instance_templates import RegionInstanceTemplatesClient from .services.region_instances import RegionInstancesClient from .services.region_network_endpoint_groups import RegionNetworkEndpointGroupsClient from .services.region_network_firewall_policies import ( @@ -155,6 +156,7 @@ AggregatedListInstanceGroupManagersRequest, AggregatedListInstanceGroupsRequest, AggregatedListInstancesRequest, + AggregatedListInstanceTemplatesRequest, AggregatedListInterconnectAttachmentsRequest, AggregatedListMachineTypesRequest, AggregatedListNetworkAttachmentsRequest, @@ -314,6 +316,7 @@ DeleteRegionHealthCheckRequest, DeleteRegionHealthCheckServiceRequest, DeleteRegionInstanceGroupManagerRequest, + DeleteRegionInstanceTemplateRequest, DeleteRegionNetworkEndpointGroupRequest, DeleteRegionNetworkFirewallPolicyRequest, DeleteRegionNotificationEndpointRequest, @@ -494,6 +497,7 @@ GetRegionHealthCheckServiceRequest, GetRegionInstanceGroupManagerRequest, GetRegionInstanceGroupRequest, + GetRegionInstanceTemplateRequest, GetRegionNetworkEndpointGroupRequest, GetRegionNetworkFirewallPolicyRequest, GetRegionNotificationEndpointRequest, @@ -623,6 +627,7 @@ InsertRegionHealthCheckRequest, InsertRegionHealthCheckServiceRequest, InsertRegionInstanceGroupManagerRequest, + InsertRegionInstanceTemplateRequest, InsertRegionNetworkEndpointGroupRequest, InsertRegionNetworkFirewallPolicyRequest, InsertRegionNotificationEndpointRequest, @@ -710,10 +715,13 @@ InstancesSetMachineResourcesRequest, InstancesSetMachineTypeRequest, InstancesSetMinCpuPlatformRequest, + InstancesSetNameRequest, InstancesSetServiceAccountRequest, InstancesStartWithEncryptionKeyRequest, InstanceTemplate, + InstanceTemplateAggregatedList, InstanceTemplateList, + InstanceTemplatesScopedList, InstanceWithNamedPorts, Int64RangeMatch, Interconnect, @@ -808,6 +816,7 @@ ListRegionHealthChecksRequest, ListRegionInstanceGroupManagersRequest, ListRegionInstanceGroupsRequest, + ListRegionInstanceTemplatesRequest, ListRegionNetworkEndpointGroupsRequest, ListRegionNetworkFirewallPoliciesRequest, ListRegionNotificationEndpointsRequest, @@ -1146,6 +1155,9 @@ SecurityPolicyRuleHttpHeaderActionHttpHeaderOption, SecurityPolicyRuleMatcher, SecurityPolicyRuleMatcherConfig, + SecurityPolicyRulePreconfiguredWafConfig, + SecurityPolicyRulePreconfiguredWafConfigExclusion, + SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams, SecurityPolicyRuleRateLimitOptions, SecurityPolicyRuleRateLimitOptionsThreshold, SecurityPolicyRuleRedirectOptions, @@ -1216,6 +1228,7 @@ SetMinCpuPlatformInstanceRequest, SetNamedPortsInstanceGroupRequest, SetNamedPortsRegionInstanceGroupRequest, + SetNameInstanceRequest, SetNodeTemplateNodeGroupRequest, SetPrivateIpGoogleAccessSubnetworkRequest, SetProxyHeaderTargetSslProxyRequest, @@ -1359,6 +1372,7 @@ UpdateAutoscalerRequest, UpdateBackendBucketRequest, UpdateBackendServiceRequest, + UpdateDiskRequest, UpdateDisplayDeviceInstanceRequest, UpdateFirewallRequest, UpdateHealthCheckRequest, @@ -1370,6 +1384,7 @@ UpdateRegionAutoscalerRequest, UpdateRegionBackendServiceRequest, UpdateRegionCommitmentRequest, + UpdateRegionDiskRequest, UpdateRegionHealthCheckRequest, UpdateRegionUrlMapRequest, UpdateReservationRequest, @@ -1473,6 +1488,7 @@ "AggregatedListHealthChecksRequest", "AggregatedListInstanceGroupManagersRequest", "AggregatedListInstanceGroupsRequest", + "AggregatedListInstanceTemplatesRequest", "AggregatedListInstancesRequest", "AggregatedListInterconnectAttachmentsRequest", "AggregatedListMachineTypesRequest", @@ -1636,6 +1652,7 @@ "DeleteRegionHealthCheckRequest", "DeleteRegionHealthCheckServiceRequest", "DeleteRegionInstanceGroupManagerRequest", + "DeleteRegionInstanceTemplateRequest", "DeleteRegionNetworkEndpointGroupRequest", "DeleteRegionNetworkFirewallPolicyRequest", "DeleteRegionNotificationEndpointRequest", @@ -1823,6 +1840,7 @@ "GetRegionHealthCheckServiceRequest", "GetRegionInstanceGroupManagerRequest", "GetRegionInstanceGroupRequest", + "GetRegionInstanceTemplateRequest", "GetRegionNetworkEndpointGroupRequest", "GetRegionNetworkFirewallPolicyRequest", "GetRegionNotificationEndpointRequest", @@ -1960,6 +1978,7 @@ "InsertRegionHealthCheckRequest", "InsertRegionHealthCheckServiceRequest", "InsertRegionInstanceGroupManagerRequest", + "InsertRegionInstanceTemplateRequest", "InsertRegionNetworkEndpointGroupRequest", "InsertRegionNetworkFirewallPolicyRequest", "InsertRegionNotificationEndpointRequest", @@ -2041,8 +2060,10 @@ "InstanceProperties", "InstanceReference", "InstanceTemplate", + "InstanceTemplateAggregatedList", "InstanceTemplateList", "InstanceTemplatesClient", + "InstanceTemplatesScopedList", "InstanceWithNamedPorts", "InstancesAddResourcePoliciesRequest", "InstancesClient", @@ -2054,6 +2075,7 @@ "InstancesSetMachineResourcesRequest", "InstancesSetMachineTypeRequest", "InstancesSetMinCpuPlatformRequest", + "InstancesSetNameRequest", "InstancesSetServiceAccountRequest", "InstancesStartWithEncryptionKeyRequest", "Int64RangeMatch", @@ -2154,6 +2176,7 @@ "ListRegionHealthChecksRequest", "ListRegionInstanceGroupManagersRequest", "ListRegionInstanceGroupsRequest", + "ListRegionInstanceTemplatesRequest", "ListRegionNetworkEndpointGroupsRequest", "ListRegionNetworkFirewallPoliciesRequest", "ListRegionNotificationEndpointsRequest", @@ -2410,6 +2433,7 @@ "RegionInstanceGroupsListInstances", "RegionInstanceGroupsListInstancesRequest", "RegionInstanceGroupsSetNamedPortsRequest", + "RegionInstanceTemplatesClient", "RegionInstancesClient", "RegionList", "RegionNetworkEndpointGroupsClient", @@ -2534,6 +2558,9 @@ "SecurityPolicyRuleHttpHeaderActionHttpHeaderOption", "SecurityPolicyRuleMatcher", "SecurityPolicyRuleMatcherConfig", + "SecurityPolicyRulePreconfiguredWafConfig", + "SecurityPolicyRulePreconfiguredWafConfigExclusion", + "SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams", "SecurityPolicyRuleRateLimitOptions", "SecurityPolicyRuleRateLimitOptionsThreshold", "SecurityPolicyRuleRedirectOptions", @@ -2603,6 +2630,7 @@ "SetMachineTypeInstanceRequest", "SetMetadataInstanceRequest", "SetMinCpuPlatformInstanceRequest", + "SetNameInstanceRequest", "SetNamedPortsInstanceGroupRequest", "SetNamedPortsRegionInstanceGroupRequest", "SetNodeTemplateNodeGroupRequest", @@ -2759,6 +2787,7 @@ "UpdateAutoscalerRequest", "UpdateBackendBucketRequest", "UpdateBackendServiceRequest", + "UpdateDiskRequest", "UpdateDisplayDeviceInstanceRequest", "UpdateFirewallRequest", "UpdateHealthCheckRequest", @@ -2770,6 +2799,7 @@ "UpdateRegionAutoscalerRequest", "UpdateRegionBackendServiceRequest", "UpdateRegionCommitmentRequest", + "UpdateRegionDiskRequest", "UpdateRegionHealthCheckRequest", "UpdateRegionUrlMapRequest", "UpdateReservationRequest", diff --git a/google/cloud/compute_v1/gapic_metadata.json b/google/cloud/compute_v1/gapic_metadata.json index 87c73893d..b64a921f2 100644 --- a/google/cloud/compute_v1/gapic_metadata.json +++ b/google/cloud/compute_v1/gapic_metadata.json @@ -338,6 +338,11 @@ "methods": [ "test_iam_permissions" ] + }, + "Update": { + "methods": [ + "update" + ] } } } @@ -1073,6 +1078,11 @@ "rest": { "libraryClient": "InstanceTemplatesClient", "rpcs": { + "AggregatedList": { + "methods": [ + "aggregated_list" + ] + }, "Delete": { "methods": [ "delete" @@ -1267,6 +1277,11 @@ "set_min_cpu_platform" ] }, + "SetName": { + "methods": [ + "set_name" + ] + }, "SetScheduling": { "methods": [ "set_scheduling" @@ -2422,6 +2437,11 @@ "methods": [ "test_iam_permissions" ] + }, + "Update": { + "methods": [ + "update" + ] } } } @@ -2633,6 +2653,35 @@ } } }, + "RegionInstanceTemplates": { + "clients": { + "rest": { + "libraryClient": "RegionInstanceTemplatesClient", + "rpcs": { + "Delete": { + "methods": [ + "delete" + ] + }, + "Get": { + "methods": [ + "get" + ] + }, + "Insert": { + "methods": [ + "insert" + ] + }, + "List": { + "methods": [ + "list" + ] + } + } + } + } + }, "RegionInstances": { "clients": { "rest": { diff --git a/google/cloud/compute_v1/services/autoscalers/client.py b/google/cloud/compute_v1/services/autoscalers/client.py index a6b56a0e1..d08973b62 100644 --- a/google/cloud/compute_v1/services/autoscalers/client.py +++ b/google/cloud/compute_v1/services/autoscalers/client.py @@ -736,9 +736,7 @@ def get( timeout: Union[float, object] = gapic_v1.method.DEFAULT, metadata: Sequence[Tuple[str, str]] = (), ) -> compute.Autoscaler: - r"""Returns the specified autoscaler resource. Gets a - list of available autoscalers by making a list() - request. + r"""Returns the specified autoscaler resource. Args: request (Union[google.cloud.compute_v1.types.GetAutoscalerRequest, dict]): diff --git a/google/cloud/compute_v1/services/backend_buckets/client.py b/google/cloud/compute_v1/services/backend_buckets/client.py index 97b23dbaf..3073cf8ae 100644 --- a/google/cloud/compute_v1/services/backend_buckets/client.py +++ b/google/cloud/compute_v1/services/backend_buckets/client.py @@ -1101,9 +1101,7 @@ def get( timeout: Union[float, object] = gapic_v1.method.DEFAULT, metadata: Sequence[Tuple[str, str]] = (), ) -> compute.BackendBucket: - r"""Returns the specified BackendBucket resource. Gets a - list of available backend buckets by making a list() - request. + r"""Returns the specified BackendBucket resource. Args: request (Union[google.cloud.compute_v1.types.GetBackendBucketRequest, dict]): diff --git a/google/cloud/compute_v1/services/backend_services/client.py b/google/cloud/compute_v1/services/backend_services/client.py index 291efe8be..7ef35b7b7 100644 --- a/google/cloud/compute_v1/services/backend_services/client.py +++ b/google/cloud/compute_v1/services/backend_services/client.py @@ -1193,8 +1193,7 @@ def get( timeout: Union[float, object] = gapic_v1.method.DEFAULT, metadata: Sequence[Tuple[str, str]] = (), ) -> compute.BackendService: - r"""Returns the specified BackendService resource. Gets a - list of available backend services. + r"""Returns the specified BackendService resource. Args: request (Union[google.cloud.compute_v1.types.GetBackendServiceRequest, dict]): diff --git a/google/cloud/compute_v1/services/disk_types/client.py b/google/cloud/compute_v1/services/disk_types/client.py index a39328371..215fd8b37 100644 --- a/google/cloud/compute_v1/services/disk_types/client.py +++ b/google/cloud/compute_v1/services/disk_types/client.py @@ -514,8 +514,7 @@ def get( timeout: Union[float, object] = gapic_v1.method.DEFAULT, metadata: Sequence[Tuple[str, str]] = (), ) -> compute.DiskType: - r"""Returns the specified disk type. Gets a list of - available disk types by making a list() request. + r"""Returns the specified disk type. Args: request (Union[google.cloud.compute_v1.types.GetDiskTypeRequest, dict]): diff --git a/google/cloud/compute_v1/services/disks/client.py b/google/cloud/compute_v1/services/disks/client.py index d9cc21cb2..ca99aff41 100644 --- a/google/cloud/compute_v1/services/disks/client.py +++ b/google/cloud/compute_v1/services/disks/client.py @@ -1256,8 +1256,7 @@ def get( timeout: Union[float, object] = gapic_v1.method.DEFAULT, metadata: Sequence[Tuple[str, str]] = (), ) -> compute.Disk: - r"""Returns a specified persistent disk. Gets a list of - available persistent disks by making a list() request. + r"""Returns the specified persistent disk. Args: request (Union[google.cloud.compute_v1.types.GetDiskRequest, dict]): @@ -2839,6 +2838,249 @@ def test_iam_permissions( # Done; return the response. return response + def update_unary( + self, + request: Optional[Union[compute.UpdateDiskRequest, dict]] = None, + *, + project: Optional[str] = None, + zone: Optional[str] = None, + disk: Optional[str] = None, + disk_resource: Optional[compute.Disk] = None, + retry: OptionalRetry = gapic_v1.method.DEFAULT, + timeout: Union[float, object] = gapic_v1.method.DEFAULT, + metadata: Sequence[Tuple[str, str]] = (), + ) -> compute.Operation: + r"""Updates the specified disk with the data included in the + request. The update is performed only on selected fields + included as part of update-mask. Only the following fields can + be modified: user_license. + + Args: + request (Union[google.cloud.compute_v1.types.UpdateDiskRequest, dict]): + The request object. A request message for Disks.Update. + See the method description for details. + project (str): + Project ID for this request. + This corresponds to the ``project`` field + on the ``request`` instance; if ``request`` is provided, this + should not be set. + zone (str): + The name of the zone for this + request. + + This corresponds to the ``zone`` field + on the ``request`` instance; if ``request`` is provided, this + should not be set. + disk (str): + The disk name for this request. + This corresponds to the ``disk`` field + on the ``request`` instance; if ``request`` is provided, this + should not be set. + disk_resource (google.cloud.compute_v1.types.Disk): + The body resource for this request + This corresponds to the ``disk_resource`` field + on the ``request`` instance; if ``request`` is provided, this + should not be set. + retry (google.api_core.retry.Retry): Designation of what errors, if any, + should be retried. + timeout (float): The timeout for this request. + metadata (Sequence[Tuple[str, str]]): Strings which should be + sent along with the request as metadata. + + Returns: + google.api_core.extended_operation.ExtendedOperation: + An object representing a extended + long-running operation. + + """ + # Create or coerce a protobuf request object. + # Quick check: If we got a request object, we should *not* have + # gotten any keyword arguments that map to the request. + has_flattened_params = any([project, zone, disk, disk_resource]) + if request is not None and has_flattened_params: + raise ValueError( + "If the `request` argument is set, then none of " + "the individual field arguments should be set." + ) + + # Minor optimization to avoid making a copy if the user passes + # in a compute.UpdateDiskRequest. + # There's no risk of modifying the input as we've already verified + # there are no flattened fields. + if not isinstance(request, compute.UpdateDiskRequest): + request = compute.UpdateDiskRequest(request) + # If we have keyword arguments corresponding to fields on the + # request, apply these. + if project is not None: + request.project = project + if zone is not None: + request.zone = zone + if disk is not None: + request.disk = disk + if disk_resource is not None: + request.disk_resource = disk_resource + + # Wrap the RPC method; this adds retry and timeout information, + # and friendly error handling. + rpc = self._transport._wrapped_methods[self._transport.update] + + # Certain fields should be provided within the metadata header; + # add these here. + metadata = tuple(metadata) + ( + gapic_v1.routing_header.to_grpc_metadata( + ( + ("project", request.project), + ("zone", request.zone), + ("disk", request.disk), + ) + ), + ) + + # Send the request. + response = rpc( + request, + retry=retry, + timeout=timeout, + metadata=metadata, + ) + + # Done; return the response. + return response + + def update( + self, + request: Optional[Union[compute.UpdateDiskRequest, dict]] = None, + *, + project: Optional[str] = None, + zone: Optional[str] = None, + disk: Optional[str] = None, + disk_resource: Optional[compute.Disk] = None, + retry: OptionalRetry = gapic_v1.method.DEFAULT, + timeout: Union[float, object] = gapic_v1.method.DEFAULT, + metadata: Sequence[Tuple[str, str]] = (), + ) -> extended_operation.ExtendedOperation: + r"""Updates the specified disk with the data included in the + request. The update is performed only on selected fields + included as part of update-mask. Only the following fields can + be modified: user_license. + + Args: + request (Union[google.cloud.compute_v1.types.UpdateDiskRequest, dict]): + The request object. A request message for Disks.Update. + See the method description for details. + project (str): + Project ID for this request. + This corresponds to the ``project`` field + on the ``request`` instance; if ``request`` is provided, this + should not be set. + zone (str): + The name of the zone for this + request. + + This corresponds to the ``zone`` field + on the ``request`` instance; if ``request`` is provided, this + should not be set. + disk (str): + The disk name for this request. + This corresponds to the ``disk`` field + on the ``request`` instance; if ``request`` is provided, this + should not be set. + disk_resource (google.cloud.compute_v1.types.Disk): + The body resource for this request + This corresponds to the ``disk_resource`` field + on the ``request`` instance; if ``request`` is provided, this + should not be set. + retry (google.api_core.retry.Retry): Designation of what errors, if any, + should be retried. + timeout (float): The timeout for this request. + metadata (Sequence[Tuple[str, str]]): Strings which should be + sent along with the request as metadata. + + Returns: + google.api_core.extended_operation.ExtendedOperation: + An object representing a extended + long-running operation. + + """ + # Create or coerce a protobuf request object. + # Quick check: If we got a request object, we should *not* have + # gotten any keyword arguments that map to the request. + has_flattened_params = any([project, zone, disk, disk_resource]) + if request is not None and has_flattened_params: + raise ValueError( + "If the `request` argument is set, then none of " + "the individual field arguments should be set." + ) + + # Minor optimization to avoid making a copy if the user passes + # in a compute.UpdateDiskRequest. + # There's no risk of modifying the input as we've already verified + # there are no flattened fields. + if not isinstance(request, compute.UpdateDiskRequest): + request = compute.UpdateDiskRequest(request) + # If we have keyword arguments corresponding to fields on the + # request, apply these. + if project is not None: + request.project = project + if zone is not None: + request.zone = zone + if disk is not None: + request.disk = disk + if disk_resource is not None: + request.disk_resource = disk_resource + + # Wrap the RPC method; this adds retry and timeout information, + # and friendly error handling. + rpc = self._transport._wrapped_methods[self._transport.update] + + # Certain fields should be provided within the metadata header; + # add these here. + metadata = tuple(metadata) + ( + gapic_v1.routing_header.to_grpc_metadata( + ( + ("project", request.project), + ("zone", request.zone), + ("disk", request.disk), + ) + ), + ) + + # Send the request. + response = rpc( + request, + retry=retry, + timeout=timeout, + metadata=metadata, + ) + + operation_service = self._transport._zone_operations_client + operation_request = compute.GetZoneOperationRequest() + operation_request.project = request.project + operation_request.zone = request.zone + operation_request.operation = response.name + + get_operation = functools.partial(operation_service.get, operation_request) + # Cancel is not part of extended operations yet. + cancel_operation = lambda: None + + # Note: this class is an implementation detail to provide a uniform + # set of names for certain fields in the extended operation proto message. + # See google.api_core.extended_operation.ExtendedOperation for details + # on these properties and the expected interface. + class _CustomOperation(extended_operation.ExtendedOperation): + @property + def error_message(self): + return self._extended_operation.http_error_message + + @property + def error_code(self): + return self._extended_operation.http_error_status_code + + response = _CustomOperation.make(get_operation, cancel_operation, response) + + # Done; return the response. + return response + def __enter__(self) -> "DisksClient": return self diff --git a/google/cloud/compute_v1/services/disks/transports/base.py b/google/cloud/compute_v1/services/disks/transports/base.py index 00be0507c..e26c3ee73 100644 --- a/google/cloud/compute_v1/services/disks/transports/base.py +++ b/google/cloud/compute_v1/services/disks/transports/base.py @@ -192,6 +192,11 @@ def _prep_wrapped_messages(self, client_info): default_timeout=None, client_info=client_info, ), + self.update: gapic_v1.method.wrap_method( + self.update, + default_timeout=None, + client_info=client_info, + ), } def close(self): @@ -320,6 +325,15 @@ def test_iam_permissions( ]: raise NotImplementedError() + @property + def update( + self, + ) -> Callable[ + [compute.UpdateDiskRequest], + Union[compute.Operation, Awaitable[compute.Operation]], + ]: + raise NotImplementedError() + @property def kind(self) -> str: raise NotImplementedError() diff --git a/google/cloud/compute_v1/services/disks/transports/rest.py b/google/cloud/compute_v1/services/disks/transports/rest.py index ddd1154ee..5def36397 100644 --- a/google/cloud/compute_v1/services/disks/transports/rest.py +++ b/google/cloud/compute_v1/services/disks/transports/rest.py @@ -167,6 +167,14 @@ def post_test_iam_permissions(self, response): logging.log(f"Received response: {response}") return response + def pre_update(self, request, metadata): + logging.log(f"Received request: {request}") + return request, metadata + + def post_update(self, response): + logging.log(f"Received response: {response}") + return response + transport = DisksRestTransport(interceptor=MyCustomDisksInterceptor()) client = DisksClient(transport=transport) @@ -442,6 +450,25 @@ def post_test_iam_permissions( """ return response + def pre_update( + self, request: compute.UpdateDiskRequest, metadata: Sequence[Tuple[str, str]] + ) -> Tuple[compute.UpdateDiskRequest, Sequence[Tuple[str, str]]]: + """Pre-rpc interceptor for update + + Override in a subclass to manipulate the request or metadata + before they are sent to the Disks server. + """ + return request, metadata + + def post_update(self, response: compute.Operation) -> compute.Operation: + """Post-rpc interceptor for update + + Override in a subclass to manipulate the response + after it is returned by the Disks server but before + it is returned to user code. + """ + return response + @dataclasses.dataclass class DisksRestStub: @@ -1949,6 +1976,116 @@ def __call__( resp = self._interceptor.post_test_iam_permissions(resp) return resp + class _Update(DisksRestStub): + def __hash__(self): + return hash("Update") + + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} + + @classmethod + def _get_unset_required_fields(cls, message_dict): + return { + k: v + for k, v in cls.__REQUIRED_FIELDS_DEFAULT_VALUES.items() + if k not in message_dict + } + + def __call__( + self, + request: compute.UpdateDiskRequest, + *, + retry: OptionalRetry = gapic_v1.method.DEFAULT, + timeout: Optional[float] = None, + metadata: Sequence[Tuple[str, str]] = (), + ) -> compute.Operation: + r"""Call the update method over HTTP. + + Args: + request (~.compute.UpdateDiskRequest): + The request object. A request message for Disks.Update. + See the method description for details. + + retry (google.api_core.retry.Retry): Designation of what errors, if any, + should be retried. + timeout (float): The timeout for this request. + metadata (Sequence[Tuple[str, str]]): Strings which should be + sent along with the request as metadata. + + Returns: + ~.compute.Operation: + Represents an Operation resource. Google Compute Engine + has three Operation resources: \* + `Global `__ + \* + `Regional `__ + \* + `Zonal `__ + You can use an operation resource to manage asynchronous + API requests. For more information, read Handling API + responses. Operations can be global, regional or zonal. + - For global operations, use the ``globalOperations`` + resource. - For regional operations, use the + ``regionOperations`` resource. - For zonal operations, + use the ``zonalOperations`` resource. For more + information, read Global, Regional, and Zonal Resources. + + """ + + http_options: List[Dict[str, str]] = [ + { + "method": "patch", + "uri": "/compute/v1/projects/{project}/zones/{zone}/disks/{disk}", + "body": "disk_resource", + }, + ] + request, metadata = self._interceptor.pre_update(request, metadata) + pb_request = compute.UpdateDiskRequest.pb(request) + transcoded_request = path_template.transcode(http_options, pb_request) + + # Jsonify the request body + + body = json_format.MessageToJson( + transcoded_request["body"], + including_default_value_fields=False, + use_integers_for_enums=False, + ) + uri = transcoded_request["uri"] + method = transcoded_request["method"] + + # Jsonify the query params + query_params = json.loads( + json_format.MessageToJson( + transcoded_request["query_params"], + including_default_value_fields=False, + use_integers_for_enums=False, + ) + ) + query_params.update(self._get_unset_required_fields(query_params)) + + # Send the request + headers = dict(metadata) + headers["Content-Type"] = "application/json" + response = getattr(self._session, method)( + "{host}{uri}".format(host=self._host, uri=uri), + timeout=timeout, + headers=headers, + params=rest_helpers.flatten_query_params(query_params, strict=True), + data=body, + ) + + # In case of error, raise the appropriate core_exceptions.GoogleAPICallError exception + # subclass. + if response.status_code >= 400: + raise core_exceptions.from_http_response(response) + + # Return the response + resp = compute.Operation() + pb_resp = compute.Operation.pb(resp) + + json_format.Parse(response.content, pb_resp, ignore_unknown_fields=True) + resp = self._interceptor.post_update(resp) + return resp + @property def add_resource_policies( self, @@ -2043,6 +2180,12 @@ def test_iam_permissions( # In C++ this would require a dynamic_cast return self._TestIamPermissions(self._session, self._host, self._interceptor) # type: ignore + @property + def update(self) -> Callable[[compute.UpdateDiskRequest], compute.Operation]: + # The return type is fine, but mypy isn't sophisticated enough to determine what's going on here. + # In C++ this would require a dynamic_cast + return self._Update(self._session, self._host, self._interceptor) # type: ignore + @property def kind(self) -> str: return "rest" diff --git a/google/cloud/compute_v1/services/firewall_policies/client.py b/google/cloud/compute_v1/services/firewall_policies/client.py index a7ff07505..9d7a278cc 100644 --- a/google/cloud/compute_v1/services/firewall_policies/client.py +++ b/google/cloud/compute_v1/services/firewall_policies/client.py @@ -1877,8 +1877,10 @@ def move_unary( on the ``request`` instance; if ``request`` is provided, this should not be set. parent_id (str): - The new parent of the firewall - policy. + The new parent of the firewall policy. The ID can be + either be "folders/[FOLDER_ID]" if the parent is a + folder or "organizations/[ORGANIZATION_ID]" if the + parent is an organization. This corresponds to the ``parent_id`` field on the ``request`` instance; if ``request`` is provided, this @@ -1966,8 +1968,10 @@ def move( on the ``request`` instance; if ``request`` is provided, this should not be set. parent_id (str): - The new parent of the firewall - policy. + The new parent of the firewall policy. The ID can be + either be "folders/[FOLDER_ID]" if the parent is a + folder or "organizations/[ORGANIZATION_ID]" if the + parent is an organization. This corresponds to the ``parent_id`` field on the ``request`` instance; if ``request`` is provided, this diff --git a/google/cloud/compute_v1/services/global_addresses/client.py b/google/cloud/compute_v1/services/global_addresses/client.py index b46193df9..84d5715ae 100644 --- a/google/cloud/compute_v1/services/global_addresses/client.py +++ b/google/cloud/compute_v1/services/global_addresses/client.py @@ -637,8 +637,7 @@ def get( timeout: Union[float, object] = gapic_v1.method.DEFAULT, metadata: Sequence[Tuple[str, str]] = (), ) -> compute.Address: - r"""Returns the specified address resource. Gets a list - of available addresses by making a list() request. + r"""Returns the specified address resource. Args: request (Union[google.cloud.compute_v1.types.GetGlobalAddressRequest, dict]): diff --git a/google/cloud/compute_v1/services/global_network_endpoint_groups/client.py b/google/cloud/compute_v1/services/global_network_endpoint_groups/client.py index a30e43a52..2a39593d1 100644 --- a/google/cloud/compute_v1/services/global_network_endpoint_groups/client.py +++ b/google/cloud/compute_v1/services/global_network_endpoint_groups/client.py @@ -1179,9 +1179,7 @@ def get( timeout: Union[float, object] = gapic_v1.method.DEFAULT, metadata: Sequence[Tuple[str, str]] = (), ) -> compute.NetworkEndpointGroup: - r"""Returns the specified network endpoint group. Gets a - list of available network endpoint groups by making a - list() request. + r"""Returns the specified network endpoint group. Args: request (Union[google.cloud.compute_v1.types.GetGlobalNetworkEndpointGroupRequest, dict]): diff --git a/google/cloud/compute_v1/services/health_checks/client.py b/google/cloud/compute_v1/services/health_checks/client.py index 7b8e817c0..2212e69d6 100644 --- a/google/cloud/compute_v1/services/health_checks/client.py +++ b/google/cloud/compute_v1/services/health_checks/client.py @@ -725,9 +725,7 @@ def get( timeout: Union[float, object] = gapic_v1.method.DEFAULT, metadata: Sequence[Tuple[str, str]] = (), ) -> compute.HealthCheck: - r"""Returns the specified HealthCheck resource. Gets a - list of available health checks by making a list() - request. + r"""Returns the specified HealthCheck resource. Args: request (Union[google.cloud.compute_v1.types.GetHealthCheckRequest, dict]): diff --git a/google/cloud/compute_v1/services/images/client.py b/google/cloud/compute_v1/services/images/client.py index 162a16ca9..0765ec04a 100644 --- a/google/cloud/compute_v1/services/images/client.py +++ b/google/cloud/compute_v1/services/images/client.py @@ -849,8 +849,7 @@ def get( timeout: Union[float, object] = gapic_v1.method.DEFAULT, metadata: Sequence[Tuple[str, str]] = (), ) -> compute.Image: - r"""Returns the specified image. Gets a list of available - images by making a list() request. + r"""Returns the specified image. Args: request (Union[google.cloud.compute_v1.types.GetImageRequest, dict]): @@ -940,7 +939,8 @@ def get_from_family( metadata: Sequence[Tuple[str, str]] = (), ) -> compute.Image: r"""Returns the latest image that is part of an image - family and is not deprecated. + family and is not deprecated. For more information on + image families, see Public image families documentation. Args: request (Union[google.cloud.compute_v1.types.GetFromFamilyImageRequest, dict]): @@ -948,7 +948,11 @@ def get_from_family( Images.GetFromFamily. See the method description for details. project (str): - Project ID for this request. + The image project that the image + belongs to. For example, to get a CentOS + image, specify centos-cloud as the image + project. + This corresponds to the ``project`` field on the ``request`` instance; if ``request`` is provided, this should not be set. diff --git a/google/cloud/compute_v1/services/instance_group_managers/client.py b/google/cloud/compute_v1/services/instance_group_managers/client.py index d2cb307df..b4e8da98f 100644 --- a/google/cloud/compute_v1/services/instance_group_managers/client.py +++ b/google/cloud/compute_v1/services/instance_group_managers/client.py @@ -2221,8 +2221,7 @@ def get( metadata: Sequence[Tuple[str, str]] = (), ) -> compute.InstanceGroupManager: r"""Returns all of the details about the specified - managed instance group. Gets a list of available managed - instance groups by making a list() request. + managed instance group. Args: request (Union[google.cloud.compute_v1.types.GetInstanceGroupManagerRequest, dict]): diff --git a/google/cloud/compute_v1/services/instance_templates/client.py b/google/cloud/compute_v1/services/instance_templates/client.py index 107d4e280..d1292111e 100644 --- a/google/cloud/compute_v1/services/instance_templates/client.py +++ b/google/cloud/compute_v1/services/instance_templates/client.py @@ -423,6 +423,99 @@ def __init__( api_audience=client_options.api_audience, ) + def aggregated_list( + self, + request: Optional[ + Union[compute.AggregatedListInstanceTemplatesRequest, dict] + ] = None, + *, + project: Optional[str] = None, + retry: OptionalRetry = gapic_v1.method.DEFAULT, + timeout: Union[float, object] = gapic_v1.method.DEFAULT, + metadata: Sequence[Tuple[str, str]] = (), + ) -> pagers.AggregatedListPager: + r"""Retrieves the list of all InstanceTemplates + resources, regional and global, available to the + specified project. + + Args: + request (Union[google.cloud.compute_v1.types.AggregatedListInstanceTemplatesRequest, dict]): + The request object. A request message for + InstanceTemplates.AggregatedList. See the method + description for details. + project (str): + Name of the project scoping this + request. + + This corresponds to the ``project`` field + on the ``request`` instance; if ``request`` is provided, this + should not be set. + retry (google.api_core.retry.Retry): Designation of what errors, if any, + should be retried. + timeout (float): The timeout for this request. + metadata (Sequence[Tuple[str, str]]): Strings which should be + sent along with the request as metadata. + + Returns: + google.cloud.compute_v1.services.instance_templates.pagers.AggregatedListPager: + Contains a list of + InstanceTemplatesScopedList. + Iterating over this object will yield + results and resolve additional pages + automatically. + + """ + # Create or coerce a protobuf request object. + # Quick check: If we got a request object, we should *not* have + # gotten any keyword arguments that map to the request. + has_flattened_params = any([project]) + if request is not None and has_flattened_params: + raise ValueError( + "If the `request` argument is set, then none of " + "the individual field arguments should be set." + ) + + # Minor optimization to avoid making a copy if the user passes + # in a compute.AggregatedListInstanceTemplatesRequest. + # There's no risk of modifying the input as we've already verified + # there are no flattened fields. + if not isinstance(request, compute.AggregatedListInstanceTemplatesRequest): + request = compute.AggregatedListInstanceTemplatesRequest(request) + # If we have keyword arguments corresponding to fields on the + # request, apply these. + if project is not None: + request.project = project + + # Wrap the RPC method; this adds retry and timeout information, + # and friendly error handling. + rpc = self._transport._wrapped_methods[self._transport.aggregated_list] + + # Certain fields should be provided within the metadata header; + # add these here. + metadata = tuple(metadata) + ( + gapic_v1.routing_header.to_grpc_metadata((("project", request.project),)), + ) + + # Send the request. + response = rpc( + request, + retry=retry, + timeout=timeout, + metadata=metadata, + ) + + # This method is paged; wrap the response in a pager, which provides + # an `__iter__` convenience method. + response = pagers.AggregatedListPager( + method=rpc, + request=request, + response=response, + metadata=metadata, + ) + + # Done; return the response. + return response + def delete_unary( self, request: Optional[Union[compute.DeleteInstanceTemplateRequest, dict]] = None, @@ -643,9 +736,7 @@ def get( timeout: Union[float, object] = gapic_v1.method.DEFAULT, metadata: Sequence[Tuple[str, str]] = (), ) -> compute.InstanceTemplate: - r"""Returns the specified instance template. Gets a list - of available instance templates by making a list() - request. + r"""Returns the specified instance template. Args: request (Union[google.cloud.compute_v1.types.GetInstanceTemplateRequest, dict]): diff --git a/google/cloud/compute_v1/services/instance_templates/pagers.py b/google/cloud/compute_v1/services/instance_templates/pagers.py index 45418f480..10107b3ab 100644 --- a/google/cloud/compute_v1/services/instance_templates/pagers.py +++ b/google/cloud/compute_v1/services/instance_templates/pagers.py @@ -27,6 +27,71 @@ from google.cloud.compute_v1.types import compute +class AggregatedListPager: + """A pager for iterating through ``aggregated_list`` requests. + + This class thinly wraps an initial + :class:`google.cloud.compute_v1.types.InstanceTemplateAggregatedList` object, and + provides an ``__iter__`` method to iterate through its + ``items`` field. + + If there are more pages, the ``__iter__`` method will make additional + ``AggregatedList`` requests and continue to iterate + through the ``items`` field on the + corresponding responses. + + All the usual :class:`google.cloud.compute_v1.types.InstanceTemplateAggregatedList` + attributes are available on the pager. If multiple requests are made, only + the most recent response is retained, and thus used for attribute lookup. + """ + + def __init__( + self, + method: Callable[..., compute.InstanceTemplateAggregatedList], + request: compute.AggregatedListInstanceTemplatesRequest, + response: compute.InstanceTemplateAggregatedList, + *, + metadata: Sequence[Tuple[str, str]] = () + ): + """Instantiate the pager. + + Args: + method (Callable): The method that was originally called, and + which instantiated this pager. + request (google.cloud.compute_v1.types.AggregatedListInstanceTemplatesRequest): + The initial request object. + response (google.cloud.compute_v1.types.InstanceTemplateAggregatedList): + The initial response object. + metadata (Sequence[Tuple[str, str]]): Strings which should be + sent along with the request as metadata. + """ + self._method = method + self._request = compute.AggregatedListInstanceTemplatesRequest(request) + self._response = response + self._metadata = metadata + + def __getattr__(self, name: str) -> Any: + return getattr(self._response, name) + + @property + def pages(self) -> Iterator[compute.InstanceTemplateAggregatedList]: + yield self._response + while self._response.next_page_token: + self._request.page_token = self._response.next_page_token + self._response = self._method(self._request, metadata=self._metadata) + yield self._response + + def __iter__(self) -> Iterator[Tuple[str, compute.InstanceTemplatesScopedList]]: + for page in self.pages: + yield from page.items.items() + + def get(self, key: str) -> Optional[compute.InstanceTemplatesScopedList]: + return self._response.items.get(key) + + def __repr__(self) -> str: + return "{0}<{1!r}>".format(self.__class__.__name__, self._response) + + class ListPager: """A pager for iterating through ``list`` requests. diff --git a/google/cloud/compute_v1/services/instance_templates/transports/base.py b/google/cloud/compute_v1/services/instance_templates/transports/base.py index 58654a5f8..af5723970 100644 --- a/google/cloud/compute_v1/services/instance_templates/transports/base.py +++ b/google/cloud/compute_v1/services/instance_templates/transports/base.py @@ -127,6 +127,11 @@ def __init__( def _prep_wrapped_messages(self, client_info): # Precompute the wrapped methods. self._wrapped_methods = { + self.aggregated_list: gapic_v1.method.wrap_method( + self.aggregated_list, + default_timeout=None, + client_info=client_info, + ), self.delete: gapic_v1.method.wrap_method( self.delete, default_timeout=None, @@ -173,6 +178,18 @@ def close(self): """ raise NotImplementedError() + @property + def aggregated_list( + self, + ) -> Callable[ + [compute.AggregatedListInstanceTemplatesRequest], + Union[ + compute.InstanceTemplateAggregatedList, + Awaitable[compute.InstanceTemplateAggregatedList], + ], + ]: + raise NotImplementedError() + @property def delete( self, diff --git a/google/cloud/compute_v1/services/instance_templates/transports/rest.py b/google/cloud/compute_v1/services/instance_templates/transports/rest.py index 6f10d0846..58fde9c2e 100644 --- a/google/cloud/compute_v1/services/instance_templates/transports/rest.py +++ b/google/cloud/compute_v1/services/instance_templates/transports/rest.py @@ -63,6 +63,14 @@ class InstanceTemplatesRestInterceptor: .. code-block:: python class MyCustomInstanceTemplatesInterceptor(InstanceTemplatesRestInterceptor): + def pre_aggregated_list(self, request, metadata): + logging.log(f"Received request: {request}") + return request, metadata + + def post_aggregated_list(self, response): + logging.log(f"Received response: {response}") + return response + def pre_delete(self, request, metadata): logging.log(f"Received request: {request}") return request, metadata @@ -125,6 +133,31 @@ def post_test_iam_permissions(self, response): """ + def pre_aggregated_list( + self, + request: compute.AggregatedListInstanceTemplatesRequest, + metadata: Sequence[Tuple[str, str]], + ) -> Tuple[ + compute.AggregatedListInstanceTemplatesRequest, Sequence[Tuple[str, str]] + ]: + """Pre-rpc interceptor for aggregated_list + + Override in a subclass to manipulate the request or metadata + before they are sent to the InstanceTemplates server. + """ + return request, metadata + + def post_aggregated_list( + self, response: compute.InstanceTemplateAggregatedList + ) -> compute.InstanceTemplateAggregatedList: + """Post-rpc interceptor for aggregated_list + + Override in a subclass to manipulate the response + after it is returned by the InstanceTemplates server but before + it is returned to user code. + """ + return response + def pre_delete( self, request: compute.DeleteInstanceTemplateRequest, @@ -382,6 +415,95 @@ def __init__( self._interceptor = interceptor or InstanceTemplatesRestInterceptor() self._prep_wrapped_messages(client_info) + class _AggregatedList(InstanceTemplatesRestStub): + def __hash__(self): + return hash("AggregatedList") + + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} + + @classmethod + def _get_unset_required_fields(cls, message_dict): + return { + k: v + for k, v in cls.__REQUIRED_FIELDS_DEFAULT_VALUES.items() + if k not in message_dict + } + + def __call__( + self, + request: compute.AggregatedListInstanceTemplatesRequest, + *, + retry: OptionalRetry = gapic_v1.method.DEFAULT, + timeout: Optional[float] = None, + metadata: Sequence[Tuple[str, str]] = (), + ) -> compute.InstanceTemplateAggregatedList: + r"""Call the aggregated list method over HTTP. + + Args: + request (~.compute.AggregatedListInstanceTemplatesRequest): + The request object. A request message for + InstanceTemplates.AggregatedList. See + the method description for details. + + retry (google.api_core.retry.Retry): Designation of what errors, if any, + should be retried. + timeout (float): The timeout for this request. + metadata (Sequence[Tuple[str, str]]): Strings which should be + sent along with the request as metadata. + + Returns: + ~.compute.InstanceTemplateAggregatedList: + Contains a list of + InstanceTemplatesScopedList. + + """ + + http_options: List[Dict[str, str]] = [ + { + "method": "get", + "uri": "/compute/v1/projects/{project}/aggregated/instanceTemplates", + }, + ] + request, metadata = self._interceptor.pre_aggregated_list(request, metadata) + pb_request = compute.AggregatedListInstanceTemplatesRequest.pb(request) + transcoded_request = path_template.transcode(http_options, pb_request) + + uri = transcoded_request["uri"] + method = transcoded_request["method"] + + # Jsonify the query params + query_params = json.loads( + json_format.MessageToJson( + transcoded_request["query_params"], + including_default_value_fields=False, + use_integers_for_enums=False, + ) + ) + query_params.update(self._get_unset_required_fields(query_params)) + + # Send the request + headers = dict(metadata) + headers["Content-Type"] = "application/json" + response = getattr(self._session, method)( + "{host}{uri}".format(host=self._host, uri=uri), + timeout=timeout, + headers=headers, + params=rest_helpers.flatten_query_params(query_params, strict=True), + ) + + # In case of error, raise the appropriate core_exceptions.GoogleAPICallError exception + # subclass. + if response.status_code >= 400: + raise core_exceptions.from_http_response(response) + + # Return the response + resp = compute.InstanceTemplateAggregatedList() + pb_resp = compute.InstanceTemplateAggregatedList.pb(resp) + + json_format.Parse(response.content, pb_resp, ignore_unknown_fields=True) + resp = self._interceptor.post_aggregated_list(resp) + return resp + class _Delete(InstanceTemplatesRestStub): def __hash__(self): return hash("Delete") @@ -1137,6 +1259,17 @@ def __call__( resp = self._interceptor.post_test_iam_permissions(resp) return resp + @property + def aggregated_list( + self, + ) -> Callable[ + [compute.AggregatedListInstanceTemplatesRequest], + compute.InstanceTemplateAggregatedList, + ]: + # The return type is fine, but mypy isn't sophisticated enough to determine what's going on here. + # In C++ this would require a dynamic_cast + return self._AggregatedList(self._session, self._host, self._interceptor) # type: ignore + @property def delete( self, diff --git a/google/cloud/compute_v1/services/instances/client.py b/google/cloud/compute_v1/services/instances/client.py index a6cfa7a09..80f7222d2 100644 --- a/google/cloud/compute_v1/services/instances/client.py +++ b/google/cloud/compute_v1/services/instances/client.py @@ -2274,8 +2274,7 @@ def get( timeout: Union[float, object] = gapic_v1.method.DEFAULT, metadata: Sequence[Tuple[str, str]] = (), ) -> compute.Instance: - r"""Returns the specified Instance resource. Gets a list - of available instances by making a list() request. + r"""Returns the specified Instance resource. Args: request (Union[google.cloud.compute_v1.types.GetInstanceRequest, dict]): @@ -6230,6 +6229,257 @@ def error_code(self): # Done; return the response. return response + def set_name_unary( + self, + request: Optional[Union[compute.SetNameInstanceRequest, dict]] = None, + *, + project: Optional[str] = None, + zone: Optional[str] = None, + instance: Optional[str] = None, + instances_set_name_request_resource: Optional[ + compute.InstancesSetNameRequest + ] = None, + retry: OptionalRetry = gapic_v1.method.DEFAULT, + timeout: Union[float, object] = gapic_v1.method.DEFAULT, + metadata: Sequence[Tuple[str, str]] = (), + ) -> compute.Operation: + r"""Sets name of an instance. + + Args: + request (Union[google.cloud.compute_v1.types.SetNameInstanceRequest, dict]): + The request object. A request message for + Instances.SetName. See the method description for + details. + project (str): + Project ID for this request. + This corresponds to the ``project`` field + on the ``request`` instance; if ``request`` is provided, this + should not be set. + zone (str): + The name of the zone for this + request. + + This corresponds to the ``zone`` field + on the ``request`` instance; if ``request`` is provided, this + should not be set. + instance (str): + The instance name for this request. + This corresponds to the ``instance`` field + on the ``request`` instance; if ``request`` is provided, this + should not be set. + instances_set_name_request_resource (google.cloud.compute_v1.types.InstancesSetNameRequest): + The body resource for this request + This corresponds to the ``instances_set_name_request_resource`` field + on the ``request`` instance; if ``request`` is provided, this + should not be set. + retry (google.api_core.retry.Retry): Designation of what errors, if any, + should be retried. + timeout (float): The timeout for this request. + metadata (Sequence[Tuple[str, str]]): Strings which should be + sent along with the request as metadata. + + Returns: + google.api_core.extended_operation.ExtendedOperation: + An object representing a extended + long-running operation. + + """ + # Create or coerce a protobuf request object. + # Quick check: If we got a request object, we should *not* have + # gotten any keyword arguments that map to the request. + has_flattened_params = any( + [project, zone, instance, instances_set_name_request_resource] + ) + if request is not None and has_flattened_params: + raise ValueError( + "If the `request` argument is set, then none of " + "the individual field arguments should be set." + ) + + # Minor optimization to avoid making a copy if the user passes + # in a compute.SetNameInstanceRequest. + # There's no risk of modifying the input as we've already verified + # there are no flattened fields. + if not isinstance(request, compute.SetNameInstanceRequest): + request = compute.SetNameInstanceRequest(request) + # If we have keyword arguments corresponding to fields on the + # request, apply these. + if project is not None: + request.project = project + if zone is not None: + request.zone = zone + if instance is not None: + request.instance = instance + if instances_set_name_request_resource is not None: + request.instances_set_name_request_resource = ( + instances_set_name_request_resource + ) + + # Wrap the RPC method; this adds retry and timeout information, + # and friendly error handling. + rpc = self._transport._wrapped_methods[self._transport.set_name] + + # Certain fields should be provided within the metadata header; + # add these here. + metadata = tuple(metadata) + ( + gapic_v1.routing_header.to_grpc_metadata( + ( + ("project", request.project), + ("zone", request.zone), + ("instance", request.instance), + ) + ), + ) + + # Send the request. + response = rpc( + request, + retry=retry, + timeout=timeout, + metadata=metadata, + ) + + # Done; return the response. + return response + + def set_name( + self, + request: Optional[Union[compute.SetNameInstanceRequest, dict]] = None, + *, + project: Optional[str] = None, + zone: Optional[str] = None, + instance: Optional[str] = None, + instances_set_name_request_resource: Optional[ + compute.InstancesSetNameRequest + ] = None, + retry: OptionalRetry = gapic_v1.method.DEFAULT, + timeout: Union[float, object] = gapic_v1.method.DEFAULT, + metadata: Sequence[Tuple[str, str]] = (), + ) -> extended_operation.ExtendedOperation: + r"""Sets name of an instance. + + Args: + request (Union[google.cloud.compute_v1.types.SetNameInstanceRequest, dict]): + The request object. A request message for + Instances.SetName. See the method description for + details. + project (str): + Project ID for this request. + This corresponds to the ``project`` field + on the ``request`` instance; if ``request`` is provided, this + should not be set. + zone (str): + The name of the zone for this + request. + + This corresponds to the ``zone`` field + on the ``request`` instance; if ``request`` is provided, this + should not be set. + instance (str): + The instance name for this request. + This corresponds to the ``instance`` field + on the ``request`` instance; if ``request`` is provided, this + should not be set. + instances_set_name_request_resource (google.cloud.compute_v1.types.InstancesSetNameRequest): + The body resource for this request + This corresponds to the ``instances_set_name_request_resource`` field + on the ``request`` instance; if ``request`` is provided, this + should not be set. + retry (google.api_core.retry.Retry): Designation of what errors, if any, + should be retried. + timeout (float): The timeout for this request. + metadata (Sequence[Tuple[str, str]]): Strings which should be + sent along with the request as metadata. + + Returns: + google.api_core.extended_operation.ExtendedOperation: + An object representing a extended + long-running operation. + + """ + # Create or coerce a protobuf request object. + # Quick check: If we got a request object, we should *not* have + # gotten any keyword arguments that map to the request. + has_flattened_params = any( + [project, zone, instance, instances_set_name_request_resource] + ) + if request is not None and has_flattened_params: + raise ValueError( + "If the `request` argument is set, then none of " + "the individual field arguments should be set." + ) + + # Minor optimization to avoid making a copy if the user passes + # in a compute.SetNameInstanceRequest. + # There's no risk of modifying the input as we've already verified + # there are no flattened fields. + if not isinstance(request, compute.SetNameInstanceRequest): + request = compute.SetNameInstanceRequest(request) + # If we have keyword arguments corresponding to fields on the + # request, apply these. + if project is not None: + request.project = project + if zone is not None: + request.zone = zone + if instance is not None: + request.instance = instance + if instances_set_name_request_resource is not None: + request.instances_set_name_request_resource = ( + instances_set_name_request_resource + ) + + # Wrap the RPC method; this adds retry and timeout information, + # and friendly error handling. + rpc = self._transport._wrapped_methods[self._transport.set_name] + + # Certain fields should be provided within the metadata header; + # add these here. + metadata = tuple(metadata) + ( + gapic_v1.routing_header.to_grpc_metadata( + ( + ("project", request.project), + ("zone", request.zone), + ("instance", request.instance), + ) + ), + ) + + # Send the request. + response = rpc( + request, + retry=retry, + timeout=timeout, + metadata=metadata, + ) + + operation_service = self._transport._zone_operations_client + operation_request = compute.GetZoneOperationRequest() + operation_request.project = request.project + operation_request.zone = request.zone + operation_request.operation = response.name + + get_operation = functools.partial(operation_service.get, operation_request) + # Cancel is not part of extended operations yet. + cancel_operation = lambda: None + + # Note: this class is an implementation detail to provide a uniform + # set of names for certain fields in the extended operation proto message. + # See google.api_core.extended_operation.ExtendedOperation for details + # on these properties and the expected interface. + class _CustomOperation(extended_operation.ExtendedOperation): + @property + def error_message(self): + return self._extended_operation.http_error_message + + @property + def error_code(self): + return self._extended_operation.http_error_status_code + + response = _CustomOperation.make(get_operation, cancel_operation, response) + + # Done; return the response. + return response + def set_scheduling_unary( self, request: Optional[Union[compute.SetSchedulingInstanceRequest, dict]] = None, diff --git a/google/cloud/compute_v1/services/instances/transports/base.py b/google/cloud/compute_v1/services/instances/transports/base.py index e8ef8e39d..6ef3034c7 100644 --- a/google/cloud/compute_v1/services/instances/transports/base.py +++ b/google/cloud/compute_v1/services/instances/transports/base.py @@ -277,6 +277,11 @@ def _prep_wrapped_messages(self, client_info): default_timeout=None, client_info=client_info, ), + self.set_name: gapic_v1.method.wrap_method( + self.set_name, + default_timeout=None, + client_info=client_info, + ), self.set_scheduling: gapic_v1.method.wrap_method( self.set_scheduling, default_timeout=None, @@ -644,6 +649,15 @@ def set_min_cpu_platform( ]: raise NotImplementedError() + @property + def set_name( + self, + ) -> Callable[ + [compute.SetNameInstanceRequest], + Union[compute.Operation, Awaitable[compute.Operation]], + ]: + raise NotImplementedError() + @property def set_scheduling( self, diff --git a/google/cloud/compute_v1/services/instances/transports/rest.py b/google/cloud/compute_v1/services/instances/transports/rest.py index 76e2de98b..d79e19e7b 100644 --- a/google/cloud/compute_v1/services/instances/transports/rest.py +++ b/google/cloud/compute_v1/services/instances/transports/rest.py @@ -303,6 +303,14 @@ def post_set_min_cpu_platform(self, response): logging.log(f"Received response: {response}") return response + def pre_set_name(self, request, metadata): + logging.log(f"Received request: {request}") + return request, metadata + + def post_set_name(self, response): + logging.log(f"Received response: {response}") + return response + def pre_set_scheduling(self, request, metadata): logging.log(f"Received request: {request}") return request, metadata @@ -1087,6 +1095,27 @@ def post_set_min_cpu_platform( """ return response + def pre_set_name( + self, + request: compute.SetNameInstanceRequest, + metadata: Sequence[Tuple[str, str]], + ) -> Tuple[compute.SetNameInstanceRequest, Sequence[Tuple[str, str]]]: + """Pre-rpc interceptor for set_name + + Override in a subclass to manipulate the request or metadata + before they are sent to the Instances server. + """ + return request, metadata + + def post_set_name(self, response: compute.Operation) -> compute.Operation: + """Post-rpc interceptor for set_name + + Override in a subclass to manipulate the response + after it is returned by the Instances server but before + it is returned to user code. + """ + return response + def pre_set_scheduling( self, request: compute.SetSchedulingInstanceRequest, @@ -4650,6 +4679,117 @@ def __call__( resp = self._interceptor.post_set_min_cpu_platform(resp) return resp + class _SetName(InstancesRestStub): + def __hash__(self): + return hash("SetName") + + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} + + @classmethod + def _get_unset_required_fields(cls, message_dict): + return { + k: v + for k, v in cls.__REQUIRED_FIELDS_DEFAULT_VALUES.items() + if k not in message_dict + } + + def __call__( + self, + request: compute.SetNameInstanceRequest, + *, + retry: OptionalRetry = gapic_v1.method.DEFAULT, + timeout: Optional[float] = None, + metadata: Sequence[Tuple[str, str]] = (), + ) -> compute.Operation: + r"""Call the set name method over HTTP. + + Args: + request (~.compute.SetNameInstanceRequest): + The request object. A request message for + Instances.SetName. See the method + description for details. + + retry (google.api_core.retry.Retry): Designation of what errors, if any, + should be retried. + timeout (float): The timeout for this request. + metadata (Sequence[Tuple[str, str]]): Strings which should be + sent along with the request as metadata. + + Returns: + ~.compute.Operation: + Represents an Operation resource. Google Compute Engine + has three Operation resources: \* + `Global `__ + \* + `Regional `__ + \* + `Zonal `__ + You can use an operation resource to manage asynchronous + API requests. For more information, read Handling API + responses. Operations can be global, regional or zonal. + - For global operations, use the ``globalOperations`` + resource. - For regional operations, use the + ``regionOperations`` resource. - For zonal operations, + use the ``zonalOperations`` resource. For more + information, read Global, Regional, and Zonal Resources. + + """ + + http_options: List[Dict[str, str]] = [ + { + "method": "post", + "uri": "/compute/v1/projects/{project}/zones/{zone}/instances/{instance}/setName", + "body": "instances_set_name_request_resource", + }, + ] + request, metadata = self._interceptor.pre_set_name(request, metadata) + pb_request = compute.SetNameInstanceRequest.pb(request) + transcoded_request = path_template.transcode(http_options, pb_request) + + # Jsonify the request body + + body = json_format.MessageToJson( + transcoded_request["body"], + including_default_value_fields=False, + use_integers_for_enums=False, + ) + uri = transcoded_request["uri"] + method = transcoded_request["method"] + + # Jsonify the query params + query_params = json.loads( + json_format.MessageToJson( + transcoded_request["query_params"], + including_default_value_fields=False, + use_integers_for_enums=False, + ) + ) + query_params.update(self._get_unset_required_fields(query_params)) + + # Send the request + headers = dict(metadata) + headers["Content-Type"] = "application/json" + response = getattr(self._session, method)( + "{host}{uri}".format(host=self._host, uri=uri), + timeout=timeout, + headers=headers, + params=rest_helpers.flatten_query_params(query_params, strict=True), + data=body, + ) + + # In case of error, raise the appropriate core_exceptions.GoogleAPICallError exception + # subclass. + if response.status_code >= 400: + raise core_exceptions.from_http_response(response) + + # Return the response + resp = compute.Operation() + pb_resp = compute.Operation.pb(resp) + + json_format.Parse(response.content, pb_resp, ignore_unknown_fields=True) + resp = self._interceptor.post_set_name(resp) + return resp + class _SetScheduling(InstancesRestStub): def __hash__(self): return hash("SetScheduling") @@ -6536,6 +6676,12 @@ def set_min_cpu_platform( # In C++ this would require a dynamic_cast return self._SetMinCpuPlatform(self._session, self._host, self._interceptor) # type: ignore + @property + def set_name(self) -> Callable[[compute.SetNameInstanceRequest], compute.Operation]: + # The return type is fine, but mypy isn't sophisticated enough to determine what's going on here. + # In C++ this would require a dynamic_cast + return self._SetName(self._session, self._host, self._interceptor) # type: ignore + @property def set_scheduling( self, diff --git a/google/cloud/compute_v1/services/machine_images/client.py b/google/cloud/compute_v1/services/machine_images/client.py index 28e1bbbc0..174ef6758 100644 --- a/google/cloud/compute_v1/services/machine_images/client.py +++ b/google/cloud/compute_v1/services/machine_images/client.py @@ -637,8 +637,7 @@ def get( timeout: Union[float, object] = gapic_v1.method.DEFAULT, metadata: Sequence[Tuple[str, str]] = (), ) -> compute.MachineImage: - r"""Returns the specified machine image. Gets a list of - available machine images by making a list() request. + r"""Returns the specified machine image. Args: request (Union[google.cloud.compute_v1.types.GetMachineImageRequest, dict]): diff --git a/google/cloud/compute_v1/services/machine_types/client.py b/google/cloud/compute_v1/services/machine_types/client.py index fc254e179..2ef035a3b 100644 --- a/google/cloud/compute_v1/services/machine_types/client.py +++ b/google/cloud/compute_v1/services/machine_types/client.py @@ -516,8 +516,7 @@ def get( timeout: Union[float, object] = gapic_v1.method.DEFAULT, metadata: Sequence[Tuple[str, str]] = (), ) -> compute.MachineType: - r"""Returns the specified machine type. Gets a list of - available machine types by making a list() request. + r"""Returns the specified machine type. Args: request (Union[google.cloud.compute_v1.types.GetMachineTypeRequest, dict]): diff --git a/google/cloud/compute_v1/services/network_endpoint_groups/client.py b/google/cloud/compute_v1/services/network_endpoint_groups/client.py index 294bff292..97edaae76 100644 --- a/google/cloud/compute_v1/services/network_endpoint_groups/client.py +++ b/google/cloud/compute_v1/services/network_endpoint_groups/client.py @@ -1327,9 +1327,7 @@ def get( timeout: Union[float, object] = gapic_v1.method.DEFAULT, metadata: Sequence[Tuple[str, str]] = (), ) -> compute.NetworkEndpointGroup: - r"""Returns the specified network endpoint group. Gets a - list of available network endpoint groups by making a - list() request. + r"""Returns the specified network endpoint group. Args: request (Union[google.cloud.compute_v1.types.GetNetworkEndpointGroupRequest, dict]): diff --git a/google/cloud/compute_v1/services/networks/client.py b/google/cloud/compute_v1/services/networks/client.py index f00b139e5..7ec31b17f 100644 --- a/google/cloud/compute_v1/services/networks/client.py +++ b/google/cloud/compute_v1/services/networks/client.py @@ -861,8 +861,7 @@ def get( timeout: Union[float, object] = gapic_v1.method.DEFAULT, metadata: Sequence[Tuple[str, str]] = (), ) -> compute.Network: - r"""Returns the specified network. Gets a list of - available networks by making a list() request. + r"""Returns the specified network. Args: request (Union[google.cloud.compute_v1.types.GetNetworkRequest, dict]): diff --git a/google/cloud/compute_v1/services/node_templates/client.py b/google/cloud/compute_v1/services/node_templates/client.py index 9ac3ff450..4d5e9d51e 100644 --- a/google/cloud/compute_v1/services/node_templates/client.py +++ b/google/cloud/compute_v1/services/node_templates/client.py @@ -746,8 +746,7 @@ def get( timeout: Union[float, object] = gapic_v1.method.DEFAULT, metadata: Sequence[Tuple[str, str]] = (), ) -> compute.NodeTemplate: - r"""Returns the specified node template. Gets a list of - available node templates by making a list() request. + r"""Returns the specified node template. Args: request (Union[google.cloud.compute_v1.types.GetNodeTemplateRequest, dict]): diff --git a/google/cloud/compute_v1/services/node_types/client.py b/google/cloud/compute_v1/services/node_types/client.py index 2d524b1fd..895662b4e 100644 --- a/google/cloud/compute_v1/services/node_types/client.py +++ b/google/cloud/compute_v1/services/node_types/client.py @@ -514,8 +514,7 @@ def get( timeout: Union[float, object] = gapic_v1.method.DEFAULT, metadata: Sequence[Tuple[str, str]] = (), ) -> compute.NodeType: - r"""Returns the specified node type. Gets a list of - available node types by making a list() request. + r"""Returns the specified node type. Args: request (Union[google.cloud.compute_v1.types.GetNodeTypeRequest, dict]): diff --git a/google/cloud/compute_v1/services/region_commitments/client.py b/google/cloud/compute_v1/services/region_commitments/client.py index d6d10e259..e1e9b6ae6 100644 --- a/google/cloud/compute_v1/services/region_commitments/client.py +++ b/google/cloud/compute_v1/services/region_commitments/client.py @@ -522,9 +522,7 @@ def get( timeout: Union[float, object] = gapic_v1.method.DEFAULT, metadata: Sequence[Tuple[str, str]] = (), ) -> compute.Commitment: - r"""Returns the specified commitment resource. Gets a - list of available commitments by making a list() - request. + r"""Returns the specified commitment resource. Args: request (Union[google.cloud.compute_v1.types.GetRegionCommitmentRequest, dict]): diff --git a/google/cloud/compute_v1/services/region_disk_types/client.py b/google/cloud/compute_v1/services/region_disk_types/client.py index 7fbe53eca..8b8b689f2 100644 --- a/google/cloud/compute_v1/services/region_disk_types/client.py +++ b/google/cloud/compute_v1/services/region_disk_types/client.py @@ -431,8 +431,7 @@ def get( timeout: Union[float, object] = gapic_v1.method.DEFAULT, metadata: Sequence[Tuple[str, str]] = (), ) -> compute.DiskType: - r"""Returns the specified regional disk type. Gets a list - of available disk types by making a list() request. + r"""Returns the specified regional disk type. Args: request (Union[google.cloud.compute_v1.types.GetRegionDiskTypeRequest, dict]): diff --git a/google/cloud/compute_v1/services/region_disks/client.py b/google/cloud/compute_v1/services/region_disks/client.py index bf098b942..021cde85b 100644 --- a/google/cloud/compute_v1/services/region_disks/client.py +++ b/google/cloud/compute_v1/services/region_disks/client.py @@ -2758,6 +2758,251 @@ def test_iam_permissions( # Done; return the response. return response + def update_unary( + self, + request: Optional[Union[compute.UpdateRegionDiskRequest, dict]] = None, + *, + project: Optional[str] = None, + region: Optional[str] = None, + disk: Optional[str] = None, + disk_resource: Optional[compute.Disk] = None, + retry: OptionalRetry = gapic_v1.method.DEFAULT, + timeout: Union[float, object] = gapic_v1.method.DEFAULT, + metadata: Sequence[Tuple[str, str]] = (), + ) -> compute.Operation: + r"""Update the specified disk with the data included in the request. + Update is performed only on selected fields included as part of + update-mask. Only the following fields can be modified: + user_license. + + Args: + request (Union[google.cloud.compute_v1.types.UpdateRegionDiskRequest, dict]): + The request object. A request message for + RegionDisks.Update. See the method description for + details. + project (str): + Project ID for this request. + This corresponds to the ``project`` field + on the ``request`` instance; if ``request`` is provided, this + should not be set. + region (str): + The name of the region for this + request. + + This corresponds to the ``region`` field + on the ``request`` instance; if ``request`` is provided, this + should not be set. + disk (str): + The disk name for this request. + This corresponds to the ``disk`` field + on the ``request`` instance; if ``request`` is provided, this + should not be set. + disk_resource (google.cloud.compute_v1.types.Disk): + The body resource for this request + This corresponds to the ``disk_resource`` field + on the ``request`` instance; if ``request`` is provided, this + should not be set. + retry (google.api_core.retry.Retry): Designation of what errors, if any, + should be retried. + timeout (float): The timeout for this request. + metadata (Sequence[Tuple[str, str]]): Strings which should be + sent along with the request as metadata. + + Returns: + google.api_core.extended_operation.ExtendedOperation: + An object representing a extended + long-running operation. + + """ + # Create or coerce a protobuf request object. + # Quick check: If we got a request object, we should *not* have + # gotten any keyword arguments that map to the request. + has_flattened_params = any([project, region, disk, disk_resource]) + if request is not None and has_flattened_params: + raise ValueError( + "If the `request` argument is set, then none of " + "the individual field arguments should be set." + ) + + # Minor optimization to avoid making a copy if the user passes + # in a compute.UpdateRegionDiskRequest. + # There's no risk of modifying the input as we've already verified + # there are no flattened fields. + if not isinstance(request, compute.UpdateRegionDiskRequest): + request = compute.UpdateRegionDiskRequest(request) + # If we have keyword arguments corresponding to fields on the + # request, apply these. + if project is not None: + request.project = project + if region is not None: + request.region = region + if disk is not None: + request.disk = disk + if disk_resource is not None: + request.disk_resource = disk_resource + + # Wrap the RPC method; this adds retry and timeout information, + # and friendly error handling. + rpc = self._transport._wrapped_methods[self._transport.update] + + # Certain fields should be provided within the metadata header; + # add these here. + metadata = tuple(metadata) + ( + gapic_v1.routing_header.to_grpc_metadata( + ( + ("project", request.project), + ("region", request.region), + ("disk", request.disk), + ) + ), + ) + + # Send the request. + response = rpc( + request, + retry=retry, + timeout=timeout, + metadata=metadata, + ) + + # Done; return the response. + return response + + def update( + self, + request: Optional[Union[compute.UpdateRegionDiskRequest, dict]] = None, + *, + project: Optional[str] = None, + region: Optional[str] = None, + disk: Optional[str] = None, + disk_resource: Optional[compute.Disk] = None, + retry: OptionalRetry = gapic_v1.method.DEFAULT, + timeout: Union[float, object] = gapic_v1.method.DEFAULT, + metadata: Sequence[Tuple[str, str]] = (), + ) -> extended_operation.ExtendedOperation: + r"""Update the specified disk with the data included in the request. + Update is performed only on selected fields included as part of + update-mask. Only the following fields can be modified: + user_license. + + Args: + request (Union[google.cloud.compute_v1.types.UpdateRegionDiskRequest, dict]): + The request object. A request message for + RegionDisks.Update. See the method description for + details. + project (str): + Project ID for this request. + This corresponds to the ``project`` field + on the ``request`` instance; if ``request`` is provided, this + should not be set. + region (str): + The name of the region for this + request. + + This corresponds to the ``region`` field + on the ``request`` instance; if ``request`` is provided, this + should not be set. + disk (str): + The disk name for this request. + This corresponds to the ``disk`` field + on the ``request`` instance; if ``request`` is provided, this + should not be set. + disk_resource (google.cloud.compute_v1.types.Disk): + The body resource for this request + This corresponds to the ``disk_resource`` field + on the ``request`` instance; if ``request`` is provided, this + should not be set. + retry (google.api_core.retry.Retry): Designation of what errors, if any, + should be retried. + timeout (float): The timeout for this request. + metadata (Sequence[Tuple[str, str]]): Strings which should be + sent along with the request as metadata. + + Returns: + google.api_core.extended_operation.ExtendedOperation: + An object representing a extended + long-running operation. + + """ + # Create or coerce a protobuf request object. + # Quick check: If we got a request object, we should *not* have + # gotten any keyword arguments that map to the request. + has_flattened_params = any([project, region, disk, disk_resource]) + if request is not None and has_flattened_params: + raise ValueError( + "If the `request` argument is set, then none of " + "the individual field arguments should be set." + ) + + # Minor optimization to avoid making a copy if the user passes + # in a compute.UpdateRegionDiskRequest. + # There's no risk of modifying the input as we've already verified + # there are no flattened fields. + if not isinstance(request, compute.UpdateRegionDiskRequest): + request = compute.UpdateRegionDiskRequest(request) + # If we have keyword arguments corresponding to fields on the + # request, apply these. + if project is not None: + request.project = project + if region is not None: + request.region = region + if disk is not None: + request.disk = disk + if disk_resource is not None: + request.disk_resource = disk_resource + + # Wrap the RPC method; this adds retry and timeout information, + # and friendly error handling. + rpc = self._transport._wrapped_methods[self._transport.update] + + # Certain fields should be provided within the metadata header; + # add these here. + metadata = tuple(metadata) + ( + gapic_v1.routing_header.to_grpc_metadata( + ( + ("project", request.project), + ("region", request.region), + ("disk", request.disk), + ) + ), + ) + + # Send the request. + response = rpc( + request, + retry=retry, + timeout=timeout, + metadata=metadata, + ) + + operation_service = self._transport._region_operations_client + operation_request = compute.GetRegionOperationRequest() + operation_request.project = request.project + operation_request.region = request.region + operation_request.operation = response.name + + get_operation = functools.partial(operation_service.get, operation_request) + # Cancel is not part of extended operations yet. + cancel_operation = lambda: None + + # Note: this class is an implementation detail to provide a uniform + # set of names for certain fields in the extended operation proto message. + # See google.api_core.extended_operation.ExtendedOperation for details + # on these properties and the expected interface. + class _CustomOperation(extended_operation.ExtendedOperation): + @property + def error_message(self): + return self._extended_operation.http_error_message + + @property + def error_code(self): + return self._extended_operation.http_error_status_code + + response = _CustomOperation.make(get_operation, cancel_operation, response) + + # Done; return the response. + return response + def __enter__(self) -> "RegionDisksClient": return self diff --git a/google/cloud/compute_v1/services/region_disks/transports/base.py b/google/cloud/compute_v1/services/region_disks/transports/base.py index ab3484606..65bd5730d 100644 --- a/google/cloud/compute_v1/services/region_disks/transports/base.py +++ b/google/cloud/compute_v1/services/region_disks/transports/base.py @@ -187,6 +187,11 @@ def _prep_wrapped_messages(self, client_info): default_timeout=None, client_info=client_info, ), + self.update: gapic_v1.method.wrap_method( + self.update, + default_timeout=None, + client_info=client_info, + ), } def close(self): @@ -307,6 +312,15 @@ def test_iam_permissions( ]: raise NotImplementedError() + @property + def update( + self, + ) -> Callable[ + [compute.UpdateRegionDiskRequest], + Union[compute.Operation, Awaitable[compute.Operation]], + ]: + raise NotImplementedError() + @property def kind(self) -> str: raise NotImplementedError() diff --git a/google/cloud/compute_v1/services/region_disks/transports/rest.py b/google/cloud/compute_v1/services/region_disks/transports/rest.py index 0eae50994..9cb1f614a 100644 --- a/google/cloud/compute_v1/services/region_disks/transports/rest.py +++ b/google/cloud/compute_v1/services/region_disks/transports/rest.py @@ -159,6 +159,14 @@ def post_test_iam_permissions(self, response): logging.log(f"Received response: {response}") return response + def pre_update(self, request, metadata): + logging.log(f"Received request: {request}") + return request, metadata + + def post_update(self, response): + logging.log(f"Received response: {response}") + return response + transport = RegionDisksRestTransport(interceptor=MyCustomRegionDisksInterceptor()) client = RegionDisksClient(transport=transport) @@ -423,6 +431,27 @@ def post_test_iam_permissions( """ return response + def pre_update( + self, + request: compute.UpdateRegionDiskRequest, + metadata: Sequence[Tuple[str, str]], + ) -> Tuple[compute.UpdateRegionDiskRequest, Sequence[Tuple[str, str]]]: + """Pre-rpc interceptor for update + + Override in a subclass to manipulate the request or metadata + before they are sent to the RegionDisks server. + """ + return request, metadata + + def post_update(self, response: compute.Operation) -> compute.Operation: + """Post-rpc interceptor for update + + Override in a subclass to manipulate the response + after it is returned by the RegionDisks server but before + it is returned to user code. + """ + return response + @dataclasses.dataclass class RegionDisksRestStub: @@ -1848,6 +1877,117 @@ def __call__( resp = self._interceptor.post_test_iam_permissions(resp) return resp + class _Update(RegionDisksRestStub): + def __hash__(self): + return hash("Update") + + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} + + @classmethod + def _get_unset_required_fields(cls, message_dict): + return { + k: v + for k, v in cls.__REQUIRED_FIELDS_DEFAULT_VALUES.items() + if k not in message_dict + } + + def __call__( + self, + request: compute.UpdateRegionDiskRequest, + *, + retry: OptionalRetry = gapic_v1.method.DEFAULT, + timeout: Optional[float] = None, + metadata: Sequence[Tuple[str, str]] = (), + ) -> compute.Operation: + r"""Call the update method over HTTP. + + Args: + request (~.compute.UpdateRegionDiskRequest): + The request object. A request message for + RegionDisks.Update. See the method + description for details. + + retry (google.api_core.retry.Retry): Designation of what errors, if any, + should be retried. + timeout (float): The timeout for this request. + metadata (Sequence[Tuple[str, str]]): Strings which should be + sent along with the request as metadata. + + Returns: + ~.compute.Operation: + Represents an Operation resource. Google Compute Engine + has three Operation resources: \* + `Global `__ + \* + `Regional `__ + \* + `Zonal `__ + You can use an operation resource to manage asynchronous + API requests. For more information, read Handling API + responses. Operations can be global, regional or zonal. + - For global operations, use the ``globalOperations`` + resource. - For regional operations, use the + ``regionOperations`` resource. - For zonal operations, + use the ``zonalOperations`` resource. For more + information, read Global, Regional, and Zonal Resources. + + """ + + http_options: List[Dict[str, str]] = [ + { + "method": "patch", + "uri": "/compute/v1/projects/{project}/regions/{region}/disks/{disk}", + "body": "disk_resource", + }, + ] + request, metadata = self._interceptor.pre_update(request, metadata) + pb_request = compute.UpdateRegionDiskRequest.pb(request) + transcoded_request = path_template.transcode(http_options, pb_request) + + # Jsonify the request body + + body = json_format.MessageToJson( + transcoded_request["body"], + including_default_value_fields=False, + use_integers_for_enums=False, + ) + uri = transcoded_request["uri"] + method = transcoded_request["method"] + + # Jsonify the query params + query_params = json.loads( + json_format.MessageToJson( + transcoded_request["query_params"], + including_default_value_fields=False, + use_integers_for_enums=False, + ) + ) + query_params.update(self._get_unset_required_fields(query_params)) + + # Send the request + headers = dict(metadata) + headers["Content-Type"] = "application/json" + response = getattr(self._session, method)( + "{host}{uri}".format(host=self._host, uri=uri), + timeout=timeout, + headers=headers, + params=rest_helpers.flatten_query_params(query_params, strict=True), + data=body, + ) + + # In case of error, raise the appropriate core_exceptions.GoogleAPICallError exception + # subclass. + if response.status_code >= 400: + raise core_exceptions.from_http_response(response) + + # Return the response + resp = compute.Operation() + pb_resp = compute.Operation.pb(resp) + + json_format.Parse(response.content, pb_resp, ignore_unknown_fields=True) + resp = self._interceptor.post_update(resp) + return resp + @property def add_resource_policies( self, @@ -1936,6 +2076,12 @@ def test_iam_permissions( # In C++ this would require a dynamic_cast return self._TestIamPermissions(self._session, self._host, self._interceptor) # type: ignore + @property + def update(self) -> Callable[[compute.UpdateRegionDiskRequest], compute.Operation]: + # The return type is fine, but mypy isn't sophisticated enough to determine what's going on here. + # In C++ this would require a dynamic_cast + return self._Update(self._session, self._host, self._interceptor) # type: ignore + @property def kind(self) -> str: return "rest" diff --git a/google/cloud/compute_v1/services/region_health_checks/client.py b/google/cloud/compute_v1/services/region_health_checks/client.py index 3619bc228..2bca07907 100644 --- a/google/cloud/compute_v1/services/region_health_checks/client.py +++ b/google/cloud/compute_v1/services/region_health_checks/client.py @@ -661,9 +661,7 @@ def get( timeout: Union[float, object] = gapic_v1.method.DEFAULT, metadata: Sequence[Tuple[str, str]] = (), ) -> compute.HealthCheck: - r"""Returns the specified HealthCheck resource. Gets a - list of available health checks by making a list() - request. + r"""Returns the specified HealthCheck resource. Args: request (Union[google.cloud.compute_v1.types.GetRegionHealthCheckRequest, dict]): diff --git a/google/cloud/compute_v1/services/region_instance_templates/__init__.py b/google/cloud/compute_v1/services/region_instance_templates/__init__.py new file mode 100644 index 000000000..31937b910 --- /dev/null +++ b/google/cloud/compute_v1/services/region_instance_templates/__init__.py @@ -0,0 +1,18 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +from .client import RegionInstanceTemplatesClient + +__all__ = ("RegionInstanceTemplatesClient",) diff --git a/google/cloud/compute_v1/services/region_instance_templates/client.py b/google/cloud/compute_v1/services/region_instance_templates/client.py new file mode 100644 index 000000000..96c328fa2 --- /dev/null +++ b/google/cloud/compute_v1/services/region_instance_templates/client.py @@ -0,0 +1,1113 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +from collections import OrderedDict +import functools +import os +import re +from typing import ( + Dict, + Mapping, + MutableMapping, + MutableSequence, + Optional, + Sequence, + Tuple, + Type, + Union, + cast, +) + +from google.api_core import client_options as client_options_lib +from google.api_core import exceptions as core_exceptions +from google.api_core import extended_operation, gapic_v1 +from google.api_core import retry as retries +from google.auth import credentials as ga_credentials # type: ignore +from google.auth.exceptions import MutualTLSChannelError # type: ignore +from google.auth.transport import mtls # type: ignore +from google.auth.transport.grpc import SslCredentials # type: ignore +from google.oauth2 import service_account # type: ignore + +from google.cloud.compute_v1 import gapic_version as package_version + +try: + OptionalRetry = Union[retries.Retry, gapic_v1.method._MethodDefault] +except AttributeError: # pragma: NO COVER + OptionalRetry = Union[retries.Retry, object] # type: ignore + +from google.api_core import extended_operation # type: ignore + +from google.cloud.compute_v1.services.region_instance_templates import pagers +from google.cloud.compute_v1.types import compute + +from .transports.base import DEFAULT_CLIENT_INFO, RegionInstanceTemplatesTransport +from .transports.rest import RegionInstanceTemplatesRestTransport + + +class RegionInstanceTemplatesClientMeta(type): + """Metaclass for the RegionInstanceTemplates client. + + This provides class-level methods for building and retrieving + support objects (e.g. transport) without polluting the client instance + objects. + """ + + _transport_registry = ( + OrderedDict() + ) # type: Dict[str, Type[RegionInstanceTemplatesTransport]] + _transport_registry["rest"] = RegionInstanceTemplatesRestTransport + + def get_transport_class( + cls, + label: Optional[str] = None, + ) -> Type[RegionInstanceTemplatesTransport]: + """Returns an appropriate transport class. + + Args: + label: The name of the desired transport. If none is + provided, then the first transport in the registry is used. + + Returns: + The transport class to use. + """ + # If a specific transport is requested, return that one. + if label: + return cls._transport_registry[label] + + # No transport is requested; return the default (that is, the first one + # in the dictionary). + return next(iter(cls._transport_registry.values())) + + +class RegionInstanceTemplatesClient(metaclass=RegionInstanceTemplatesClientMeta): + """The RegionInstanceTemplates API.""" + + @staticmethod + def _get_default_mtls_endpoint(api_endpoint): + """Converts api endpoint to mTLS endpoint. + + Convert "*.sandbox.googleapis.com" and "*.googleapis.com" to + "*.mtls.sandbox.googleapis.com" and "*.mtls.googleapis.com" respectively. + Args: + api_endpoint (Optional[str]): the api endpoint to convert. + Returns: + str: converted mTLS api endpoint. + """ + if not api_endpoint: + return api_endpoint + + mtls_endpoint_re = re.compile( + r"(?P[^.]+)(?P\.mtls)?(?P\.sandbox)?(?P\.googleapis\.com)?" + ) + + m = mtls_endpoint_re.match(api_endpoint) + name, mtls, sandbox, googledomain = m.groups() + if mtls or not googledomain: + return api_endpoint + + if sandbox: + return api_endpoint.replace( + "sandbox.googleapis.com", "mtls.sandbox.googleapis.com" + ) + + return api_endpoint.replace(".googleapis.com", ".mtls.googleapis.com") + + DEFAULT_ENDPOINT = "compute.googleapis.com" + DEFAULT_MTLS_ENDPOINT = _get_default_mtls_endpoint.__func__( # type: ignore + DEFAULT_ENDPOINT + ) + + @classmethod + def from_service_account_info(cls, info: dict, *args, **kwargs): + """Creates an instance of this client using the provided credentials + info. + + Args: + info (dict): The service account private key info. + args: Additional arguments to pass to the constructor. + kwargs: Additional arguments to pass to the constructor. + + Returns: + RegionInstanceTemplatesClient: The constructed client. + """ + credentials = service_account.Credentials.from_service_account_info(info) + kwargs["credentials"] = credentials + return cls(*args, **kwargs) + + @classmethod + def from_service_account_file(cls, filename: str, *args, **kwargs): + """Creates an instance of this client using the provided credentials + file. + + Args: + filename (str): The path to the service account private key json + file. + args: Additional arguments to pass to the constructor. + kwargs: Additional arguments to pass to the constructor. + + Returns: + RegionInstanceTemplatesClient: The constructed client. + """ + credentials = service_account.Credentials.from_service_account_file(filename) + kwargs["credentials"] = credentials + return cls(*args, **kwargs) + + from_service_account_json = from_service_account_file + + @property + def transport(self) -> RegionInstanceTemplatesTransport: + """Returns the transport used by the client instance. + + Returns: + RegionInstanceTemplatesTransport: The transport used by the client + instance. + """ + return self._transport + + @staticmethod + def common_billing_account_path( + billing_account: str, + ) -> str: + """Returns a fully-qualified billing_account string.""" + return "billingAccounts/{billing_account}".format( + billing_account=billing_account, + ) + + @staticmethod + def parse_common_billing_account_path(path: str) -> Dict[str, str]: + """Parse a billing_account path into its component segments.""" + m = re.match(r"^billingAccounts/(?P.+?)$", path) + return m.groupdict() if m else {} + + @staticmethod + def common_folder_path( + folder: str, + ) -> str: + """Returns a fully-qualified folder string.""" + return "folders/{folder}".format( + folder=folder, + ) + + @staticmethod + def parse_common_folder_path(path: str) -> Dict[str, str]: + """Parse a folder path into its component segments.""" + m = re.match(r"^folders/(?P.+?)$", path) + return m.groupdict() if m else {} + + @staticmethod + def common_organization_path( + organization: str, + ) -> str: + """Returns a fully-qualified organization string.""" + return "organizations/{organization}".format( + organization=organization, + ) + + @staticmethod + def parse_common_organization_path(path: str) -> Dict[str, str]: + """Parse a organization path into its component segments.""" + m = re.match(r"^organizations/(?P.+?)$", path) + return m.groupdict() if m else {} + + @staticmethod + def common_project_path( + project: str, + ) -> str: + """Returns a fully-qualified project string.""" + return "projects/{project}".format( + project=project, + ) + + @staticmethod + def parse_common_project_path(path: str) -> Dict[str, str]: + """Parse a project path into its component segments.""" + m = re.match(r"^projects/(?P.+?)$", path) + return m.groupdict() if m else {} + + @staticmethod + def common_location_path( + project: str, + location: str, + ) -> str: + """Returns a fully-qualified location string.""" + return "projects/{project}/locations/{location}".format( + project=project, + location=location, + ) + + @staticmethod + def parse_common_location_path(path: str) -> Dict[str, str]: + """Parse a location path into its component segments.""" + m = re.match(r"^projects/(?P.+?)/locations/(?P.+?)$", path) + return m.groupdict() if m else {} + + @classmethod + def get_mtls_endpoint_and_cert_source( + cls, client_options: Optional[client_options_lib.ClientOptions] = None + ): + """Return the API endpoint and client cert source for mutual TLS. + + The client cert source is determined in the following order: + (1) if `GOOGLE_API_USE_CLIENT_CERTIFICATE` environment variable is not "true", the + client cert source is None. + (2) if `client_options.client_cert_source` is provided, use the provided one; if the + default client cert source exists, use the default one; otherwise the client cert + source is None. + + The API endpoint is determined in the following order: + (1) if `client_options.api_endpoint` if provided, use the provided one. + (2) if `GOOGLE_API_USE_CLIENT_CERTIFICATE` environment variable is "always", use the + default mTLS endpoint; if the environment variable is "never", use the default API + endpoint; otherwise if client cert source exists, use the default mTLS endpoint, otherwise + use the default API endpoint. + + More details can be found at https://google.aip.dev/auth/4114. + + Args: + client_options (google.api_core.client_options.ClientOptions): Custom options for the + client. Only the `api_endpoint` and `client_cert_source` properties may be used + in this method. + + Returns: + Tuple[str, Callable[[], Tuple[bytes, bytes]]]: returns the API endpoint and the + client cert source to use. + + Raises: + google.auth.exceptions.MutualTLSChannelError: If any errors happen. + """ + if client_options is None: + client_options = client_options_lib.ClientOptions() + use_client_cert = os.getenv("GOOGLE_API_USE_CLIENT_CERTIFICATE", "false") + use_mtls_endpoint = os.getenv("GOOGLE_API_USE_MTLS_ENDPOINT", "auto") + if use_client_cert not in ("true", "false"): + raise ValueError( + "Environment variable `GOOGLE_API_USE_CLIENT_CERTIFICATE` must be either `true` or `false`" + ) + if use_mtls_endpoint not in ("auto", "never", "always"): + raise MutualTLSChannelError( + "Environment variable `GOOGLE_API_USE_MTLS_ENDPOINT` must be `never`, `auto` or `always`" + ) + + # Figure out the client cert source to use. + client_cert_source = None + if use_client_cert == "true": + if client_options.client_cert_source: + client_cert_source = client_options.client_cert_source + elif mtls.has_default_client_cert_source(): + client_cert_source = mtls.default_client_cert_source() + + # Figure out which api endpoint to use. + if client_options.api_endpoint is not None: + api_endpoint = client_options.api_endpoint + elif use_mtls_endpoint == "always" or ( + use_mtls_endpoint == "auto" and client_cert_source + ): + api_endpoint = cls.DEFAULT_MTLS_ENDPOINT + else: + api_endpoint = cls.DEFAULT_ENDPOINT + + return api_endpoint, client_cert_source + + def __init__( + self, + *, + credentials: Optional[ga_credentials.Credentials] = None, + transport: Optional[Union[str, RegionInstanceTemplatesTransport]] = None, + client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + client_info: gapic_v1.client_info.ClientInfo = DEFAULT_CLIENT_INFO, + ) -> None: + """Instantiates the region instance templates client. + + Args: + credentials (Optional[google.auth.credentials.Credentials]): The + authorization credentials to attach to requests. These + credentials identify the application to the service; if none + are specified, the client will attempt to ascertain the + credentials from the environment. + transport (Union[str, RegionInstanceTemplatesTransport]): The + transport to use. If set to None, a transport is chosen + automatically. + NOTE: "rest" transport functionality is currently in a + beta state (preview). We welcome your feedback via an + issue in this library's source repository. + client_options (Optional[Union[google.api_core.client_options.ClientOptions, dict]]): Custom options for the + client. It won't take effect if a ``transport`` instance is provided. + (1) The ``api_endpoint`` property can be used to override the + default endpoint provided by the client. GOOGLE_API_USE_MTLS_ENDPOINT + environment variable can also be used to override the endpoint: + "always" (always use the default mTLS endpoint), "never" (always + use the default regular endpoint) and "auto" (auto switch to the + default mTLS endpoint if client certificate is present, this is + the default value). However, the ``api_endpoint`` property takes + precedence if provided. + (2) If GOOGLE_API_USE_CLIENT_CERTIFICATE environment variable + is "true", then the ``client_cert_source`` property can be used + to provide client certificate for mutual TLS transport. If + not provided, the default SSL client certificate will be used if + present. If GOOGLE_API_USE_CLIENT_CERTIFICATE is "false" or not + set, no client certificate will be used. + client_info (google.api_core.gapic_v1.client_info.ClientInfo): + The client info used to send a user-agent string along with + API requests. If ``None``, then default info will be used. + Generally, you only need to set this if you're developing + your own client library. + + Raises: + google.auth.exceptions.MutualTLSChannelError: If mutual TLS transport + creation failed for any reason. + """ + if isinstance(client_options, dict): + client_options = client_options_lib.from_dict(client_options) + if client_options is None: + client_options = client_options_lib.ClientOptions() + client_options = cast(client_options_lib.ClientOptions, client_options) + + api_endpoint, client_cert_source_func = self.get_mtls_endpoint_and_cert_source( + client_options + ) + + api_key_value = getattr(client_options, "api_key", None) + if api_key_value and credentials: + raise ValueError( + "client_options.api_key and credentials are mutually exclusive" + ) + + # Save or instantiate the transport. + # Ordinarily, we provide the transport, but allowing a custom transport + # instance provides an extensibility point for unusual situations. + if isinstance(transport, RegionInstanceTemplatesTransport): + # transport is a RegionInstanceTemplatesTransport instance. + if credentials or client_options.credentials_file or api_key_value: + raise ValueError( + "When providing a transport instance, " + "provide its credentials directly." + ) + if client_options.scopes: + raise ValueError( + "When providing a transport instance, provide its scopes " + "directly." + ) + self._transport = transport + else: + import google.auth._default # type: ignore + + if api_key_value and hasattr( + google.auth._default, "get_api_key_credentials" + ): + credentials = google.auth._default.get_api_key_credentials( + api_key_value + ) + + Transport = type(self).get_transport_class(transport) + self._transport = Transport( + credentials=credentials, + credentials_file=client_options.credentials_file, + host=api_endpoint, + scopes=client_options.scopes, + client_cert_source_for_mtls=client_cert_source_func, + quota_project_id=client_options.quota_project_id, + client_info=client_info, + always_use_jwt_access=True, + api_audience=client_options.api_audience, + ) + + def delete_unary( + self, + request: Optional[ + Union[compute.DeleteRegionInstanceTemplateRequest, dict] + ] = None, + *, + project: Optional[str] = None, + region: Optional[str] = None, + instance_template: Optional[str] = None, + retry: OptionalRetry = gapic_v1.method.DEFAULT, + timeout: Union[float, object] = gapic_v1.method.DEFAULT, + metadata: Sequence[Tuple[str, str]] = (), + ) -> compute.Operation: + r"""Deletes the specified instance template. Deleting an + instance template is permanent and cannot be undone. + + Args: + request (Union[google.cloud.compute_v1.types.DeleteRegionInstanceTemplateRequest, dict]): + The request object. A request message for + RegionInstanceTemplates.Delete. See the method + description for details. + project (str): + Project ID for this request. + This corresponds to the ``project`` field + on the ``request`` instance; if ``request`` is provided, this + should not be set. + region (str): + The name of the region for this + request. + + This corresponds to the ``region`` field + on the ``request`` instance; if ``request`` is provided, this + should not be set. + instance_template (str): + The name of the instance template to + delete. + + This corresponds to the ``instance_template`` field + on the ``request`` instance; if ``request`` is provided, this + should not be set. + retry (google.api_core.retry.Retry): Designation of what errors, if any, + should be retried. + timeout (float): The timeout for this request. + metadata (Sequence[Tuple[str, str]]): Strings which should be + sent along with the request as metadata. + + Returns: + google.api_core.extended_operation.ExtendedOperation: + An object representing a extended + long-running operation. + + """ + # Create or coerce a protobuf request object. + # Quick check: If we got a request object, we should *not* have + # gotten any keyword arguments that map to the request. + has_flattened_params = any([project, region, instance_template]) + if request is not None and has_flattened_params: + raise ValueError( + "If the `request` argument is set, then none of " + "the individual field arguments should be set." + ) + + # Minor optimization to avoid making a copy if the user passes + # in a compute.DeleteRegionInstanceTemplateRequest. + # There's no risk of modifying the input as we've already verified + # there are no flattened fields. + if not isinstance(request, compute.DeleteRegionInstanceTemplateRequest): + request = compute.DeleteRegionInstanceTemplateRequest(request) + # If we have keyword arguments corresponding to fields on the + # request, apply these. + if project is not None: + request.project = project + if region is not None: + request.region = region + if instance_template is not None: + request.instance_template = instance_template + + # Wrap the RPC method; this adds retry and timeout information, + # and friendly error handling. + rpc = self._transport._wrapped_methods[self._transport.delete] + + # Certain fields should be provided within the metadata header; + # add these here. + metadata = tuple(metadata) + ( + gapic_v1.routing_header.to_grpc_metadata( + ( + ("project", request.project), + ("region", request.region), + ("instance_template", request.instance_template), + ) + ), + ) + + # Send the request. + response = rpc( + request, + retry=retry, + timeout=timeout, + metadata=metadata, + ) + + # Done; return the response. + return response + + def delete( + self, + request: Optional[ + Union[compute.DeleteRegionInstanceTemplateRequest, dict] + ] = None, + *, + project: Optional[str] = None, + region: Optional[str] = None, + instance_template: Optional[str] = None, + retry: OptionalRetry = gapic_v1.method.DEFAULT, + timeout: Union[float, object] = gapic_v1.method.DEFAULT, + metadata: Sequence[Tuple[str, str]] = (), + ) -> extended_operation.ExtendedOperation: + r"""Deletes the specified instance template. Deleting an + instance template is permanent and cannot be undone. + + Args: + request (Union[google.cloud.compute_v1.types.DeleteRegionInstanceTemplateRequest, dict]): + The request object. A request message for + RegionInstanceTemplates.Delete. See the method + description for details. + project (str): + Project ID for this request. + This corresponds to the ``project`` field + on the ``request`` instance; if ``request`` is provided, this + should not be set. + region (str): + The name of the region for this + request. + + This corresponds to the ``region`` field + on the ``request`` instance; if ``request`` is provided, this + should not be set. + instance_template (str): + The name of the instance template to + delete. + + This corresponds to the ``instance_template`` field + on the ``request`` instance; if ``request`` is provided, this + should not be set. + retry (google.api_core.retry.Retry): Designation of what errors, if any, + should be retried. + timeout (float): The timeout for this request. + metadata (Sequence[Tuple[str, str]]): Strings which should be + sent along with the request as metadata. + + Returns: + google.api_core.extended_operation.ExtendedOperation: + An object representing a extended + long-running operation. + + """ + # Create or coerce a protobuf request object. + # Quick check: If we got a request object, we should *not* have + # gotten any keyword arguments that map to the request. + has_flattened_params = any([project, region, instance_template]) + if request is not None and has_flattened_params: + raise ValueError( + "If the `request` argument is set, then none of " + "the individual field arguments should be set." + ) + + # Minor optimization to avoid making a copy if the user passes + # in a compute.DeleteRegionInstanceTemplateRequest. + # There's no risk of modifying the input as we've already verified + # there are no flattened fields. + if not isinstance(request, compute.DeleteRegionInstanceTemplateRequest): + request = compute.DeleteRegionInstanceTemplateRequest(request) + # If we have keyword arguments corresponding to fields on the + # request, apply these. + if project is not None: + request.project = project + if region is not None: + request.region = region + if instance_template is not None: + request.instance_template = instance_template + + # Wrap the RPC method; this adds retry and timeout information, + # and friendly error handling. + rpc = self._transport._wrapped_methods[self._transport.delete] + + # Certain fields should be provided within the metadata header; + # add these here. + metadata = tuple(metadata) + ( + gapic_v1.routing_header.to_grpc_metadata( + ( + ("project", request.project), + ("region", request.region), + ("instance_template", request.instance_template), + ) + ), + ) + + # Send the request. + response = rpc( + request, + retry=retry, + timeout=timeout, + metadata=metadata, + ) + + operation_service = self._transport._region_operations_client + operation_request = compute.GetRegionOperationRequest() + operation_request.project = request.project + operation_request.region = request.region + operation_request.operation = response.name + + get_operation = functools.partial(operation_service.get, operation_request) + # Cancel is not part of extended operations yet. + cancel_operation = lambda: None + + # Note: this class is an implementation detail to provide a uniform + # set of names for certain fields in the extended operation proto message. + # See google.api_core.extended_operation.ExtendedOperation for details + # on these properties and the expected interface. + class _CustomOperation(extended_operation.ExtendedOperation): + @property + def error_message(self): + return self._extended_operation.http_error_message + + @property + def error_code(self): + return self._extended_operation.http_error_status_code + + response = _CustomOperation.make(get_operation, cancel_operation, response) + + # Done; return the response. + return response + + def get( + self, + request: Optional[Union[compute.GetRegionInstanceTemplateRequest, dict]] = None, + *, + project: Optional[str] = None, + region: Optional[str] = None, + instance_template: Optional[str] = None, + retry: OptionalRetry = gapic_v1.method.DEFAULT, + timeout: Union[float, object] = gapic_v1.method.DEFAULT, + metadata: Sequence[Tuple[str, str]] = (), + ) -> compute.InstanceTemplate: + r"""Returns the specified instance template. + + Args: + request (Union[google.cloud.compute_v1.types.GetRegionInstanceTemplateRequest, dict]): + The request object. A request message for + RegionInstanceTemplates.Get. See the method description + for details. + project (str): + Project ID for this request. + This corresponds to the ``project`` field + on the ``request`` instance; if ``request`` is provided, this + should not be set. + region (str): + The name of the region for this + request. + + This corresponds to the ``region`` field + on the ``request`` instance; if ``request`` is provided, this + should not be set. + instance_template (str): + The name of the instance template. + This corresponds to the ``instance_template`` field + on the ``request`` instance; if ``request`` is provided, this + should not be set. + retry (google.api_core.retry.Retry): Designation of what errors, if any, + should be retried. + timeout (float): The timeout for this request. + metadata (Sequence[Tuple[str, str]]): Strings which should be + sent along with the request as metadata. + + Returns: + google.cloud.compute_v1.types.InstanceTemplate: + Represents an Instance Template + resource. You can use instance templates + to create VM instances and managed + instance groups. For more information, + read Instance Templates. + + """ + # Create or coerce a protobuf request object. + # Quick check: If we got a request object, we should *not* have + # gotten any keyword arguments that map to the request. + has_flattened_params = any([project, region, instance_template]) + if request is not None and has_flattened_params: + raise ValueError( + "If the `request` argument is set, then none of " + "the individual field arguments should be set." + ) + + # Minor optimization to avoid making a copy if the user passes + # in a compute.GetRegionInstanceTemplateRequest. + # There's no risk of modifying the input as we've already verified + # there are no flattened fields. + if not isinstance(request, compute.GetRegionInstanceTemplateRequest): + request = compute.GetRegionInstanceTemplateRequest(request) + # If we have keyword arguments corresponding to fields on the + # request, apply these. + if project is not None: + request.project = project + if region is not None: + request.region = region + if instance_template is not None: + request.instance_template = instance_template + + # Wrap the RPC method; this adds retry and timeout information, + # and friendly error handling. + rpc = self._transport._wrapped_methods[self._transport.get] + + # Certain fields should be provided within the metadata header; + # add these here. + metadata = tuple(metadata) + ( + gapic_v1.routing_header.to_grpc_metadata( + ( + ("project", request.project), + ("region", request.region), + ("instance_template", request.instance_template), + ) + ), + ) + + # Send the request. + response = rpc( + request, + retry=retry, + timeout=timeout, + metadata=metadata, + ) + + # Done; return the response. + return response + + def insert_unary( + self, + request: Optional[ + Union[compute.InsertRegionInstanceTemplateRequest, dict] + ] = None, + *, + project: Optional[str] = None, + region: Optional[str] = None, + instance_template_resource: Optional[compute.InstanceTemplate] = None, + retry: OptionalRetry = gapic_v1.method.DEFAULT, + timeout: Union[float, object] = gapic_v1.method.DEFAULT, + metadata: Sequence[Tuple[str, str]] = (), + ) -> compute.Operation: + r"""Creates an instance template in the specified project + and region using the global instance template whose URL + is included in the request. + + Args: + request (Union[google.cloud.compute_v1.types.InsertRegionInstanceTemplateRequest, dict]): + The request object. A request message for + RegionInstanceTemplates.Insert. See the method + description for details. + project (str): + Project ID for this request. + This corresponds to the ``project`` field + on the ``request`` instance; if ``request`` is provided, this + should not be set. + region (str): + The name of the region for this + request. + + This corresponds to the ``region`` field + on the ``request`` instance; if ``request`` is provided, this + should not be set. + instance_template_resource (google.cloud.compute_v1.types.InstanceTemplate): + The body resource for this request + This corresponds to the ``instance_template_resource`` field + on the ``request`` instance; if ``request`` is provided, this + should not be set. + retry (google.api_core.retry.Retry): Designation of what errors, if any, + should be retried. + timeout (float): The timeout for this request. + metadata (Sequence[Tuple[str, str]]): Strings which should be + sent along with the request as metadata. + + Returns: + google.api_core.extended_operation.ExtendedOperation: + An object representing a extended + long-running operation. + + """ + # Create or coerce a protobuf request object. + # Quick check: If we got a request object, we should *not* have + # gotten any keyword arguments that map to the request. + has_flattened_params = any([project, region, instance_template_resource]) + if request is not None and has_flattened_params: + raise ValueError( + "If the `request` argument is set, then none of " + "the individual field arguments should be set." + ) + + # Minor optimization to avoid making a copy if the user passes + # in a compute.InsertRegionInstanceTemplateRequest. + # There's no risk of modifying the input as we've already verified + # there are no flattened fields. + if not isinstance(request, compute.InsertRegionInstanceTemplateRequest): + request = compute.InsertRegionInstanceTemplateRequest(request) + # If we have keyword arguments corresponding to fields on the + # request, apply these. + if project is not None: + request.project = project + if region is not None: + request.region = region + if instance_template_resource is not None: + request.instance_template_resource = instance_template_resource + + # Wrap the RPC method; this adds retry and timeout information, + # and friendly error handling. + rpc = self._transport._wrapped_methods[self._transport.insert] + + # Certain fields should be provided within the metadata header; + # add these here. + metadata = tuple(metadata) + ( + gapic_v1.routing_header.to_grpc_metadata( + ( + ("project", request.project), + ("region", request.region), + ) + ), + ) + + # Send the request. + response = rpc( + request, + retry=retry, + timeout=timeout, + metadata=metadata, + ) + + # Done; return the response. + return response + + def insert( + self, + request: Optional[ + Union[compute.InsertRegionInstanceTemplateRequest, dict] + ] = None, + *, + project: Optional[str] = None, + region: Optional[str] = None, + instance_template_resource: Optional[compute.InstanceTemplate] = None, + retry: OptionalRetry = gapic_v1.method.DEFAULT, + timeout: Union[float, object] = gapic_v1.method.DEFAULT, + metadata: Sequence[Tuple[str, str]] = (), + ) -> extended_operation.ExtendedOperation: + r"""Creates an instance template in the specified project + and region using the global instance template whose URL + is included in the request. + + Args: + request (Union[google.cloud.compute_v1.types.InsertRegionInstanceTemplateRequest, dict]): + The request object. A request message for + RegionInstanceTemplates.Insert. See the method + description for details. + project (str): + Project ID for this request. + This corresponds to the ``project`` field + on the ``request`` instance; if ``request`` is provided, this + should not be set. + region (str): + The name of the region for this + request. + + This corresponds to the ``region`` field + on the ``request`` instance; if ``request`` is provided, this + should not be set. + instance_template_resource (google.cloud.compute_v1.types.InstanceTemplate): + The body resource for this request + This corresponds to the ``instance_template_resource`` field + on the ``request`` instance; if ``request`` is provided, this + should not be set. + retry (google.api_core.retry.Retry): Designation of what errors, if any, + should be retried. + timeout (float): The timeout for this request. + metadata (Sequence[Tuple[str, str]]): Strings which should be + sent along with the request as metadata. + + Returns: + google.api_core.extended_operation.ExtendedOperation: + An object representing a extended + long-running operation. + + """ + # Create or coerce a protobuf request object. + # Quick check: If we got a request object, we should *not* have + # gotten any keyword arguments that map to the request. + has_flattened_params = any([project, region, instance_template_resource]) + if request is not None and has_flattened_params: + raise ValueError( + "If the `request` argument is set, then none of " + "the individual field arguments should be set." + ) + + # Minor optimization to avoid making a copy if the user passes + # in a compute.InsertRegionInstanceTemplateRequest. + # There's no risk of modifying the input as we've already verified + # there are no flattened fields. + if not isinstance(request, compute.InsertRegionInstanceTemplateRequest): + request = compute.InsertRegionInstanceTemplateRequest(request) + # If we have keyword arguments corresponding to fields on the + # request, apply these. + if project is not None: + request.project = project + if region is not None: + request.region = region + if instance_template_resource is not None: + request.instance_template_resource = instance_template_resource + + # Wrap the RPC method; this adds retry and timeout information, + # and friendly error handling. + rpc = self._transport._wrapped_methods[self._transport.insert] + + # Certain fields should be provided within the metadata header; + # add these here. + metadata = tuple(metadata) + ( + gapic_v1.routing_header.to_grpc_metadata( + ( + ("project", request.project), + ("region", request.region), + ) + ), + ) + + # Send the request. + response = rpc( + request, + retry=retry, + timeout=timeout, + metadata=metadata, + ) + + operation_service = self._transport._region_operations_client + operation_request = compute.GetRegionOperationRequest() + operation_request.project = request.project + operation_request.region = request.region + operation_request.operation = response.name + + get_operation = functools.partial(operation_service.get, operation_request) + # Cancel is not part of extended operations yet. + cancel_operation = lambda: None + + # Note: this class is an implementation detail to provide a uniform + # set of names for certain fields in the extended operation proto message. + # See google.api_core.extended_operation.ExtendedOperation for details + # on these properties and the expected interface. + class _CustomOperation(extended_operation.ExtendedOperation): + @property + def error_message(self): + return self._extended_operation.http_error_message + + @property + def error_code(self): + return self._extended_operation.http_error_status_code + + response = _CustomOperation.make(get_operation, cancel_operation, response) + + # Done; return the response. + return response + + def list( + self, + request: Optional[ + Union[compute.ListRegionInstanceTemplatesRequest, dict] + ] = None, + *, + project: Optional[str] = None, + region: Optional[str] = None, + retry: OptionalRetry = gapic_v1.method.DEFAULT, + timeout: Union[float, object] = gapic_v1.method.DEFAULT, + metadata: Sequence[Tuple[str, str]] = (), + ) -> pagers.ListPager: + r"""Retrieves a list of instance templates that are + contained within the specified project and region. + + Args: + request (Union[google.cloud.compute_v1.types.ListRegionInstanceTemplatesRequest, dict]): + The request object. A request message for + RegionInstanceTemplates.List. See the method description + for details. + project (str): + Project ID for this request. + This corresponds to the ``project`` field + on the ``request`` instance; if ``request`` is provided, this + should not be set. + region (str): + The name of the regions for this + request. + + This corresponds to the ``region`` field + on the ``request`` instance; if ``request`` is provided, this + should not be set. + retry (google.api_core.retry.Retry): Designation of what errors, if any, + should be retried. + timeout (float): The timeout for this request. + metadata (Sequence[Tuple[str, str]]): Strings which should be + sent along with the request as metadata. + + Returns: + google.cloud.compute_v1.services.region_instance_templates.pagers.ListPager: + A list of instance templates. + Iterating over this object will yield + results and resolve additional pages + automatically. + + """ + # Create or coerce a protobuf request object. + # Quick check: If we got a request object, we should *not* have + # gotten any keyword arguments that map to the request. + has_flattened_params = any([project, region]) + if request is not None and has_flattened_params: + raise ValueError( + "If the `request` argument is set, then none of " + "the individual field arguments should be set." + ) + + # Minor optimization to avoid making a copy if the user passes + # in a compute.ListRegionInstanceTemplatesRequest. + # There's no risk of modifying the input as we've already verified + # there are no flattened fields. + if not isinstance(request, compute.ListRegionInstanceTemplatesRequest): + request = compute.ListRegionInstanceTemplatesRequest(request) + # If we have keyword arguments corresponding to fields on the + # request, apply these. + if project is not None: + request.project = project + if region is not None: + request.region = region + + # Wrap the RPC method; this adds retry and timeout information, + # and friendly error handling. + rpc = self._transport._wrapped_methods[self._transport.list] + + # Certain fields should be provided within the metadata header; + # add these here. + metadata = tuple(metadata) + ( + gapic_v1.routing_header.to_grpc_metadata( + ( + ("project", request.project), + ("region", request.region), + ) + ), + ) + + # Send the request. + response = rpc( + request, + retry=retry, + timeout=timeout, + metadata=metadata, + ) + + # This method is paged; wrap the response in a pager, which provides + # an `__iter__` convenience method. + response = pagers.ListPager( + method=rpc, + request=request, + response=response, + metadata=metadata, + ) + + # Done; return the response. + return response + + def __enter__(self) -> "RegionInstanceTemplatesClient": + return self + + def __exit__(self, type, value, traceback): + """Releases underlying transport's resources. + + .. warning:: + ONLY use as a context manager if the transport is NOT shared + with other clients! Exiting the with block will CLOSE the transport + and may cause errors in other clients! + """ + self.transport.close() + + +DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo( + gapic_version=package_version.__version__ +) + + +__all__ = ("RegionInstanceTemplatesClient",) diff --git a/google/cloud/compute_v1/services/region_instance_templates/pagers.py b/google/cloud/compute_v1/services/region_instance_templates/pagers.py new file mode 100644 index 000000000..73180e26e --- /dev/null +++ b/google/cloud/compute_v1/services/region_instance_templates/pagers.py @@ -0,0 +1,89 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +from typing import ( + Any, + AsyncIterator, + Awaitable, + Callable, + Iterator, + Optional, + Sequence, + Tuple, +) + +from google.cloud.compute_v1.types import compute + + +class ListPager: + """A pager for iterating through ``list`` requests. + + This class thinly wraps an initial + :class:`google.cloud.compute_v1.types.InstanceTemplateList` object, and + provides an ``__iter__`` method to iterate through its + ``items`` field. + + If there are more pages, the ``__iter__`` method will make additional + ``List`` requests and continue to iterate + through the ``items`` field on the + corresponding responses. + + All the usual :class:`google.cloud.compute_v1.types.InstanceTemplateList` + attributes are available on the pager. If multiple requests are made, only + the most recent response is retained, and thus used for attribute lookup. + """ + + def __init__( + self, + method: Callable[..., compute.InstanceTemplateList], + request: compute.ListRegionInstanceTemplatesRequest, + response: compute.InstanceTemplateList, + *, + metadata: Sequence[Tuple[str, str]] = () + ): + """Instantiate the pager. + + Args: + method (Callable): The method that was originally called, and + which instantiated this pager. + request (google.cloud.compute_v1.types.ListRegionInstanceTemplatesRequest): + The initial request object. + response (google.cloud.compute_v1.types.InstanceTemplateList): + The initial response object. + metadata (Sequence[Tuple[str, str]]): Strings which should be + sent along with the request as metadata. + """ + self._method = method + self._request = compute.ListRegionInstanceTemplatesRequest(request) + self._response = response + self._metadata = metadata + + def __getattr__(self, name: str) -> Any: + return getattr(self._response, name) + + @property + def pages(self) -> Iterator[compute.InstanceTemplateList]: + yield self._response + while self._response.next_page_token: + self._request.page_token = self._response.next_page_token + self._response = self._method(self._request, metadata=self._metadata) + yield self._response + + def __iter__(self) -> Iterator[compute.InstanceTemplate]: + for page in self.pages: + yield from page.items + + def __repr__(self) -> str: + return "{0}<{1!r}>".format(self.__class__.__name__, self._response) diff --git a/google/cloud/compute_v1/services/region_instance_templates/transports/__init__.py b/google/cloud/compute_v1/services/region_instance_templates/transports/__init__.py new file mode 100644 index 000000000..819f6b751 --- /dev/null +++ b/google/cloud/compute_v1/services/region_instance_templates/transports/__init__.py @@ -0,0 +1,35 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +from collections import OrderedDict +from typing import Dict, Type + +from .base import RegionInstanceTemplatesTransport +from .rest import ( + RegionInstanceTemplatesRestInterceptor, + RegionInstanceTemplatesRestTransport, +) + +# Compile a registry of transports. +_transport_registry = ( + OrderedDict() +) # type: Dict[str, Type[RegionInstanceTemplatesTransport]] +_transport_registry["rest"] = RegionInstanceTemplatesRestTransport + +__all__ = ( + "RegionInstanceTemplatesTransport", + "RegionInstanceTemplatesRestTransport", + "RegionInstanceTemplatesRestInterceptor", +) diff --git a/google/cloud/compute_v1/services/region_instance_templates/transports/base.py b/google/cloud/compute_v1/services/region_instance_templates/transports/base.py new file mode 100644 index 000000000..5690a9aa3 --- /dev/null +++ b/google/cloud/compute_v1/services/region_instance_templates/transports/base.py @@ -0,0 +1,214 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +import abc +from typing import Awaitable, Callable, Dict, Optional, Sequence, Union + +import google.api_core +from google.api_core import exceptions as core_exceptions +from google.api_core import gapic_v1 +from google.api_core import retry as retries +import google.auth # type: ignore +from google.auth import credentials as ga_credentials # type: ignore +from google.oauth2 import service_account # type: ignore + +from google.cloud.compute_v1 import gapic_version as package_version +from google.cloud.compute_v1.services import region_operations +from google.cloud.compute_v1.types import compute + +DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo( + gapic_version=package_version.__version__ +) + + +class RegionInstanceTemplatesTransport(abc.ABC): + """Abstract transport class for RegionInstanceTemplates.""" + + AUTH_SCOPES = ( + "https://www.googleapis.com/auth/compute", + "https://www.googleapis.com/auth/cloud-platform", + ) + + DEFAULT_HOST: str = "compute.googleapis.com" + + def __init__( + self, + *, + host: str = DEFAULT_HOST, + credentials: Optional[ga_credentials.Credentials] = None, + credentials_file: Optional[str] = None, + scopes: Optional[Sequence[str]] = None, + quota_project_id: Optional[str] = None, + client_info: gapic_v1.client_info.ClientInfo = DEFAULT_CLIENT_INFO, + always_use_jwt_access: Optional[bool] = False, + api_audience: Optional[str] = None, + **kwargs, + ) -> None: + """Instantiate the transport. + + Args: + host (Optional[str]): + The hostname to connect to. + credentials (Optional[google.auth.credentials.Credentials]): The + authorization credentials to attach to requests. These + credentials identify the application to the service; if none + are specified, the client will attempt to ascertain the + credentials from the environment. + credentials_file (Optional[str]): A file with credentials that can + be loaded with :func:`google.auth.load_credentials_from_file`. + This argument is mutually exclusive with credentials. + scopes (Optional[Sequence[str]]): A list of scopes. + quota_project_id (Optional[str]): An optional project to use for billing + and quota. + client_info (google.api_core.gapic_v1.client_info.ClientInfo): + The client info used to send a user-agent string along with + API requests. If ``None``, then default info will be used. + Generally, you only need to set this if you're developing + your own client library. + always_use_jwt_access (Optional[bool]): Whether self signed JWT should + be used for service account credentials. + """ + self._extended_operations_services: Dict[str, Any] = {} + + scopes_kwargs = {"scopes": scopes, "default_scopes": self.AUTH_SCOPES} + + # Save the scopes. + self._scopes = scopes + + # If no credentials are provided, then determine the appropriate + # defaults. + if credentials and credentials_file: + raise core_exceptions.DuplicateCredentialArgs( + "'credentials_file' and 'credentials' are mutually exclusive" + ) + + if credentials_file is not None: + credentials, _ = google.auth.load_credentials_from_file( + credentials_file, **scopes_kwargs, quota_project_id=quota_project_id + ) + elif credentials is None: + credentials, _ = google.auth.default( + **scopes_kwargs, quota_project_id=quota_project_id + ) + # Don't apply audience if the credentials file passed from user. + if hasattr(credentials, "with_gdch_audience"): + credentials = credentials.with_gdch_audience( + api_audience if api_audience else host + ) + + # If the credentials are service account credentials, then always try to use self signed JWT. + if ( + always_use_jwt_access + and isinstance(credentials, service_account.Credentials) + and hasattr(service_account.Credentials, "with_always_use_jwt_access") + ): + credentials = credentials.with_always_use_jwt_access(True) + + # Save the credentials. + self._credentials = credentials + + # Save the hostname. Default to port 443 (HTTPS) if none is specified. + if ":" not in host: + host += ":443" + self._host = host + + def _prep_wrapped_messages(self, client_info): + # Precompute the wrapped methods. + self._wrapped_methods = { + self.delete: gapic_v1.method.wrap_method( + self.delete, + default_timeout=None, + client_info=client_info, + ), + self.get: gapic_v1.method.wrap_method( + self.get, + default_timeout=None, + client_info=client_info, + ), + self.insert: gapic_v1.method.wrap_method( + self.insert, + default_timeout=None, + client_info=client_info, + ), + self.list: gapic_v1.method.wrap_method( + self.list, + default_timeout=None, + client_info=client_info, + ), + } + + def close(self): + """Closes resources associated with the transport. + + .. warning:: + Only call this method if the transport is NOT shared + with other clients - this may cause errors in other clients! + """ + raise NotImplementedError() + + @property + def delete( + self, + ) -> Callable[ + [compute.DeleteRegionInstanceTemplateRequest], + Union[compute.Operation, Awaitable[compute.Operation]], + ]: + raise NotImplementedError() + + @property + def get( + self, + ) -> Callable[ + [compute.GetRegionInstanceTemplateRequest], + Union[compute.InstanceTemplate, Awaitable[compute.InstanceTemplate]], + ]: + raise NotImplementedError() + + @property + def insert( + self, + ) -> Callable[ + [compute.InsertRegionInstanceTemplateRequest], + Union[compute.Operation, Awaitable[compute.Operation]], + ]: + raise NotImplementedError() + + @property + def list( + self, + ) -> Callable[ + [compute.ListRegionInstanceTemplatesRequest], + Union[compute.InstanceTemplateList, Awaitable[compute.InstanceTemplateList]], + ]: + raise NotImplementedError() + + @property + def kind(self) -> str: + raise NotImplementedError() + + @property + def _region_operations_client(self) -> region_operations.RegionOperationsClient: + ex_op_service = self._extended_operations_services.get("region_operations") + if not ex_op_service: + ex_op_service = region_operations.RegionOperationsClient( + credentials=self._credentials, + transport=self.kind, + ) + self._extended_operations_services["region_operations"] = ex_op_service + + return ex_op_service + + +__all__ = ("RegionInstanceTemplatesTransport",) diff --git a/google/cloud/compute_v1/services/region_instance_templates/transports/rest.py b/google/cloud/compute_v1/services/region_instance_templates/transports/rest.py new file mode 100644 index 000000000..affefefcb --- /dev/null +++ b/google/cloud/compute_v1/services/region_instance_templates/transports/rest.py @@ -0,0 +1,728 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +import dataclasses +import json # type: ignore +import re +from typing import Any, Callable, Dict, List, Optional, Sequence, Tuple, Union +import warnings + +from google.api_core import gapic_v1, path_template, rest_helpers, rest_streaming +from google.api_core import exceptions as core_exceptions +from google.api_core import retry as retries +from google.auth import credentials as ga_credentials # type: ignore +from google.auth.transport.grpc import SslCredentials # type: ignore +from google.auth.transport.requests import AuthorizedSession # type: ignore +from google.protobuf import json_format +import grpc # type: ignore +from requests import __version__ as requests_version + +try: + OptionalRetry = Union[retries.Retry, gapic_v1.method._MethodDefault] +except AttributeError: # pragma: NO COVER + OptionalRetry = Union[retries.Retry, object] # type: ignore + + +from google.cloud.compute_v1.types import compute + +from .base import DEFAULT_CLIENT_INFO as BASE_DEFAULT_CLIENT_INFO +from .base import RegionInstanceTemplatesTransport + +DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo( + gapic_version=BASE_DEFAULT_CLIENT_INFO.gapic_version, + grpc_version=None, + rest_version=requests_version, +) + + +class RegionInstanceTemplatesRestInterceptor: + """Interceptor for RegionInstanceTemplates. + + Interceptors are used to manipulate requests, request metadata, and responses + in arbitrary ways. + Example use cases include: + * Logging + * Verifying requests according to service or custom semantics + * Stripping extraneous information from responses + + These use cases and more can be enabled by injecting an + instance of a custom subclass when constructing the RegionInstanceTemplatesRestTransport. + + .. code-block:: python + class MyCustomRegionInstanceTemplatesInterceptor(RegionInstanceTemplatesRestInterceptor): + def pre_delete(self, request, metadata): + logging.log(f"Received request: {request}") + return request, metadata + + def post_delete(self, response): + logging.log(f"Received response: {response}") + return response + + def pre_get(self, request, metadata): + logging.log(f"Received request: {request}") + return request, metadata + + def post_get(self, response): + logging.log(f"Received response: {response}") + return response + + def pre_insert(self, request, metadata): + logging.log(f"Received request: {request}") + return request, metadata + + def post_insert(self, response): + logging.log(f"Received response: {response}") + return response + + def pre_list(self, request, metadata): + logging.log(f"Received request: {request}") + return request, metadata + + def post_list(self, response): + logging.log(f"Received response: {response}") + return response + + transport = RegionInstanceTemplatesRestTransport(interceptor=MyCustomRegionInstanceTemplatesInterceptor()) + client = RegionInstanceTemplatesClient(transport=transport) + + + """ + + def pre_delete( + self, + request: compute.DeleteRegionInstanceTemplateRequest, + metadata: Sequence[Tuple[str, str]], + ) -> Tuple[compute.DeleteRegionInstanceTemplateRequest, Sequence[Tuple[str, str]]]: + """Pre-rpc interceptor for delete + + Override in a subclass to manipulate the request or metadata + before they are sent to the RegionInstanceTemplates server. + """ + return request, metadata + + def post_delete(self, response: compute.Operation) -> compute.Operation: + """Post-rpc interceptor for delete + + Override in a subclass to manipulate the response + after it is returned by the RegionInstanceTemplates server but before + it is returned to user code. + """ + return response + + def pre_get( + self, + request: compute.GetRegionInstanceTemplateRequest, + metadata: Sequence[Tuple[str, str]], + ) -> Tuple[compute.GetRegionInstanceTemplateRequest, Sequence[Tuple[str, str]]]: + """Pre-rpc interceptor for get + + Override in a subclass to manipulate the request or metadata + before they are sent to the RegionInstanceTemplates server. + """ + return request, metadata + + def post_get(self, response: compute.InstanceTemplate) -> compute.InstanceTemplate: + """Post-rpc interceptor for get + + Override in a subclass to manipulate the response + after it is returned by the RegionInstanceTemplates server but before + it is returned to user code. + """ + return response + + def pre_insert( + self, + request: compute.InsertRegionInstanceTemplateRequest, + metadata: Sequence[Tuple[str, str]], + ) -> Tuple[compute.InsertRegionInstanceTemplateRequest, Sequence[Tuple[str, str]]]: + """Pre-rpc interceptor for insert + + Override in a subclass to manipulate the request or metadata + before they are sent to the RegionInstanceTemplates server. + """ + return request, metadata + + def post_insert(self, response: compute.Operation) -> compute.Operation: + """Post-rpc interceptor for insert + + Override in a subclass to manipulate the response + after it is returned by the RegionInstanceTemplates server but before + it is returned to user code. + """ + return response + + def pre_list( + self, + request: compute.ListRegionInstanceTemplatesRequest, + metadata: Sequence[Tuple[str, str]], + ) -> Tuple[compute.ListRegionInstanceTemplatesRequest, Sequence[Tuple[str, str]]]: + """Pre-rpc interceptor for list + + Override in a subclass to manipulate the request or metadata + before they are sent to the RegionInstanceTemplates server. + """ + return request, metadata + + def post_list( + self, response: compute.InstanceTemplateList + ) -> compute.InstanceTemplateList: + """Post-rpc interceptor for list + + Override in a subclass to manipulate the response + after it is returned by the RegionInstanceTemplates server but before + it is returned to user code. + """ + return response + + +@dataclasses.dataclass +class RegionInstanceTemplatesRestStub: + _session: AuthorizedSession + _host: str + _interceptor: RegionInstanceTemplatesRestInterceptor + + +class RegionInstanceTemplatesRestTransport(RegionInstanceTemplatesTransport): + """REST backend transport for RegionInstanceTemplates. + + The RegionInstanceTemplates API. + + This class defines the same methods as the primary client, so the + primary client can load the underlying transport implementation + and call it. + + It sends JSON representations of protocol buffers over HTTP/1.1 + + NOTE: This REST transport functionality is currently in a beta + state (preview). We welcome your feedback via an issue in this + library's source repository. Thank you! + """ + + def __init__( + self, + *, + host: str = "compute.googleapis.com", + credentials: Optional[ga_credentials.Credentials] = None, + credentials_file: Optional[str] = None, + scopes: Optional[Sequence[str]] = None, + client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, + quota_project_id: Optional[str] = None, + client_info: gapic_v1.client_info.ClientInfo = DEFAULT_CLIENT_INFO, + always_use_jwt_access: Optional[bool] = False, + url_scheme: str = "https", + interceptor: Optional[RegionInstanceTemplatesRestInterceptor] = None, + api_audience: Optional[str] = None, + ) -> None: + """Instantiate the transport. + + NOTE: This REST transport functionality is currently in a beta + state (preview). We welcome your feedback via a GitHub issue in + this library's repository. Thank you! + + Args: + host (Optional[str]): + The hostname to connect to. + credentials (Optional[google.auth.credentials.Credentials]): The + authorization credentials to attach to requests. These + credentials identify the application to the service; if none + are specified, the client will attempt to ascertain the + credentials from the environment. + + credentials_file (Optional[str]): A file with credentials that can + be loaded with :func:`google.auth.load_credentials_from_file`. + This argument is ignored if ``channel`` is provided. + scopes (Optional(Sequence[str])): A list of scopes. This argument is + ignored if ``channel`` is provided. + client_cert_source_for_mtls (Callable[[], Tuple[bytes, bytes]]): Client + certificate to configure mutual TLS HTTP channel. It is ignored + if ``channel`` is provided. + quota_project_id (Optional[str]): An optional project to use for billing + and quota. + client_info (google.api_core.gapic_v1.client_info.ClientInfo): + The client info used to send a user-agent string along with + API requests. If ``None``, then default info will be used. + Generally, you only need to set this if you are developing + your own client library. + always_use_jwt_access (Optional[bool]): Whether self signed JWT should + be used for service account credentials. + url_scheme: the protocol scheme for the API endpoint. Normally + "https", but for testing or local servers, + "http" can be specified. + """ + # Run the base constructor + # TODO(yon-mg): resolve other ctor params i.e. scopes, quota, etc. + # TODO: When custom host (api_endpoint) is set, `scopes` must *also* be set on the + # credentials object + maybe_url_match = re.match("^(?Phttp(?:s)?://)?(?P.*)$", host) + if maybe_url_match is None: + raise ValueError( + f"Unexpected hostname structure: {host}" + ) # pragma: NO COVER + + url_match_items = maybe_url_match.groupdict() + + host = f"{url_scheme}://{host}" if not url_match_items["scheme"] else host + + super().__init__( + host=host, + credentials=credentials, + client_info=client_info, + always_use_jwt_access=always_use_jwt_access, + api_audience=api_audience, + ) + self._session = AuthorizedSession( + self._credentials, default_host=self.DEFAULT_HOST + ) + if client_cert_source_for_mtls: + self._session.configure_mtls_channel(client_cert_source_for_mtls) + self._interceptor = interceptor or RegionInstanceTemplatesRestInterceptor() + self._prep_wrapped_messages(client_info) + + class _Delete(RegionInstanceTemplatesRestStub): + def __hash__(self): + return hash("Delete") + + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} + + @classmethod + def _get_unset_required_fields(cls, message_dict): + return { + k: v + for k, v in cls.__REQUIRED_FIELDS_DEFAULT_VALUES.items() + if k not in message_dict + } + + def __call__( + self, + request: compute.DeleteRegionInstanceTemplateRequest, + *, + retry: OptionalRetry = gapic_v1.method.DEFAULT, + timeout: Optional[float] = None, + metadata: Sequence[Tuple[str, str]] = (), + ) -> compute.Operation: + r"""Call the delete method over HTTP. + + Args: + request (~.compute.DeleteRegionInstanceTemplateRequest): + The request object. A request message for + RegionInstanceTemplates.Delete. See the + method description for details. + + retry (google.api_core.retry.Retry): Designation of what errors, if any, + should be retried. + timeout (float): The timeout for this request. + metadata (Sequence[Tuple[str, str]]): Strings which should be + sent along with the request as metadata. + + Returns: + ~.compute.Operation: + Represents an Operation resource. Google Compute Engine + has three Operation resources: \* + `Global `__ + \* + `Regional `__ + \* + `Zonal `__ + You can use an operation resource to manage asynchronous + API requests. For more information, read Handling API + responses. Operations can be global, regional or zonal. + - For global operations, use the ``globalOperations`` + resource. - For regional operations, use the + ``regionOperations`` resource. - For zonal operations, + use the ``zonalOperations`` resource. For more + information, read Global, Regional, and Zonal Resources. + + """ + + http_options: List[Dict[str, str]] = [ + { + "method": "delete", + "uri": "/compute/v1/projects/{project}/regions/{region}/instanceTemplates/{instance_template}", + }, + ] + request, metadata = self._interceptor.pre_delete(request, metadata) + pb_request = compute.DeleteRegionInstanceTemplateRequest.pb(request) + transcoded_request = path_template.transcode(http_options, pb_request) + + uri = transcoded_request["uri"] + method = transcoded_request["method"] + + # Jsonify the query params + query_params = json.loads( + json_format.MessageToJson( + transcoded_request["query_params"], + including_default_value_fields=False, + use_integers_for_enums=False, + ) + ) + query_params.update(self._get_unset_required_fields(query_params)) + + # Send the request + headers = dict(metadata) + headers["Content-Type"] = "application/json" + response = getattr(self._session, method)( + "{host}{uri}".format(host=self._host, uri=uri), + timeout=timeout, + headers=headers, + params=rest_helpers.flatten_query_params(query_params, strict=True), + ) + + # In case of error, raise the appropriate core_exceptions.GoogleAPICallError exception + # subclass. + if response.status_code >= 400: + raise core_exceptions.from_http_response(response) + + # Return the response + resp = compute.Operation() + pb_resp = compute.Operation.pb(resp) + + json_format.Parse(response.content, pb_resp, ignore_unknown_fields=True) + resp = self._interceptor.post_delete(resp) + return resp + + class _Get(RegionInstanceTemplatesRestStub): + def __hash__(self): + return hash("Get") + + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} + + @classmethod + def _get_unset_required_fields(cls, message_dict): + return { + k: v + for k, v in cls.__REQUIRED_FIELDS_DEFAULT_VALUES.items() + if k not in message_dict + } + + def __call__( + self, + request: compute.GetRegionInstanceTemplateRequest, + *, + retry: OptionalRetry = gapic_v1.method.DEFAULT, + timeout: Optional[float] = None, + metadata: Sequence[Tuple[str, str]] = (), + ) -> compute.InstanceTemplate: + r"""Call the get method over HTTP. + + Args: + request (~.compute.GetRegionInstanceTemplateRequest): + The request object. A request message for + RegionInstanceTemplates.Get. See the + method description for details. + + retry (google.api_core.retry.Retry): Designation of what errors, if any, + should be retried. + timeout (float): The timeout for this request. + metadata (Sequence[Tuple[str, str]]): Strings which should be + sent along with the request as metadata. + + Returns: + ~.compute.InstanceTemplate: + Represents an Instance Template + resource. You can use instance templates + to create VM instances and managed + instance groups. For more information, + read Instance Templates. + + """ + + http_options: List[Dict[str, str]] = [ + { + "method": "get", + "uri": "/compute/v1/projects/{project}/regions/{region}/instanceTemplates/{instance_template}", + }, + ] + request, metadata = self._interceptor.pre_get(request, metadata) + pb_request = compute.GetRegionInstanceTemplateRequest.pb(request) + transcoded_request = path_template.transcode(http_options, pb_request) + + uri = transcoded_request["uri"] + method = transcoded_request["method"] + + # Jsonify the query params + query_params = json.loads( + json_format.MessageToJson( + transcoded_request["query_params"], + including_default_value_fields=False, + use_integers_for_enums=False, + ) + ) + query_params.update(self._get_unset_required_fields(query_params)) + + # Send the request + headers = dict(metadata) + headers["Content-Type"] = "application/json" + response = getattr(self._session, method)( + "{host}{uri}".format(host=self._host, uri=uri), + timeout=timeout, + headers=headers, + params=rest_helpers.flatten_query_params(query_params, strict=True), + ) + + # In case of error, raise the appropriate core_exceptions.GoogleAPICallError exception + # subclass. + if response.status_code >= 400: + raise core_exceptions.from_http_response(response) + + # Return the response + resp = compute.InstanceTemplate() + pb_resp = compute.InstanceTemplate.pb(resp) + + json_format.Parse(response.content, pb_resp, ignore_unknown_fields=True) + resp = self._interceptor.post_get(resp) + return resp + + class _Insert(RegionInstanceTemplatesRestStub): + def __hash__(self): + return hash("Insert") + + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} + + @classmethod + def _get_unset_required_fields(cls, message_dict): + return { + k: v + for k, v in cls.__REQUIRED_FIELDS_DEFAULT_VALUES.items() + if k not in message_dict + } + + def __call__( + self, + request: compute.InsertRegionInstanceTemplateRequest, + *, + retry: OptionalRetry = gapic_v1.method.DEFAULT, + timeout: Optional[float] = None, + metadata: Sequence[Tuple[str, str]] = (), + ) -> compute.Operation: + r"""Call the insert method over HTTP. + + Args: + request (~.compute.InsertRegionInstanceTemplateRequest): + The request object. A request message for + RegionInstanceTemplates.Insert. See the + method description for details. + + retry (google.api_core.retry.Retry): Designation of what errors, if any, + should be retried. + timeout (float): The timeout for this request. + metadata (Sequence[Tuple[str, str]]): Strings which should be + sent along with the request as metadata. + + Returns: + ~.compute.Operation: + Represents an Operation resource. Google Compute Engine + has three Operation resources: \* + `Global `__ + \* + `Regional `__ + \* + `Zonal `__ + You can use an operation resource to manage asynchronous + API requests. For more information, read Handling API + responses. Operations can be global, regional or zonal. + - For global operations, use the ``globalOperations`` + resource. - For regional operations, use the + ``regionOperations`` resource. - For zonal operations, + use the ``zonalOperations`` resource. For more + information, read Global, Regional, and Zonal Resources. + + """ + + http_options: List[Dict[str, str]] = [ + { + "method": "post", + "uri": "/compute/v1/projects/{project}/regions/{region}/instanceTemplates", + "body": "instance_template_resource", + }, + ] + request, metadata = self._interceptor.pre_insert(request, metadata) + pb_request = compute.InsertRegionInstanceTemplateRequest.pb(request) + transcoded_request = path_template.transcode(http_options, pb_request) + + # Jsonify the request body + + body = json_format.MessageToJson( + transcoded_request["body"], + including_default_value_fields=False, + use_integers_for_enums=False, + ) + uri = transcoded_request["uri"] + method = transcoded_request["method"] + + # Jsonify the query params + query_params = json.loads( + json_format.MessageToJson( + transcoded_request["query_params"], + including_default_value_fields=False, + use_integers_for_enums=False, + ) + ) + query_params.update(self._get_unset_required_fields(query_params)) + + # Send the request + headers = dict(metadata) + headers["Content-Type"] = "application/json" + response = getattr(self._session, method)( + "{host}{uri}".format(host=self._host, uri=uri), + timeout=timeout, + headers=headers, + params=rest_helpers.flatten_query_params(query_params, strict=True), + data=body, + ) + + # In case of error, raise the appropriate core_exceptions.GoogleAPICallError exception + # subclass. + if response.status_code >= 400: + raise core_exceptions.from_http_response(response) + + # Return the response + resp = compute.Operation() + pb_resp = compute.Operation.pb(resp) + + json_format.Parse(response.content, pb_resp, ignore_unknown_fields=True) + resp = self._interceptor.post_insert(resp) + return resp + + class _List(RegionInstanceTemplatesRestStub): + def __hash__(self): + return hash("List") + + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} + + @classmethod + def _get_unset_required_fields(cls, message_dict): + return { + k: v + for k, v in cls.__REQUIRED_FIELDS_DEFAULT_VALUES.items() + if k not in message_dict + } + + def __call__( + self, + request: compute.ListRegionInstanceTemplatesRequest, + *, + retry: OptionalRetry = gapic_v1.method.DEFAULT, + timeout: Optional[float] = None, + metadata: Sequence[Tuple[str, str]] = (), + ) -> compute.InstanceTemplateList: + r"""Call the list method over HTTP. + + Args: + request (~.compute.ListRegionInstanceTemplatesRequest): + The request object. A request message for + RegionInstanceTemplates.List. See the + method description for details. + + retry (google.api_core.retry.Retry): Designation of what errors, if any, + should be retried. + timeout (float): The timeout for this request. + metadata (Sequence[Tuple[str, str]]): Strings which should be + sent along with the request as metadata. + + Returns: + ~.compute.InstanceTemplateList: + A list of instance templates. + """ + + http_options: List[Dict[str, str]] = [ + { + "method": "get", + "uri": "/compute/v1/projects/{project}/regions/{region}/instanceTemplates", + }, + ] + request, metadata = self._interceptor.pre_list(request, metadata) + pb_request = compute.ListRegionInstanceTemplatesRequest.pb(request) + transcoded_request = path_template.transcode(http_options, pb_request) + + uri = transcoded_request["uri"] + method = transcoded_request["method"] + + # Jsonify the query params + query_params = json.loads( + json_format.MessageToJson( + transcoded_request["query_params"], + including_default_value_fields=False, + use_integers_for_enums=False, + ) + ) + query_params.update(self._get_unset_required_fields(query_params)) + + # Send the request + headers = dict(metadata) + headers["Content-Type"] = "application/json" + response = getattr(self._session, method)( + "{host}{uri}".format(host=self._host, uri=uri), + timeout=timeout, + headers=headers, + params=rest_helpers.flatten_query_params(query_params, strict=True), + ) + + # In case of error, raise the appropriate core_exceptions.GoogleAPICallError exception + # subclass. + if response.status_code >= 400: + raise core_exceptions.from_http_response(response) + + # Return the response + resp = compute.InstanceTemplateList() + pb_resp = compute.InstanceTemplateList.pb(resp) + + json_format.Parse(response.content, pb_resp, ignore_unknown_fields=True) + resp = self._interceptor.post_list(resp) + return resp + + @property + def delete( + self, + ) -> Callable[[compute.DeleteRegionInstanceTemplateRequest], compute.Operation]: + # The return type is fine, but mypy isn't sophisticated enough to determine what's going on here. + # In C++ this would require a dynamic_cast + return self._Delete(self._session, self._host, self._interceptor) # type: ignore + + @property + def get( + self, + ) -> Callable[[compute.GetRegionInstanceTemplateRequest], compute.InstanceTemplate]: + # The return type is fine, but mypy isn't sophisticated enough to determine what's going on here. + # In C++ this would require a dynamic_cast + return self._Get(self._session, self._host, self._interceptor) # type: ignore + + @property + def insert( + self, + ) -> Callable[[compute.InsertRegionInstanceTemplateRequest], compute.Operation]: + # The return type is fine, but mypy isn't sophisticated enough to determine what's going on here. + # In C++ this would require a dynamic_cast + return self._Insert(self._session, self._host, self._interceptor) # type: ignore + + @property + def list( + self, + ) -> Callable[ + [compute.ListRegionInstanceTemplatesRequest], compute.InstanceTemplateList + ]: + # The return type is fine, but mypy isn't sophisticated enough to determine what's going on here. + # In C++ this would require a dynamic_cast + return self._List(self._session, self._host, self._interceptor) # type: ignore + + @property + def kind(self) -> str: + return "rest" + + def close(self): + self._session.close() + + +__all__ = ("RegionInstanceTemplatesRestTransport",) diff --git a/google/cloud/compute_v1/services/region_network_endpoint_groups/client.py b/google/cloud/compute_v1/services/region_network_endpoint_groups/client.py index 3270c072e..32c149146 100644 --- a/google/cloud/compute_v1/services/region_network_endpoint_groups/client.py +++ b/google/cloud/compute_v1/services/region_network_endpoint_groups/client.py @@ -677,9 +677,7 @@ def get( timeout: Union[float, object] = gapic_v1.method.DEFAULT, metadata: Sequence[Tuple[str, str]] = (), ) -> compute.NetworkEndpointGroup: - r"""Returns the specified network endpoint group. Gets a - list of available network endpoint groups by making a - list() request. + r"""Returns the specified network endpoint group. Args: request (Union[google.cloud.compute_v1.types.GetRegionNetworkEndpointGroupRequest, dict]): diff --git a/google/cloud/compute_v1/services/region_target_http_proxies/client.py b/google/cloud/compute_v1/services/region_target_http_proxies/client.py index 0ba5bd283..911f83d7f 100644 --- a/google/cloud/compute_v1/services/region_target_http_proxies/client.py +++ b/google/cloud/compute_v1/services/region_target_http_proxies/client.py @@ -666,8 +666,7 @@ def get( metadata: Sequence[Tuple[str, str]] = (), ) -> compute.TargetHttpProxy: r"""Returns the specified TargetHttpProxy resource in the - specified region. Gets a list of available target HTTP - proxies by making a list() request. + specified region. Args: request (Union[google.cloud.compute_v1.types.GetRegionTargetHttpProxyRequest, dict]): diff --git a/google/cloud/compute_v1/services/region_target_https_proxies/client.py b/google/cloud/compute_v1/services/region_target_https_proxies/client.py index b6fecbbbe..b09e46ce5 100644 --- a/google/cloud/compute_v1/services/region_target_https_proxies/client.py +++ b/google/cloud/compute_v1/services/region_target_https_proxies/client.py @@ -666,8 +666,7 @@ def get( metadata: Sequence[Tuple[str, str]] = (), ) -> compute.TargetHttpsProxy: r"""Returns the specified TargetHttpsProxy resource in - the specified region. Gets a list of available target - HTTP proxies by making a list() request. + the specified region. Args: request (Union[google.cloud.compute_v1.types.GetRegionTargetHttpsProxyRequest, dict]): diff --git a/google/cloud/compute_v1/services/region_url_maps/client.py b/google/cloud/compute_v1/services/region_url_maps/client.py index 64a9cd3b9..494a16845 100644 --- a/google/cloud/compute_v1/services/region_url_maps/client.py +++ b/google/cloud/compute_v1/services/region_url_maps/client.py @@ -659,8 +659,7 @@ def get( timeout: Union[float, object] = gapic_v1.method.DEFAULT, metadata: Sequence[Tuple[str, str]] = (), ) -> compute.UrlMap: - r"""Returns the specified UrlMap resource. Gets a list of - available URL maps by making a list() request. + r"""Returns the specified UrlMap resource. Args: request (Union[google.cloud.compute_v1.types.GetRegionUrlMapRequest, dict]): diff --git a/google/cloud/compute_v1/services/regions/client.py b/google/cloud/compute_v1/services/regions/client.py index 624c287b7..4a135a8e6 100644 --- a/google/cloud/compute_v1/services/regions/client.py +++ b/google/cloud/compute_v1/services/regions/client.py @@ -428,15 +428,15 @@ def get( timeout: Union[float, object] = gapic_v1.method.DEFAULT, metadata: Sequence[Tuple[str, str]] = (), ) -> compute.Region: - r"""Returns the specified Region resource. Gets a list of available - regions by making a list() request. To decrease latency for this - method, you can optionally omit any unneeded information from - the response by using a field mask. This practice is especially - recommended for unused quota information (the ``quotas`` field). - To exclude one or more fields, set your request's ``fields`` - query parameter to only include the fields you need. For - example, to only include the ``id`` and ``selfLink`` fields, add - the query parameter ``?fields=id,selfLink`` to your request. + r"""Returns the specified Region resource. To decrease latency for + this method, you can optionally omit any unneeded information + from the response by using a field mask. This practice is + especially recommended for unused quota information (the + ``quotas`` field). To exclude one or more fields, set your + request's ``fields`` query parameter to only include the fields + you need. For example, to only include the ``id`` and + ``selfLink`` fields, add the query parameter + ``?fields=id,selfLink`` to your request. Args: request (Union[google.cloud.compute_v1.types.GetRegionRequest, dict]): diff --git a/google/cloud/compute_v1/services/routers/client.py b/google/cloud/compute_v1/services/routers/client.py index fefbf7f8c..eb084d1aa 100644 --- a/google/cloud/compute_v1/services/routers/client.py +++ b/google/cloud/compute_v1/services/routers/client.py @@ -739,8 +739,7 @@ def get( timeout: Union[float, object] = gapic_v1.method.DEFAULT, metadata: Sequence[Tuple[str, str]] = (), ) -> compute.Router: - r"""Returns the specified Router resource. Gets a list of - available routers by making a list() request. + r"""Returns the specified Router resource. Args: request (Union[google.cloud.compute_v1.types.GetRouterRequest, dict]): diff --git a/google/cloud/compute_v1/services/routes/client.py b/google/cloud/compute_v1/services/routes/client.py index 0749acecd..0d506aeba 100644 --- a/google/cloud/compute_v1/services/routes/client.py +++ b/google/cloud/compute_v1/services/routes/client.py @@ -629,8 +629,7 @@ def get( timeout: Union[float, object] = gapic_v1.method.DEFAULT, metadata: Sequence[Tuple[str, str]] = (), ) -> compute.Route: - r"""Returns the specified Route resource. Gets a list of - available routes by making a list() request. + r"""Returns the specified Route resource. Args: request (Union[google.cloud.compute_v1.types.GetRouteRequest, dict]): diff --git a/google/cloud/compute_v1/services/snapshots/client.py b/google/cloud/compute_v1/services/snapshots/client.py index e2833124f..05571a12f 100644 --- a/google/cloud/compute_v1/services/snapshots/client.py +++ b/google/cloud/compute_v1/services/snapshots/client.py @@ -647,8 +647,7 @@ def get( timeout: Union[float, object] = gapic_v1.method.DEFAULT, metadata: Sequence[Tuple[str, str]] = (), ) -> compute.Snapshot: - r"""Returns the specified Snapshot resource. Gets a list - of available snapshots by making a list() request. + r"""Returns the specified Snapshot resource. Args: request (Union[google.cloud.compute_v1.types.GetSnapshotRequest, dict]): diff --git a/google/cloud/compute_v1/services/ssl_certificates/client.py b/google/cloud/compute_v1/services/ssl_certificates/client.py index 866b33c1d..6cef0b86d 100644 --- a/google/cloud/compute_v1/services/ssl_certificates/client.py +++ b/google/cloud/compute_v1/services/ssl_certificates/client.py @@ -727,9 +727,7 @@ def get( timeout: Union[float, object] = gapic_v1.method.DEFAULT, metadata: Sequence[Tuple[str, str]] = (), ) -> compute.SslCertificate: - r"""Returns the specified SslCertificate resource. Gets a - list of available SSL certificates by making a list() - request. + r"""Returns the specified SslCertificate resource. Args: request (Union[google.cloud.compute_v1.types.GetSslCertificateRequest, dict]): diff --git a/google/cloud/compute_v1/services/ssl_policies/client.py b/google/cloud/compute_v1/services/ssl_policies/client.py index 0c0f5142d..f20169a1b 100644 --- a/google/cloud/compute_v1/services/ssl_policies/client.py +++ b/google/cloud/compute_v1/services/ssl_policies/client.py @@ -824,9 +824,7 @@ def insert_unary( timeout: Union[float, object] = gapic_v1.method.DEFAULT, metadata: Sequence[Tuple[str, str]] = (), ) -> compute.Operation: - r"""Returns the specified SSL policy resource. Gets a - list of available SSL policies by making a list() - request. + r"""Returns the specified SSL policy resource. Args: request (Union[google.cloud.compute_v1.types.InsertSslPolicyRequest, dict]): @@ -909,9 +907,7 @@ def insert( timeout: Union[float, object] = gapic_v1.method.DEFAULT, metadata: Sequence[Tuple[str, str]] = (), ) -> extended_operation.ExtendedOperation: - r"""Returns the specified SSL policy resource. Gets a - list of available SSL policies by making a list() - request. + r"""Returns the specified SSL policy resource. Args: request (Union[google.cloud.compute_v1.types.InsertSslPolicyRequest, dict]): diff --git a/google/cloud/compute_v1/services/subnetworks/client.py b/google/cloud/compute_v1/services/subnetworks/client.py index 6a83209f3..e1ce42e34 100644 --- a/google/cloud/compute_v1/services/subnetworks/client.py +++ b/google/cloud/compute_v1/services/subnetworks/client.py @@ -1015,8 +1015,7 @@ def get( timeout: Union[float, object] = gapic_v1.method.DEFAULT, metadata: Sequence[Tuple[str, str]] = (), ) -> compute.Subnetwork: - r"""Returns the specified subnetwork. Gets a list of - available subnetworks list() request. + r"""Returns the specified subnetwork. Args: request (Union[google.cloud.compute_v1.types.GetSubnetworkRequest, dict]): diff --git a/google/cloud/compute_v1/services/target_http_proxies/client.py b/google/cloud/compute_v1/services/target_http_proxies/client.py index ac775d871..f5bb45d3b 100644 --- a/google/cloud/compute_v1/services/target_http_proxies/client.py +++ b/google/cloud/compute_v1/services/target_http_proxies/client.py @@ -727,9 +727,7 @@ def get( timeout: Union[float, object] = gapic_v1.method.DEFAULT, metadata: Sequence[Tuple[str, str]] = (), ) -> compute.TargetHttpProxy: - r"""Returns the specified TargetHttpProxy resource. Gets - a list of available target HTTP proxies by making a - list() request. + r"""Returns the specified TargetHttpProxy resource. Args: request (Union[google.cloud.compute_v1.types.GetTargetHttpProxyRequest, dict]): diff --git a/google/cloud/compute_v1/services/target_https_proxies/client.py b/google/cloud/compute_v1/services/target_https_proxies/client.py index 1874dd851..41b675dc0 100644 --- a/google/cloud/compute_v1/services/target_https_proxies/client.py +++ b/google/cloud/compute_v1/services/target_https_proxies/client.py @@ -727,9 +727,7 @@ def get( timeout: Union[float, object] = gapic_v1.method.DEFAULT, metadata: Sequence[Tuple[str, str]] = (), ) -> compute.TargetHttpsProxy: - r"""Returns the specified TargetHttpsProxy resource. Gets - a list of available target HTTPS proxies by making a - list() request. + r"""Returns the specified TargetHttpsProxy resource. Args: request (Union[google.cloud.compute_v1.types.GetTargetHttpsProxyRequest, dict]): diff --git a/google/cloud/compute_v1/services/target_instances/client.py b/google/cloud/compute_v1/services/target_instances/client.py index 0b4cd367f..ede22d086 100644 --- a/google/cloud/compute_v1/services/target_instances/client.py +++ b/google/cloud/compute_v1/services/target_instances/client.py @@ -748,9 +748,7 @@ def get( timeout: Union[float, object] = gapic_v1.method.DEFAULT, metadata: Sequence[Tuple[str, str]] = (), ) -> compute.TargetInstance: - r"""Returns the specified TargetInstance resource. Gets a - list of available target instances by making a list() - request. + r"""Returns the specified TargetInstance resource. Args: request (Union[google.cloud.compute_v1.types.GetTargetInstanceRequest, dict]): diff --git a/google/cloud/compute_v1/services/target_pools/client.py b/google/cloud/compute_v1/services/target_pools/client.py index 74c931f00..12fb016b6 100644 --- a/google/cloud/compute_v1/services/target_pools/client.py +++ b/google/cloud/compute_v1/services/target_pools/client.py @@ -1264,8 +1264,7 @@ def get( timeout: Union[float, object] = gapic_v1.method.DEFAULT, metadata: Sequence[Tuple[str, str]] = (), ) -> compute.TargetPool: - r"""Returns the specified target pool. Gets a list of - available target pools by making a list() request. + r"""Returns the specified target pool. Args: request (Union[google.cloud.compute_v1.types.GetTargetPoolRequest, dict]): diff --git a/google/cloud/compute_v1/services/target_ssl_proxies/client.py b/google/cloud/compute_v1/services/target_ssl_proxies/client.py index c30934e68..c5e3d2b18 100644 --- a/google/cloud/compute_v1/services/target_ssl_proxies/client.py +++ b/google/cloud/compute_v1/services/target_ssl_proxies/client.py @@ -637,9 +637,7 @@ def get( timeout: Union[float, object] = gapic_v1.method.DEFAULT, metadata: Sequence[Tuple[str, str]] = (), ) -> compute.TargetSslProxy: - r"""Returns the specified TargetSslProxy resource. Gets a - list of available target SSL proxies by making a list() - request. + r"""Returns the specified TargetSslProxy resource. Args: request (Union[google.cloud.compute_v1.types.GetTargetSslProxyRequest, dict]): diff --git a/google/cloud/compute_v1/services/target_tcp_proxies/client.py b/google/cloud/compute_v1/services/target_tcp_proxies/client.py index 97a39f51b..00f30f9e4 100644 --- a/google/cloud/compute_v1/services/target_tcp_proxies/client.py +++ b/google/cloud/compute_v1/services/target_tcp_proxies/client.py @@ -727,9 +727,7 @@ def get( timeout: Union[float, object] = gapic_v1.method.DEFAULT, metadata: Sequence[Tuple[str, str]] = (), ) -> compute.TargetTcpProxy: - r"""Returns the specified TargetTcpProxy resource. Gets a - list of available target TCP proxies by making a list() - request. + r"""Returns the specified TargetTcpProxy resource. Args: request (Union[google.cloud.compute_v1.types.GetTargetTcpProxyRequest, dict]): diff --git a/google/cloud/compute_v1/services/target_vpn_gateways/client.py b/google/cloud/compute_v1/services/target_vpn_gateways/client.py index 051c9e2f2..960c807bb 100644 --- a/google/cloud/compute_v1/services/target_vpn_gateways/client.py +++ b/google/cloud/compute_v1/services/target_vpn_gateways/client.py @@ -744,9 +744,7 @@ def get( timeout: Union[float, object] = gapic_v1.method.DEFAULT, metadata: Sequence[Tuple[str, str]] = (), ) -> compute.TargetVpnGateway: - r"""Returns the specified target VPN gateway. Gets a list - of available target VPN gateways by making a list() - request. + r"""Returns the specified target VPN gateway. Args: request (Union[google.cloud.compute_v1.types.GetTargetVpnGatewayRequest, dict]): diff --git a/google/cloud/compute_v1/services/url_maps/client.py b/google/cloud/compute_v1/services/url_maps/client.py index c42ce39e5..00be935ae 100644 --- a/google/cloud/compute_v1/services/url_maps/client.py +++ b/google/cloud/compute_v1/services/url_maps/client.py @@ -721,8 +721,7 @@ def get( timeout: Union[float, object] = gapic_v1.method.DEFAULT, metadata: Sequence[Tuple[str, str]] = (), ) -> compute.UrlMap: - r"""Returns the specified UrlMap resource. Gets a list of - available URL maps by making a list() request. + r"""Returns the specified UrlMap resource. Args: request (Union[google.cloud.compute_v1.types.GetUrlMapRequest, dict]): diff --git a/google/cloud/compute_v1/services/vpn_gateways/client.py b/google/cloud/compute_v1/services/vpn_gateways/client.py index be239ab67..5c229e8d5 100644 --- a/google/cloud/compute_v1/services/vpn_gateways/client.py +++ b/google/cloud/compute_v1/services/vpn_gateways/client.py @@ -736,8 +736,7 @@ def get( timeout: Union[float, object] = gapic_v1.method.DEFAULT, metadata: Sequence[Tuple[str, str]] = (), ) -> compute.VpnGateway: - r"""Returns the specified VPN gateway. Gets a list of - available VPN gateways by making a list() request. + r"""Returns the specified VPN gateway. Args: request (Union[google.cloud.compute_v1.types.GetVpnGatewayRequest, dict]): diff --git a/google/cloud/compute_v1/services/vpn_tunnels/client.py b/google/cloud/compute_v1/services/vpn_tunnels/client.py index 9119ca052..d365fd53f 100644 --- a/google/cloud/compute_v1/services/vpn_tunnels/client.py +++ b/google/cloud/compute_v1/services/vpn_tunnels/client.py @@ -740,8 +740,7 @@ def get( timeout: Union[float, object] = gapic_v1.method.DEFAULT, metadata: Sequence[Tuple[str, str]] = (), ) -> compute.VpnTunnel: - r"""Returns the specified VpnTunnel resource. Gets a list - of available VPN tunnels by making a list() request. + r"""Returns the specified VpnTunnel resource. Args: request (Union[google.cloud.compute_v1.types.GetVpnTunnelRequest, dict]): diff --git a/google/cloud/compute_v1/services/zones/client.py b/google/cloud/compute_v1/services/zones/client.py index b783da123..c1e61ddbe 100644 --- a/google/cloud/compute_v1/services/zones/client.py +++ b/google/cloud/compute_v1/services/zones/client.py @@ -428,8 +428,7 @@ def get( timeout: Union[float, object] = gapic_v1.method.DEFAULT, metadata: Sequence[Tuple[str, str]] = (), ) -> compute.Zone: - r"""Returns the specified Zone resource. Gets a list of - available zones by making a list() request. + r"""Returns the specified Zone resource. Args: request (Union[google.cloud.compute_v1.types.GetZoneRequest, dict]): diff --git a/google/cloud/compute_v1/types/__init__.py b/google/cloud/compute_v1/types/__init__.py index 143c232be..f60557898 100644 --- a/google/cloud/compute_v1/types/__init__.py +++ b/google/cloud/compute_v1/types/__init__.py @@ -58,6 +58,7 @@ AggregatedListInstanceGroupManagersRequest, AggregatedListInstanceGroupsRequest, AggregatedListInstancesRequest, + AggregatedListInstanceTemplatesRequest, AggregatedListInterconnectAttachmentsRequest, AggregatedListMachineTypesRequest, AggregatedListNetworkAttachmentsRequest, @@ -217,6 +218,7 @@ DeleteRegionHealthCheckRequest, DeleteRegionHealthCheckServiceRequest, DeleteRegionInstanceGroupManagerRequest, + DeleteRegionInstanceTemplateRequest, DeleteRegionNetworkEndpointGroupRequest, DeleteRegionNetworkFirewallPolicyRequest, DeleteRegionNotificationEndpointRequest, @@ -397,6 +399,7 @@ GetRegionHealthCheckServiceRequest, GetRegionInstanceGroupManagerRequest, GetRegionInstanceGroupRequest, + GetRegionInstanceTemplateRequest, GetRegionNetworkEndpointGroupRequest, GetRegionNetworkFirewallPolicyRequest, GetRegionNotificationEndpointRequest, @@ -526,6 +529,7 @@ InsertRegionHealthCheckRequest, InsertRegionHealthCheckServiceRequest, InsertRegionInstanceGroupManagerRequest, + InsertRegionInstanceTemplateRequest, InsertRegionNetworkEndpointGroupRequest, InsertRegionNetworkFirewallPolicyRequest, InsertRegionNotificationEndpointRequest, @@ -613,10 +617,13 @@ InstancesSetMachineResourcesRequest, InstancesSetMachineTypeRequest, InstancesSetMinCpuPlatformRequest, + InstancesSetNameRequest, InstancesSetServiceAccountRequest, InstancesStartWithEncryptionKeyRequest, InstanceTemplate, + InstanceTemplateAggregatedList, InstanceTemplateList, + InstanceTemplatesScopedList, InstanceWithNamedPorts, Int64RangeMatch, Interconnect, @@ -711,6 +718,7 @@ ListRegionHealthChecksRequest, ListRegionInstanceGroupManagersRequest, ListRegionInstanceGroupsRequest, + ListRegionInstanceTemplatesRequest, ListRegionNetworkEndpointGroupsRequest, ListRegionNetworkFirewallPoliciesRequest, ListRegionNotificationEndpointsRequest, @@ -1049,6 +1057,9 @@ SecurityPolicyRuleHttpHeaderActionHttpHeaderOption, SecurityPolicyRuleMatcher, SecurityPolicyRuleMatcherConfig, + SecurityPolicyRulePreconfiguredWafConfig, + SecurityPolicyRulePreconfiguredWafConfigExclusion, + SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams, SecurityPolicyRuleRateLimitOptions, SecurityPolicyRuleRateLimitOptionsThreshold, SecurityPolicyRuleRedirectOptions, @@ -1119,6 +1130,7 @@ SetMinCpuPlatformInstanceRequest, SetNamedPortsInstanceGroupRequest, SetNamedPortsRegionInstanceGroupRequest, + SetNameInstanceRequest, SetNodeTemplateNodeGroupRequest, SetPrivateIpGoogleAccessSubnetworkRequest, SetProxyHeaderTargetSslProxyRequest, @@ -1262,6 +1274,7 @@ UpdateAutoscalerRequest, UpdateBackendBucketRequest, UpdateBackendServiceRequest, + UpdateDiskRequest, UpdateDisplayDeviceInstanceRequest, UpdateFirewallRequest, UpdateHealthCheckRequest, @@ -1273,6 +1286,7 @@ UpdateRegionAutoscalerRequest, UpdateRegionBackendServiceRequest, UpdateRegionCommitmentRequest, + UpdateRegionDiskRequest, UpdateRegionHealthCheckRequest, UpdateRegionUrlMapRequest, UpdateReservationRequest, @@ -1375,6 +1389,7 @@ "AggregatedListInstanceGroupManagersRequest", "AggregatedListInstanceGroupsRequest", "AggregatedListInstancesRequest", + "AggregatedListInstanceTemplatesRequest", "AggregatedListInterconnectAttachmentsRequest", "AggregatedListMachineTypesRequest", "AggregatedListNetworkAttachmentsRequest", @@ -1534,6 +1549,7 @@ "DeleteRegionHealthCheckRequest", "DeleteRegionHealthCheckServiceRequest", "DeleteRegionInstanceGroupManagerRequest", + "DeleteRegionInstanceTemplateRequest", "DeleteRegionNetworkEndpointGroupRequest", "DeleteRegionNetworkFirewallPolicyRequest", "DeleteRegionNotificationEndpointRequest", @@ -1714,6 +1730,7 @@ "GetRegionHealthCheckServiceRequest", "GetRegionInstanceGroupManagerRequest", "GetRegionInstanceGroupRequest", + "GetRegionInstanceTemplateRequest", "GetRegionNetworkEndpointGroupRequest", "GetRegionNetworkFirewallPolicyRequest", "GetRegionNotificationEndpointRequest", @@ -1843,6 +1860,7 @@ "InsertRegionHealthCheckRequest", "InsertRegionHealthCheckServiceRequest", "InsertRegionInstanceGroupManagerRequest", + "InsertRegionInstanceTemplateRequest", "InsertRegionNetworkEndpointGroupRequest", "InsertRegionNetworkFirewallPolicyRequest", "InsertRegionNotificationEndpointRequest", @@ -1930,10 +1948,13 @@ "InstancesSetMachineResourcesRequest", "InstancesSetMachineTypeRequest", "InstancesSetMinCpuPlatformRequest", + "InstancesSetNameRequest", "InstancesSetServiceAccountRequest", "InstancesStartWithEncryptionKeyRequest", "InstanceTemplate", + "InstanceTemplateAggregatedList", "InstanceTemplateList", + "InstanceTemplatesScopedList", "InstanceWithNamedPorts", "Int64RangeMatch", "Interconnect", @@ -2028,6 +2049,7 @@ "ListRegionHealthChecksRequest", "ListRegionInstanceGroupManagersRequest", "ListRegionInstanceGroupsRequest", + "ListRegionInstanceTemplatesRequest", "ListRegionNetworkEndpointGroupsRequest", "ListRegionNetworkFirewallPoliciesRequest", "ListRegionNotificationEndpointsRequest", @@ -2366,6 +2388,9 @@ "SecurityPolicyRuleHttpHeaderActionHttpHeaderOption", "SecurityPolicyRuleMatcher", "SecurityPolicyRuleMatcherConfig", + "SecurityPolicyRulePreconfiguredWafConfig", + "SecurityPolicyRulePreconfiguredWafConfigExclusion", + "SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams", "SecurityPolicyRuleRateLimitOptions", "SecurityPolicyRuleRateLimitOptionsThreshold", "SecurityPolicyRuleRedirectOptions", @@ -2436,6 +2461,7 @@ "SetMinCpuPlatformInstanceRequest", "SetNamedPortsInstanceGroupRequest", "SetNamedPortsRegionInstanceGroupRequest", + "SetNameInstanceRequest", "SetNodeTemplateNodeGroupRequest", "SetPrivateIpGoogleAccessSubnetworkRequest", "SetProxyHeaderTargetSslProxyRequest", @@ -2579,6 +2605,7 @@ "UpdateAutoscalerRequest", "UpdateBackendBucketRequest", "UpdateBackendServiceRequest", + "UpdateDiskRequest", "UpdateDisplayDeviceInstanceRequest", "UpdateFirewallRequest", "UpdateHealthCheckRequest", @@ -2590,6 +2617,7 @@ "UpdateRegionAutoscalerRequest", "UpdateRegionBackendServiceRequest", "UpdateRegionCommitmentRequest", + "UpdateRegionDiskRequest", "UpdateRegionHealthCheckRequest", "UpdateRegionUrlMapRequest", "UpdateReservationRequest", diff --git a/google/cloud/compute_v1/types/compute.py b/google/cloud/compute_v1/types/compute.py index 5efaacc21..a1d7f7bb9 100644 --- a/google/cloud/compute_v1/types/compute.py +++ b/google/cloud/compute_v1/types/compute.py @@ -65,6 +65,7 @@ "AggregatedListHealthChecksRequest", "AggregatedListInstanceGroupManagersRequest", "AggregatedListInstanceGroupsRequest", + "AggregatedListInstanceTemplatesRequest", "AggregatedListInstancesRequest", "AggregatedListInterconnectAttachmentsRequest", "AggregatedListMachineTypesRequest", @@ -225,6 +226,7 @@ "DeleteRegionHealthCheckRequest", "DeleteRegionHealthCheckServiceRequest", "DeleteRegionInstanceGroupManagerRequest", + "DeleteRegionInstanceTemplateRequest", "DeleteRegionNetworkEndpointGroupRequest", "DeleteRegionNetworkFirewallPolicyRequest", "DeleteRegionNotificationEndpointRequest", @@ -406,6 +408,7 @@ "GetRegionHealthCheckServiceRequest", "GetRegionInstanceGroupManagerRequest", "GetRegionInstanceGroupRequest", + "GetRegionInstanceTemplateRequest", "GetRegionNetworkEndpointGroupRequest", "GetRegionNetworkFirewallPolicyRequest", "GetRegionNotificationEndpointRequest", @@ -534,6 +537,7 @@ "InsertRegionHealthCheckRequest", "InsertRegionHealthCheckServiceRequest", "InsertRegionInstanceGroupManagerRequest", + "InsertRegionInstanceTemplateRequest", "InsertRegionNetworkEndpointGroupRequest", "InsertRegionNetworkFirewallPolicyRequest", "InsertRegionNotificationEndpointRequest", @@ -613,7 +617,9 @@ "InstanceProperties", "InstanceReference", "InstanceTemplate", + "InstanceTemplateAggregatedList", "InstanceTemplateList", + "InstanceTemplatesScopedList", "InstanceWithNamedPorts", "InstancesAddResourcePoliciesRequest", "InstancesGetEffectiveFirewallsResponse", @@ -624,6 +630,7 @@ "InstancesSetMachineResourcesRequest", "InstancesSetMachineTypeRequest", "InstancesSetMinCpuPlatformRequest", + "InstancesSetNameRequest", "InstancesSetServiceAccountRequest", "InstancesStartWithEncryptionKeyRequest", "Int64RangeMatch", @@ -719,6 +726,7 @@ "ListRegionHealthChecksRequest", "ListRegionInstanceGroupManagersRequest", "ListRegionInstanceGroupsRequest", + "ListRegionInstanceTemplatesRequest", "ListRegionNetworkEndpointGroupsRequest", "ListRegionNetworkFirewallPoliciesRequest", "ListRegionNotificationEndpointsRequest", @@ -1058,6 +1066,9 @@ "SecurityPolicyRuleHttpHeaderActionHttpHeaderOption", "SecurityPolicyRuleMatcher", "SecurityPolicyRuleMatcherConfig", + "SecurityPolicyRulePreconfiguredWafConfig", + "SecurityPolicyRulePreconfiguredWafConfigExclusion", + "SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams", "SecurityPolicyRuleRateLimitOptions", "SecurityPolicyRuleRateLimitOptionsThreshold", "SecurityPolicyRuleRedirectOptions", @@ -1126,6 +1137,7 @@ "SetMachineTypeInstanceRequest", "SetMetadataInstanceRequest", "SetMinCpuPlatformInstanceRequest", + "SetNameInstanceRequest", "SetNamedPortsInstanceGroupRequest", "SetNamedPortsRegionInstanceGroupRequest", "SetNodeTemplateNodeGroupRequest", @@ -1270,6 +1282,7 @@ "UpdateAutoscalerRequest", "UpdateBackendBucketRequest", "UpdateBackendServiceRequest", + "UpdateDiskRequest", "UpdateDisplayDeviceInstanceRequest", "UpdateFirewallRequest", "UpdateHealthCheckRequest", @@ -1281,6 +1294,7 @@ "UpdateRegionAutoscalerRequest", "UpdateRegionBackendServiceRequest", "UpdateRegionCommitmentRequest", + "UpdateRegionDiskRequest", "UpdateRegionHealthCheckRequest", "UpdateRegionUrlMapRequest", "UpdateReservationRequest", @@ -1835,9 +1849,12 @@ class AccessConfig(proto.Message): The first IPv6 address of the external IPv6 range associated with this instance, prefix length is stored in externalIpv6PrefixLength in - ipv6AccessConfig. The field is output only, an - IPv6 address from a subnetwork associated with - the instance will be allocated dynamically. + ipv6AccessConfig. To use a static external IP + address, it must be unused and in the same + region as the instance's zone. If not specified, + Google Cloud will automatically assign an + external IPv6 address from the instance's + subnetwork. This field is a member of `oneof`_ ``_external_ipv6``. external_ipv6_prefix_length (int): @@ -3396,7 +3413,7 @@ class Purpose(proto.Enum): attachment is created with the reserved IP address range, when creating a new VPN gateway, its interface IP address is allocated from the - associated VLAN attachment���s IP address range. + associated VLAN attachment’s IP address range. NAT_AUTO (163666477): External IP automatically reserved for Cloud NAT. @@ -5317,6 +5334,145 @@ class AggregatedListInstanceGroupsRequest(proto.Message): ) +class AggregatedListInstanceTemplatesRequest(proto.Message): + r"""A request message for InstanceTemplates.AggregatedList. See + the method description for details. + + + .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields + + Attributes: + filter (str): + A filter expression that filters resources listed in the + response. Most Compute resources support two types of filter + expressions: expressions that support regular expressions + and expressions that follow API improvement proposal + AIP-160. If you want to use AIP-160, your expression must + specify the field name, an operator, and the value that you + want to use for filtering. The value must be a string, a + number, or a boolean. The operator must be either ``=``, + ``!=``, ``>``, ``<``, ``<=``, ``>=`` or ``:``. For example, + if you are filtering Compute Engine instances, you can + exclude instances named ``example-instance`` by specifying + ``name != example-instance``. The ``:`` operator can be used + with string fields to match substrings. For non-string + fields it is equivalent to the ``=`` operator. The ``:*`` + comparison can be used to test whether a key has been + defined. For example, to find all objects with ``owner`` + label use: ``labels.owner:*`` You can also filter nested + fields. For example, you could specify + ``scheduling.automaticRestart = false`` to include instances + only if they are not scheduled for automatic restarts. You + can use filtering on nested fields to filter based on + resource labels. To filter on multiple expressions, provide + each separate expression within parentheses. For example: + ``(scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake")`` + By default, each expression is an ``AND`` expression. + However, you can include ``AND`` and ``OR`` expressions + explicitly. For example: + ``(cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true)`` + If you want to use a regular expression, use the ``eq`` + (equal) or ``ne`` (not equal) operator against a single + un-parenthesized expression with or without quotes or + against multiple parenthesized expressions. Examples: + ``fieldname eq unquoted literal`` + ``fieldname eq 'single quoted literal'`` + ``fieldname eq "double quoted literal"`` + ``(fieldname1 eq literal) (fieldname2 ne "literal")`` The + literal value is interpreted as a regular expression using + Google RE2 library syntax. The literal value must match the + entire field. For example, to filter for instances that do + not end with name "instance", you would use + ``name ne .*instance``. + + This field is a member of `oneof`_ ``_filter``. + include_all_scopes (bool): + Indicates whether every visible scope for + each scope type (zone, region, global) should be + included in the response. For new resource types + added after this field, the flag has no effect + as new resource types will always include every + visible scope for each scope type in response. + For resource types which predate this field, if + this flag is omitted or false, only scopes of + the scope types where the resource type is + expected to be found will be included. + + This field is a member of `oneof`_ ``_include_all_scopes``. + max_results (int): + The maximum number of results per page that should be + returned. If the number of available results is larger than + ``maxResults``, Compute Engine returns a ``nextPageToken`` + that can be used to get the next page of results in + subsequent list requests. Acceptable values are ``0`` to + ``500``, inclusive. (Default: ``500``) + + This field is a member of `oneof`_ ``_max_results``. + order_by (str): + Sorts list results by a certain order. By default, results + are returned in alphanumerical order based on the resource + name. You can also sort results in descending order based on + the creation timestamp using + ``orderBy="creationTimestamp desc"``. This sorts results + based on the ``creationTimestamp`` field in reverse + chronological order (newest result first). Use this to sort + resources like operations so that the newest operation is + returned first. Currently, only sorting by ``name`` or + ``creationTimestamp desc`` is supported. + + This field is a member of `oneof`_ ``_order_by``. + page_token (str): + Specifies a page token to use. Set ``pageToken`` to the + ``nextPageToken`` returned by a previous list request to get + the next page of results. + + This field is a member of `oneof`_ ``_page_token``. + project (str): + Name of the project scoping this request. + return_partial_success (bool): + Opt-in for partial success behavior which + provides partial results in case of failure. The + default value is false. + + This field is a member of `oneof`_ ``_return_partial_success``. + """ + + filter: str = proto.Field( + proto.STRING, + number=336120696, + optional=True, + ) + include_all_scopes: bool = proto.Field( + proto.BOOL, + number=391327988, + optional=True, + ) + max_results: int = proto.Field( + proto.UINT32, + number=54715419, + optional=True, + ) + order_by: str = proto.Field( + proto.STRING, + number=160562920, + optional=True, + ) + page_token: str = proto.Field( + proto.STRING, + number=19994697, + optional=True, + ) + project: str = proto.Field( + proto.STRING, + number=227560217, + ) + return_partial_success: bool = proto.Field( + proto.BOOL, + number=517198390, + optional=True, + ) + + class AggregatedListInstancesRequest(proto.Message): r"""A request message for Instances.AggregatedList. See the method description for details. @@ -9390,12 +9546,13 @@ class AliasIpRange(proto.Message): class AllocationResourceStatus(proto.Message): - r""" + r"""[Output Only] Contains output only fields. .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields Attributes: specific_sku_allocation (google.cloud.compute_v1.types.AllocationResourceStatusSpecificSKUAllocation): + Allocation Properties of this reservation. This field is a member of `oneof`_ ``_specific_sku_allocation``. """ @@ -9411,12 +9568,14 @@ class AllocationResourceStatus(proto.Message): class AllocationResourceStatusSpecificSKUAllocation(proto.Message): - r""" + r"""Contains Properties set for the reservation. .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields Attributes: source_instance_template_id (str): + ID of the instance template used to populate + reservation properties. This field is a member of `oneof`_ ``_source_instance_template_id``. """ @@ -11760,8 +11919,7 @@ class AutoscalingPolicyScalingSchedule(proto.Message): The time zone to use when interpreting the schedule. The value of this field must be a time zone name from the tz database: http://en.wikipedia.org/wiki/Tz_database. This - field is assigned a default value of ���UTC��� if left - empty. + field is assigned a default value of “UTC” if left empty. This field is a member of `oneof`_ ``_time_zone``. """ @@ -12756,14 +12914,17 @@ class BackendService(proto.Message): This field is a member of `oneof`_ ``_load_balancing_scheme``. locality_lb_policies (MutableSequence[google.cloud.compute_v1.types.BackendServiceLocalityLoadBalancingPolicyConfig]): - A list of locality load balancing policies to - be used in order of preference. Either the - policy or the customPolicy field should be set. - Overrides any value set in the localityLbPolicy - field. localityLbPolicies is only supported when - the BackendService is referenced by a URL Map - that is referenced by a target gRPC proxy that - has the validateForProxyless field set to true. + A list of locality load-balancing policies to be used in + order of preference. When you use localityLbPolicies, you + must set at least one value for either the + localityLbPolicies[].policy or the + localityLbPolicies[].customPolicy field. localityLbPolicies + overrides any value set in the localityLbPolicy field. For + an example of how to use this field, see Define a list of + preferred policies. Caution: This field and its children are + intended for use in a service mesh that includes gRPC + clients only. Envoy proxies can't use backend services that + have this configuration. locality_lb_policy (str): The load balancing algorithm used within the scope of the locality. The possible values are: - ROUND_ROBIN: This is a @@ -13061,6 +13222,18 @@ class LocalityLbPolicy(proto.Enum): This is a simple policy in which each healthy backend is selected in round robin order. This is the default. + WEIGHTED_MAGLEV (254930962): + Per-instance weighted Load Balancing via health check + reported weights. If set, the Backend Service must configure + a non legacy HTTP-based Health Check, and health check + replies are expected to contain non-standard HTTP response + header field X-Load-Balancing-Endpoint-Weight to specify the + per-instance weights. If set, Load Balancing is weighted + based on the per-instance weights reported in the last + processed health check replies, as long as every instance + either reported a valid weight or had UNAVAILABLE_WEIGHT. + Otherwise, Load Balancing remains equal-weight. This option + is only supported in Network Load Balancing. """ UNDEFINED_LOCALITY_LB_POLICY = 0 INVALID_LB_POLICY = 323318707 @@ -13070,6 +13243,7 @@ class LocalityLbPolicy(proto.Enum): RANDOM = 262527171 RING_HASH = 432795069 ROUND_ROBIN = 153895801 + WEIGHTED_MAGLEV = 254930962 class Protocol(proto.Enum): r"""The protocol this BackendService uses to communicate with @@ -14229,14 +14403,15 @@ class BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy(proto.Message) This field is a member of `oneof`_ ``_data``. name (str): Identifies the custom policy. The value - should match the type the custom implementation - is registered with on the gRPC clients. It - should follow protocol buffer message naming - conventions and include the full path (e.g. + should match the name of a custom implementation + registered on the gRPC clients. It should follow + protocol buffer message naming conventions and + include the full path (for example, myorg.CustomLbPolicy). The maximum length is 256 - characters. Note that specifying the same custom - policy more than once for a backend is not a - valid configuration and will be rejected. + characters. Do not specify the same custom + policy more than once for a backend. If you do, + the configuration is rejected. For an example of + how to use this field, see Use a custom policy. This field is a member of `oneof`_ ``_name``. """ @@ -14260,26 +14435,23 @@ class BackendServiceLocalityLoadBalancingPolicyConfigPolicy(proto.Message): Attributes: name (str): - The name of a locality load balancer policy to be used. The - value should be one of the predefined ones as supported by - localityLbPolicy, although at the moment only ROUND_ROBIN is - supported. This field should only be populated when the - customPolicy field is not used. Note that specifying the - same policy more than once for a backend is not a valid - configuration and will be rejected. Check the Name enum for - the list of possible values. + The name of a locality load-balancing policy. Valid values + include ROUND_ROBIN and, for Java clients, LEAST_REQUEST. + For information about these values, see the description of + localityLbPolicy. Do not specify the same policy more than + once for a backend. If you do, the configuration is + rejected. Check the Name enum for the list of possible + values. This field is a member of `oneof`_ ``_name``. """ class Name(proto.Enum): - r"""The name of a locality load balancer policy to be used. The value - should be one of the predefined ones as supported by - localityLbPolicy, although at the moment only ROUND_ROBIN is - supported. This field should only be populated when the customPolicy - field is not used. Note that specifying the same policy more than - once for a backend is not a valid configuration and will be - rejected. + r"""The name of a locality load-balancing policy. Valid values include + ROUND_ROBIN and, for Java clients, LEAST_REQUEST. For information + about these values, see the description of localityLbPolicy. Do not + specify the same policy more than once for a backend. If you do, the + configuration is rejected. Values: UNDEFINED_NAME (0): @@ -14319,6 +14491,18 @@ class Name(proto.Enum): This is a simple policy in which each healthy backend is selected in round robin order. This is the default. + WEIGHTED_MAGLEV (254930962): + Per-instance weighted Load Balancing via health check + reported weights. If set, the Backend Service must configure + a non legacy HTTP-based Health Check, and health check + replies are expected to contain non-standard HTTP response + header field X-Load-Balancing-Endpoint-Weight to specify the + per-instance weights. If set, Load Balancing is weighted + based on the per-instance weights reported in the last + processed health check replies, as long as every instance + either reported a valid weight or had UNAVAILABLE_WEIGHT. + Otherwise, Load Balancing remains equal-weight. This option + is only supported in Network Load Balancing. """ UNDEFINED_NAME = 0 INVALID_LB_POLICY = 323318707 @@ -14328,6 +14512,7 @@ class Name(proto.Enum): RANDOM = 262527171 RING_HASH = 432795069 ROUND_ROBIN = 153895801 + WEIGHTED_MAGLEV = 254930962 name: str = proto.Field( proto.STRING, @@ -14350,6 +14535,23 @@ class BackendServiceLogConfig(proto.Message): service. The default value is false. This field is a member of `oneof`_ ``_enable``. + optional_fields (MutableSequence[str]): + This field can only be specified if logging + is enabled for this backend service and + "logConfig.optionalMode" was set to CUSTOM. + Contains a list of optional fields you want to + include in the logs. For example: + serverInstance, serverGkeDetails.cluster, + serverGkeDetails.pod.podNamespace + optional_mode (str): + This field can only be specified if logging is enabled for + this backend service. Configures whether all, none or a + subset of optional fields should be added to the reported + logs. One of [INCLUDE_ALL_OPTIONAL, EXCLUDE_ALL_OPTIONAL, + CUSTOM]. Default is EXCLUDE_ALL_OPTIONAL. Check the + OptionalMode enum for the list of possible values. + + This field is a member of `oneof`_ ``_optional_mode``. sample_rate (float): This field can only be specified if logging is enabled for this backend service. The value of the field must be in [0, @@ -14361,11 +14563,43 @@ class BackendServiceLogConfig(proto.Message): This field is a member of `oneof`_ ``_sample_rate``. """ + class OptionalMode(proto.Enum): + r"""This field can only be specified if logging is enabled for this + backend service. Configures whether all, none or a subset of + optional fields should be added to the reported logs. One of + [INCLUDE_ALL_OPTIONAL, EXCLUDE_ALL_OPTIONAL, CUSTOM]. Default is + EXCLUDE_ALL_OPTIONAL. + + Values: + UNDEFINED_OPTIONAL_MODE (0): + A value indicating that the enum field is not + set. + CUSTOM (388595569): + A subset of optional fields. + EXCLUDE_ALL_OPTIONAL (168636099): + None optional fields. + INCLUDE_ALL_OPTIONAL (535606965): + All optional fields. + """ + UNDEFINED_OPTIONAL_MODE = 0 + CUSTOM = 388595569 + EXCLUDE_ALL_OPTIONAL = 168636099 + INCLUDE_ALL_OPTIONAL = 535606965 + enable: bool = proto.Field( proto.BOOL, number=311764355, optional=True, ) + optional_fields: MutableSequence[str] = proto.RepeatedField( + proto.STRING, + number=528589944, + ) + optional_mode: str = proto.Field( + proto.STRING, + number=128697122, + optional=True, + ) sample_rate: float = proto.Field( proto.FLOAT, number=153193045, @@ -14989,6 +15223,9 @@ class Binding(proto.Message): ``my-project.svc.id.goog[my-namespace/my-kubernetes-sa]``. \* ``group:{emailid}``: An email address that represents a Google group. For example, ``admins@example.com``. \* + ``domain:{domain}``: The G Suite domain (primary) that + represents all the users of that domain. For example, + ``google.com`` or ``example.com``. \* ``deleted:user:{emailid}?uid={uniqueid}``: An email address (plus unique identifier) representing a user that has been recently deleted. For example, @@ -15008,9 +15245,7 @@ class Binding(proto.Message): ``admins@example.com?uid=123456789012345678901``. If the group is recovered, this value reverts to ``group:{emailid}`` and the recovered group retains the role - in the binding. \* ``domain:{domain}``: The G Suite domain - (primary) that represents all the users of that domain. For - example, ``google.com`` or ``example.com``. + in the binding. role (str): Role that is assigned to the list of ``members``, or principals. For example, ``roles/viewer``, ``roles/editor``, @@ -15834,7 +16069,9 @@ class Status(proto.Enum): ACTIVE (314733318): No description available. CANCELLED (41957681): - No description available. + Deprecate CANCELED status. Will use separate + status to differentiate cancel by mergeCud or + manual cancellation. CREATING (455564985): No description available. EXPIRED (482489093): @@ -15866,6 +16103,8 @@ class Type(proto.Enum): No description available. COMPUTE_OPTIMIZED_C2D (383246453): No description available. + COMPUTE_OPTIMIZED_C3 (428004784): + No description available. GENERAL_PURPOSE (299793543): No description available. GENERAL_PURPOSE_E2 (301911877): @@ -15887,6 +16126,7 @@ class Type(proto.Enum): ACCELERATOR_OPTIMIZED = 280848403 COMPUTE_OPTIMIZED = 158349023 COMPUTE_OPTIMIZED_C2D = 383246453 + COMPUTE_OPTIMIZED_C3 = 428004784 GENERAL_PURPOSE = 299793543 GENERAL_PURPOSE_E2 = 301911877 GENERAL_PURPOSE_N2 = 301912156 @@ -19343,6 +19583,59 @@ class DeleteRegionInstanceGroupManagerRequest(proto.Message): ) +class DeleteRegionInstanceTemplateRequest(proto.Message): + r"""A request message for RegionInstanceTemplates.Delete. See the + method description for details. + + + .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields + + Attributes: + instance_template (str): + The name of the instance template to delete. + project (str): + Project ID for this request. + region (str): + The name of the region for this request. + request_id (str): + An optional request ID to identify requests. + Specify a unique request ID so that if you must + retry your request, the server will know to + ignore the request if it has already been + completed. For example, consider a situation + where you make an initial request and the + request times out. If you make the request again + with the same request ID, the server can check + if original operation with the same request ID + was received, and if so, will ignore the second + request. This prevents clients from accidentally + creating duplicate commitments. The request ID + must be a valid UUID with the exception that + zero UUID is not supported ( + 00000000-0000-0000-0000-000000000000). + + This field is a member of `oneof`_ ``_request_id``. + """ + + instance_template: str = proto.Field( + proto.STRING, + number=309248228, + ) + project: str = proto.Field( + proto.STRING, + number=227560217, + ) + region: str = proto.Field( + proto.STRING, + number=138946292, + ) + request_id: str = proto.Field( + proto.STRING, + number=37109963, + optional=True, + ) + + class DeleteRegionNetworkEndpointGroupRequest(proto.Message): r"""A request message for RegionNetworkEndpointGroups.Delete. See the method description for details. @@ -25127,6 +25420,15 @@ class ForwardingRule(proto.Message): balancer types. This field is a member of `oneof`_ ``_backend_service``. + base_forwarding_rule (str): + [Output Only] The URL for the corresponding base Forwarding + Rule. By base Forwarding Rule, we mean the Forwarding Rule + that has the same IP address, protocol, and port settings + with the current Forwarding Rule, but without sourceIPRanges + specified. Always empty if the current Forwarding Rule does + not have sourceIPRanges specified. + + This field is a member of `oneof`_ ``_base_forwarding_rule``. creation_timestamp (str): [Output Only] Creation timestamp in RFC3339 text format. @@ -25353,6 +25655,15 @@ class ForwardingRule(proto.Message): load balancing. This field is a member of `oneof`_ ``_service_name``. + source_ip_ranges (MutableSequence[str]): + If not empty, this Forwarding Rule will only forward the + traffic when the source IP address matches one of the IP + addresses or CIDR ranges set here. Note that a Forwarding + Rule can only have up to 64 source IP ranges, and this field + can only be used with a regional Forwarding Rule whose + scheme is EXTERNAL. Each source_ip_range entry should be + either an IP address (for example, 1.2.3.4) or a CIDR range + (for example, 1.2.3.0/24). subnetwork (str): This field identifies the subnetwork that the load balanced IP should belong to for this @@ -25561,6 +25872,11 @@ class PscConnectionStatus(proto.Enum): number=306946058, optional=True, ) + base_forwarding_rule: str = proto.Field( + proto.STRING, + number=524873104, + optional=True, + ) creation_timestamp: str = proto.Field( proto.STRING, number=30525366, @@ -25682,6 +25998,10 @@ class PscConnectionStatus(proto.Enum): number=359880149, optional=True, ) + source_ip_ranges: MutableSequence[str] = proto.RepeatedField( + proto.STRING, + number=111563210, + ) subnetwork: str = proto.Field( proto.STRING, number=307827694, @@ -26549,7 +26869,9 @@ class GetFromFamilyImageRequest(proto.Message): family (str): Name of the image family to search for. project (str): - Project ID for this request. + The image project that the image belongs to. + For example, to get a CentOS image, specify + centos-cloud as the image project. """ family: str = proto.Field( @@ -28591,6 +28913,33 @@ class GetRegionInstanceGroupRequest(proto.Message): ) +class GetRegionInstanceTemplateRequest(proto.Message): + r"""A request message for RegionInstanceTemplates.Get. See the + method description for details. + + Attributes: + instance_template (str): + The name of the instance template. + project (str): + Project ID for this request. + region (str): + The name of the region for this request. + """ + + instance_template: str = proto.Field( + proto.STRING, + number=309248228, + ) + project: str = proto.Field( + proto.STRING, + number=227560217, + ) + region: str = proto.Field( + proto.STRING, + number=138946292, + ) + + class GetRegionNetworkEndpointGroupRequest(proto.Message): r"""A request message for RegionNetworkEndpointGroups.Get. See the method description for details. @@ -30214,9 +30563,10 @@ class GuestOsFeature(proto.Message): commas to separate values. Set to one or more of the following values: - VIRTIO_SCSI_MULTIQUEUE - WINDOWS - MULTI_IP_SUBNET - UEFI_COMPATIBLE - GVNIC - SEV_CAPABLE - - SUSPEND_RESUME_COMPATIBLE - SEV_SNP_CAPABLE For more - information, see Enabling guest operating system features. - Check the Type enum for the list of possible values. + SUSPEND_RESUME_COMPATIBLE - SEV_SNP_CAPABLE - TDX_CAPABLE + For more information, see Enabling guest operating system + features. Check the Type enum for the list of possible + values. This field is a member of `oneof`_ ``_type``. """ @@ -30226,7 +30576,8 @@ class Type(proto.Enum): separate values. Set to one or more of the following values: - VIRTIO_SCSI_MULTIQUEUE - WINDOWS - MULTI_IP_SUBNET - UEFI_COMPATIBLE - GVNIC - SEV_CAPABLE - SUSPEND_RESUME_COMPATIBLE - SEV_SNP_CAPABLE - For more information, see Enabling guest operating system features. + - TDX_CAPABLE For more information, see Enabling guest operating + system features. Values: UNDEFINED_TYPE (0): @@ -32977,11 +33328,17 @@ class Image(proto.Message): This field is a member of `oneof`_ ``_disk_size_gb``. family (str): The name of the image family to which this - image belongs. You can create disks by - specifying an image family instead of a specific - image name. The image family always returns its - latest image that is not deprecated. The name of - the image family must comply with RFC1035. + image belongs. The image family name can be from + a publicly managed image family provided by + Compute Engine, or from a custom image family + you create. For example, centos-stream-9 is a + publicly available image family. For more + information, see Image family best practices. + When creating disks, you can specify an image + family instead of a specific image name. The + image family always returns its latest image + that is not deprecated. The name of the image + family must comply with RFC1035. This field is a member of `oneof`_ ``_family``. guest_os_features (MutableSequence[google.cloud.compute_v1.types.GuestOsFeature]): @@ -35676,6 +36033,60 @@ class InsertRegionInstanceGroupManagerRequest(proto.Message): ) +class InsertRegionInstanceTemplateRequest(proto.Message): + r"""A request message for RegionInstanceTemplates.Insert. See the + method description for details. + + + .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields + + Attributes: + instance_template_resource (google.cloud.compute_v1.types.InstanceTemplate): + The body resource for this request + project (str): + Project ID for this request. + region (str): + The name of the region for this request. + request_id (str): + An optional request ID to identify requests. + Specify a unique request ID so that if you must + retry your request, the server will know to + ignore the request if it has already been + completed. For example, consider a situation + where you make an initial request and the + request times out. If you make the request again + with the same request ID, the server can check + if original operation with the same request ID + was received, and if so, will ignore the second + request. This prevents clients from accidentally + creating duplicate commitments. The request ID + must be a valid UUID with the exception that + zero UUID is not supported ( + 00000000-0000-0000-0000-000000000000). + + This field is a member of `oneof`_ ``_request_id``. + """ + + instance_template_resource: "InstanceTemplate" = proto.Field( + proto.MESSAGE, + number=10679561, + message="InstanceTemplate", + ) + project: str = proto.Field( + proto.STRING, + number=227560217, + ) + region: str = proto.Field( + proto.STRING, + number=138946292, + ) + request_id: str = proto.Field( + proto.STRING, + number=37109963, + optional=True, + ) + + class InsertRegionNetworkEndpointGroupRequest(proto.Message): r"""A request message for RegionNetworkEndpointGroups.Insert. See the method description for details. @@ -39524,8 +39935,8 @@ class InstanceGroupManagersApplyUpdatesRequest(proto.Message): Attributes: all_instances (bool): Flag to update all instances instead of - specified list of ���instances���. If the flag - is set to true then the instances may not be + specified list of “instances”. If the flag is + set to true then the instances may not be specified in the request. This field is a member of `oneof`_ ``_all_instances``. @@ -40951,6 +41362,11 @@ class InstanceTemplate(proto.Message): template. This field is a member of `oneof`_ ``_properties``. + region (str): + [Output Only] URL of the region where the instance template + resides. Only applicable for regional resources. + + This field is a member of `oneof`_ ``_region``. self_link (str): [Output Only] The URL for this instance template. The server defines this URL. @@ -41004,6 +41420,11 @@ class InstanceTemplate(proto.Message): optional=True, message="InstanceProperties", ) + region: str = proto.Field( + proto.STRING, + number=138946292, + optional=True, + ) self_link: str = proto.Field( proto.STRING, number=456214797, @@ -41022,6 +41443,81 @@ class InstanceTemplate(proto.Message): ) +class InstanceTemplateAggregatedList(proto.Message): + r"""Contains a list of InstanceTemplatesScopedList. + + .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields + + Attributes: + id (str): + [Output Only] Unique identifier for the resource; defined by + the server. + + This field is a member of `oneof`_ ``_id``. + items (MutableMapping[str, google.cloud.compute_v1.types.InstanceTemplatesScopedList]): + A list of InstanceTemplatesScopedList + resources. + kind (str): + Type of resource. + + This field is a member of `oneof`_ ``_kind``. + next_page_token (str): + [Output Only] This token allows you to get the next page of + results for list requests. If the number of results is + larger than maxResults, use the nextPageToken as a value for + the query parameter pageToken in the next list request. + Subsequent list requests will have their own nextPageToken + to continue paging through the results. + + This field is a member of `oneof`_ ``_next_page_token``. + self_link (str): + [Output Only] Server-defined URL for this resource. + + This field is a member of `oneof`_ ``_self_link``. + warning (google.cloud.compute_v1.types.Warning): + [Output Only] Informational warning message. + + This field is a member of `oneof`_ ``_warning``. + """ + + @property + def raw_page(self): + return self + + id: str = proto.Field( + proto.STRING, + number=3355, + optional=True, + ) + items: MutableMapping[str, "InstanceTemplatesScopedList"] = proto.MapField( + proto.STRING, + proto.MESSAGE, + number=100526016, + message="InstanceTemplatesScopedList", + ) + kind: str = proto.Field( + proto.STRING, + number=3292052, + optional=True, + ) + next_page_token: str = proto.Field( + proto.STRING, + number=79797525, + optional=True, + ) + self_link: str = proto.Field( + proto.STRING, + number=456214797, + optional=True, + ) + warning: "Warning" = proto.Field( + proto.MESSAGE, + number=50704284, + optional=True, + message="Warning", + ) + + class InstanceTemplateList(proto.Message): r"""A list of instance templates. @@ -41097,6 +41593,35 @@ def raw_page(self): ) +class InstanceTemplatesScopedList(proto.Message): + r""" + + .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields + + Attributes: + instance_templates (MutableSequence[google.cloud.compute_v1.types.InstanceTemplate]): + [Output Only] A list of instance templates that are + contained within the specified project and zone. + warning (google.cloud.compute_v1.types.Warning): + [Output Only] An informational warning that replaces the + list of instance templates when the list is empty. + + This field is a member of `oneof`_ ``_warning``. + """ + + instance_templates: MutableSequence["InstanceTemplate"] = proto.RepeatedField( + proto.MESSAGE, + number=459889679, + message="InstanceTemplate", + ) + warning: "Warning" = proto.Field( + proto.MESSAGE, + number=50704284, + optional=True, + message="Warning", + ) + + class InstanceWithNamedPorts(proto.Message): r""" @@ -41428,6 +41953,37 @@ class InstancesSetMinCpuPlatformRequest(proto.Message): ) +class InstancesSetNameRequest(proto.Message): + r""" + + .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields + + Attributes: + current_name (str): + The current name of this resource, used to + prevent conflicts. Provide the latest name when + making a request to change name. + + This field is a member of `oneof`_ ``_current_name``. + name (str): + The name to be applied to the instance. Needs + to be RFC 1035 compliant. + + This field is a member of `oneof`_ ``_name``. + """ + + current_name: str = proto.Field( + proto.STRING, + number=394983825, + optional=True, + ) + name: str = proto.Field( + proto.STRING, + number=3373707, + optional=True, + ) + + class InstancesSetServiceAccountRequest(proto.Message): r""" @@ -41651,9 +42207,7 @@ class Interconnect(proto.Message): This field is a member of `oneof`_ ``_requested_link_count``. satisfies_pzs (bool): - [Output Only] Set to true if the resource satisfies the zone - separation organization policy constraints and false - otherwise. Defaults to false if the field is not present. + [Output Only] Reserved for future use. This field is a member of `oneof`_ ``_satisfies_pzs``. self_link (str): @@ -42132,9 +42686,7 @@ class InterconnectAttachment(proto.Message): This field is a member of `oneof`_ ``_router``. satisfies_pzs (bool): - [Output Only] Set to true if the resource satisfies the zone - separation organization policy constraints and false - otherwise. Defaults to false if the field is not present. + [Output Only] Reserved for future use. This field is a member of `oneof`_ ``_satisfies_pzs``. self_link (str): @@ -42186,7 +42738,7 @@ class InterconnectAttachment(proto.Message): This field is a member of `oneof`_ ``_type``. vlan_tag8021q (int): The IEEE 802.1Q VLAN tag for this attachment, - in the range 2-4094. Only specified at creation + in the range 2-4093. Only specified at creation time. This field is a member of `oneof`_ ``_vlan_tag8021q``. @@ -43476,9 +44028,7 @@ class InterconnectLocation(proto.Message): This field is a member of `oneof`_ ``_status``. supports_pzs (bool): - [Output Only] Set to true for locations that support - physical zone separation. Defaults to false if the field is - not present. + [Output Only] Reserved for future use. This field is a member of `oneof`_ ``_supports_pzs``. """ @@ -46119,7 +46669,10 @@ class ListFirewallPoliciesRequest(proto.Message): This field is a member of `oneof`_ ``_page_token``. parent_id (str): - Parent ID for this request. + Parent ID for this request. The ID can be either be + "folders/[FOLDER_ID]" if the parent is a folder or + "organizations/[ORGANIZATION_ID]" if the parent is an + organization. This field is a member of `oneof`_ ``_parent_id``. return_partial_success (bool): @@ -52688,6 +53241,133 @@ class ListRegionInstanceGroupsRequest(proto.Message): ) +class ListRegionInstanceTemplatesRequest(proto.Message): + r"""A request message for RegionInstanceTemplates.List. See the + method description for details. + + + .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields + + Attributes: + filter (str): + A filter expression that filters resources listed in the + response. Most Compute resources support two types of filter + expressions: expressions that support regular expressions + and expressions that follow API improvement proposal + AIP-160. If you want to use AIP-160, your expression must + specify the field name, an operator, and the value that you + want to use for filtering. The value must be a string, a + number, or a boolean. The operator must be either ``=``, + ``!=``, ``>``, ``<``, ``<=``, ``>=`` or ``:``. For example, + if you are filtering Compute Engine instances, you can + exclude instances named ``example-instance`` by specifying + ``name != example-instance``. The ``:`` operator can be used + with string fields to match substrings. For non-string + fields it is equivalent to the ``=`` operator. The ``:*`` + comparison can be used to test whether a key has been + defined. For example, to find all objects with ``owner`` + label use: ``labels.owner:*`` You can also filter nested + fields. For example, you could specify + ``scheduling.automaticRestart = false`` to include instances + only if they are not scheduled for automatic restarts. You + can use filtering on nested fields to filter based on + resource labels. To filter on multiple expressions, provide + each separate expression within parentheses. For example: + ``(scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake")`` + By default, each expression is an ``AND`` expression. + However, you can include ``AND`` and ``OR`` expressions + explicitly. For example: + ``(cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true)`` + If you want to use a regular expression, use the ``eq`` + (equal) or ``ne`` (not equal) operator against a single + un-parenthesized expression with or without quotes or + against multiple parenthesized expressions. Examples: + ``fieldname eq unquoted literal`` + ``fieldname eq 'single quoted literal'`` + ``fieldname eq "double quoted literal"`` + ``(fieldname1 eq literal) (fieldname2 ne "literal")`` The + literal value is interpreted as a regular expression using + Google RE2 library syntax. The literal value must match the + entire field. For example, to filter for instances that do + not end with name "instance", you would use + ``name ne .*instance``. + + This field is a member of `oneof`_ ``_filter``. + max_results (int): + The maximum number of results per page that should be + returned. If the number of available results is larger than + ``maxResults``, Compute Engine returns a ``nextPageToken`` + that can be used to get the next page of results in + subsequent list requests. Acceptable values are ``0`` to + ``500``, inclusive. (Default: ``500``) + + This field is a member of `oneof`_ ``_max_results``. + order_by (str): + Sorts list results by a certain order. By default, results + are returned in alphanumerical order based on the resource + name. You can also sort results in descending order based on + the creation timestamp using + ``orderBy="creationTimestamp desc"``. This sorts results + based on the ``creationTimestamp`` field in reverse + chronological order (newest result first). Use this to sort + resources like operations so that the newest operation is + returned first. Currently, only sorting by ``name`` or + ``creationTimestamp desc`` is supported. + + This field is a member of `oneof`_ ``_order_by``. + page_token (str): + Specifies a page token to use. Set ``pageToken`` to the + ``nextPageToken`` returned by a previous list request to get + the next page of results. + + This field is a member of `oneof`_ ``_page_token``. + project (str): + Project ID for this request. + region (str): + The name of the regions for this request. + return_partial_success (bool): + Opt-in for partial success behavior which + provides partial results in case of failure. The + default value is false. + + This field is a member of `oneof`_ ``_return_partial_success``. + """ + + filter: str = proto.Field( + proto.STRING, + number=336120696, + optional=True, + ) + max_results: int = proto.Field( + proto.UINT32, + number=54715419, + optional=True, + ) + order_by: str = proto.Field( + proto.STRING, + number=160562920, + optional=True, + ) + page_token: str = proto.Field( + proto.STRING, + number=19994697, + optional=True, + ) + project: str = proto.Field( + proto.STRING, + number=227560217, + ) + region: str = proto.Field( + proto.STRING, + number=138946292, + ) + return_partial_success: bool = proto.Field( + proto.BOOL, + number=517198390, + optional=True, + ) + + class ListRegionNetworkEndpointGroupsRequest(proto.Message): r"""A request message for RegionNetworkEndpointGroups.List. See the method description for details. @@ -59001,7 +59681,10 @@ class MoveFirewallPolicyRequest(proto.Message): firewall_policy (str): Name of the firewall policy to update. parent_id (str): - The new parent of the firewall policy. + The new parent of the firewall policy. The ID can be either + be "folders/[FOLDER_ID]" if the parent is a folder or + "organizations/[ORGANIZATION_ID]" if the parent is an + organization. request_id (str): An optional request ID to identify requests. Specify a unique request ID so that if you must @@ -61043,7 +61726,12 @@ class NetworkInterface(proto.Message): This field is a member of `oneof`_ ``_ipv6_access_type``. ipv6_address (str): An IPv6 internal network address for this - network interface. + network interface. To use a static internal IP + address, it must be unused and in the same + region as the instance's zone. If not specified, + Google Cloud will automatically assign an + internal IPv6 address from the instance's + subnetwork. This field is a member of `oneof`_ ``_ipv6_address``. kind (str): @@ -62731,11 +63419,7 @@ class NodeTemplate(proto.Message): This field is a member of `oneof`_ ``_node_type``. node_type_flexibility (google.cloud.compute_v1.types.NodeTemplateNodeTypeFlexibility): - The flexible properties of the desired node type. Node - groups that use this node template will create nodes of a - type that matches these properties. This field is mutually - exclusive with the node_type property; you can only define - one or the other, but not both. + Do not use. Instead, use the node_type property. This field is a member of `oneof`_ ``_node_type_flexibility``. region (str): @@ -69709,6 +70393,8 @@ class Metric(proto.Enum): No description available. NETWORKS (485481477): No description available. + NETWORK_ATTACHMENTS (149028575): + No description available. NETWORK_ENDPOINT_GROUPS (102144909): No description available. NETWORK_FIREWALL_POLICIES (101117374): @@ -69921,6 +70607,7 @@ class Metric(proto.Enum): N2D_CPUS = 351743370 N2_CPUS = 416465286 NETWORKS = 485481477 + NETWORK_ATTACHMENTS = 149028575 NETWORK_ENDPOINT_GROUPS = 102144909 NETWORK_FIREWALL_POLICIES = 101117374 NODE_GROUPS = 24624817 @@ -70845,8 +71532,8 @@ class RegionInstanceGroupManagersApplyUpdatesRequest(proto.Message): Attributes: all_instances (bool): Flag to update all instances instead of - specified list of ���instances���. If the flag - is set to true then the instances may not be + specified list of “instances”. If the flag is + set to true then the instances may not be specified in the request. This field is a member of `oneof`_ ``_all_instances``. @@ -72501,7 +73188,10 @@ class Reservation(proto.Message): This field is a member of `oneof`_ ``_name``. resource_policies (MutableMapping[str, str]): - + Resource policies to be added to this + reservation. The key is defined by user, and the + value is resource policy url. This is to define + placement policy with reservation. resource_status (google.cloud.compute_v1.types.AllocationResourceStatus): [Output Only] Status information for Reservation resource. @@ -73836,7 +74526,7 @@ class ResourcePolicyInstanceSchedulePolicy(proto.Message): Specifies the time zone to be used in interpreting Schedule.schedule. The value of this field must be a time zone name from the tz database: - http://en.wikipedia.org/wiki/Tz_database. + https://wikipedia.org/wiki/Tz_database. This field is a member of `oneof`_ ``_time_zone``. vm_start_schedule (google.cloud.compute_v1.types.ResourcePolicyInstanceSchedulePolicySchedule): @@ -75231,10 +75921,10 @@ class RouterBgpPeer(proto.Message): This field is a member of `oneof`_ ``_advertise_mode``. advertised_groups (MutableSequence[str]): User-specified list of prefix groups to advertise in custom - mode, which can take one of the following options: - - ALL_SUBNETS: Advertises all available subnets, including - peer VPC subnets. - ALL_VPC_SUBNETS: Advertises the router's - own VPC subnets. Note that this field can only be populated + mode, which currently supports the following option: - + ALL_SUBNETS: Advertises all of the router's own VPC subnets. + This excludes any routes learned for subnets that use VPC + Network Peering. Note that this field can only be populated if advertise_mode is CUSTOM and overrides the list defined for the router (in the "bgp" message). These groups are advertised in addition to any specified prefixes. Leave this @@ -78113,6 +78803,11 @@ class SecurityPolicy(proto.Message): internal service policies can be configured to filter HTTP requests targeting services managed by Traffic Director in a service mesh. They filter requests before the request is + served from the application. - CLOUD_ARMOR_NETWORK: Cloud + Armor network policies can be configured to filter packets + targeting network load balancing resources such as backend + services, target pools, target instances, and instances with + external IPs. They filter requests before the request is served from the application. This field can be set only at resource creation time. Check the Type enum for the list of possible values. @@ -78133,7 +78828,12 @@ class Type(proto.Enum): internal service policies can be configured to filter HTTP requests targeting services managed by Traffic Director in a service mesh. They filter requests before the request is served from the - application. This field can be set only at resource creation time. + application. - CLOUD_ARMOR_NETWORK: Cloud Armor network policies can + be configured to filter packets targeting network load balancing + resources such as backend services, target pools, target instances, + and instances with external IPs. They filter requests before the + request is served from the application. This field can be set only + at resource creation time. Values: UNDEFINED_TYPE (0): @@ -78548,18 +79248,18 @@ class SecurityPolicyRule(proto.Message): action (str): The Action to perform when the rule is matched. The following are the valid actions: - allow: allow access to - target. - deny(): deny access to target, returns the HTTP - response code specified (valid values are 403, 404, and - 502). - rate_based_ban: limit client traffic to the - configured threshold and ban the client if the traffic - exceeds the threshold. Configure parameters for this action - in RateLimitOptions. Requires rate_limit_options to be set. - - redirect: redirect to a different target. This can either - be an internal reCAPTCHA redirect, or an external URL-based - redirect via a 302 response. Parameters for this action can - be configured via redirectOptions. - throttle: limit client - traffic to the configured threshold. Configure parameters - for this action in rateLimitOptions. Requires + target. - deny(STATUS): deny access to target, returns the + HTTP response code specified. Valid values for ``STATUS`` + are 403, 404, and 502. - rate_based_ban: limit client + traffic to the configured threshold and ban the client if + the traffic exceeds the threshold. Configure parameters for + this action in RateLimitOptions. Requires rate_limit_options + to be set. - redirect: redirect to a different target. This + can either be an internal reCAPTCHA redirect, or an external + URL-based redirect via a 302 response. Parameters for this + action can be configured via redirectOptions. - throttle: + limit client traffic to the configured threshold. Configure + parameters for this action in rateLimitOptions. Requires rate_limit_options to be set for this. This field is a member of `oneof`_ ``_action``. @@ -78585,6 +79285,14 @@ class SecurityPolicyRule(proto.Message): corresponding 'action' is enforced. This field is a member of `oneof`_ ``_match``. + preconfigured_waf_config (google.cloud.compute_v1.types.SecurityPolicyRulePreconfiguredWafConfig): + Preconfigured WAF configuration to be applied + for the rule. If the rule does not evaluate + preconfigured WAF rules, i.e., if + evaluatePreconfiguredWaf() is not used, this + field will have no effect. + + This field is a member of `oneof`_ ``_preconfigured_waf_config``. preview (bool): If set to true, the specified action is not enforced. @@ -78638,6 +79346,12 @@ class SecurityPolicyRule(proto.Message): optional=True, message="SecurityPolicyRuleMatcher", ) + preconfigured_waf_config: "SecurityPolicyRulePreconfiguredWafConfig" = proto.Field( + proto.MESSAGE, + number=117805027, + optional=True, + message="SecurityPolicyRulePreconfiguredWafConfig", + ) preview: bool = proto.Field( proto.BOOL, number=218686408, @@ -78791,6 +79505,161 @@ class SecurityPolicyRuleMatcherConfig(proto.Message): ) +class SecurityPolicyRulePreconfiguredWafConfig(proto.Message): + r""" + + Attributes: + exclusions (MutableSequence[google.cloud.compute_v1.types.SecurityPolicyRulePreconfiguredWafConfigExclusion]): + A list of exclusions to apply during + preconfigured WAF evaluation. + """ + + exclusions: MutableSequence[ + "SecurityPolicyRulePreconfiguredWafConfigExclusion" + ] = proto.RepeatedField( + proto.MESSAGE, + number=208665701, + message="SecurityPolicyRulePreconfiguredWafConfigExclusion", + ) + + +class SecurityPolicyRulePreconfiguredWafConfigExclusion(proto.Message): + r""" + + .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields + + Attributes: + request_cookies_to_exclude (MutableSequence[google.cloud.compute_v1.types.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams]): + A list of request cookie names whose value + will be excluded from inspection during + preconfigured WAF evaluation. + request_headers_to_exclude (MutableSequence[google.cloud.compute_v1.types.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams]): + A list of request header names whose value + will be excluded from inspection during + preconfigured WAF evaluation. + request_query_params_to_exclude (MutableSequence[google.cloud.compute_v1.types.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams]): + A list of request query parameter names whose + value will be excluded from inspection during + preconfigured WAF evaluation. Note that the + parameter can be in the query string or in the + POST body. + request_uris_to_exclude (MutableSequence[google.cloud.compute_v1.types.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams]): + A list of request URIs from the request line + to be excluded from inspection during + preconfigured WAF evaluation. When specifying + this field, the query or fragment part should be + excluded. + target_rule_ids (MutableSequence[str]): + A list of target rule IDs under the WAF rule + set to apply the preconfigured WAF exclusion. If + omitted, it refers to all the rule IDs under the + WAF rule set. + target_rule_set (str): + Target WAF rule set to apply the + preconfigured WAF exclusion. + + This field is a member of `oneof`_ ``_target_rule_set``. + """ + + request_cookies_to_exclude: MutableSequence[ + "SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams" + ] = proto.RepeatedField( + proto.MESSAGE, + number=156757878, + message="SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams", + ) + request_headers_to_exclude: MutableSequence[ + "SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams" + ] = proto.RepeatedField( + proto.MESSAGE, + number=63230495, + message="SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams", + ) + request_query_params_to_exclude: MutableSequence[ + "SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams" + ] = proto.RepeatedField( + proto.MESSAGE, + number=340692744, + message="SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams", + ) + request_uris_to_exclude: MutableSequence[ + "SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams" + ] = proto.RepeatedField( + proto.MESSAGE, + number=90690846, + message="SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams", + ) + target_rule_ids: MutableSequence[str] = proto.RepeatedField( + proto.STRING, + number=498430435, + ) + target_rule_set: str = proto.Field( + proto.STRING, + number=498440077, + optional=True, + ) + + +class SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams(proto.Message): + r""" + + .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields + + Attributes: + op (str): + The match operator for the field. + Check the Op enum for the list of possible + values. + + This field is a member of `oneof`_ ``_op``. + val (str): + The value of the field. + + This field is a member of `oneof`_ ``_val``. + """ + + class Op(proto.Enum): + r"""The match operator for the field. + + Values: + UNDEFINED_OP (0): + A value indicating that the enum field is not + set. + CONTAINS (215180831): + The operator matches if the field value + contains the specified value. + ENDS_WITH (490402221): + The operator matches if the field value ends + with the specified value. + EQUALS (442201023): + The operator matches if the field value + equals the specified value. + EQUALS_ANY (337226060): + The operator matches if the field value is + any value. + STARTS_WITH (139505652): + The operator matches if the field value + starts with the specified value. + """ + UNDEFINED_OP = 0 + CONTAINS = 215180831 + ENDS_WITH = 490402221 + EQUALS = 442201023 + EQUALS_ANY = 337226060 + STARTS_WITH = 139505652 + + op: str = proto.Field( + proto.STRING, + number=3553, + optional=True, + ) + val: str = proto.Field( + proto.STRING, + number=116513, + optional=True, + ) + + class SecurityPolicyRuleRateLimitOptions(proto.Message): r""" @@ -78855,14 +79724,13 @@ class SecurityPolicyRuleRateLimitOptions(proto.Message): This field is a member of `oneof`_ ``_enforce_on_key_name``. exceed_action (str): - Action to take for requests that are above - the configured rate limit threshold, to either - deny with a specified HTTP response code, or - redirect to a different endpoint. Valid options - are "deny(status)", where valid values for - status are 403, 404, 429, and 502, and - "redirect" where the redirect parameters come - from exceedRedirectOptions below. + Action to take for requests that are above the configured + rate limit threshold, to either deny with a specified HTTP + response code, or redirect to a different endpoint. Valid + options are ``deny(STATUS)``, where valid values for + ``STATUS`` are 403, 404, 429, and 502, and ``redirect``, + where the redirect parameters come from + ``exceedRedirectOptions`` below. This field is a member of `oneof`_ ``_exceed_action``. exceed_redirect_options (google.cloud.compute_v1.types.SecurityPolicyRuleRedirectOptions): @@ -81801,8 +82669,68 @@ class SetLabelsTargetVpnGatewayRequest(proto.Message): ) -class SetLabelsVpnGatewayRequest(proto.Message): - r"""A request message for VpnGateways.SetLabels. See the method +class SetLabelsVpnGatewayRequest(proto.Message): + r"""A request message for VpnGateways.SetLabels. See the method + description for details. + + + .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields + + Attributes: + project (str): + Project ID for this request. + region (str): + The region for this request. + region_set_labels_request_resource (google.cloud.compute_v1.types.RegionSetLabelsRequest): + The body resource for this request + request_id (str): + An optional request ID to identify requests. + Specify a unique request ID so that if you must + retry your request, the server will know to + ignore the request if it has already been + completed. For example, consider a situation + where you make an initial request and the + request times out. If you make the request again + with the same request ID, the server can check + if original operation with the same request ID + was received, and if so, will ignore the second + request. This prevents clients from accidentally + creating duplicate commitments. The request ID + must be a valid UUID with the exception that + zero UUID is not supported ( + 00000000-0000-0000-0000-000000000000). + + This field is a member of `oneof`_ ``_request_id``. + resource (str): + Name or id of the resource for this request. + """ + + project: str = proto.Field( + proto.STRING, + number=227560217, + ) + region: str = proto.Field( + proto.STRING, + number=138946292, + ) + region_set_labels_request_resource: "RegionSetLabelsRequest" = proto.Field( + proto.MESSAGE, + number=259357782, + message="RegionSetLabelsRequest", + ) + request_id: str = proto.Field( + proto.STRING, + number=37109963, + optional=True, + ) + resource: str = proto.Field( + proto.STRING, + number=195806222, + ) + + +class SetLabelsVpnTunnelRequest(proto.Message): + r"""A request message for VpnTunnels.SetLabels. See the method description for details. @@ -81861,20 +82789,20 @@ class SetLabelsVpnGatewayRequest(proto.Message): ) -class SetLabelsVpnTunnelRequest(proto.Message): - r"""A request message for VpnTunnels.SetLabels. See the method - description for details. +class SetMachineResourcesInstanceRequest(proto.Message): + r"""A request message for Instances.SetMachineResources. See the + method description for details. .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields Attributes: + instance (str): + Name of the instance scoping this request. + instances_set_machine_resources_request_resource (google.cloud.compute_v1.types.InstancesSetMachineResourcesRequest): + The body resource for this request project (str): Project ID for this request. - region (str): - The region for this request. - region_set_labels_request_resource (google.cloud.compute_v1.types.RegionSetLabelsRequest): - The body resource for this request request_id (str): An optional request ID to identify requests. Specify a unique request ID so that if you must @@ -81893,36 +82821,36 @@ class SetLabelsVpnTunnelRequest(proto.Message): 00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. - resource (str): - Name or id of the resource for this request. + zone (str): + The name of the zone for this request. """ - project: str = proto.Field( - proto.STRING, - number=227560217, - ) - region: str = proto.Field( + instance: str = proto.Field( proto.STRING, - number=138946292, + number=18257045, ) - region_set_labels_request_resource: "RegionSetLabelsRequest" = proto.Field( + instances_set_machine_resources_request_resource: "InstancesSetMachineResourcesRequest" = proto.Field( proto.MESSAGE, - number=259357782, - message="RegionSetLabelsRequest", + number=196286318, + message="InstancesSetMachineResourcesRequest", + ) + project: str = proto.Field( + proto.STRING, + number=227560217, ) request_id: str = proto.Field( proto.STRING, number=37109963, optional=True, ) - resource: str = proto.Field( + zone: str = proto.Field( proto.STRING, - number=195806222, + number=3744684, ) -class SetMachineResourcesInstanceRequest(proto.Message): - r"""A request message for Instances.SetMachineResources. See the +class SetMachineTypeInstanceRequest(proto.Message): + r"""A request message for Instances.SetMachineType. See the method description for details. @@ -81931,7 +82859,7 @@ class SetMachineResourcesInstanceRequest(proto.Message): Attributes: instance (str): Name of the instance scoping this request. - instances_set_machine_resources_request_resource (google.cloud.compute_v1.types.InstancesSetMachineResourcesRequest): + instances_set_machine_type_request_resource (google.cloud.compute_v1.types.InstancesSetMachineTypeRequest): The body resource for this request project (str): Project ID for this request. @@ -81961,10 +82889,12 @@ class SetMachineResourcesInstanceRequest(proto.Message): proto.STRING, number=18257045, ) - instances_set_machine_resources_request_resource: "InstancesSetMachineResourcesRequest" = proto.Field( - proto.MESSAGE, - number=196286318, - message="InstancesSetMachineResourcesRequest", + instances_set_machine_type_request_resource: "InstancesSetMachineTypeRequest" = ( + proto.Field( + proto.MESSAGE, + number=254157709, + message="InstancesSetMachineTypeRequest", + ) ) project: str = proto.Field( proto.STRING, @@ -81981,9 +82911,9 @@ class SetMachineResourcesInstanceRequest(proto.Message): ) -class SetMachineTypeInstanceRequest(proto.Message): - r"""A request message for Instances.SetMachineType. See the - method description for details. +class SetMetadataInstanceRequest(proto.Message): + r"""A request message for Instances.SetMetadata. See the method + description for details. .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields @@ -81991,7 +82921,7 @@ class SetMachineTypeInstanceRequest(proto.Message): Attributes: instance (str): Name of the instance scoping this request. - instances_set_machine_type_request_resource (google.cloud.compute_v1.types.InstancesSetMachineTypeRequest): + metadata_resource (google.cloud.compute_v1.types.Metadata): The body resource for this request project (str): Project ID for this request. @@ -82021,12 +82951,10 @@ class SetMachineTypeInstanceRequest(proto.Message): proto.STRING, number=18257045, ) - instances_set_machine_type_request_resource: "InstancesSetMachineTypeRequest" = ( - proto.Field( - proto.MESSAGE, - number=254157709, - message="InstancesSetMachineTypeRequest", - ) + metadata_resource: "Metadata" = proto.Field( + proto.MESSAGE, + number=291086110, + message="Metadata", ) project: str = proto.Field( proto.STRING, @@ -82043,9 +82971,9 @@ class SetMachineTypeInstanceRequest(proto.Message): ) -class SetMetadataInstanceRequest(proto.Message): - r"""A request message for Instances.SetMetadata. See the method - description for details. +class SetMinCpuPlatformInstanceRequest(proto.Message): + r"""A request message for Instances.SetMinCpuPlatform. See the + method description for details. .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields @@ -82053,7 +82981,7 @@ class SetMetadataInstanceRequest(proto.Message): Attributes: instance (str): Name of the instance scoping this request. - metadata_resource (google.cloud.compute_v1.types.Metadata): + instances_set_min_cpu_platform_request_resource (google.cloud.compute_v1.types.InstancesSetMinCpuPlatformRequest): The body resource for this request project (str): Project ID for this request. @@ -82083,10 +83011,10 @@ class SetMetadataInstanceRequest(proto.Message): proto.STRING, number=18257045, ) - metadata_resource: "Metadata" = proto.Field( + instances_set_min_cpu_platform_request_resource: "InstancesSetMinCpuPlatformRequest" = proto.Field( proto.MESSAGE, - number=291086110, - message="Metadata", + number=148459368, + message="InstancesSetMinCpuPlatformRequest", ) project: str = proto.Field( proto.STRING, @@ -82103,17 +83031,17 @@ class SetMetadataInstanceRequest(proto.Message): ) -class SetMinCpuPlatformInstanceRequest(proto.Message): - r"""A request message for Instances.SetMinCpuPlatform. See the - method description for details. +class SetNameInstanceRequest(proto.Message): + r"""A request message for Instances.SetName. See the method + description for details. .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields Attributes: instance (str): - Name of the instance scoping this request. - instances_set_min_cpu_platform_request_resource (google.cloud.compute_v1.types.InstancesSetMinCpuPlatformRequest): + The instance name for this request. + instances_set_name_request_resource (google.cloud.compute_v1.types.InstancesSetNameRequest): The body resource for this request project (str): Project ID for this request. @@ -82143,10 +83071,10 @@ class SetMinCpuPlatformInstanceRequest(proto.Message): proto.STRING, number=18257045, ) - instances_set_min_cpu_platform_request_resource: "InstancesSetMinCpuPlatformRequest" = proto.Field( + instances_set_name_request_resource: "InstancesSetNameRequest" = proto.Field( proto.MESSAGE, - number=148459368, - message="InstancesSetMinCpuPlatformRequest", + number=272080980, + message="InstancesSetNameRequest", ) project: str = proto.Field( proto.STRING, @@ -91256,6 +92184,84 @@ class UpdateBackendServiceRequest(proto.Message): ) +class UpdateDiskRequest(proto.Message): + r"""A request message for Disks.Update. See the method + description for details. + + + .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields + + Attributes: + disk (str): + The disk name for this request. + disk_resource (google.cloud.compute_v1.types.Disk): + The body resource for this request + paths (str): + + This field is a member of `oneof`_ ``_paths``. + project (str): + Project ID for this request. + request_id (str): + An optional request ID to identify requests. + Specify a unique request ID so that if you must + retry your request, the server will know to + ignore the request if it has already been + completed. For example, consider a situation + where you make an initial request and the + request times out. If you make the request again + with the same request ID, the server can check + if original operation with the same request ID + was received, and if so, will ignore the second + request. This prevents clients from accidentally + creating duplicate commitments. The request ID + must be a valid UUID with the exception that + zero UUID is not supported ( + 00000000-0000-0000-0000-000000000000). + + This field is a member of `oneof`_ ``_request_id``. + update_mask (str): + update_mask indicates fields to be updated as part of this + request. + + This field is a member of `oneof`_ ``_update_mask``. + zone (str): + The name of the zone for this request. + """ + + disk: str = proto.Field( + proto.STRING, + number=3083677, + ) + disk_resource: "Disk" = proto.Field( + proto.MESSAGE, + number=25880688, + message="Disk", + ) + paths: str = proto.Field( + proto.STRING, + number=106438894, + optional=True, + ) + project: str = proto.Field( + proto.STRING, + number=227560217, + ) + request_id: str = proto.Field( + proto.STRING, + number=37109963, + optional=True, + ) + update_mask: str = proto.Field( + proto.STRING, + number=500079778, + optional=True, + ) + zone: str = proto.Field( + proto.STRING, + number=3744684, + ) + + class UpdateDisplayDeviceInstanceRequest(proto.Message): r"""A request message for Instances.UpdateDisplayDevice. See the method description for details. @@ -91998,6 +93004,84 @@ class UpdateRegionCommitmentRequest(proto.Message): ) +class UpdateRegionDiskRequest(proto.Message): + r"""A request message for RegionDisks.Update. See the method + description for details. + + + .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields + + Attributes: + disk (str): + The disk name for this request. + disk_resource (google.cloud.compute_v1.types.Disk): + The body resource for this request + paths (str): + + This field is a member of `oneof`_ ``_paths``. + project (str): + Project ID for this request. + region (str): + The name of the region for this request. + request_id (str): + An optional request ID to identify requests. + Specify a unique request ID so that if you must + retry your request, the server will know to + ignore the request if it has already been + completed. For example, consider a situation + where you make an initial request and the + request times out. If you make the request again + with the same request ID, the server can check + if original operation with the same request ID + was received, and if so, will ignore the second + request. This prevents clients from accidentally + creating duplicate commitments. The request ID + must be a valid UUID with the exception that + zero UUID is not supported ( + 00000000-0000-0000-0000-000000000000). + + This field is a member of `oneof`_ ``_request_id``. + update_mask (str): + update_mask indicates fields to be updated as part of this + request. + + This field is a member of `oneof`_ ``_update_mask``. + """ + + disk: str = proto.Field( + proto.STRING, + number=3083677, + ) + disk_resource: "Disk" = proto.Field( + proto.MESSAGE, + number=25880688, + message="Disk", + ) + paths: str = proto.Field( + proto.STRING, + number=106438894, + optional=True, + ) + project: str = proto.Field( + proto.STRING, + number=227560217, + ) + region: str = proto.Field( + proto.STRING, + number=138946292, + ) + request_id: str = proto.Field( + proto.STRING, + number=37109963, + optional=True, + ) + update_mask: str = proto.Field( + proto.STRING, + number=500079778, + optional=True, + ) + + class UpdateRegionHealthCheckRequest(proto.Message): r"""A request message for RegionHealthChecks.Update. See the method description for details. @@ -93822,7 +94906,7 @@ class VpnGateway(proto.Message): or change labels, otherwise the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to - retrieve an VpnGateway. + retrieve a VpnGateway. This field is a member of `oneof`_ ``_label_fingerprint``. labels (MutableMapping[str, str]): @@ -94996,6 +96080,13 @@ class WafExpressionSetExpression(proto.Message): false positive. required This field is a member of `oneof`_ ``_id``. + sensitivity (int): + The sensitivity value associated with the WAF + rule ID. This corresponds to the ModSecurity + paranoia level, ranging from 1 to 4. 0 is + reserved for opt-in only rules. + + This field is a member of `oneof`_ ``_sensitivity``. """ id: str = proto.Field( @@ -95003,6 +96094,11 @@ class WafExpressionSetExpression(proto.Message): number=3355, optional=True, ) + sensitivity: int = proto.Field( + proto.INT32, + number=27532959, + optional=True, + ) class WaitGlobalOperationRequest(proto.Message): diff --git a/scripts/fixup_compute_v1_keywords.py b/scripts/fixup_compute_v1_keywords.py index 3306de997..4c3953150 100644 --- a/scripts/fixup_compute_v1_keywords.py +++ b/scripts/fixup_compute_v1_keywords.py @@ -139,6 +139,7 @@ class computeCallTransformer(cst.CSTTransformer): 'set_machine_type': ('instance', 'instances_set_machine_type_request_resource', 'project', 'zone', 'request_id', ), 'set_metadata': ('instance', 'metadata_resource', 'project', 'zone', 'request_id', ), 'set_min_cpu_platform': ('instance', 'instances_set_min_cpu_platform_request_resource', 'project', 'zone', 'request_id', ), + 'set_name': ('instance', 'instances_set_name_request_resource', 'project', 'zone', 'request_id', ), 'set_named_ports': ('instance_group', 'instance_groups_set_named_ports_request_resource', 'project', 'zone', 'request_id', ), 'set_node_template': ('node_group', 'node_groups_set_node_template_request_resource', 'project', 'zone', 'request_id', ), 'set_private_ip_google_access': ('project', 'region', 'subnetwork', 'subnetworks_set_private_ip_google_access_request_resource', 'request_id', ), diff --git a/tests/unit/gapic/compute_v1/test_backend_services.py b/tests/unit/gapic/compute_v1/test_backend_services.py index be6803437..56cf309d1 100644 --- a/tests/unit/gapic/compute_v1/test_backend_services.py +++ b/tests/unit/gapic/compute_v1/test_backend_services.py @@ -3927,7 +3927,12 @@ def test_insert_rest(request_type): } ], "locality_lb_policy": "locality_lb_policy_value", - "log_config": {"enable": True, "sample_rate": 0.1165}, + "log_config": { + "enable": True, + "optional_fields": ["optional_fields_value1", "optional_fields_value2"], + "optional_mode": "optional_mode_value", + "sample_rate": 0.1165, + }, "max_stream_duration": {}, "name": "name_value", "network": "network_value", @@ -4302,7 +4307,12 @@ def test_insert_rest_bad_request( } ], "locality_lb_policy": "locality_lb_policy_value", - "log_config": {"enable": True, "sample_rate": 0.1165}, + "log_config": { + "enable": True, + "optional_fields": ["optional_fields_value1", "optional_fields_value2"], + "optional_mode": "optional_mode_value", + "sample_rate": 0.1165, + }, "max_stream_duration": {}, "name": "name_value", "network": "network_value", @@ -4548,7 +4558,12 @@ def test_insert_unary_rest(request_type): } ], "locality_lb_policy": "locality_lb_policy_value", - "log_config": {"enable": True, "sample_rate": 0.1165}, + "log_config": { + "enable": True, + "optional_fields": ["optional_fields_value1", "optional_fields_value2"], + "optional_mode": "optional_mode_value", + "sample_rate": 0.1165, + }, "max_stream_duration": {}, "name": "name_value", "network": "network_value", @@ -4903,7 +4918,12 @@ def test_insert_unary_rest_bad_request( } ], "locality_lb_policy": "locality_lb_policy_value", - "log_config": {"enable": True, "sample_rate": 0.1165}, + "log_config": { + "enable": True, + "optional_fields": ["optional_fields_value1", "optional_fields_value2"], + "optional_mode": "optional_mode_value", + "sample_rate": 0.1165, + }, "max_stream_duration": {}, "name": "name_value", "network": "network_value", @@ -5497,7 +5517,12 @@ def test_patch_rest(request_type): } ], "locality_lb_policy": "locality_lb_policy_value", - "log_config": {"enable": True, "sample_rate": 0.1165}, + "log_config": { + "enable": True, + "optional_fields": ["optional_fields_value1", "optional_fields_value2"], + "optional_mode": "optional_mode_value", + "sample_rate": 0.1165, + }, "max_stream_duration": {}, "name": "name_value", "network": "network_value", @@ -5877,7 +5902,12 @@ def test_patch_rest_bad_request( } ], "locality_lb_policy": "locality_lb_policy_value", - "log_config": {"enable": True, "sample_rate": 0.1165}, + "log_config": { + "enable": True, + "optional_fields": ["optional_fields_value1", "optional_fields_value2"], + "optional_mode": "optional_mode_value", + "sample_rate": 0.1165, + }, "max_stream_duration": {}, "name": "name_value", "network": "network_value", @@ -6125,7 +6155,12 @@ def test_patch_unary_rest(request_type): } ], "locality_lb_policy": "locality_lb_policy_value", - "log_config": {"enable": True, "sample_rate": 0.1165}, + "log_config": { + "enable": True, + "optional_fields": ["optional_fields_value1", "optional_fields_value2"], + "optional_mode": "optional_mode_value", + "sample_rate": 0.1165, + }, "max_stream_duration": {}, "name": "name_value", "network": "network_value", @@ -6485,7 +6520,12 @@ def test_patch_unary_rest_bad_request( } ], "locality_lb_policy": "locality_lb_policy_value", - "log_config": {"enable": True, "sample_rate": 0.1165}, + "log_config": { + "enable": True, + "optional_fields": ["optional_fields_value1", "optional_fields_value2"], + "optional_mode": "optional_mode_value", + "sample_rate": 0.1165, + }, "max_stream_duration": {}, "name": "name_value", "network": "network_value", @@ -8489,7 +8529,12 @@ def test_update_rest(request_type): } ], "locality_lb_policy": "locality_lb_policy_value", - "log_config": {"enable": True, "sample_rate": 0.1165}, + "log_config": { + "enable": True, + "optional_fields": ["optional_fields_value1", "optional_fields_value2"], + "optional_mode": "optional_mode_value", + "sample_rate": 0.1165, + }, "max_stream_duration": {}, "name": "name_value", "network": "network_value", @@ -8869,7 +8914,12 @@ def test_update_rest_bad_request( } ], "locality_lb_policy": "locality_lb_policy_value", - "log_config": {"enable": True, "sample_rate": 0.1165}, + "log_config": { + "enable": True, + "optional_fields": ["optional_fields_value1", "optional_fields_value2"], + "optional_mode": "optional_mode_value", + "sample_rate": 0.1165, + }, "max_stream_duration": {}, "name": "name_value", "network": "network_value", @@ -9117,7 +9167,12 @@ def test_update_unary_rest(request_type): } ], "locality_lb_policy": "locality_lb_policy_value", - "log_config": {"enable": True, "sample_rate": 0.1165}, + "log_config": { + "enable": True, + "optional_fields": ["optional_fields_value1", "optional_fields_value2"], + "optional_mode": "optional_mode_value", + "sample_rate": 0.1165, + }, "max_stream_duration": {}, "name": "name_value", "network": "network_value", @@ -9477,7 +9532,12 @@ def test_update_unary_rest_bad_request( } ], "locality_lb_policy": "locality_lb_policy_value", - "log_config": {"enable": True, "sample_rate": 0.1165}, + "log_config": { + "enable": True, + "optional_fields": ["optional_fields_value1", "optional_fields_value2"], + "optional_mode": "optional_mode_value", + "sample_rate": 0.1165, + }, "max_stream_duration": {}, "name": "name_value", "network": "network_value", diff --git a/tests/unit/gapic/compute_v1/test_disks.py b/tests/unit/gapic/compute_v1/test_disks.py index a0e6bae72..62e945bbf 100644 --- a/tests/unit/gapic/compute_v1/test_disks.py +++ b/tests/unit/gapic/compute_v1/test_disks.py @@ -7554,6 +7554,850 @@ def test_test_iam_permissions_rest_error(): ) +@pytest.mark.parametrize( + "request_type", + [ + compute.UpdateDiskRequest, + dict, + ], +) +def test_update_rest(request_type): + client = DisksClient( + credentials=ga_credentials.AnonymousCredentials(), + transport="rest", + ) + + # send a request that will satisfy transcoding + request_init = {"project": "sample1", "zone": "sample2", "disk": "sample3"} + request_init["disk_resource"] = { + "architecture": "architecture_value", + "creation_timestamp": "creation_timestamp_value", + "description": "description_value", + "disk_encryption_key": { + "kms_key_name": "kms_key_name_value", + "kms_key_service_account": "kms_key_service_account_value", + "raw_key": "raw_key_value", + "rsa_encrypted_key": "rsa_encrypted_key_value", + "sha256": "sha256_value", + }, + "guest_os_features": [{"type_": "type__value"}], + "id": 205, + "kind": "kind_value", + "label_fingerprint": "label_fingerprint_value", + "labels": {}, + "last_attach_timestamp": "last_attach_timestamp_value", + "last_detach_timestamp": "last_detach_timestamp_value", + "license_codes": [1361, 1362], + "licenses": ["licenses_value1", "licenses_value2"], + "location_hint": "location_hint_value", + "name": "name_value", + "options": "options_value", + "params": {"resource_manager_tags": {}}, + "physical_block_size_bytes": 2663, + "provisioned_iops": 1740, + "region": "region_value", + "replica_zones": ["replica_zones_value1", "replica_zones_value2"], + "resource_policies": ["resource_policies_value1", "resource_policies_value2"], + "satisfies_pzs": True, + "self_link": "self_link_value", + "size_gb": 739, + "source_disk": "source_disk_value", + "source_disk_id": "source_disk_id_value", + "source_image": "source_image_value", + "source_image_encryption_key": {}, + "source_image_id": "source_image_id_value", + "source_snapshot": "source_snapshot_value", + "source_snapshot_encryption_key": {}, + "source_snapshot_id": "source_snapshot_id_value", + "source_storage_object": "source_storage_object_value", + "status": "status_value", + "type_": "type__value", + "users": ["users_value1", "users_value2"], + "zone": "zone_value", + } + request = request_type(**request_init) + + # Mock the http request call within the method and fake a response. + with mock.patch.object(type(client.transport._session), "request") as req: + # Designate an appropriate value for the returned response. + return_value = compute.Operation( + client_operation_id="client_operation_id_value", + creation_timestamp="creation_timestamp_value", + description="description_value", + end_time="end_time_value", + http_error_message="http_error_message_value", + http_error_status_code=2374, + id=205, + insert_time="insert_time_value", + kind="kind_value", + name="name_value", + operation_group_id="operation_group_id_value", + operation_type="operation_type_value", + progress=885, + region="region_value", + self_link="self_link_value", + start_time="start_time_value", + status=compute.Operation.Status.DONE, + status_message="status_message_value", + target_id=947, + target_link="target_link_value", + user="user_value", + zone="zone_value", + ) + + # Wrap the value into a proper Response obj + response_value = Response() + response_value.status_code = 200 + pb_return_value = compute.Operation.pb(return_value) + json_return_value = json_format.MessageToJson(pb_return_value) + + response_value._content = json_return_value.encode("UTF-8") + req.return_value = response_value + response = client.update(request) + + # Establish that the response is the type that we expect. + assert isinstance(response, extended_operation.ExtendedOperation) + assert response.client_operation_id == "client_operation_id_value" + assert response.creation_timestamp == "creation_timestamp_value" + assert response.description == "description_value" + assert response.end_time == "end_time_value" + assert response.http_error_message == "http_error_message_value" + assert response.http_error_status_code == 2374 + assert response.id == 205 + assert response.insert_time == "insert_time_value" + assert response.kind == "kind_value" + assert response.name == "name_value" + assert response.operation_group_id == "operation_group_id_value" + assert response.operation_type == "operation_type_value" + assert response.progress == 885 + assert response.region == "region_value" + assert response.self_link == "self_link_value" + assert response.start_time == "start_time_value" + assert response.status == compute.Operation.Status.DONE + assert response.status_message == "status_message_value" + assert response.target_id == 947 + assert response.target_link == "target_link_value" + assert response.user == "user_value" + assert response.zone == "zone_value" + + +def test_update_rest_required_fields(request_type=compute.UpdateDiskRequest): + transport_class = transports.DisksRestTransport + + request_init = {} + request_init["disk"] = "" + request_init["project"] = "" + request_init["zone"] = "" + request = request_type(**request_init) + pb_request = request_type.pb(request) + jsonified_request = json.loads( + json_format.MessageToJson( + pb_request, + including_default_value_fields=False, + use_integers_for_enums=False, + ) + ) + + # verify fields with default values are dropped + + unset_fields = transport_class( + credentials=ga_credentials.AnonymousCredentials() + ).update._get_unset_required_fields(jsonified_request) + jsonified_request.update(unset_fields) + + # verify required fields with default values are now present + + jsonified_request["disk"] = "disk_value" + jsonified_request["project"] = "project_value" + jsonified_request["zone"] = "zone_value" + + unset_fields = transport_class( + credentials=ga_credentials.AnonymousCredentials() + ).update._get_unset_required_fields(jsonified_request) + # Check that path parameters and body parameters are not mixing in. + assert not set(unset_fields) - set( + ( + "paths", + "request_id", + "update_mask", + ) + ) + jsonified_request.update(unset_fields) + + # verify required fields with non-default values are left alone + assert "disk" in jsonified_request + assert jsonified_request["disk"] == "disk_value" + assert "project" in jsonified_request + assert jsonified_request["project"] == "project_value" + assert "zone" in jsonified_request + assert jsonified_request["zone"] == "zone_value" + + client = DisksClient( + credentials=ga_credentials.AnonymousCredentials(), + transport="rest", + ) + request = request_type(**request_init) + + # Designate an appropriate value for the returned response. + return_value = compute.Operation() + # Mock the http request call within the method and fake a response. + with mock.patch.object(Session, "request") as req: + # We need to mock transcode() because providing default values + # for required fields will fail the real version if the http_options + # expect actual values for those fields. + with mock.patch.object(path_template, "transcode") as transcode: + # A uri without fields and an empty body will force all the + # request fields to show up in the query_params. + pb_request = request_type.pb(request) + transcode_result = { + "uri": "v1/sample_method", + "method": "patch", + "query_params": pb_request, + } + transcode_result["body"] = pb_request + transcode.return_value = transcode_result + + response_value = Response() + response_value.status_code = 200 + + pb_return_value = compute.Operation.pb(return_value) + json_return_value = json_format.MessageToJson(pb_return_value) + + response_value._content = json_return_value.encode("UTF-8") + req.return_value = response_value + + response = client.update(request) + + expected_params = [] + actual_params = req.call_args.kwargs["params"] + assert expected_params == actual_params + + +def test_update_rest_unset_required_fields(): + transport = transports.DisksRestTransport( + credentials=ga_credentials.AnonymousCredentials + ) + + unset_fields = transport.update._get_unset_required_fields({}) + assert set(unset_fields) == ( + set( + ( + "paths", + "requestId", + "updateMask", + ) + ) + & set( + ( + "disk", + "diskResource", + "project", + "zone", + ) + ) + ) + + +@pytest.mark.parametrize("null_interceptor", [True, False]) +def test_update_rest_interceptors(null_interceptor): + transport = transports.DisksRestTransport( + credentials=ga_credentials.AnonymousCredentials(), + interceptor=None if null_interceptor else transports.DisksRestInterceptor(), + ) + client = DisksClient(transport=transport) + with mock.patch.object( + type(client.transport._session), "request" + ) as req, mock.patch.object( + path_template, "transcode" + ) as transcode, mock.patch.object( + transports.DisksRestInterceptor, "post_update" + ) as post, mock.patch.object( + transports.DisksRestInterceptor, "pre_update" + ) as pre: + pre.assert_not_called() + post.assert_not_called() + pb_message = compute.UpdateDiskRequest.pb(compute.UpdateDiskRequest()) + transcode.return_value = { + "method": "post", + "uri": "my_uri", + "body": pb_message, + "query_params": pb_message, + } + + req.return_value = Response() + req.return_value.status_code = 200 + req.return_value.request = PreparedRequest() + req.return_value._content = compute.Operation.to_json(compute.Operation()) + + request = compute.UpdateDiskRequest() + metadata = [ + ("key", "val"), + ("cephalopod", "squid"), + ] + pre.return_value = request, metadata + post.return_value = compute.Operation() + + client.update( + request, + metadata=[ + ("key", "val"), + ("cephalopod", "squid"), + ], + ) + + pre.assert_called_once() + post.assert_called_once() + + +def test_update_rest_bad_request( + transport: str = "rest", request_type=compute.UpdateDiskRequest +): + client = DisksClient( + credentials=ga_credentials.AnonymousCredentials(), + transport=transport, + ) + + # send a request that will satisfy transcoding + request_init = {"project": "sample1", "zone": "sample2", "disk": "sample3"} + request_init["disk_resource"] = { + "architecture": "architecture_value", + "creation_timestamp": "creation_timestamp_value", + "description": "description_value", + "disk_encryption_key": { + "kms_key_name": "kms_key_name_value", + "kms_key_service_account": "kms_key_service_account_value", + "raw_key": "raw_key_value", + "rsa_encrypted_key": "rsa_encrypted_key_value", + "sha256": "sha256_value", + }, + "guest_os_features": [{"type_": "type__value"}], + "id": 205, + "kind": "kind_value", + "label_fingerprint": "label_fingerprint_value", + "labels": {}, + "last_attach_timestamp": "last_attach_timestamp_value", + "last_detach_timestamp": "last_detach_timestamp_value", + "license_codes": [1361, 1362], + "licenses": ["licenses_value1", "licenses_value2"], + "location_hint": "location_hint_value", + "name": "name_value", + "options": "options_value", + "params": {"resource_manager_tags": {}}, + "physical_block_size_bytes": 2663, + "provisioned_iops": 1740, + "region": "region_value", + "replica_zones": ["replica_zones_value1", "replica_zones_value2"], + "resource_policies": ["resource_policies_value1", "resource_policies_value2"], + "satisfies_pzs": True, + "self_link": "self_link_value", + "size_gb": 739, + "source_disk": "source_disk_value", + "source_disk_id": "source_disk_id_value", + "source_image": "source_image_value", + "source_image_encryption_key": {}, + "source_image_id": "source_image_id_value", + "source_snapshot": "source_snapshot_value", + "source_snapshot_encryption_key": {}, + "source_snapshot_id": "source_snapshot_id_value", + "source_storage_object": "source_storage_object_value", + "status": "status_value", + "type_": "type__value", + "users": ["users_value1", "users_value2"], + "zone": "zone_value", + } + request = request_type(**request_init) + + # Mock the http request call within the method and fake a BadRequest error. + with mock.patch.object(Session, "request") as req, pytest.raises( + core_exceptions.BadRequest + ): + # Wrap the value into a proper Response obj + response_value = Response() + response_value.status_code = 400 + response_value.request = Request() + req.return_value = response_value + client.update(request) + + +def test_update_rest_flattened(): + client = DisksClient( + credentials=ga_credentials.AnonymousCredentials(), + transport="rest", + ) + + # Mock the http request call within the method and fake a response. + with mock.patch.object(type(client.transport._session), "request") as req: + # Designate an appropriate value for the returned response. + return_value = compute.Operation() + + # get arguments that satisfy an http rule for this method + sample_request = {"project": "sample1", "zone": "sample2", "disk": "sample3"} + + # get truthy value for each flattened field + mock_args = dict( + project="project_value", + zone="zone_value", + disk="disk_value", + disk_resource=compute.Disk(architecture="architecture_value"), + ) + mock_args.update(sample_request) + + # Wrap the value into a proper Response obj + response_value = Response() + response_value.status_code = 200 + pb_return_value = compute.Operation.pb(return_value) + json_return_value = json_format.MessageToJson(pb_return_value) + response_value._content = json_return_value.encode("UTF-8") + req.return_value = response_value + + client.update(**mock_args) + + # Establish that the underlying call was made with the expected + # request object values. + assert len(req.mock_calls) == 1 + _, args, _ = req.mock_calls[0] + assert path_template.validate( + "%s/compute/v1/projects/{project}/zones/{zone}/disks/{disk}" + % client.transport._host, + args[1], + ) + + +def test_update_rest_flattened_error(transport: str = "rest"): + client = DisksClient( + credentials=ga_credentials.AnonymousCredentials(), + transport=transport, + ) + + # Attempting to call a method with both a request object and flattened + # fields is an error. + with pytest.raises(ValueError): + client.update( + compute.UpdateDiskRequest(), + project="project_value", + zone="zone_value", + disk="disk_value", + disk_resource=compute.Disk(architecture="architecture_value"), + ) + + +def test_update_rest_error(): + client = DisksClient( + credentials=ga_credentials.AnonymousCredentials(), transport="rest" + ) + + +@pytest.mark.parametrize( + "request_type", + [ + compute.UpdateDiskRequest, + dict, + ], +) +def test_update_unary_rest(request_type): + client = DisksClient( + credentials=ga_credentials.AnonymousCredentials(), + transport="rest", + ) + + # send a request that will satisfy transcoding + request_init = {"project": "sample1", "zone": "sample2", "disk": "sample3"} + request_init["disk_resource"] = { + "architecture": "architecture_value", + "creation_timestamp": "creation_timestamp_value", + "description": "description_value", + "disk_encryption_key": { + "kms_key_name": "kms_key_name_value", + "kms_key_service_account": "kms_key_service_account_value", + "raw_key": "raw_key_value", + "rsa_encrypted_key": "rsa_encrypted_key_value", + "sha256": "sha256_value", + }, + "guest_os_features": [{"type_": "type__value"}], + "id": 205, + "kind": "kind_value", + "label_fingerprint": "label_fingerprint_value", + "labels": {}, + "last_attach_timestamp": "last_attach_timestamp_value", + "last_detach_timestamp": "last_detach_timestamp_value", + "license_codes": [1361, 1362], + "licenses": ["licenses_value1", "licenses_value2"], + "location_hint": "location_hint_value", + "name": "name_value", + "options": "options_value", + "params": {"resource_manager_tags": {}}, + "physical_block_size_bytes": 2663, + "provisioned_iops": 1740, + "region": "region_value", + "replica_zones": ["replica_zones_value1", "replica_zones_value2"], + "resource_policies": ["resource_policies_value1", "resource_policies_value2"], + "satisfies_pzs": True, + "self_link": "self_link_value", + "size_gb": 739, + "source_disk": "source_disk_value", + "source_disk_id": "source_disk_id_value", + "source_image": "source_image_value", + "source_image_encryption_key": {}, + "source_image_id": "source_image_id_value", + "source_snapshot": "source_snapshot_value", + "source_snapshot_encryption_key": {}, + "source_snapshot_id": "source_snapshot_id_value", + "source_storage_object": "source_storage_object_value", + "status": "status_value", + "type_": "type__value", + "users": ["users_value1", "users_value2"], + "zone": "zone_value", + } + request = request_type(**request_init) + + # Mock the http request call within the method and fake a response. + with mock.patch.object(type(client.transport._session), "request") as req: + # Designate an appropriate value for the returned response. + return_value = compute.Operation( + client_operation_id="client_operation_id_value", + creation_timestamp="creation_timestamp_value", + description="description_value", + end_time="end_time_value", + http_error_message="http_error_message_value", + http_error_status_code=2374, + id=205, + insert_time="insert_time_value", + kind="kind_value", + name="name_value", + operation_group_id="operation_group_id_value", + operation_type="operation_type_value", + progress=885, + region="region_value", + self_link="self_link_value", + start_time="start_time_value", + status=compute.Operation.Status.DONE, + status_message="status_message_value", + target_id=947, + target_link="target_link_value", + user="user_value", + zone="zone_value", + ) + + # Wrap the value into a proper Response obj + response_value = Response() + response_value.status_code = 200 + pb_return_value = compute.Operation.pb(return_value) + json_return_value = json_format.MessageToJson(pb_return_value) + + response_value._content = json_return_value.encode("UTF-8") + req.return_value = response_value + response = client.update_unary(request) + + # Establish that the response is the type that we expect. + assert isinstance(response, compute.Operation) + + +def test_update_unary_rest_required_fields(request_type=compute.UpdateDiskRequest): + transport_class = transports.DisksRestTransport + + request_init = {} + request_init["disk"] = "" + request_init["project"] = "" + request_init["zone"] = "" + request = request_type(**request_init) + pb_request = request_type.pb(request) + jsonified_request = json.loads( + json_format.MessageToJson( + pb_request, + including_default_value_fields=False, + use_integers_for_enums=False, + ) + ) + + # verify fields with default values are dropped + + unset_fields = transport_class( + credentials=ga_credentials.AnonymousCredentials() + ).update._get_unset_required_fields(jsonified_request) + jsonified_request.update(unset_fields) + + # verify required fields with default values are now present + + jsonified_request["disk"] = "disk_value" + jsonified_request["project"] = "project_value" + jsonified_request["zone"] = "zone_value" + + unset_fields = transport_class( + credentials=ga_credentials.AnonymousCredentials() + ).update._get_unset_required_fields(jsonified_request) + # Check that path parameters and body parameters are not mixing in. + assert not set(unset_fields) - set( + ( + "paths", + "request_id", + "update_mask", + ) + ) + jsonified_request.update(unset_fields) + + # verify required fields with non-default values are left alone + assert "disk" in jsonified_request + assert jsonified_request["disk"] == "disk_value" + assert "project" in jsonified_request + assert jsonified_request["project"] == "project_value" + assert "zone" in jsonified_request + assert jsonified_request["zone"] == "zone_value" + + client = DisksClient( + credentials=ga_credentials.AnonymousCredentials(), + transport="rest", + ) + request = request_type(**request_init) + + # Designate an appropriate value for the returned response. + return_value = compute.Operation() + # Mock the http request call within the method and fake a response. + with mock.patch.object(Session, "request") as req: + # We need to mock transcode() because providing default values + # for required fields will fail the real version if the http_options + # expect actual values for those fields. + with mock.patch.object(path_template, "transcode") as transcode: + # A uri without fields and an empty body will force all the + # request fields to show up in the query_params. + pb_request = request_type.pb(request) + transcode_result = { + "uri": "v1/sample_method", + "method": "patch", + "query_params": pb_request, + } + transcode_result["body"] = pb_request + transcode.return_value = transcode_result + + response_value = Response() + response_value.status_code = 200 + + pb_return_value = compute.Operation.pb(return_value) + json_return_value = json_format.MessageToJson(pb_return_value) + + response_value._content = json_return_value.encode("UTF-8") + req.return_value = response_value + + response = client.update_unary(request) + + expected_params = [] + actual_params = req.call_args.kwargs["params"] + assert expected_params == actual_params + + +def test_update_unary_rest_unset_required_fields(): + transport = transports.DisksRestTransport( + credentials=ga_credentials.AnonymousCredentials + ) + + unset_fields = transport.update._get_unset_required_fields({}) + assert set(unset_fields) == ( + set( + ( + "paths", + "requestId", + "updateMask", + ) + ) + & set( + ( + "disk", + "diskResource", + "project", + "zone", + ) + ) + ) + + +@pytest.mark.parametrize("null_interceptor", [True, False]) +def test_update_unary_rest_interceptors(null_interceptor): + transport = transports.DisksRestTransport( + credentials=ga_credentials.AnonymousCredentials(), + interceptor=None if null_interceptor else transports.DisksRestInterceptor(), + ) + client = DisksClient(transport=transport) + with mock.patch.object( + type(client.transport._session), "request" + ) as req, mock.patch.object( + path_template, "transcode" + ) as transcode, mock.patch.object( + transports.DisksRestInterceptor, "post_update" + ) as post, mock.patch.object( + transports.DisksRestInterceptor, "pre_update" + ) as pre: + pre.assert_not_called() + post.assert_not_called() + pb_message = compute.UpdateDiskRequest.pb(compute.UpdateDiskRequest()) + transcode.return_value = { + "method": "post", + "uri": "my_uri", + "body": pb_message, + "query_params": pb_message, + } + + req.return_value = Response() + req.return_value.status_code = 200 + req.return_value.request = PreparedRequest() + req.return_value._content = compute.Operation.to_json(compute.Operation()) + + request = compute.UpdateDiskRequest() + metadata = [ + ("key", "val"), + ("cephalopod", "squid"), + ] + pre.return_value = request, metadata + post.return_value = compute.Operation() + + client.update_unary( + request, + metadata=[ + ("key", "val"), + ("cephalopod", "squid"), + ], + ) + + pre.assert_called_once() + post.assert_called_once() + + +def test_update_unary_rest_bad_request( + transport: str = "rest", request_type=compute.UpdateDiskRequest +): + client = DisksClient( + credentials=ga_credentials.AnonymousCredentials(), + transport=transport, + ) + + # send a request that will satisfy transcoding + request_init = {"project": "sample1", "zone": "sample2", "disk": "sample3"} + request_init["disk_resource"] = { + "architecture": "architecture_value", + "creation_timestamp": "creation_timestamp_value", + "description": "description_value", + "disk_encryption_key": { + "kms_key_name": "kms_key_name_value", + "kms_key_service_account": "kms_key_service_account_value", + "raw_key": "raw_key_value", + "rsa_encrypted_key": "rsa_encrypted_key_value", + "sha256": "sha256_value", + }, + "guest_os_features": [{"type_": "type__value"}], + "id": 205, + "kind": "kind_value", + "label_fingerprint": "label_fingerprint_value", + "labels": {}, + "last_attach_timestamp": "last_attach_timestamp_value", + "last_detach_timestamp": "last_detach_timestamp_value", + "license_codes": [1361, 1362], + "licenses": ["licenses_value1", "licenses_value2"], + "location_hint": "location_hint_value", + "name": "name_value", + "options": "options_value", + "params": {"resource_manager_tags": {}}, + "physical_block_size_bytes": 2663, + "provisioned_iops": 1740, + "region": "region_value", + "replica_zones": ["replica_zones_value1", "replica_zones_value2"], + "resource_policies": ["resource_policies_value1", "resource_policies_value2"], + "satisfies_pzs": True, + "self_link": "self_link_value", + "size_gb": 739, + "source_disk": "source_disk_value", + "source_disk_id": "source_disk_id_value", + "source_image": "source_image_value", + "source_image_encryption_key": {}, + "source_image_id": "source_image_id_value", + "source_snapshot": "source_snapshot_value", + "source_snapshot_encryption_key": {}, + "source_snapshot_id": "source_snapshot_id_value", + "source_storage_object": "source_storage_object_value", + "status": "status_value", + "type_": "type__value", + "users": ["users_value1", "users_value2"], + "zone": "zone_value", + } + request = request_type(**request_init) + + # Mock the http request call within the method and fake a BadRequest error. + with mock.patch.object(Session, "request") as req, pytest.raises( + core_exceptions.BadRequest + ): + # Wrap the value into a proper Response obj + response_value = Response() + response_value.status_code = 400 + response_value.request = Request() + req.return_value = response_value + client.update_unary(request) + + +def test_update_unary_rest_flattened(): + client = DisksClient( + credentials=ga_credentials.AnonymousCredentials(), + transport="rest", + ) + + # Mock the http request call within the method and fake a response. + with mock.patch.object(type(client.transport._session), "request") as req: + # Designate an appropriate value for the returned response. + return_value = compute.Operation() + + # get arguments that satisfy an http rule for this method + sample_request = {"project": "sample1", "zone": "sample2", "disk": "sample3"} + + # get truthy value for each flattened field + mock_args = dict( + project="project_value", + zone="zone_value", + disk="disk_value", + disk_resource=compute.Disk(architecture="architecture_value"), + ) + mock_args.update(sample_request) + + # Wrap the value into a proper Response obj + response_value = Response() + response_value.status_code = 200 + pb_return_value = compute.Operation.pb(return_value) + json_return_value = json_format.MessageToJson(pb_return_value) + response_value._content = json_return_value.encode("UTF-8") + req.return_value = response_value + + client.update_unary(**mock_args) + + # Establish that the underlying call was made with the expected + # request object values. + assert len(req.mock_calls) == 1 + _, args, _ = req.mock_calls[0] + assert path_template.validate( + "%s/compute/v1/projects/{project}/zones/{zone}/disks/{disk}" + % client.transport._host, + args[1], + ) + + +def test_update_unary_rest_flattened_error(transport: str = "rest"): + client = DisksClient( + credentials=ga_credentials.AnonymousCredentials(), + transport=transport, + ) + + # Attempting to call a method with both a request object and flattened + # fields is an error. + with pytest.raises(ValueError): + client.update_unary( + compute.UpdateDiskRequest(), + project="project_value", + zone="zone_value", + disk="disk_value", + disk_resource=compute.Disk(architecture="architecture_value"), + ) + + +def test_update_unary_rest_error(): + client = DisksClient( + credentials=ga_credentials.AnonymousCredentials(), transport="rest" + ) + + def test_credentials_transport_error(): # It is an error to provide credentials and a transport instance. transport = transports.DisksRestTransport( @@ -7677,6 +8521,7 @@ def test_disks_base_transport(): "set_iam_policy", "set_labels", "test_iam_permissions", + "update", ) for method in methods: with pytest.raises(NotImplementedError): @@ -7853,6 +8698,9 @@ def test_disks_client_transport_session_collision(transport_name): session1 = client1.transport.test_iam_permissions._session session2 = client2.transport.test_iam_permissions._session assert session1 != session2 + session1 = client1.transport.update._session + session2 = client2.transport.update._session + assert session1 != session2 def test_common_billing_account_path(): diff --git a/tests/unit/gapic/compute_v1/test_forwarding_rules.py b/tests/unit/gapic/compute_v1/test_forwarding_rules.py index fd7acb244..53eb744cf 100644 --- a/tests/unit/gapic/compute_v1/test_forwarding_rules.py +++ b/tests/unit/gapic/compute_v1/test_forwarding_rules.py @@ -1632,6 +1632,7 @@ def test_get_rest(request_type): all_ports=True, allow_global_access=True, backend_service="backend_service_value", + base_forwarding_rule="base_forwarding_rule_value", creation_timestamp="creation_timestamp_value", description="description_value", fingerprint="fingerprint_value", @@ -1653,6 +1654,7 @@ def test_get_rest(request_type): self_link="self_link_value", service_label="service_label_value", service_name="service_name_value", + source_ip_ranges=["source_ip_ranges_value"], subnetwork="subnetwork_value", target="target_value", ) @@ -1674,6 +1676,7 @@ def test_get_rest(request_type): assert response.all_ports is True assert response.allow_global_access is True assert response.backend_service == "backend_service_value" + assert response.base_forwarding_rule == "base_forwarding_rule_value" assert response.creation_timestamp == "creation_timestamp_value" assert response.description == "description_value" assert response.fingerprint == "fingerprint_value" @@ -1695,6 +1698,7 @@ def test_get_rest(request_type): assert response.self_link == "self_link_value" assert response.service_label == "service_label_value" assert response.service_name == "service_name_value" + assert response.source_ip_ranges == ["source_ip_ranges_value"] assert response.subnetwork == "subnetwork_value" assert response.target == "target_value" @@ -1976,6 +1980,7 @@ def test_insert_rest(request_type): "all_ports": True, "allow_global_access": True, "backend_service": "backend_service_value", + "base_forwarding_rule": "base_forwarding_rule_value", "creation_timestamp": "creation_timestamp_value", "description": "description_value", "fingerprint": "fingerprint_value", @@ -2011,6 +2016,7 @@ def test_insert_rest(request_type): ], "service_label": "service_label_value", "service_name": "service_name_value", + "source_ip_ranges": ["source_ip_ranges_value1", "source_ip_ranges_value2"], "subnetwork": "subnetwork_value", "target": "target_value", } @@ -2251,6 +2257,7 @@ def test_insert_rest_bad_request( "all_ports": True, "allow_global_access": True, "backend_service": "backend_service_value", + "base_forwarding_rule": "base_forwarding_rule_value", "creation_timestamp": "creation_timestamp_value", "description": "description_value", "fingerprint": "fingerprint_value", @@ -2286,6 +2293,7 @@ def test_insert_rest_bad_request( ], "service_label": "service_label_value", "service_name": "service_name_value", + "source_ip_ranges": ["source_ip_ranges_value1", "source_ip_ranges_value2"], "subnetwork": "subnetwork_value", "target": "target_value", } @@ -2394,6 +2402,7 @@ def test_insert_unary_rest(request_type): "all_ports": True, "allow_global_access": True, "backend_service": "backend_service_value", + "base_forwarding_rule": "base_forwarding_rule_value", "creation_timestamp": "creation_timestamp_value", "description": "description_value", "fingerprint": "fingerprint_value", @@ -2429,6 +2438,7 @@ def test_insert_unary_rest(request_type): ], "service_label": "service_label_value", "service_name": "service_name_value", + "source_ip_ranges": ["source_ip_ranges_value1", "source_ip_ranges_value2"], "subnetwork": "subnetwork_value", "target": "target_value", } @@ -2649,6 +2659,7 @@ def test_insert_unary_rest_bad_request( "all_ports": True, "allow_global_access": True, "backend_service": "backend_service_value", + "base_forwarding_rule": "base_forwarding_rule_value", "creation_timestamp": "creation_timestamp_value", "description": "description_value", "fingerprint": "fingerprint_value", @@ -2684,6 +2695,7 @@ def test_insert_unary_rest_bad_request( ], "service_label": "service_label_value", "service_name": "service_name_value", + "source_ip_ranges": ["source_ip_ranges_value1", "source_ip_ranges_value2"], "subnetwork": "subnetwork_value", "target": "target_value", } @@ -3155,6 +3167,7 @@ def test_patch_rest(request_type): "all_ports": True, "allow_global_access": True, "backend_service": "backend_service_value", + "base_forwarding_rule": "base_forwarding_rule_value", "creation_timestamp": "creation_timestamp_value", "description": "description_value", "fingerprint": "fingerprint_value", @@ -3190,6 +3203,7 @@ def test_patch_rest(request_type): ], "service_label": "service_label_value", "service_name": "service_name_value", + "source_ip_ranges": ["source_ip_ranges_value1", "source_ip_ranges_value2"], "subnetwork": "subnetwork_value", "target": "target_value", } @@ -3439,6 +3453,7 @@ def test_patch_rest_bad_request( "all_ports": True, "allow_global_access": True, "backend_service": "backend_service_value", + "base_forwarding_rule": "base_forwarding_rule_value", "creation_timestamp": "creation_timestamp_value", "description": "description_value", "fingerprint": "fingerprint_value", @@ -3474,6 +3489,7 @@ def test_patch_rest_bad_request( ], "service_label": "service_label_value", "service_name": "service_name_value", + "source_ip_ranges": ["source_ip_ranges_value1", "source_ip_ranges_value2"], "subnetwork": "subnetwork_value", "target": "target_value", } @@ -3592,6 +3608,7 @@ def test_patch_unary_rest(request_type): "all_ports": True, "allow_global_access": True, "backend_service": "backend_service_value", + "base_forwarding_rule": "base_forwarding_rule_value", "creation_timestamp": "creation_timestamp_value", "description": "description_value", "fingerprint": "fingerprint_value", @@ -3627,6 +3644,7 @@ def test_patch_unary_rest(request_type): ], "service_label": "service_label_value", "service_name": "service_name_value", + "source_ip_ranges": ["source_ip_ranges_value1", "source_ip_ranges_value2"], "subnetwork": "subnetwork_value", "target": "target_value", } @@ -3856,6 +3874,7 @@ def test_patch_unary_rest_bad_request( "all_ports": True, "allow_global_access": True, "backend_service": "backend_service_value", + "base_forwarding_rule": "base_forwarding_rule_value", "creation_timestamp": "creation_timestamp_value", "description": "description_value", "fingerprint": "fingerprint_value", @@ -3891,6 +3910,7 @@ def test_patch_unary_rest_bad_request( ], "service_label": "service_label_value", "service_name": "service_name_value", + "source_ip_ranges": ["source_ip_ranges_value1", "source_ip_ranges_value2"], "subnetwork": "subnetwork_value", "target": "target_value", } diff --git a/tests/unit/gapic/compute_v1/test_global_forwarding_rules.py b/tests/unit/gapic/compute_v1/test_global_forwarding_rules.py index 838e9eb4c..4d73ca721 100644 --- a/tests/unit/gapic/compute_v1/test_global_forwarding_rules.py +++ b/tests/unit/gapic/compute_v1/test_global_forwarding_rules.py @@ -1238,6 +1238,7 @@ def test_get_rest(request_type): all_ports=True, allow_global_access=True, backend_service="backend_service_value", + base_forwarding_rule="base_forwarding_rule_value", creation_timestamp="creation_timestamp_value", description="description_value", fingerprint="fingerprint_value", @@ -1259,6 +1260,7 @@ def test_get_rest(request_type): self_link="self_link_value", service_label="service_label_value", service_name="service_name_value", + source_ip_ranges=["source_ip_ranges_value"], subnetwork="subnetwork_value", target="target_value", ) @@ -1280,6 +1282,7 @@ def test_get_rest(request_type): assert response.all_ports is True assert response.allow_global_access is True assert response.backend_service == "backend_service_value" + assert response.base_forwarding_rule == "base_forwarding_rule_value" assert response.creation_timestamp == "creation_timestamp_value" assert response.description == "description_value" assert response.fingerprint == "fingerprint_value" @@ -1301,6 +1304,7 @@ def test_get_rest(request_type): assert response.self_link == "self_link_value" assert response.service_label == "service_label_value" assert response.service_name == "service_name_value" + assert response.source_ip_ranges == ["source_ip_ranges_value"] assert response.subnetwork == "subnetwork_value" assert response.target == "target_value" @@ -1567,6 +1571,7 @@ def test_insert_rest(request_type): "all_ports": True, "allow_global_access": True, "backend_service": "backend_service_value", + "base_forwarding_rule": "base_forwarding_rule_value", "creation_timestamp": "creation_timestamp_value", "description": "description_value", "fingerprint": "fingerprint_value", @@ -1602,6 +1607,7 @@ def test_insert_rest(request_type): ], "service_label": "service_label_value", "service_name": "service_name_value", + "source_ip_ranges": ["source_ip_ranges_value1", "source_ip_ranges_value2"], "subnetwork": "subnetwork_value", "target": "target_value", } @@ -1839,6 +1845,7 @@ def test_insert_rest_bad_request( "all_ports": True, "allow_global_access": True, "backend_service": "backend_service_value", + "base_forwarding_rule": "base_forwarding_rule_value", "creation_timestamp": "creation_timestamp_value", "description": "description_value", "fingerprint": "fingerprint_value", @@ -1874,6 +1881,7 @@ def test_insert_rest_bad_request( ], "service_label": "service_label_value", "service_name": "service_name_value", + "source_ip_ranges": ["source_ip_ranges_value1", "source_ip_ranges_value2"], "subnetwork": "subnetwork_value", "target": "target_value", } @@ -1980,6 +1988,7 @@ def test_insert_unary_rest(request_type): "all_ports": True, "allow_global_access": True, "backend_service": "backend_service_value", + "base_forwarding_rule": "base_forwarding_rule_value", "creation_timestamp": "creation_timestamp_value", "description": "description_value", "fingerprint": "fingerprint_value", @@ -2015,6 +2024,7 @@ def test_insert_unary_rest(request_type): ], "service_label": "service_label_value", "service_name": "service_name_value", + "source_ip_ranges": ["source_ip_ranges_value1", "source_ip_ranges_value2"], "subnetwork": "subnetwork_value", "target": "target_value", } @@ -2230,6 +2240,7 @@ def test_insert_unary_rest_bad_request( "all_ports": True, "allow_global_access": True, "backend_service": "backend_service_value", + "base_forwarding_rule": "base_forwarding_rule_value", "creation_timestamp": "creation_timestamp_value", "description": "description_value", "fingerprint": "fingerprint_value", @@ -2265,6 +2276,7 @@ def test_insert_unary_rest_bad_request( ], "service_label": "service_label_value", "service_name": "service_name_value", + "source_ip_ranges": ["source_ip_ranges_value1", "source_ip_ranges_value2"], "subnetwork": "subnetwork_value", "target": "target_value", } @@ -2721,6 +2733,7 @@ def test_patch_rest(request_type): "all_ports": True, "allow_global_access": True, "backend_service": "backend_service_value", + "base_forwarding_rule": "base_forwarding_rule_value", "creation_timestamp": "creation_timestamp_value", "description": "description_value", "fingerprint": "fingerprint_value", @@ -2756,6 +2769,7 @@ def test_patch_rest(request_type): ], "service_label": "service_label_value", "service_name": "service_name_value", + "source_ip_ranges": ["source_ip_ranges_value1", "source_ip_ranges_value2"], "subnetwork": "subnetwork_value", "target": "target_value", } @@ -2998,6 +3012,7 @@ def test_patch_rest_bad_request( "all_ports": True, "allow_global_access": True, "backend_service": "backend_service_value", + "base_forwarding_rule": "base_forwarding_rule_value", "creation_timestamp": "creation_timestamp_value", "description": "description_value", "fingerprint": "fingerprint_value", @@ -3033,6 +3048,7 @@ def test_patch_rest_bad_request( ], "service_label": "service_label_value", "service_name": "service_name_value", + "source_ip_ranges": ["source_ip_ranges_value1", "source_ip_ranges_value2"], "subnetwork": "subnetwork_value", "target": "target_value", } @@ -3141,6 +3157,7 @@ def test_patch_unary_rest(request_type): "all_ports": True, "allow_global_access": True, "backend_service": "backend_service_value", + "base_forwarding_rule": "base_forwarding_rule_value", "creation_timestamp": "creation_timestamp_value", "description": "description_value", "fingerprint": "fingerprint_value", @@ -3176,6 +3193,7 @@ def test_patch_unary_rest(request_type): ], "service_label": "service_label_value", "service_name": "service_name_value", + "source_ip_ranges": ["source_ip_ranges_value1", "source_ip_ranges_value2"], "subnetwork": "subnetwork_value", "target": "target_value", } @@ -3396,6 +3414,7 @@ def test_patch_unary_rest_bad_request( "all_ports": True, "allow_global_access": True, "backend_service": "backend_service_value", + "base_forwarding_rule": "base_forwarding_rule_value", "creation_timestamp": "creation_timestamp_value", "description": "description_value", "fingerprint": "fingerprint_value", @@ -3431,6 +3450,7 @@ def test_patch_unary_rest_bad_request( ], "service_label": "service_label_value", "service_name": "service_name_value", + "source_ip_ranges": ["source_ip_ranges_value1", "source_ip_ranges_value2"], "subnetwork": "subnetwork_value", "target": "target_value", } diff --git a/tests/unit/gapic/compute_v1/test_instance_templates.py b/tests/unit/gapic/compute_v1/test_instance_templates.py index 65d28db13..ca4e308b5 100644 --- a/tests/unit/gapic/compute_v1/test_instance_templates.py +++ b/tests/unit/gapic/compute_v1/test_instance_templates.py @@ -578,6 +578,372 @@ def test_instance_templates_client_client_options_credentials_file( ) +@pytest.mark.parametrize( + "request_type", + [ + compute.AggregatedListInstanceTemplatesRequest, + dict, + ], +) +def test_aggregated_list_rest(request_type): + client = InstanceTemplatesClient( + credentials=ga_credentials.AnonymousCredentials(), + transport="rest", + ) + + # send a request that will satisfy transcoding + request_init = {"project": "sample1"} + request = request_type(**request_init) + + # Mock the http request call within the method and fake a response. + with mock.patch.object(type(client.transport._session), "request") as req: + # Designate an appropriate value for the returned response. + return_value = compute.InstanceTemplateAggregatedList( + id="id_value", + kind="kind_value", + next_page_token="next_page_token_value", + self_link="self_link_value", + ) + + # Wrap the value into a proper Response obj + response_value = Response() + response_value.status_code = 200 + pb_return_value = compute.InstanceTemplateAggregatedList.pb(return_value) + json_return_value = json_format.MessageToJson(pb_return_value) + + response_value._content = json_return_value.encode("UTF-8") + req.return_value = response_value + response = client.aggregated_list(request) + + # Establish that the response is the type that we expect. + assert isinstance(response, pagers.AggregatedListPager) + assert response.id == "id_value" + assert response.kind == "kind_value" + assert response.next_page_token == "next_page_token_value" + assert response.self_link == "self_link_value" + + +def test_aggregated_list_rest_required_fields( + request_type=compute.AggregatedListInstanceTemplatesRequest, +): + transport_class = transports.InstanceTemplatesRestTransport + + request_init = {} + request_init["project"] = "" + request = request_type(**request_init) + pb_request = request_type.pb(request) + jsonified_request = json.loads( + json_format.MessageToJson( + pb_request, + including_default_value_fields=False, + use_integers_for_enums=False, + ) + ) + + # verify fields with default values are dropped + + unset_fields = transport_class( + credentials=ga_credentials.AnonymousCredentials() + ).aggregated_list._get_unset_required_fields(jsonified_request) + jsonified_request.update(unset_fields) + + # verify required fields with default values are now present + + jsonified_request["project"] = "project_value" + + unset_fields = transport_class( + credentials=ga_credentials.AnonymousCredentials() + ).aggregated_list._get_unset_required_fields(jsonified_request) + # Check that path parameters and body parameters are not mixing in. + assert not set(unset_fields) - set( + ( + "filter", + "include_all_scopes", + "max_results", + "order_by", + "page_token", + "return_partial_success", + ) + ) + jsonified_request.update(unset_fields) + + # verify required fields with non-default values are left alone + assert "project" in jsonified_request + assert jsonified_request["project"] == "project_value" + + client = InstanceTemplatesClient( + credentials=ga_credentials.AnonymousCredentials(), + transport="rest", + ) + request = request_type(**request_init) + + # Designate an appropriate value for the returned response. + return_value = compute.InstanceTemplateAggregatedList() + # Mock the http request call within the method and fake a response. + with mock.patch.object(Session, "request") as req: + # We need to mock transcode() because providing default values + # for required fields will fail the real version if the http_options + # expect actual values for those fields. + with mock.patch.object(path_template, "transcode") as transcode: + # A uri without fields and an empty body will force all the + # request fields to show up in the query_params. + pb_request = request_type.pb(request) + transcode_result = { + "uri": "v1/sample_method", + "method": "get", + "query_params": pb_request, + } + transcode.return_value = transcode_result + + response_value = Response() + response_value.status_code = 200 + + pb_return_value = compute.InstanceTemplateAggregatedList.pb(return_value) + json_return_value = json_format.MessageToJson(pb_return_value) + + response_value._content = json_return_value.encode("UTF-8") + req.return_value = response_value + + response = client.aggregated_list(request) + + expected_params = [] + actual_params = req.call_args.kwargs["params"] + assert expected_params == actual_params + + +def test_aggregated_list_rest_unset_required_fields(): + transport = transports.InstanceTemplatesRestTransport( + credentials=ga_credentials.AnonymousCredentials + ) + + unset_fields = transport.aggregated_list._get_unset_required_fields({}) + assert set(unset_fields) == ( + set( + ( + "filter", + "includeAllScopes", + "maxResults", + "orderBy", + "pageToken", + "returnPartialSuccess", + ) + ) + & set(("project",)) + ) + + +@pytest.mark.parametrize("null_interceptor", [True, False]) +def test_aggregated_list_rest_interceptors(null_interceptor): + transport = transports.InstanceTemplatesRestTransport( + credentials=ga_credentials.AnonymousCredentials(), + interceptor=None + if null_interceptor + else transports.InstanceTemplatesRestInterceptor(), + ) + client = InstanceTemplatesClient(transport=transport) + with mock.patch.object( + type(client.transport._session), "request" + ) as req, mock.patch.object( + path_template, "transcode" + ) as transcode, mock.patch.object( + transports.InstanceTemplatesRestInterceptor, "post_aggregated_list" + ) as post, mock.patch.object( + transports.InstanceTemplatesRestInterceptor, "pre_aggregated_list" + ) as pre: + pre.assert_not_called() + post.assert_not_called() + pb_message = compute.AggregatedListInstanceTemplatesRequest.pb( + compute.AggregatedListInstanceTemplatesRequest() + ) + transcode.return_value = { + "method": "post", + "uri": "my_uri", + "body": pb_message, + "query_params": pb_message, + } + + req.return_value = Response() + req.return_value.status_code = 200 + req.return_value.request = PreparedRequest() + req.return_value._content = compute.InstanceTemplateAggregatedList.to_json( + compute.InstanceTemplateAggregatedList() + ) + + request = compute.AggregatedListInstanceTemplatesRequest() + metadata = [ + ("key", "val"), + ("cephalopod", "squid"), + ] + pre.return_value = request, metadata + post.return_value = compute.InstanceTemplateAggregatedList() + + client.aggregated_list( + request, + metadata=[ + ("key", "val"), + ("cephalopod", "squid"), + ], + ) + + pre.assert_called_once() + post.assert_called_once() + + +def test_aggregated_list_rest_bad_request( + transport: str = "rest", request_type=compute.AggregatedListInstanceTemplatesRequest +): + client = InstanceTemplatesClient( + credentials=ga_credentials.AnonymousCredentials(), + transport=transport, + ) + + # send a request that will satisfy transcoding + request_init = {"project": "sample1"} + request = request_type(**request_init) + + # Mock the http request call within the method and fake a BadRequest error. + with mock.patch.object(Session, "request") as req, pytest.raises( + core_exceptions.BadRequest + ): + # Wrap the value into a proper Response obj + response_value = Response() + response_value.status_code = 400 + response_value.request = Request() + req.return_value = response_value + client.aggregated_list(request) + + +def test_aggregated_list_rest_flattened(): + client = InstanceTemplatesClient( + credentials=ga_credentials.AnonymousCredentials(), + transport="rest", + ) + + # Mock the http request call within the method and fake a response. + with mock.patch.object(type(client.transport._session), "request") as req: + # Designate an appropriate value for the returned response. + return_value = compute.InstanceTemplateAggregatedList() + + # get arguments that satisfy an http rule for this method + sample_request = {"project": "sample1"} + + # get truthy value for each flattened field + mock_args = dict( + project="project_value", + ) + mock_args.update(sample_request) + + # Wrap the value into a proper Response obj + response_value = Response() + response_value.status_code = 200 + pb_return_value = compute.InstanceTemplateAggregatedList.pb(return_value) + json_return_value = json_format.MessageToJson(pb_return_value) + response_value._content = json_return_value.encode("UTF-8") + req.return_value = response_value + + client.aggregated_list(**mock_args) + + # Establish that the underlying call was made with the expected + # request object values. + assert len(req.mock_calls) == 1 + _, args, _ = req.mock_calls[0] + assert path_template.validate( + "%s/compute/v1/projects/{project}/aggregated/instanceTemplates" + % client.transport._host, + args[1], + ) + + +def test_aggregated_list_rest_flattened_error(transport: str = "rest"): + client = InstanceTemplatesClient( + credentials=ga_credentials.AnonymousCredentials(), + transport=transport, + ) + + # Attempting to call a method with both a request object and flattened + # fields is an error. + with pytest.raises(ValueError): + client.aggregated_list( + compute.AggregatedListInstanceTemplatesRequest(), + project="project_value", + ) + + +def test_aggregated_list_rest_pager(transport: str = "rest"): + client = InstanceTemplatesClient( + credentials=ga_credentials.AnonymousCredentials(), + transport=transport, + ) + + # Mock the http request call within the method and fake a response. + with mock.patch.object(Session, "request") as req: + # TODO(kbandes): remove this mock unless there's a good reason for it. + # with mock.patch.object(path_template, 'transcode') as transcode: + # Set the response as a series of pages + response = ( + compute.InstanceTemplateAggregatedList( + items={ + "a": compute.InstanceTemplatesScopedList(), + "b": compute.InstanceTemplatesScopedList(), + "c": compute.InstanceTemplatesScopedList(), + }, + next_page_token="abc", + ), + compute.InstanceTemplateAggregatedList( + items={}, + next_page_token="def", + ), + compute.InstanceTemplateAggregatedList( + items={ + "g": compute.InstanceTemplatesScopedList(), + }, + next_page_token="ghi", + ), + compute.InstanceTemplateAggregatedList( + items={ + "h": compute.InstanceTemplatesScopedList(), + "i": compute.InstanceTemplatesScopedList(), + }, + ), + ) + # Two responses for two calls + response = response + response + + # Wrap the values into proper Response objs + response = tuple( + compute.InstanceTemplateAggregatedList.to_json(x) for x in response + ) + return_values = tuple(Response() for i in response) + for return_val, response_val in zip(return_values, response): + return_val._content = response_val.encode("UTF-8") + return_val.status_code = 200 + req.side_effect = return_values + + sample_request = {"project": "sample1"} + + pager = client.aggregated_list(request=sample_request) + + assert isinstance(pager.get("a"), compute.InstanceTemplatesScopedList) + assert pager.get("h") is None + + results = list(pager) + assert len(results) == 6 + assert all(isinstance(i, tuple) for i in results) + for result in results: + assert isinstance(result, tuple) + assert tuple(type(t) for t in result) == ( + str, + compute.InstanceTemplatesScopedList, + ) + + assert pager.get("a") is None + assert isinstance(pager.get("h"), compute.InstanceTemplatesScopedList) + + pages = list(client.aggregated_list(request=sample_request).pages) + for page_, token in zip(pages, ["abc", "def", "ghi", ""]): + assert page_.raw_page.next_page_token == token + + @pytest.mark.parametrize( "request_type", [ @@ -1230,6 +1596,7 @@ def test_get_rest(request_type): id=205, kind="kind_value", name="name_value", + region="region_value", self_link="self_link_value", source_instance="source_instance_value", ) @@ -1251,6 +1618,7 @@ def test_get_rest(request_type): assert response.id == 205 assert response.kind == "kind_value" assert response.name == "name_value" + assert response.region == "region_value" assert response.self_link == "self_link_value" assert response.source_instance == "source_instance_value" @@ -1961,6 +2329,7 @@ def test_insert_rest(request_type): "items": ["items_value1", "items_value2"], }, }, + "region": "region_value", "self_link": "self_link_value", "source_instance": "source_instance_value", "source_instance_params": { @@ -2366,6 +2735,7 @@ def test_insert_rest_bad_request( "items": ["items_value1", "items_value2"], }, }, + "region": "region_value", "self_link": "self_link_value", "source_instance": "source_instance_value", "source_instance_params": { @@ -2640,6 +3010,7 @@ def test_insert_unary_rest(request_type): "items": ["items_value1", "items_value2"], }, }, + "region": "region_value", "self_link": "self_link_value", "source_instance": "source_instance_value", "source_instance_params": { @@ -3023,6 +3394,7 @@ def test_insert_unary_rest_bad_request( "items": ["items_value1", "items_value2"], }, }, + "region": "region_value", "self_link": "self_link_value", "source_instance": "source_instance_value", "source_instance_params": { @@ -4319,6 +4691,7 @@ def test_instance_templates_base_transport(): # Every method on the transport should just blindly # raise NotImplementedError. methods = ( + "aggregated_list", "delete", "get", "get_iam_policy", @@ -4463,6 +4836,9 @@ def test_instance_templates_client_transport_session_collision(transport_name): credentials=creds2, transport=transport_name, ) + session1 = client1.transport.aggregated_list._session + session2 = client2.transport.aggregated_list._session + assert session1 != session2 session1 = client1.transport.delete._session session2 = client2.transport.delete._session assert session1 != session2 diff --git a/tests/unit/gapic/compute_v1/test_instances.py b/tests/unit/gapic/compute_v1/test_instances.py index bd49d8ee9..775aafc75 100644 --- a/tests/unit/gapic/compute_v1/test_instances.py +++ b/tests/unit/gapic/compute_v1/test_instances.py @@ -18260,6 +18260,676 @@ def test_set_min_cpu_platform_unary_rest_error(): ) +@pytest.mark.parametrize( + "request_type", + [ + compute.SetNameInstanceRequest, + dict, + ], +) +def test_set_name_rest(request_type): + client = InstancesClient( + credentials=ga_credentials.AnonymousCredentials(), + transport="rest", + ) + + # send a request that will satisfy transcoding + request_init = {"project": "sample1", "zone": "sample2", "instance": "sample3"} + request_init["instances_set_name_request_resource"] = { + "current_name": "current_name_value", + "name": "name_value", + } + request = request_type(**request_init) + + # Mock the http request call within the method and fake a response. + with mock.patch.object(type(client.transport._session), "request") as req: + # Designate an appropriate value for the returned response. + return_value = compute.Operation( + client_operation_id="client_operation_id_value", + creation_timestamp="creation_timestamp_value", + description="description_value", + end_time="end_time_value", + http_error_message="http_error_message_value", + http_error_status_code=2374, + id=205, + insert_time="insert_time_value", + kind="kind_value", + name="name_value", + operation_group_id="operation_group_id_value", + operation_type="operation_type_value", + progress=885, + region="region_value", + self_link="self_link_value", + start_time="start_time_value", + status=compute.Operation.Status.DONE, + status_message="status_message_value", + target_id=947, + target_link="target_link_value", + user="user_value", + zone="zone_value", + ) + + # Wrap the value into a proper Response obj + response_value = Response() + response_value.status_code = 200 + pb_return_value = compute.Operation.pb(return_value) + json_return_value = json_format.MessageToJson(pb_return_value) + + response_value._content = json_return_value.encode("UTF-8") + req.return_value = response_value + response = client.set_name(request) + + # Establish that the response is the type that we expect. + assert isinstance(response, extended_operation.ExtendedOperation) + assert response.client_operation_id == "client_operation_id_value" + assert response.creation_timestamp == "creation_timestamp_value" + assert response.description == "description_value" + assert response.end_time == "end_time_value" + assert response.http_error_message == "http_error_message_value" + assert response.http_error_status_code == 2374 + assert response.id == 205 + assert response.insert_time == "insert_time_value" + assert response.kind == "kind_value" + assert response.name == "name_value" + assert response.operation_group_id == "operation_group_id_value" + assert response.operation_type == "operation_type_value" + assert response.progress == 885 + assert response.region == "region_value" + assert response.self_link == "self_link_value" + assert response.start_time == "start_time_value" + assert response.status == compute.Operation.Status.DONE + assert response.status_message == "status_message_value" + assert response.target_id == 947 + assert response.target_link == "target_link_value" + assert response.user == "user_value" + assert response.zone == "zone_value" + + +def test_set_name_rest_required_fields(request_type=compute.SetNameInstanceRequest): + transport_class = transports.InstancesRestTransport + + request_init = {} + request_init["instance"] = "" + request_init["project"] = "" + request_init["zone"] = "" + request = request_type(**request_init) + pb_request = request_type.pb(request) + jsonified_request = json.loads( + json_format.MessageToJson( + pb_request, + including_default_value_fields=False, + use_integers_for_enums=False, + ) + ) + + # verify fields with default values are dropped + + unset_fields = transport_class( + credentials=ga_credentials.AnonymousCredentials() + ).set_name._get_unset_required_fields(jsonified_request) + jsonified_request.update(unset_fields) + + # verify required fields with default values are now present + + jsonified_request["instance"] = "instance_value" + jsonified_request["project"] = "project_value" + jsonified_request["zone"] = "zone_value" + + unset_fields = transport_class( + credentials=ga_credentials.AnonymousCredentials() + ).set_name._get_unset_required_fields(jsonified_request) + # Check that path parameters and body parameters are not mixing in. + assert not set(unset_fields) - set(("request_id",)) + jsonified_request.update(unset_fields) + + # verify required fields with non-default values are left alone + assert "instance" in jsonified_request + assert jsonified_request["instance"] == "instance_value" + assert "project" in jsonified_request + assert jsonified_request["project"] == "project_value" + assert "zone" in jsonified_request + assert jsonified_request["zone"] == "zone_value" + + client = InstancesClient( + credentials=ga_credentials.AnonymousCredentials(), + transport="rest", + ) + request = request_type(**request_init) + + # Designate an appropriate value for the returned response. + return_value = compute.Operation() + # Mock the http request call within the method and fake a response. + with mock.patch.object(Session, "request") as req: + # We need to mock transcode() because providing default values + # for required fields will fail the real version if the http_options + # expect actual values for those fields. + with mock.patch.object(path_template, "transcode") as transcode: + # A uri without fields and an empty body will force all the + # request fields to show up in the query_params. + pb_request = request_type.pb(request) + transcode_result = { + "uri": "v1/sample_method", + "method": "post", + "query_params": pb_request, + } + transcode_result["body"] = pb_request + transcode.return_value = transcode_result + + response_value = Response() + response_value.status_code = 200 + + pb_return_value = compute.Operation.pb(return_value) + json_return_value = json_format.MessageToJson(pb_return_value) + + response_value._content = json_return_value.encode("UTF-8") + req.return_value = response_value + + response = client.set_name(request) + + expected_params = [] + actual_params = req.call_args.kwargs["params"] + assert expected_params == actual_params + + +def test_set_name_rest_unset_required_fields(): + transport = transports.InstancesRestTransport( + credentials=ga_credentials.AnonymousCredentials + ) + + unset_fields = transport.set_name._get_unset_required_fields({}) + assert set(unset_fields) == ( + set(("requestId",)) + & set( + ( + "instance", + "instancesSetNameRequestResource", + "project", + "zone", + ) + ) + ) + + +@pytest.mark.parametrize("null_interceptor", [True, False]) +def test_set_name_rest_interceptors(null_interceptor): + transport = transports.InstancesRestTransport( + credentials=ga_credentials.AnonymousCredentials(), + interceptor=None if null_interceptor else transports.InstancesRestInterceptor(), + ) + client = InstancesClient(transport=transport) + with mock.patch.object( + type(client.transport._session), "request" + ) as req, mock.patch.object( + path_template, "transcode" + ) as transcode, mock.patch.object( + transports.InstancesRestInterceptor, "post_set_name" + ) as post, mock.patch.object( + transports.InstancesRestInterceptor, "pre_set_name" + ) as pre: + pre.assert_not_called() + post.assert_not_called() + pb_message = compute.SetNameInstanceRequest.pb(compute.SetNameInstanceRequest()) + transcode.return_value = { + "method": "post", + "uri": "my_uri", + "body": pb_message, + "query_params": pb_message, + } + + req.return_value = Response() + req.return_value.status_code = 200 + req.return_value.request = PreparedRequest() + req.return_value._content = compute.Operation.to_json(compute.Operation()) + + request = compute.SetNameInstanceRequest() + metadata = [ + ("key", "val"), + ("cephalopod", "squid"), + ] + pre.return_value = request, metadata + post.return_value = compute.Operation() + + client.set_name( + request, + metadata=[ + ("key", "val"), + ("cephalopod", "squid"), + ], + ) + + pre.assert_called_once() + post.assert_called_once() + + +def test_set_name_rest_bad_request( + transport: str = "rest", request_type=compute.SetNameInstanceRequest +): + client = InstancesClient( + credentials=ga_credentials.AnonymousCredentials(), + transport=transport, + ) + + # send a request that will satisfy transcoding + request_init = {"project": "sample1", "zone": "sample2", "instance": "sample3"} + request_init["instances_set_name_request_resource"] = { + "current_name": "current_name_value", + "name": "name_value", + } + request = request_type(**request_init) + + # Mock the http request call within the method and fake a BadRequest error. + with mock.patch.object(Session, "request") as req, pytest.raises( + core_exceptions.BadRequest + ): + # Wrap the value into a proper Response obj + response_value = Response() + response_value.status_code = 400 + response_value.request = Request() + req.return_value = response_value + client.set_name(request) + + +def test_set_name_rest_flattened(): + client = InstancesClient( + credentials=ga_credentials.AnonymousCredentials(), + transport="rest", + ) + + # Mock the http request call within the method and fake a response. + with mock.patch.object(type(client.transport._session), "request") as req: + # Designate an appropriate value for the returned response. + return_value = compute.Operation() + + # get arguments that satisfy an http rule for this method + sample_request = { + "project": "sample1", + "zone": "sample2", + "instance": "sample3", + } + + # get truthy value for each flattened field + mock_args = dict( + project="project_value", + zone="zone_value", + instance="instance_value", + instances_set_name_request_resource=compute.InstancesSetNameRequest( + current_name="current_name_value" + ), + ) + mock_args.update(sample_request) + + # Wrap the value into a proper Response obj + response_value = Response() + response_value.status_code = 200 + pb_return_value = compute.Operation.pb(return_value) + json_return_value = json_format.MessageToJson(pb_return_value) + response_value._content = json_return_value.encode("UTF-8") + req.return_value = response_value + + client.set_name(**mock_args) + + # Establish that the underlying call was made with the expected + # request object values. + assert len(req.mock_calls) == 1 + _, args, _ = req.mock_calls[0] + assert path_template.validate( + "%s/compute/v1/projects/{project}/zones/{zone}/instances/{instance}/setName" + % client.transport._host, + args[1], + ) + + +def test_set_name_rest_flattened_error(transport: str = "rest"): + client = InstancesClient( + credentials=ga_credentials.AnonymousCredentials(), + transport=transport, + ) + + # Attempting to call a method with both a request object and flattened + # fields is an error. + with pytest.raises(ValueError): + client.set_name( + compute.SetNameInstanceRequest(), + project="project_value", + zone="zone_value", + instance="instance_value", + instances_set_name_request_resource=compute.InstancesSetNameRequest( + current_name="current_name_value" + ), + ) + + +def test_set_name_rest_error(): + client = InstancesClient( + credentials=ga_credentials.AnonymousCredentials(), transport="rest" + ) + + +@pytest.mark.parametrize( + "request_type", + [ + compute.SetNameInstanceRequest, + dict, + ], +) +def test_set_name_unary_rest(request_type): + client = InstancesClient( + credentials=ga_credentials.AnonymousCredentials(), + transport="rest", + ) + + # send a request that will satisfy transcoding + request_init = {"project": "sample1", "zone": "sample2", "instance": "sample3"} + request_init["instances_set_name_request_resource"] = { + "current_name": "current_name_value", + "name": "name_value", + } + request = request_type(**request_init) + + # Mock the http request call within the method and fake a response. + with mock.patch.object(type(client.transport._session), "request") as req: + # Designate an appropriate value for the returned response. + return_value = compute.Operation( + client_operation_id="client_operation_id_value", + creation_timestamp="creation_timestamp_value", + description="description_value", + end_time="end_time_value", + http_error_message="http_error_message_value", + http_error_status_code=2374, + id=205, + insert_time="insert_time_value", + kind="kind_value", + name="name_value", + operation_group_id="operation_group_id_value", + operation_type="operation_type_value", + progress=885, + region="region_value", + self_link="self_link_value", + start_time="start_time_value", + status=compute.Operation.Status.DONE, + status_message="status_message_value", + target_id=947, + target_link="target_link_value", + user="user_value", + zone="zone_value", + ) + + # Wrap the value into a proper Response obj + response_value = Response() + response_value.status_code = 200 + pb_return_value = compute.Operation.pb(return_value) + json_return_value = json_format.MessageToJson(pb_return_value) + + response_value._content = json_return_value.encode("UTF-8") + req.return_value = response_value + response = client.set_name_unary(request) + + # Establish that the response is the type that we expect. + assert isinstance(response, compute.Operation) + + +def test_set_name_unary_rest_required_fields( + request_type=compute.SetNameInstanceRequest, +): + transport_class = transports.InstancesRestTransport + + request_init = {} + request_init["instance"] = "" + request_init["project"] = "" + request_init["zone"] = "" + request = request_type(**request_init) + pb_request = request_type.pb(request) + jsonified_request = json.loads( + json_format.MessageToJson( + pb_request, + including_default_value_fields=False, + use_integers_for_enums=False, + ) + ) + + # verify fields with default values are dropped + + unset_fields = transport_class( + credentials=ga_credentials.AnonymousCredentials() + ).set_name._get_unset_required_fields(jsonified_request) + jsonified_request.update(unset_fields) + + # verify required fields with default values are now present + + jsonified_request["instance"] = "instance_value" + jsonified_request["project"] = "project_value" + jsonified_request["zone"] = "zone_value" + + unset_fields = transport_class( + credentials=ga_credentials.AnonymousCredentials() + ).set_name._get_unset_required_fields(jsonified_request) + # Check that path parameters and body parameters are not mixing in. + assert not set(unset_fields) - set(("request_id",)) + jsonified_request.update(unset_fields) + + # verify required fields with non-default values are left alone + assert "instance" in jsonified_request + assert jsonified_request["instance"] == "instance_value" + assert "project" in jsonified_request + assert jsonified_request["project"] == "project_value" + assert "zone" in jsonified_request + assert jsonified_request["zone"] == "zone_value" + + client = InstancesClient( + credentials=ga_credentials.AnonymousCredentials(), + transport="rest", + ) + request = request_type(**request_init) + + # Designate an appropriate value for the returned response. + return_value = compute.Operation() + # Mock the http request call within the method and fake a response. + with mock.patch.object(Session, "request") as req: + # We need to mock transcode() because providing default values + # for required fields will fail the real version if the http_options + # expect actual values for those fields. + with mock.patch.object(path_template, "transcode") as transcode: + # A uri without fields and an empty body will force all the + # request fields to show up in the query_params. + pb_request = request_type.pb(request) + transcode_result = { + "uri": "v1/sample_method", + "method": "post", + "query_params": pb_request, + } + transcode_result["body"] = pb_request + transcode.return_value = transcode_result + + response_value = Response() + response_value.status_code = 200 + + pb_return_value = compute.Operation.pb(return_value) + json_return_value = json_format.MessageToJson(pb_return_value) + + response_value._content = json_return_value.encode("UTF-8") + req.return_value = response_value + + response = client.set_name_unary(request) + + expected_params = [] + actual_params = req.call_args.kwargs["params"] + assert expected_params == actual_params + + +def test_set_name_unary_rest_unset_required_fields(): + transport = transports.InstancesRestTransport( + credentials=ga_credentials.AnonymousCredentials + ) + + unset_fields = transport.set_name._get_unset_required_fields({}) + assert set(unset_fields) == ( + set(("requestId",)) + & set( + ( + "instance", + "instancesSetNameRequestResource", + "project", + "zone", + ) + ) + ) + + +@pytest.mark.parametrize("null_interceptor", [True, False]) +def test_set_name_unary_rest_interceptors(null_interceptor): + transport = transports.InstancesRestTransport( + credentials=ga_credentials.AnonymousCredentials(), + interceptor=None if null_interceptor else transports.InstancesRestInterceptor(), + ) + client = InstancesClient(transport=transport) + with mock.patch.object( + type(client.transport._session), "request" + ) as req, mock.patch.object( + path_template, "transcode" + ) as transcode, mock.patch.object( + transports.InstancesRestInterceptor, "post_set_name" + ) as post, mock.patch.object( + transports.InstancesRestInterceptor, "pre_set_name" + ) as pre: + pre.assert_not_called() + post.assert_not_called() + pb_message = compute.SetNameInstanceRequest.pb(compute.SetNameInstanceRequest()) + transcode.return_value = { + "method": "post", + "uri": "my_uri", + "body": pb_message, + "query_params": pb_message, + } + + req.return_value = Response() + req.return_value.status_code = 200 + req.return_value.request = PreparedRequest() + req.return_value._content = compute.Operation.to_json(compute.Operation()) + + request = compute.SetNameInstanceRequest() + metadata = [ + ("key", "val"), + ("cephalopod", "squid"), + ] + pre.return_value = request, metadata + post.return_value = compute.Operation() + + client.set_name_unary( + request, + metadata=[ + ("key", "val"), + ("cephalopod", "squid"), + ], + ) + + pre.assert_called_once() + post.assert_called_once() + + +def test_set_name_unary_rest_bad_request( + transport: str = "rest", request_type=compute.SetNameInstanceRequest +): + client = InstancesClient( + credentials=ga_credentials.AnonymousCredentials(), + transport=transport, + ) + + # send a request that will satisfy transcoding + request_init = {"project": "sample1", "zone": "sample2", "instance": "sample3"} + request_init["instances_set_name_request_resource"] = { + "current_name": "current_name_value", + "name": "name_value", + } + request = request_type(**request_init) + + # Mock the http request call within the method and fake a BadRequest error. + with mock.patch.object(Session, "request") as req, pytest.raises( + core_exceptions.BadRequest + ): + # Wrap the value into a proper Response obj + response_value = Response() + response_value.status_code = 400 + response_value.request = Request() + req.return_value = response_value + client.set_name_unary(request) + + +def test_set_name_unary_rest_flattened(): + client = InstancesClient( + credentials=ga_credentials.AnonymousCredentials(), + transport="rest", + ) + + # Mock the http request call within the method and fake a response. + with mock.patch.object(type(client.transport._session), "request") as req: + # Designate an appropriate value for the returned response. + return_value = compute.Operation() + + # get arguments that satisfy an http rule for this method + sample_request = { + "project": "sample1", + "zone": "sample2", + "instance": "sample3", + } + + # get truthy value for each flattened field + mock_args = dict( + project="project_value", + zone="zone_value", + instance="instance_value", + instances_set_name_request_resource=compute.InstancesSetNameRequest( + current_name="current_name_value" + ), + ) + mock_args.update(sample_request) + + # Wrap the value into a proper Response obj + response_value = Response() + response_value.status_code = 200 + pb_return_value = compute.Operation.pb(return_value) + json_return_value = json_format.MessageToJson(pb_return_value) + response_value._content = json_return_value.encode("UTF-8") + req.return_value = response_value + + client.set_name_unary(**mock_args) + + # Establish that the underlying call was made with the expected + # request object values. + assert len(req.mock_calls) == 1 + _, args, _ = req.mock_calls[0] + assert path_template.validate( + "%s/compute/v1/projects/{project}/zones/{zone}/instances/{instance}/setName" + % client.transport._host, + args[1], + ) + + +def test_set_name_unary_rest_flattened_error(transport: str = "rest"): + client = InstancesClient( + credentials=ga_credentials.AnonymousCredentials(), + transport=transport, + ) + + # Attempting to call a method with both a request object and flattened + # fields is an error. + with pytest.raises(ValueError): + client.set_name_unary( + compute.SetNameInstanceRequest(), + project="project_value", + zone="zone_value", + instance="instance_value", + instances_set_name_request_resource=compute.InstancesSetNameRequest( + current_name="current_name_value" + ), + ) + + +def test_set_name_unary_rest_error(): + client = InstancesClient( + credentials=ga_credentials.AnonymousCredentials(), transport="rest" + ) + + @pytest.mark.parametrize( "request_type", [ @@ -29127,6 +29797,7 @@ def test_instances_base_transport(): "set_machine_type", "set_metadata", "set_min_cpu_platform", + "set_name", "set_scheduling", "set_service_account", "set_shielded_instance_integrity_policy", @@ -29369,6 +30040,9 @@ def test_instances_client_transport_session_collision(transport_name): session1 = client1.transport.set_min_cpu_platform._session session2 = client2.transport.set_min_cpu_platform._session assert session1 != session2 + session1 = client1.transport.set_name._session + session2 = client2.transport.set_name._session + assert session1 != session2 session1 = client1.transport.set_scheduling._session session2 = client2.transport.set_scheduling._session assert session1 != session2 diff --git a/tests/unit/gapic/compute_v1/test_region_backend_services.py b/tests/unit/gapic/compute_v1/test_region_backend_services.py index b29ecf2fb..199572351 100644 --- a/tests/unit/gapic/compute_v1/test_region_backend_services.py +++ b/tests/unit/gapic/compute_v1/test_region_backend_services.py @@ -2335,7 +2335,12 @@ def test_insert_rest(request_type): } ], "locality_lb_policy": "locality_lb_policy_value", - "log_config": {"enable": True, "sample_rate": 0.1165}, + "log_config": { + "enable": True, + "optional_fields": ["optional_fields_value1", "optional_fields_value2"], + "optional_mode": "optional_mode_value", + "sample_rate": 0.1165, + }, "max_stream_duration": {}, "name": "name_value", "network": "network_value", @@ -2717,7 +2722,12 @@ def test_insert_rest_bad_request( } ], "locality_lb_policy": "locality_lb_policy_value", - "log_config": {"enable": True, "sample_rate": 0.1165}, + "log_config": { + "enable": True, + "optional_fields": ["optional_fields_value1", "optional_fields_value2"], + "optional_mode": "optional_mode_value", + "sample_rate": 0.1165, + }, "max_stream_duration": {}, "name": "name_value", "network": "network_value", @@ -2965,7 +2975,12 @@ def test_insert_unary_rest(request_type): } ], "locality_lb_policy": "locality_lb_policy_value", - "log_config": {"enable": True, "sample_rate": 0.1165}, + "log_config": { + "enable": True, + "optional_fields": ["optional_fields_value1", "optional_fields_value2"], + "optional_mode": "optional_mode_value", + "sample_rate": 0.1165, + }, "max_stream_duration": {}, "name": "name_value", "network": "network_value", @@ -3325,7 +3340,12 @@ def test_insert_unary_rest_bad_request( } ], "locality_lb_policy": "locality_lb_policy_value", - "log_config": {"enable": True, "sample_rate": 0.1165}, + "log_config": { + "enable": True, + "optional_fields": ["optional_fields_value1", "optional_fields_value2"], + "optional_mode": "optional_mode_value", + "sample_rate": 0.1165, + }, "max_stream_duration": {}, "name": "name_value", "network": "network_value", @@ -3938,7 +3958,12 @@ def test_patch_rest(request_type): } ], "locality_lb_policy": "locality_lb_policy_value", - "log_config": {"enable": True, "sample_rate": 0.1165}, + "log_config": { + "enable": True, + "optional_fields": ["optional_fields_value1", "optional_fields_value2"], + "optional_mode": "optional_mode_value", + "sample_rate": 0.1165, + }, "max_stream_duration": {}, "name": "name_value", "network": "network_value", @@ -4329,7 +4354,12 @@ def test_patch_rest_bad_request( } ], "locality_lb_policy": "locality_lb_policy_value", - "log_config": {"enable": True, "sample_rate": 0.1165}, + "log_config": { + "enable": True, + "optional_fields": ["optional_fields_value1", "optional_fields_value2"], + "optional_mode": "optional_mode_value", + "sample_rate": 0.1165, + }, "max_stream_duration": {}, "name": "name_value", "network": "network_value", @@ -4587,7 +4617,12 @@ def test_patch_unary_rest(request_type): } ], "locality_lb_policy": "locality_lb_policy_value", - "log_config": {"enable": True, "sample_rate": 0.1165}, + "log_config": { + "enable": True, + "optional_fields": ["optional_fields_value1", "optional_fields_value2"], + "optional_mode": "optional_mode_value", + "sample_rate": 0.1165, + }, "max_stream_duration": {}, "name": "name_value", "network": "network_value", @@ -4956,7 +4991,12 @@ def test_patch_unary_rest_bad_request( } ], "locality_lb_policy": "locality_lb_policy_value", - "log_config": {"enable": True, "sample_rate": 0.1165}, + "log_config": { + "enable": True, + "optional_fields": ["optional_fields_value1", "optional_fields_value2"], + "optional_mode": "optional_mode_value", + "sample_rate": 0.1165, + }, "max_stream_duration": {}, "name": "name_value", "network": "network_value", @@ -5672,7 +5712,12 @@ def test_update_rest(request_type): } ], "locality_lb_policy": "locality_lb_policy_value", - "log_config": {"enable": True, "sample_rate": 0.1165}, + "log_config": { + "enable": True, + "optional_fields": ["optional_fields_value1", "optional_fields_value2"], + "optional_mode": "optional_mode_value", + "sample_rate": 0.1165, + }, "max_stream_duration": {}, "name": "name_value", "network": "network_value", @@ -6063,7 +6108,12 @@ def test_update_rest_bad_request( } ], "locality_lb_policy": "locality_lb_policy_value", - "log_config": {"enable": True, "sample_rate": 0.1165}, + "log_config": { + "enable": True, + "optional_fields": ["optional_fields_value1", "optional_fields_value2"], + "optional_mode": "optional_mode_value", + "sample_rate": 0.1165, + }, "max_stream_duration": {}, "name": "name_value", "network": "network_value", @@ -6321,7 +6371,12 @@ def test_update_unary_rest(request_type): } ], "locality_lb_policy": "locality_lb_policy_value", - "log_config": {"enable": True, "sample_rate": 0.1165}, + "log_config": { + "enable": True, + "optional_fields": ["optional_fields_value1", "optional_fields_value2"], + "optional_mode": "optional_mode_value", + "sample_rate": 0.1165, + }, "max_stream_duration": {}, "name": "name_value", "network": "network_value", @@ -6690,7 +6745,12 @@ def test_update_unary_rest_bad_request( } ], "locality_lb_policy": "locality_lb_policy_value", - "log_config": {"enable": True, "sample_rate": 0.1165}, + "log_config": { + "enable": True, + "optional_fields": ["optional_fields_value1", "optional_fields_value2"], + "optional_mode": "optional_mode_value", + "sample_rate": 0.1165, + }, "max_stream_duration": {}, "name": "name_value", "network": "network_value", diff --git a/tests/unit/gapic/compute_v1/test_region_disks.py b/tests/unit/gapic/compute_v1/test_region_disks.py index b651953e4..d2b324b82 100644 --- a/tests/unit/gapic/compute_v1/test_region_disks.py +++ b/tests/unit/gapic/compute_v1/test_region_disks.py @@ -7256,6 +7256,860 @@ def test_test_iam_permissions_rest_error(): ) +@pytest.mark.parametrize( + "request_type", + [ + compute.UpdateRegionDiskRequest, + dict, + ], +) +def test_update_rest(request_type): + client = RegionDisksClient( + credentials=ga_credentials.AnonymousCredentials(), + transport="rest", + ) + + # send a request that will satisfy transcoding + request_init = {"project": "sample1", "region": "sample2", "disk": "sample3"} + request_init["disk_resource"] = { + "architecture": "architecture_value", + "creation_timestamp": "creation_timestamp_value", + "description": "description_value", + "disk_encryption_key": { + "kms_key_name": "kms_key_name_value", + "kms_key_service_account": "kms_key_service_account_value", + "raw_key": "raw_key_value", + "rsa_encrypted_key": "rsa_encrypted_key_value", + "sha256": "sha256_value", + }, + "guest_os_features": [{"type_": "type__value"}], + "id": 205, + "kind": "kind_value", + "label_fingerprint": "label_fingerprint_value", + "labels": {}, + "last_attach_timestamp": "last_attach_timestamp_value", + "last_detach_timestamp": "last_detach_timestamp_value", + "license_codes": [1361, 1362], + "licenses": ["licenses_value1", "licenses_value2"], + "location_hint": "location_hint_value", + "name": "name_value", + "options": "options_value", + "params": {"resource_manager_tags": {}}, + "physical_block_size_bytes": 2663, + "provisioned_iops": 1740, + "region": "region_value", + "replica_zones": ["replica_zones_value1", "replica_zones_value2"], + "resource_policies": ["resource_policies_value1", "resource_policies_value2"], + "satisfies_pzs": True, + "self_link": "self_link_value", + "size_gb": 739, + "source_disk": "source_disk_value", + "source_disk_id": "source_disk_id_value", + "source_image": "source_image_value", + "source_image_encryption_key": {}, + "source_image_id": "source_image_id_value", + "source_snapshot": "source_snapshot_value", + "source_snapshot_encryption_key": {}, + "source_snapshot_id": "source_snapshot_id_value", + "source_storage_object": "source_storage_object_value", + "status": "status_value", + "type_": "type__value", + "users": ["users_value1", "users_value2"], + "zone": "zone_value", + } + request = request_type(**request_init) + + # Mock the http request call within the method and fake a response. + with mock.patch.object(type(client.transport._session), "request") as req: + # Designate an appropriate value for the returned response. + return_value = compute.Operation( + client_operation_id="client_operation_id_value", + creation_timestamp="creation_timestamp_value", + description="description_value", + end_time="end_time_value", + http_error_message="http_error_message_value", + http_error_status_code=2374, + id=205, + insert_time="insert_time_value", + kind="kind_value", + name="name_value", + operation_group_id="operation_group_id_value", + operation_type="operation_type_value", + progress=885, + region="region_value", + self_link="self_link_value", + start_time="start_time_value", + status=compute.Operation.Status.DONE, + status_message="status_message_value", + target_id=947, + target_link="target_link_value", + user="user_value", + zone="zone_value", + ) + + # Wrap the value into a proper Response obj + response_value = Response() + response_value.status_code = 200 + pb_return_value = compute.Operation.pb(return_value) + json_return_value = json_format.MessageToJson(pb_return_value) + + response_value._content = json_return_value.encode("UTF-8") + req.return_value = response_value + response = client.update(request) + + # Establish that the response is the type that we expect. + assert isinstance(response, extended_operation.ExtendedOperation) + assert response.client_operation_id == "client_operation_id_value" + assert response.creation_timestamp == "creation_timestamp_value" + assert response.description == "description_value" + assert response.end_time == "end_time_value" + assert response.http_error_message == "http_error_message_value" + assert response.http_error_status_code == 2374 + assert response.id == 205 + assert response.insert_time == "insert_time_value" + assert response.kind == "kind_value" + assert response.name == "name_value" + assert response.operation_group_id == "operation_group_id_value" + assert response.operation_type == "operation_type_value" + assert response.progress == 885 + assert response.region == "region_value" + assert response.self_link == "self_link_value" + assert response.start_time == "start_time_value" + assert response.status == compute.Operation.Status.DONE + assert response.status_message == "status_message_value" + assert response.target_id == 947 + assert response.target_link == "target_link_value" + assert response.user == "user_value" + assert response.zone == "zone_value" + + +def test_update_rest_required_fields(request_type=compute.UpdateRegionDiskRequest): + transport_class = transports.RegionDisksRestTransport + + request_init = {} + request_init["disk"] = "" + request_init["project"] = "" + request_init["region"] = "" + request = request_type(**request_init) + pb_request = request_type.pb(request) + jsonified_request = json.loads( + json_format.MessageToJson( + pb_request, + including_default_value_fields=False, + use_integers_for_enums=False, + ) + ) + + # verify fields with default values are dropped + + unset_fields = transport_class( + credentials=ga_credentials.AnonymousCredentials() + ).update._get_unset_required_fields(jsonified_request) + jsonified_request.update(unset_fields) + + # verify required fields with default values are now present + + jsonified_request["disk"] = "disk_value" + jsonified_request["project"] = "project_value" + jsonified_request["region"] = "region_value" + + unset_fields = transport_class( + credentials=ga_credentials.AnonymousCredentials() + ).update._get_unset_required_fields(jsonified_request) + # Check that path parameters and body parameters are not mixing in. + assert not set(unset_fields) - set( + ( + "paths", + "request_id", + "update_mask", + ) + ) + jsonified_request.update(unset_fields) + + # verify required fields with non-default values are left alone + assert "disk" in jsonified_request + assert jsonified_request["disk"] == "disk_value" + assert "project" in jsonified_request + assert jsonified_request["project"] == "project_value" + assert "region" in jsonified_request + assert jsonified_request["region"] == "region_value" + + client = RegionDisksClient( + credentials=ga_credentials.AnonymousCredentials(), + transport="rest", + ) + request = request_type(**request_init) + + # Designate an appropriate value for the returned response. + return_value = compute.Operation() + # Mock the http request call within the method and fake a response. + with mock.patch.object(Session, "request") as req: + # We need to mock transcode() because providing default values + # for required fields will fail the real version if the http_options + # expect actual values for those fields. + with mock.patch.object(path_template, "transcode") as transcode: + # A uri without fields and an empty body will force all the + # request fields to show up in the query_params. + pb_request = request_type.pb(request) + transcode_result = { + "uri": "v1/sample_method", + "method": "patch", + "query_params": pb_request, + } + transcode_result["body"] = pb_request + transcode.return_value = transcode_result + + response_value = Response() + response_value.status_code = 200 + + pb_return_value = compute.Operation.pb(return_value) + json_return_value = json_format.MessageToJson(pb_return_value) + + response_value._content = json_return_value.encode("UTF-8") + req.return_value = response_value + + response = client.update(request) + + expected_params = [] + actual_params = req.call_args.kwargs["params"] + assert expected_params == actual_params + + +def test_update_rest_unset_required_fields(): + transport = transports.RegionDisksRestTransport( + credentials=ga_credentials.AnonymousCredentials + ) + + unset_fields = transport.update._get_unset_required_fields({}) + assert set(unset_fields) == ( + set( + ( + "paths", + "requestId", + "updateMask", + ) + ) + & set( + ( + "disk", + "diskResource", + "project", + "region", + ) + ) + ) + + +@pytest.mark.parametrize("null_interceptor", [True, False]) +def test_update_rest_interceptors(null_interceptor): + transport = transports.RegionDisksRestTransport( + credentials=ga_credentials.AnonymousCredentials(), + interceptor=None + if null_interceptor + else transports.RegionDisksRestInterceptor(), + ) + client = RegionDisksClient(transport=transport) + with mock.patch.object( + type(client.transport._session), "request" + ) as req, mock.patch.object( + path_template, "transcode" + ) as transcode, mock.patch.object( + transports.RegionDisksRestInterceptor, "post_update" + ) as post, mock.patch.object( + transports.RegionDisksRestInterceptor, "pre_update" + ) as pre: + pre.assert_not_called() + post.assert_not_called() + pb_message = compute.UpdateRegionDiskRequest.pb( + compute.UpdateRegionDiskRequest() + ) + transcode.return_value = { + "method": "post", + "uri": "my_uri", + "body": pb_message, + "query_params": pb_message, + } + + req.return_value = Response() + req.return_value.status_code = 200 + req.return_value.request = PreparedRequest() + req.return_value._content = compute.Operation.to_json(compute.Operation()) + + request = compute.UpdateRegionDiskRequest() + metadata = [ + ("key", "val"), + ("cephalopod", "squid"), + ] + pre.return_value = request, metadata + post.return_value = compute.Operation() + + client.update( + request, + metadata=[ + ("key", "val"), + ("cephalopod", "squid"), + ], + ) + + pre.assert_called_once() + post.assert_called_once() + + +def test_update_rest_bad_request( + transport: str = "rest", request_type=compute.UpdateRegionDiskRequest +): + client = RegionDisksClient( + credentials=ga_credentials.AnonymousCredentials(), + transport=transport, + ) + + # send a request that will satisfy transcoding + request_init = {"project": "sample1", "region": "sample2", "disk": "sample3"} + request_init["disk_resource"] = { + "architecture": "architecture_value", + "creation_timestamp": "creation_timestamp_value", + "description": "description_value", + "disk_encryption_key": { + "kms_key_name": "kms_key_name_value", + "kms_key_service_account": "kms_key_service_account_value", + "raw_key": "raw_key_value", + "rsa_encrypted_key": "rsa_encrypted_key_value", + "sha256": "sha256_value", + }, + "guest_os_features": [{"type_": "type__value"}], + "id": 205, + "kind": "kind_value", + "label_fingerprint": "label_fingerprint_value", + "labels": {}, + "last_attach_timestamp": "last_attach_timestamp_value", + "last_detach_timestamp": "last_detach_timestamp_value", + "license_codes": [1361, 1362], + "licenses": ["licenses_value1", "licenses_value2"], + "location_hint": "location_hint_value", + "name": "name_value", + "options": "options_value", + "params": {"resource_manager_tags": {}}, + "physical_block_size_bytes": 2663, + "provisioned_iops": 1740, + "region": "region_value", + "replica_zones": ["replica_zones_value1", "replica_zones_value2"], + "resource_policies": ["resource_policies_value1", "resource_policies_value2"], + "satisfies_pzs": True, + "self_link": "self_link_value", + "size_gb": 739, + "source_disk": "source_disk_value", + "source_disk_id": "source_disk_id_value", + "source_image": "source_image_value", + "source_image_encryption_key": {}, + "source_image_id": "source_image_id_value", + "source_snapshot": "source_snapshot_value", + "source_snapshot_encryption_key": {}, + "source_snapshot_id": "source_snapshot_id_value", + "source_storage_object": "source_storage_object_value", + "status": "status_value", + "type_": "type__value", + "users": ["users_value1", "users_value2"], + "zone": "zone_value", + } + request = request_type(**request_init) + + # Mock the http request call within the method and fake a BadRequest error. + with mock.patch.object(Session, "request") as req, pytest.raises( + core_exceptions.BadRequest + ): + # Wrap the value into a proper Response obj + response_value = Response() + response_value.status_code = 400 + response_value.request = Request() + req.return_value = response_value + client.update(request) + + +def test_update_rest_flattened(): + client = RegionDisksClient( + credentials=ga_credentials.AnonymousCredentials(), + transport="rest", + ) + + # Mock the http request call within the method and fake a response. + with mock.patch.object(type(client.transport._session), "request") as req: + # Designate an appropriate value for the returned response. + return_value = compute.Operation() + + # get arguments that satisfy an http rule for this method + sample_request = {"project": "sample1", "region": "sample2", "disk": "sample3"} + + # get truthy value for each flattened field + mock_args = dict( + project="project_value", + region="region_value", + disk="disk_value", + disk_resource=compute.Disk(architecture="architecture_value"), + ) + mock_args.update(sample_request) + + # Wrap the value into a proper Response obj + response_value = Response() + response_value.status_code = 200 + pb_return_value = compute.Operation.pb(return_value) + json_return_value = json_format.MessageToJson(pb_return_value) + response_value._content = json_return_value.encode("UTF-8") + req.return_value = response_value + + client.update(**mock_args) + + # Establish that the underlying call was made with the expected + # request object values. + assert len(req.mock_calls) == 1 + _, args, _ = req.mock_calls[0] + assert path_template.validate( + "%s/compute/v1/projects/{project}/regions/{region}/disks/{disk}" + % client.transport._host, + args[1], + ) + + +def test_update_rest_flattened_error(transport: str = "rest"): + client = RegionDisksClient( + credentials=ga_credentials.AnonymousCredentials(), + transport=transport, + ) + + # Attempting to call a method with both a request object and flattened + # fields is an error. + with pytest.raises(ValueError): + client.update( + compute.UpdateRegionDiskRequest(), + project="project_value", + region="region_value", + disk="disk_value", + disk_resource=compute.Disk(architecture="architecture_value"), + ) + + +def test_update_rest_error(): + client = RegionDisksClient( + credentials=ga_credentials.AnonymousCredentials(), transport="rest" + ) + + +@pytest.mark.parametrize( + "request_type", + [ + compute.UpdateRegionDiskRequest, + dict, + ], +) +def test_update_unary_rest(request_type): + client = RegionDisksClient( + credentials=ga_credentials.AnonymousCredentials(), + transport="rest", + ) + + # send a request that will satisfy transcoding + request_init = {"project": "sample1", "region": "sample2", "disk": "sample3"} + request_init["disk_resource"] = { + "architecture": "architecture_value", + "creation_timestamp": "creation_timestamp_value", + "description": "description_value", + "disk_encryption_key": { + "kms_key_name": "kms_key_name_value", + "kms_key_service_account": "kms_key_service_account_value", + "raw_key": "raw_key_value", + "rsa_encrypted_key": "rsa_encrypted_key_value", + "sha256": "sha256_value", + }, + "guest_os_features": [{"type_": "type__value"}], + "id": 205, + "kind": "kind_value", + "label_fingerprint": "label_fingerprint_value", + "labels": {}, + "last_attach_timestamp": "last_attach_timestamp_value", + "last_detach_timestamp": "last_detach_timestamp_value", + "license_codes": [1361, 1362], + "licenses": ["licenses_value1", "licenses_value2"], + "location_hint": "location_hint_value", + "name": "name_value", + "options": "options_value", + "params": {"resource_manager_tags": {}}, + "physical_block_size_bytes": 2663, + "provisioned_iops": 1740, + "region": "region_value", + "replica_zones": ["replica_zones_value1", "replica_zones_value2"], + "resource_policies": ["resource_policies_value1", "resource_policies_value2"], + "satisfies_pzs": True, + "self_link": "self_link_value", + "size_gb": 739, + "source_disk": "source_disk_value", + "source_disk_id": "source_disk_id_value", + "source_image": "source_image_value", + "source_image_encryption_key": {}, + "source_image_id": "source_image_id_value", + "source_snapshot": "source_snapshot_value", + "source_snapshot_encryption_key": {}, + "source_snapshot_id": "source_snapshot_id_value", + "source_storage_object": "source_storage_object_value", + "status": "status_value", + "type_": "type__value", + "users": ["users_value1", "users_value2"], + "zone": "zone_value", + } + request = request_type(**request_init) + + # Mock the http request call within the method and fake a response. + with mock.patch.object(type(client.transport._session), "request") as req: + # Designate an appropriate value for the returned response. + return_value = compute.Operation( + client_operation_id="client_operation_id_value", + creation_timestamp="creation_timestamp_value", + description="description_value", + end_time="end_time_value", + http_error_message="http_error_message_value", + http_error_status_code=2374, + id=205, + insert_time="insert_time_value", + kind="kind_value", + name="name_value", + operation_group_id="operation_group_id_value", + operation_type="operation_type_value", + progress=885, + region="region_value", + self_link="self_link_value", + start_time="start_time_value", + status=compute.Operation.Status.DONE, + status_message="status_message_value", + target_id=947, + target_link="target_link_value", + user="user_value", + zone="zone_value", + ) + + # Wrap the value into a proper Response obj + response_value = Response() + response_value.status_code = 200 + pb_return_value = compute.Operation.pb(return_value) + json_return_value = json_format.MessageToJson(pb_return_value) + + response_value._content = json_return_value.encode("UTF-8") + req.return_value = response_value + response = client.update_unary(request) + + # Establish that the response is the type that we expect. + assert isinstance(response, compute.Operation) + + +def test_update_unary_rest_required_fields( + request_type=compute.UpdateRegionDiskRequest, +): + transport_class = transports.RegionDisksRestTransport + + request_init = {} + request_init["disk"] = "" + request_init["project"] = "" + request_init["region"] = "" + request = request_type(**request_init) + pb_request = request_type.pb(request) + jsonified_request = json.loads( + json_format.MessageToJson( + pb_request, + including_default_value_fields=False, + use_integers_for_enums=False, + ) + ) + + # verify fields with default values are dropped + + unset_fields = transport_class( + credentials=ga_credentials.AnonymousCredentials() + ).update._get_unset_required_fields(jsonified_request) + jsonified_request.update(unset_fields) + + # verify required fields with default values are now present + + jsonified_request["disk"] = "disk_value" + jsonified_request["project"] = "project_value" + jsonified_request["region"] = "region_value" + + unset_fields = transport_class( + credentials=ga_credentials.AnonymousCredentials() + ).update._get_unset_required_fields(jsonified_request) + # Check that path parameters and body parameters are not mixing in. + assert not set(unset_fields) - set( + ( + "paths", + "request_id", + "update_mask", + ) + ) + jsonified_request.update(unset_fields) + + # verify required fields with non-default values are left alone + assert "disk" in jsonified_request + assert jsonified_request["disk"] == "disk_value" + assert "project" in jsonified_request + assert jsonified_request["project"] == "project_value" + assert "region" in jsonified_request + assert jsonified_request["region"] == "region_value" + + client = RegionDisksClient( + credentials=ga_credentials.AnonymousCredentials(), + transport="rest", + ) + request = request_type(**request_init) + + # Designate an appropriate value for the returned response. + return_value = compute.Operation() + # Mock the http request call within the method and fake a response. + with mock.patch.object(Session, "request") as req: + # We need to mock transcode() because providing default values + # for required fields will fail the real version if the http_options + # expect actual values for those fields. + with mock.patch.object(path_template, "transcode") as transcode: + # A uri without fields and an empty body will force all the + # request fields to show up in the query_params. + pb_request = request_type.pb(request) + transcode_result = { + "uri": "v1/sample_method", + "method": "patch", + "query_params": pb_request, + } + transcode_result["body"] = pb_request + transcode.return_value = transcode_result + + response_value = Response() + response_value.status_code = 200 + + pb_return_value = compute.Operation.pb(return_value) + json_return_value = json_format.MessageToJson(pb_return_value) + + response_value._content = json_return_value.encode("UTF-8") + req.return_value = response_value + + response = client.update_unary(request) + + expected_params = [] + actual_params = req.call_args.kwargs["params"] + assert expected_params == actual_params + + +def test_update_unary_rest_unset_required_fields(): + transport = transports.RegionDisksRestTransport( + credentials=ga_credentials.AnonymousCredentials + ) + + unset_fields = transport.update._get_unset_required_fields({}) + assert set(unset_fields) == ( + set( + ( + "paths", + "requestId", + "updateMask", + ) + ) + & set( + ( + "disk", + "diskResource", + "project", + "region", + ) + ) + ) + + +@pytest.mark.parametrize("null_interceptor", [True, False]) +def test_update_unary_rest_interceptors(null_interceptor): + transport = transports.RegionDisksRestTransport( + credentials=ga_credentials.AnonymousCredentials(), + interceptor=None + if null_interceptor + else transports.RegionDisksRestInterceptor(), + ) + client = RegionDisksClient(transport=transport) + with mock.patch.object( + type(client.transport._session), "request" + ) as req, mock.patch.object( + path_template, "transcode" + ) as transcode, mock.patch.object( + transports.RegionDisksRestInterceptor, "post_update" + ) as post, mock.patch.object( + transports.RegionDisksRestInterceptor, "pre_update" + ) as pre: + pre.assert_not_called() + post.assert_not_called() + pb_message = compute.UpdateRegionDiskRequest.pb( + compute.UpdateRegionDiskRequest() + ) + transcode.return_value = { + "method": "post", + "uri": "my_uri", + "body": pb_message, + "query_params": pb_message, + } + + req.return_value = Response() + req.return_value.status_code = 200 + req.return_value.request = PreparedRequest() + req.return_value._content = compute.Operation.to_json(compute.Operation()) + + request = compute.UpdateRegionDiskRequest() + metadata = [ + ("key", "val"), + ("cephalopod", "squid"), + ] + pre.return_value = request, metadata + post.return_value = compute.Operation() + + client.update_unary( + request, + metadata=[ + ("key", "val"), + ("cephalopod", "squid"), + ], + ) + + pre.assert_called_once() + post.assert_called_once() + + +def test_update_unary_rest_bad_request( + transport: str = "rest", request_type=compute.UpdateRegionDiskRequest +): + client = RegionDisksClient( + credentials=ga_credentials.AnonymousCredentials(), + transport=transport, + ) + + # send a request that will satisfy transcoding + request_init = {"project": "sample1", "region": "sample2", "disk": "sample3"} + request_init["disk_resource"] = { + "architecture": "architecture_value", + "creation_timestamp": "creation_timestamp_value", + "description": "description_value", + "disk_encryption_key": { + "kms_key_name": "kms_key_name_value", + "kms_key_service_account": "kms_key_service_account_value", + "raw_key": "raw_key_value", + "rsa_encrypted_key": "rsa_encrypted_key_value", + "sha256": "sha256_value", + }, + "guest_os_features": [{"type_": "type__value"}], + "id": 205, + "kind": "kind_value", + "label_fingerprint": "label_fingerprint_value", + "labels": {}, + "last_attach_timestamp": "last_attach_timestamp_value", + "last_detach_timestamp": "last_detach_timestamp_value", + "license_codes": [1361, 1362], + "licenses": ["licenses_value1", "licenses_value2"], + "location_hint": "location_hint_value", + "name": "name_value", + "options": "options_value", + "params": {"resource_manager_tags": {}}, + "physical_block_size_bytes": 2663, + "provisioned_iops": 1740, + "region": "region_value", + "replica_zones": ["replica_zones_value1", "replica_zones_value2"], + "resource_policies": ["resource_policies_value1", "resource_policies_value2"], + "satisfies_pzs": True, + "self_link": "self_link_value", + "size_gb": 739, + "source_disk": "source_disk_value", + "source_disk_id": "source_disk_id_value", + "source_image": "source_image_value", + "source_image_encryption_key": {}, + "source_image_id": "source_image_id_value", + "source_snapshot": "source_snapshot_value", + "source_snapshot_encryption_key": {}, + "source_snapshot_id": "source_snapshot_id_value", + "source_storage_object": "source_storage_object_value", + "status": "status_value", + "type_": "type__value", + "users": ["users_value1", "users_value2"], + "zone": "zone_value", + } + request = request_type(**request_init) + + # Mock the http request call within the method and fake a BadRequest error. + with mock.patch.object(Session, "request") as req, pytest.raises( + core_exceptions.BadRequest + ): + # Wrap the value into a proper Response obj + response_value = Response() + response_value.status_code = 400 + response_value.request = Request() + req.return_value = response_value + client.update_unary(request) + + +def test_update_unary_rest_flattened(): + client = RegionDisksClient( + credentials=ga_credentials.AnonymousCredentials(), + transport="rest", + ) + + # Mock the http request call within the method and fake a response. + with mock.patch.object(type(client.transport._session), "request") as req: + # Designate an appropriate value for the returned response. + return_value = compute.Operation() + + # get arguments that satisfy an http rule for this method + sample_request = {"project": "sample1", "region": "sample2", "disk": "sample3"} + + # get truthy value for each flattened field + mock_args = dict( + project="project_value", + region="region_value", + disk="disk_value", + disk_resource=compute.Disk(architecture="architecture_value"), + ) + mock_args.update(sample_request) + + # Wrap the value into a proper Response obj + response_value = Response() + response_value.status_code = 200 + pb_return_value = compute.Operation.pb(return_value) + json_return_value = json_format.MessageToJson(pb_return_value) + response_value._content = json_return_value.encode("UTF-8") + req.return_value = response_value + + client.update_unary(**mock_args) + + # Establish that the underlying call was made with the expected + # request object values. + assert len(req.mock_calls) == 1 + _, args, _ = req.mock_calls[0] + assert path_template.validate( + "%s/compute/v1/projects/{project}/regions/{region}/disks/{disk}" + % client.transport._host, + args[1], + ) + + +def test_update_unary_rest_flattened_error(transport: str = "rest"): + client = RegionDisksClient( + credentials=ga_credentials.AnonymousCredentials(), + transport=transport, + ) + + # Attempting to call a method with both a request object and flattened + # fields is an error. + with pytest.raises(ValueError): + client.update_unary( + compute.UpdateRegionDiskRequest(), + project="project_value", + region="region_value", + disk="disk_value", + disk_resource=compute.Disk(architecture="architecture_value"), + ) + + +def test_update_unary_rest_error(): + client = RegionDisksClient( + credentials=ga_credentials.AnonymousCredentials(), transport="rest" + ) + + def test_credentials_transport_error(): # It is an error to provide credentials and a transport instance. transport = transports.RegionDisksRestTransport( @@ -7378,6 +8232,7 @@ def test_region_disks_base_transport(): "set_iam_policy", "set_labels", "test_iam_permissions", + "update", ) for method in methods: with pytest.raises(NotImplementedError): @@ -7551,6 +8406,9 @@ def test_region_disks_client_transport_session_collision(transport_name): session1 = client1.transport.test_iam_permissions._session session2 = client2.transport.test_iam_permissions._session assert session1 != session2 + session1 = client1.transport.update._session + session2 = client2.transport.update._session + assert session1 != session2 def test_common_billing_account_path(): diff --git a/tests/unit/gapic/compute_v1/test_region_instance_templates.py b/tests/unit/gapic/compute_v1/test_region_instance_templates.py new file mode 100644 index 000000000..1e28ae8e1 --- /dev/null +++ b/tests/unit/gapic/compute_v1/test_region_instance_templates.py @@ -0,0 +1,3739 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +import os + +# try/except added for compatibility with python < 3.8 +try: + from unittest import mock + from unittest.mock import AsyncMock # pragma: NO COVER +except ImportError: # pragma: NO COVER + import mock + +from collections.abc import Iterable +import json +import math + +from google.api_core import ( + future, + gapic_v1, + grpc_helpers, + grpc_helpers_async, + path_template, +) +from google.api_core import client_options +from google.api_core import exceptions as core_exceptions +from google.api_core import extended_operation # type: ignore +import google.auth +from google.auth import credentials as ga_credentials +from google.auth.exceptions import MutualTLSChannelError +from google.oauth2 import service_account +from google.protobuf import json_format +import grpc +from grpc.experimental import aio +from proto.marshal.rules import wrappers +from proto.marshal.rules.dates import DurationRule, TimestampRule +import pytest +from requests import PreparedRequest, Request, Response +from requests.sessions import Session + +from google.cloud.compute_v1.services.region_instance_templates import ( + RegionInstanceTemplatesClient, + pagers, + transports, +) +from google.cloud.compute_v1.types import compute + + +def client_cert_source_callback(): + return b"cert bytes", b"key bytes" + + +# If default endpoint is localhost, then default mtls endpoint will be the same. +# This method modifies the default endpoint so the client can produce a different +# mtls endpoint for endpoint testing purposes. +def modify_default_endpoint(client): + return ( + "foo.googleapis.com" + if ("localhost" in client.DEFAULT_ENDPOINT) + else client.DEFAULT_ENDPOINT + ) + + +def test__get_default_mtls_endpoint(): + api_endpoint = "example.googleapis.com" + api_mtls_endpoint = "example.mtls.googleapis.com" + sandbox_endpoint = "example.sandbox.googleapis.com" + sandbox_mtls_endpoint = "example.mtls.sandbox.googleapis.com" + non_googleapi = "api.example.com" + + assert RegionInstanceTemplatesClient._get_default_mtls_endpoint(None) is None + assert ( + RegionInstanceTemplatesClient._get_default_mtls_endpoint(api_endpoint) + == api_mtls_endpoint + ) + assert ( + RegionInstanceTemplatesClient._get_default_mtls_endpoint(api_mtls_endpoint) + == api_mtls_endpoint + ) + assert ( + RegionInstanceTemplatesClient._get_default_mtls_endpoint(sandbox_endpoint) + == sandbox_mtls_endpoint + ) + assert ( + RegionInstanceTemplatesClient._get_default_mtls_endpoint(sandbox_mtls_endpoint) + == sandbox_mtls_endpoint + ) + assert ( + RegionInstanceTemplatesClient._get_default_mtls_endpoint(non_googleapi) + == non_googleapi + ) + + +@pytest.mark.parametrize( + "client_class,transport_name", + [ + (RegionInstanceTemplatesClient, "rest"), + ], +) +def test_region_instance_templates_client_from_service_account_info( + client_class, transport_name +): + creds = ga_credentials.AnonymousCredentials() + with mock.patch.object( + service_account.Credentials, "from_service_account_info" + ) as factory: + factory.return_value = creds + info = {"valid": True} + client = client_class.from_service_account_info(info, transport=transport_name) + assert client.transport._credentials == creds + assert isinstance(client, client_class) + + assert client.transport._host == ( + "compute.googleapis.com:443" + if transport_name in ["grpc", "grpc_asyncio"] + else "https://compute.googleapis.com" + ) + + +@pytest.mark.parametrize( + "transport_class,transport_name", + [ + (transports.RegionInstanceTemplatesRestTransport, "rest"), + ], +) +def test_region_instance_templates_client_service_account_always_use_jwt( + transport_class, transport_name +): + with mock.patch.object( + service_account.Credentials, "with_always_use_jwt_access", create=True + ) as use_jwt: + creds = service_account.Credentials(None, None, None) + transport = transport_class(credentials=creds, always_use_jwt_access=True) + use_jwt.assert_called_once_with(True) + + with mock.patch.object( + service_account.Credentials, "with_always_use_jwt_access", create=True + ) as use_jwt: + creds = service_account.Credentials(None, None, None) + transport = transport_class(credentials=creds, always_use_jwt_access=False) + use_jwt.assert_not_called() + + +@pytest.mark.parametrize( + "client_class,transport_name", + [ + (RegionInstanceTemplatesClient, "rest"), + ], +) +def test_region_instance_templates_client_from_service_account_file( + client_class, transport_name +): + creds = ga_credentials.AnonymousCredentials() + with mock.patch.object( + service_account.Credentials, "from_service_account_file" + ) as factory: + factory.return_value = creds + client = client_class.from_service_account_file( + "dummy/file/path.json", transport=transport_name + ) + assert client.transport._credentials == creds + assert isinstance(client, client_class) + + client = client_class.from_service_account_json( + "dummy/file/path.json", transport=transport_name + ) + assert client.transport._credentials == creds + assert isinstance(client, client_class) + + assert client.transport._host == ( + "compute.googleapis.com:443" + if transport_name in ["grpc", "grpc_asyncio"] + else "https://compute.googleapis.com" + ) + + +def test_region_instance_templates_client_get_transport_class(): + transport = RegionInstanceTemplatesClient.get_transport_class() + available_transports = [ + transports.RegionInstanceTemplatesRestTransport, + ] + assert transport in available_transports + + transport = RegionInstanceTemplatesClient.get_transport_class("rest") + assert transport == transports.RegionInstanceTemplatesRestTransport + + +@pytest.mark.parametrize( + "client_class,transport_class,transport_name", + [ + ( + RegionInstanceTemplatesClient, + transports.RegionInstanceTemplatesRestTransport, + "rest", + ), + ], +) +@mock.patch.object( + RegionInstanceTemplatesClient, + "DEFAULT_ENDPOINT", + modify_default_endpoint(RegionInstanceTemplatesClient), +) +def test_region_instance_templates_client_client_options( + client_class, transport_class, transport_name +): + # Check that if channel is provided we won't create a new one. + with mock.patch.object(RegionInstanceTemplatesClient, "get_transport_class") as gtc: + transport = transport_class(credentials=ga_credentials.AnonymousCredentials()) + client = client_class(transport=transport) + gtc.assert_not_called() + + # Check that if channel is provided via str we will create a new one. + with mock.patch.object(RegionInstanceTemplatesClient, "get_transport_class") as gtc: + client = client_class(transport=transport_name) + gtc.assert_called() + + # Check the case api_endpoint is provided. + options = client_options.ClientOptions(api_endpoint="squid.clam.whelk") + with mock.patch.object(transport_class, "__init__") as patched: + patched.return_value = None + client = client_class(transport=transport_name, client_options=options) + patched.assert_called_once_with( + credentials=None, + credentials_file=None, + host="squid.clam.whelk", + scopes=None, + client_cert_source_for_mtls=None, + quota_project_id=None, + client_info=transports.base.DEFAULT_CLIENT_INFO, + always_use_jwt_access=True, + api_audience=None, + ) + + # Check the case api_endpoint is not provided and GOOGLE_API_USE_MTLS_ENDPOINT is + # "never". + with mock.patch.dict(os.environ, {"GOOGLE_API_USE_MTLS_ENDPOINT": "never"}): + with mock.patch.object(transport_class, "__init__") as patched: + patched.return_value = None + client = client_class(transport=transport_name) + patched.assert_called_once_with( + credentials=None, + credentials_file=None, + host=client.DEFAULT_ENDPOINT, + scopes=None, + client_cert_source_for_mtls=None, + quota_project_id=None, + client_info=transports.base.DEFAULT_CLIENT_INFO, + always_use_jwt_access=True, + api_audience=None, + ) + + # Check the case api_endpoint is not provided and GOOGLE_API_USE_MTLS_ENDPOINT is + # "always". + with mock.patch.dict(os.environ, {"GOOGLE_API_USE_MTLS_ENDPOINT": "always"}): + with mock.patch.object(transport_class, "__init__") as patched: + patched.return_value = None + client = client_class(transport=transport_name) + patched.assert_called_once_with( + credentials=None, + credentials_file=None, + host=client.DEFAULT_MTLS_ENDPOINT, + scopes=None, + client_cert_source_for_mtls=None, + quota_project_id=None, + client_info=transports.base.DEFAULT_CLIENT_INFO, + always_use_jwt_access=True, + api_audience=None, + ) + + # Check the case api_endpoint is not provided and GOOGLE_API_USE_MTLS_ENDPOINT has + # unsupported value. + with mock.patch.dict(os.environ, {"GOOGLE_API_USE_MTLS_ENDPOINT": "Unsupported"}): + with pytest.raises(MutualTLSChannelError): + client = client_class(transport=transport_name) + + # Check the case GOOGLE_API_USE_CLIENT_CERTIFICATE has unsupported value. + with mock.patch.dict( + os.environ, {"GOOGLE_API_USE_CLIENT_CERTIFICATE": "Unsupported"} + ): + with pytest.raises(ValueError): + client = client_class(transport=transport_name) + + # Check the case quota_project_id is provided + options = client_options.ClientOptions(quota_project_id="octopus") + with mock.patch.object(transport_class, "__init__") as patched: + patched.return_value = None + client = client_class(client_options=options, transport=transport_name) + patched.assert_called_once_with( + credentials=None, + credentials_file=None, + host=client.DEFAULT_ENDPOINT, + scopes=None, + client_cert_source_for_mtls=None, + quota_project_id="octopus", + client_info=transports.base.DEFAULT_CLIENT_INFO, + always_use_jwt_access=True, + api_audience=None, + ) + # Check the case api_endpoint is provided + options = client_options.ClientOptions( + api_audience="https://language.googleapis.com" + ) + with mock.patch.object(transport_class, "__init__") as patched: + patched.return_value = None + client = client_class(client_options=options, transport=transport_name) + patched.assert_called_once_with( + credentials=None, + credentials_file=None, + host=client.DEFAULT_ENDPOINT, + scopes=None, + client_cert_source_for_mtls=None, + quota_project_id=None, + client_info=transports.base.DEFAULT_CLIENT_INFO, + always_use_jwt_access=True, + api_audience="https://language.googleapis.com", + ) + + +@pytest.mark.parametrize( + "client_class,transport_class,transport_name,use_client_cert_env", + [ + ( + RegionInstanceTemplatesClient, + transports.RegionInstanceTemplatesRestTransport, + "rest", + "true", + ), + ( + RegionInstanceTemplatesClient, + transports.RegionInstanceTemplatesRestTransport, + "rest", + "false", + ), + ], +) +@mock.patch.object( + RegionInstanceTemplatesClient, + "DEFAULT_ENDPOINT", + modify_default_endpoint(RegionInstanceTemplatesClient), +) +@mock.patch.dict(os.environ, {"GOOGLE_API_USE_MTLS_ENDPOINT": "auto"}) +def test_region_instance_templates_client_mtls_env_auto( + client_class, transport_class, transport_name, use_client_cert_env +): + # This tests the endpoint autoswitch behavior. Endpoint is autoswitched to the default + # mtls endpoint, if GOOGLE_API_USE_CLIENT_CERTIFICATE is "true" and client cert exists. + + # Check the case client_cert_source is provided. Whether client cert is used depends on + # GOOGLE_API_USE_CLIENT_CERTIFICATE value. + with mock.patch.dict( + os.environ, {"GOOGLE_API_USE_CLIENT_CERTIFICATE": use_client_cert_env} + ): + options = client_options.ClientOptions( + client_cert_source=client_cert_source_callback + ) + with mock.patch.object(transport_class, "__init__") as patched: + patched.return_value = None + client = client_class(client_options=options, transport=transport_name) + + if use_client_cert_env == "false": + expected_client_cert_source = None + expected_host = client.DEFAULT_ENDPOINT + else: + expected_client_cert_source = client_cert_source_callback + expected_host = client.DEFAULT_MTLS_ENDPOINT + + patched.assert_called_once_with( + credentials=None, + credentials_file=None, + host=expected_host, + scopes=None, + client_cert_source_for_mtls=expected_client_cert_source, + quota_project_id=None, + client_info=transports.base.DEFAULT_CLIENT_INFO, + always_use_jwt_access=True, + api_audience=None, + ) + + # Check the case ADC client cert is provided. Whether client cert is used depends on + # GOOGLE_API_USE_CLIENT_CERTIFICATE value. + with mock.patch.dict( + os.environ, {"GOOGLE_API_USE_CLIENT_CERTIFICATE": use_client_cert_env} + ): + with mock.patch.object(transport_class, "__init__") as patched: + with mock.patch( + "google.auth.transport.mtls.has_default_client_cert_source", + return_value=True, + ): + with mock.patch( + "google.auth.transport.mtls.default_client_cert_source", + return_value=client_cert_source_callback, + ): + if use_client_cert_env == "false": + expected_host = client.DEFAULT_ENDPOINT + expected_client_cert_source = None + else: + expected_host = client.DEFAULT_MTLS_ENDPOINT + expected_client_cert_source = client_cert_source_callback + + patched.return_value = None + client = client_class(transport=transport_name) + patched.assert_called_once_with( + credentials=None, + credentials_file=None, + host=expected_host, + scopes=None, + client_cert_source_for_mtls=expected_client_cert_source, + quota_project_id=None, + client_info=transports.base.DEFAULT_CLIENT_INFO, + always_use_jwt_access=True, + api_audience=None, + ) + + # Check the case client_cert_source and ADC client cert are not provided. + with mock.patch.dict( + os.environ, {"GOOGLE_API_USE_CLIENT_CERTIFICATE": use_client_cert_env} + ): + with mock.patch.object(transport_class, "__init__") as patched: + with mock.patch( + "google.auth.transport.mtls.has_default_client_cert_source", + return_value=False, + ): + patched.return_value = None + client = client_class(transport=transport_name) + patched.assert_called_once_with( + credentials=None, + credentials_file=None, + host=client.DEFAULT_ENDPOINT, + scopes=None, + client_cert_source_for_mtls=None, + quota_project_id=None, + client_info=transports.base.DEFAULT_CLIENT_INFO, + always_use_jwt_access=True, + api_audience=None, + ) + + +@pytest.mark.parametrize("client_class", [RegionInstanceTemplatesClient]) +@mock.patch.object( + RegionInstanceTemplatesClient, + "DEFAULT_ENDPOINT", + modify_default_endpoint(RegionInstanceTemplatesClient), +) +def test_region_instance_templates_client_get_mtls_endpoint_and_cert_source( + client_class, +): + mock_client_cert_source = mock.Mock() + + # Test the case GOOGLE_API_USE_CLIENT_CERTIFICATE is "true". + with mock.patch.dict(os.environ, {"GOOGLE_API_USE_CLIENT_CERTIFICATE": "true"}): + mock_api_endpoint = "foo" + options = client_options.ClientOptions( + client_cert_source=mock_client_cert_source, api_endpoint=mock_api_endpoint + ) + api_endpoint, cert_source = client_class.get_mtls_endpoint_and_cert_source( + options + ) + assert api_endpoint == mock_api_endpoint + assert cert_source == mock_client_cert_source + + # Test the case GOOGLE_API_USE_CLIENT_CERTIFICATE is "false". + with mock.patch.dict(os.environ, {"GOOGLE_API_USE_CLIENT_CERTIFICATE": "false"}): + mock_client_cert_source = mock.Mock() + mock_api_endpoint = "foo" + options = client_options.ClientOptions( + client_cert_source=mock_client_cert_source, api_endpoint=mock_api_endpoint + ) + api_endpoint, cert_source = client_class.get_mtls_endpoint_and_cert_source( + options + ) + assert api_endpoint == mock_api_endpoint + assert cert_source is None + + # Test the case GOOGLE_API_USE_MTLS_ENDPOINT is "never". + with mock.patch.dict(os.environ, {"GOOGLE_API_USE_MTLS_ENDPOINT": "never"}): + api_endpoint, cert_source = client_class.get_mtls_endpoint_and_cert_source() + assert api_endpoint == client_class.DEFAULT_ENDPOINT + assert cert_source is None + + # Test the case GOOGLE_API_USE_MTLS_ENDPOINT is "always". + with mock.patch.dict(os.environ, {"GOOGLE_API_USE_MTLS_ENDPOINT": "always"}): + api_endpoint, cert_source = client_class.get_mtls_endpoint_and_cert_source() + assert api_endpoint == client_class.DEFAULT_MTLS_ENDPOINT + assert cert_source is None + + # Test the case GOOGLE_API_USE_MTLS_ENDPOINT is "auto" and default cert doesn't exist. + with mock.patch.dict(os.environ, {"GOOGLE_API_USE_CLIENT_CERTIFICATE": "true"}): + with mock.patch( + "google.auth.transport.mtls.has_default_client_cert_source", + return_value=False, + ): + api_endpoint, cert_source = client_class.get_mtls_endpoint_and_cert_source() + assert api_endpoint == client_class.DEFAULT_ENDPOINT + assert cert_source is None + + # Test the case GOOGLE_API_USE_MTLS_ENDPOINT is "auto" and default cert exists. + with mock.patch.dict(os.environ, {"GOOGLE_API_USE_CLIENT_CERTIFICATE": "true"}): + with mock.patch( + "google.auth.transport.mtls.has_default_client_cert_source", + return_value=True, + ): + with mock.patch( + "google.auth.transport.mtls.default_client_cert_source", + return_value=mock_client_cert_source, + ): + ( + api_endpoint, + cert_source, + ) = client_class.get_mtls_endpoint_and_cert_source() + assert api_endpoint == client_class.DEFAULT_MTLS_ENDPOINT + assert cert_source == mock_client_cert_source + + +@pytest.mark.parametrize( + "client_class,transport_class,transport_name", + [ + ( + RegionInstanceTemplatesClient, + transports.RegionInstanceTemplatesRestTransport, + "rest", + ), + ], +) +def test_region_instance_templates_client_client_options_scopes( + client_class, transport_class, transport_name +): + # Check the case scopes are provided. + options = client_options.ClientOptions( + scopes=["1", "2"], + ) + with mock.patch.object(transport_class, "__init__") as patched: + patched.return_value = None + client = client_class(client_options=options, transport=transport_name) + patched.assert_called_once_with( + credentials=None, + credentials_file=None, + host=client.DEFAULT_ENDPOINT, + scopes=["1", "2"], + client_cert_source_for_mtls=None, + quota_project_id=None, + client_info=transports.base.DEFAULT_CLIENT_INFO, + always_use_jwt_access=True, + api_audience=None, + ) + + +@pytest.mark.parametrize( + "client_class,transport_class,transport_name,grpc_helpers", + [ + ( + RegionInstanceTemplatesClient, + transports.RegionInstanceTemplatesRestTransport, + "rest", + None, + ), + ], +) +def test_region_instance_templates_client_client_options_credentials_file( + client_class, transport_class, transport_name, grpc_helpers +): + # Check the case credentials file is provided. + options = client_options.ClientOptions(credentials_file="credentials.json") + + with mock.patch.object(transport_class, "__init__") as patched: + patched.return_value = None + client = client_class(client_options=options, transport=transport_name) + patched.assert_called_once_with( + credentials=None, + credentials_file="credentials.json", + host=client.DEFAULT_ENDPOINT, + scopes=None, + client_cert_source_for_mtls=None, + quota_project_id=None, + client_info=transports.base.DEFAULT_CLIENT_INFO, + always_use_jwt_access=True, + api_audience=None, + ) + + +@pytest.mark.parametrize( + "request_type", + [ + compute.DeleteRegionInstanceTemplateRequest, + dict, + ], +) +def test_delete_rest(request_type): + client = RegionInstanceTemplatesClient( + credentials=ga_credentials.AnonymousCredentials(), + transport="rest", + ) + + # send a request that will satisfy transcoding + request_init = { + "project": "sample1", + "region": "sample2", + "instance_template": "sample3", + } + request = request_type(**request_init) + + # Mock the http request call within the method and fake a response. + with mock.patch.object(type(client.transport._session), "request") as req: + # Designate an appropriate value for the returned response. + return_value = compute.Operation( + client_operation_id="client_operation_id_value", + creation_timestamp="creation_timestamp_value", + description="description_value", + end_time="end_time_value", + http_error_message="http_error_message_value", + http_error_status_code=2374, + id=205, + insert_time="insert_time_value", + kind="kind_value", + name="name_value", + operation_group_id="operation_group_id_value", + operation_type="operation_type_value", + progress=885, + region="region_value", + self_link="self_link_value", + start_time="start_time_value", + status=compute.Operation.Status.DONE, + status_message="status_message_value", + target_id=947, + target_link="target_link_value", + user="user_value", + zone="zone_value", + ) + + # Wrap the value into a proper Response obj + response_value = Response() + response_value.status_code = 200 + pb_return_value = compute.Operation.pb(return_value) + json_return_value = json_format.MessageToJson(pb_return_value) + + response_value._content = json_return_value.encode("UTF-8") + req.return_value = response_value + response = client.delete(request) + + # Establish that the response is the type that we expect. + assert isinstance(response, extended_operation.ExtendedOperation) + assert response.client_operation_id == "client_operation_id_value" + assert response.creation_timestamp == "creation_timestamp_value" + assert response.description == "description_value" + assert response.end_time == "end_time_value" + assert response.http_error_message == "http_error_message_value" + assert response.http_error_status_code == 2374 + assert response.id == 205 + assert response.insert_time == "insert_time_value" + assert response.kind == "kind_value" + assert response.name == "name_value" + assert response.operation_group_id == "operation_group_id_value" + assert response.operation_type == "operation_type_value" + assert response.progress == 885 + assert response.region == "region_value" + assert response.self_link == "self_link_value" + assert response.start_time == "start_time_value" + assert response.status == compute.Operation.Status.DONE + assert response.status_message == "status_message_value" + assert response.target_id == 947 + assert response.target_link == "target_link_value" + assert response.user == "user_value" + assert response.zone == "zone_value" + + +def test_delete_rest_required_fields( + request_type=compute.DeleteRegionInstanceTemplateRequest, +): + transport_class = transports.RegionInstanceTemplatesRestTransport + + request_init = {} + request_init["instance_template"] = "" + request_init["project"] = "" + request_init["region"] = "" + request = request_type(**request_init) + pb_request = request_type.pb(request) + jsonified_request = json.loads( + json_format.MessageToJson( + pb_request, + including_default_value_fields=False, + use_integers_for_enums=False, + ) + ) + + # verify fields with default values are dropped + + unset_fields = transport_class( + credentials=ga_credentials.AnonymousCredentials() + ).delete._get_unset_required_fields(jsonified_request) + jsonified_request.update(unset_fields) + + # verify required fields with default values are now present + + jsonified_request["instanceTemplate"] = "instance_template_value" + jsonified_request["project"] = "project_value" + jsonified_request["region"] = "region_value" + + unset_fields = transport_class( + credentials=ga_credentials.AnonymousCredentials() + ).delete._get_unset_required_fields(jsonified_request) + # Check that path parameters and body parameters are not mixing in. + assert not set(unset_fields) - set(("request_id",)) + jsonified_request.update(unset_fields) + + # verify required fields with non-default values are left alone + assert "instanceTemplate" in jsonified_request + assert jsonified_request["instanceTemplate"] == "instance_template_value" + assert "project" in jsonified_request + assert jsonified_request["project"] == "project_value" + assert "region" in jsonified_request + assert jsonified_request["region"] == "region_value" + + client = RegionInstanceTemplatesClient( + credentials=ga_credentials.AnonymousCredentials(), + transport="rest", + ) + request = request_type(**request_init) + + # Designate an appropriate value for the returned response. + return_value = compute.Operation() + # Mock the http request call within the method and fake a response. + with mock.patch.object(Session, "request") as req: + # We need to mock transcode() because providing default values + # for required fields will fail the real version if the http_options + # expect actual values for those fields. + with mock.patch.object(path_template, "transcode") as transcode: + # A uri without fields and an empty body will force all the + # request fields to show up in the query_params. + pb_request = request_type.pb(request) + transcode_result = { + "uri": "v1/sample_method", + "method": "delete", + "query_params": pb_request, + } + transcode.return_value = transcode_result + + response_value = Response() + response_value.status_code = 200 + + pb_return_value = compute.Operation.pb(return_value) + json_return_value = json_format.MessageToJson(pb_return_value) + + response_value._content = json_return_value.encode("UTF-8") + req.return_value = response_value + + response = client.delete(request) + + expected_params = [] + actual_params = req.call_args.kwargs["params"] + assert expected_params == actual_params + + +def test_delete_rest_unset_required_fields(): + transport = transports.RegionInstanceTemplatesRestTransport( + credentials=ga_credentials.AnonymousCredentials + ) + + unset_fields = transport.delete._get_unset_required_fields({}) + assert set(unset_fields) == ( + set(("requestId",)) + & set( + ( + "instanceTemplate", + "project", + "region", + ) + ) + ) + + +@pytest.mark.parametrize("null_interceptor", [True, False]) +def test_delete_rest_interceptors(null_interceptor): + transport = transports.RegionInstanceTemplatesRestTransport( + credentials=ga_credentials.AnonymousCredentials(), + interceptor=None + if null_interceptor + else transports.RegionInstanceTemplatesRestInterceptor(), + ) + client = RegionInstanceTemplatesClient(transport=transport) + with mock.patch.object( + type(client.transport._session), "request" + ) as req, mock.patch.object( + path_template, "transcode" + ) as transcode, mock.patch.object( + transports.RegionInstanceTemplatesRestInterceptor, "post_delete" + ) as post, mock.patch.object( + transports.RegionInstanceTemplatesRestInterceptor, "pre_delete" + ) as pre: + pre.assert_not_called() + post.assert_not_called() + pb_message = compute.DeleteRegionInstanceTemplateRequest.pb( + compute.DeleteRegionInstanceTemplateRequest() + ) + transcode.return_value = { + "method": "post", + "uri": "my_uri", + "body": pb_message, + "query_params": pb_message, + } + + req.return_value = Response() + req.return_value.status_code = 200 + req.return_value.request = PreparedRequest() + req.return_value._content = compute.Operation.to_json(compute.Operation()) + + request = compute.DeleteRegionInstanceTemplateRequest() + metadata = [ + ("key", "val"), + ("cephalopod", "squid"), + ] + pre.return_value = request, metadata + post.return_value = compute.Operation() + + client.delete( + request, + metadata=[ + ("key", "val"), + ("cephalopod", "squid"), + ], + ) + + pre.assert_called_once() + post.assert_called_once() + + +def test_delete_rest_bad_request( + transport: str = "rest", request_type=compute.DeleteRegionInstanceTemplateRequest +): + client = RegionInstanceTemplatesClient( + credentials=ga_credentials.AnonymousCredentials(), + transport=transport, + ) + + # send a request that will satisfy transcoding + request_init = { + "project": "sample1", + "region": "sample2", + "instance_template": "sample3", + } + request = request_type(**request_init) + + # Mock the http request call within the method and fake a BadRequest error. + with mock.patch.object(Session, "request") as req, pytest.raises( + core_exceptions.BadRequest + ): + # Wrap the value into a proper Response obj + response_value = Response() + response_value.status_code = 400 + response_value.request = Request() + req.return_value = response_value + client.delete(request) + + +def test_delete_rest_flattened(): + client = RegionInstanceTemplatesClient( + credentials=ga_credentials.AnonymousCredentials(), + transport="rest", + ) + + # Mock the http request call within the method and fake a response. + with mock.patch.object(type(client.transport._session), "request") as req: + # Designate an appropriate value for the returned response. + return_value = compute.Operation() + + # get arguments that satisfy an http rule for this method + sample_request = { + "project": "sample1", + "region": "sample2", + "instance_template": "sample3", + } + + # get truthy value for each flattened field + mock_args = dict( + project="project_value", + region="region_value", + instance_template="instance_template_value", + ) + mock_args.update(sample_request) + + # Wrap the value into a proper Response obj + response_value = Response() + response_value.status_code = 200 + pb_return_value = compute.Operation.pb(return_value) + json_return_value = json_format.MessageToJson(pb_return_value) + response_value._content = json_return_value.encode("UTF-8") + req.return_value = response_value + + client.delete(**mock_args) + + # Establish that the underlying call was made with the expected + # request object values. + assert len(req.mock_calls) == 1 + _, args, _ = req.mock_calls[0] + assert path_template.validate( + "%s/compute/v1/projects/{project}/regions/{region}/instanceTemplates/{instance_template}" + % client.transport._host, + args[1], + ) + + +def test_delete_rest_flattened_error(transport: str = "rest"): + client = RegionInstanceTemplatesClient( + credentials=ga_credentials.AnonymousCredentials(), + transport=transport, + ) + + # Attempting to call a method with both a request object and flattened + # fields is an error. + with pytest.raises(ValueError): + client.delete( + compute.DeleteRegionInstanceTemplateRequest(), + project="project_value", + region="region_value", + instance_template="instance_template_value", + ) + + +def test_delete_rest_error(): + client = RegionInstanceTemplatesClient( + credentials=ga_credentials.AnonymousCredentials(), transport="rest" + ) + + +@pytest.mark.parametrize( + "request_type", + [ + compute.DeleteRegionInstanceTemplateRequest, + dict, + ], +) +def test_delete_unary_rest(request_type): + client = RegionInstanceTemplatesClient( + credentials=ga_credentials.AnonymousCredentials(), + transport="rest", + ) + + # send a request that will satisfy transcoding + request_init = { + "project": "sample1", + "region": "sample2", + "instance_template": "sample3", + } + request = request_type(**request_init) + + # Mock the http request call within the method and fake a response. + with mock.patch.object(type(client.transport._session), "request") as req: + # Designate an appropriate value for the returned response. + return_value = compute.Operation( + client_operation_id="client_operation_id_value", + creation_timestamp="creation_timestamp_value", + description="description_value", + end_time="end_time_value", + http_error_message="http_error_message_value", + http_error_status_code=2374, + id=205, + insert_time="insert_time_value", + kind="kind_value", + name="name_value", + operation_group_id="operation_group_id_value", + operation_type="operation_type_value", + progress=885, + region="region_value", + self_link="self_link_value", + start_time="start_time_value", + status=compute.Operation.Status.DONE, + status_message="status_message_value", + target_id=947, + target_link="target_link_value", + user="user_value", + zone="zone_value", + ) + + # Wrap the value into a proper Response obj + response_value = Response() + response_value.status_code = 200 + pb_return_value = compute.Operation.pb(return_value) + json_return_value = json_format.MessageToJson(pb_return_value) + + response_value._content = json_return_value.encode("UTF-8") + req.return_value = response_value + response = client.delete_unary(request) + + # Establish that the response is the type that we expect. + assert isinstance(response, compute.Operation) + + +def test_delete_unary_rest_required_fields( + request_type=compute.DeleteRegionInstanceTemplateRequest, +): + transport_class = transports.RegionInstanceTemplatesRestTransport + + request_init = {} + request_init["instance_template"] = "" + request_init["project"] = "" + request_init["region"] = "" + request = request_type(**request_init) + pb_request = request_type.pb(request) + jsonified_request = json.loads( + json_format.MessageToJson( + pb_request, + including_default_value_fields=False, + use_integers_for_enums=False, + ) + ) + + # verify fields with default values are dropped + + unset_fields = transport_class( + credentials=ga_credentials.AnonymousCredentials() + ).delete._get_unset_required_fields(jsonified_request) + jsonified_request.update(unset_fields) + + # verify required fields with default values are now present + + jsonified_request["instanceTemplate"] = "instance_template_value" + jsonified_request["project"] = "project_value" + jsonified_request["region"] = "region_value" + + unset_fields = transport_class( + credentials=ga_credentials.AnonymousCredentials() + ).delete._get_unset_required_fields(jsonified_request) + # Check that path parameters and body parameters are not mixing in. + assert not set(unset_fields) - set(("request_id",)) + jsonified_request.update(unset_fields) + + # verify required fields with non-default values are left alone + assert "instanceTemplate" in jsonified_request + assert jsonified_request["instanceTemplate"] == "instance_template_value" + assert "project" in jsonified_request + assert jsonified_request["project"] == "project_value" + assert "region" in jsonified_request + assert jsonified_request["region"] == "region_value" + + client = RegionInstanceTemplatesClient( + credentials=ga_credentials.AnonymousCredentials(), + transport="rest", + ) + request = request_type(**request_init) + + # Designate an appropriate value for the returned response. + return_value = compute.Operation() + # Mock the http request call within the method and fake a response. + with mock.patch.object(Session, "request") as req: + # We need to mock transcode() because providing default values + # for required fields will fail the real version if the http_options + # expect actual values for those fields. + with mock.patch.object(path_template, "transcode") as transcode: + # A uri without fields and an empty body will force all the + # request fields to show up in the query_params. + pb_request = request_type.pb(request) + transcode_result = { + "uri": "v1/sample_method", + "method": "delete", + "query_params": pb_request, + } + transcode.return_value = transcode_result + + response_value = Response() + response_value.status_code = 200 + + pb_return_value = compute.Operation.pb(return_value) + json_return_value = json_format.MessageToJson(pb_return_value) + + response_value._content = json_return_value.encode("UTF-8") + req.return_value = response_value + + response = client.delete_unary(request) + + expected_params = [] + actual_params = req.call_args.kwargs["params"] + assert expected_params == actual_params + + +def test_delete_unary_rest_unset_required_fields(): + transport = transports.RegionInstanceTemplatesRestTransport( + credentials=ga_credentials.AnonymousCredentials + ) + + unset_fields = transport.delete._get_unset_required_fields({}) + assert set(unset_fields) == ( + set(("requestId",)) + & set( + ( + "instanceTemplate", + "project", + "region", + ) + ) + ) + + +@pytest.mark.parametrize("null_interceptor", [True, False]) +def test_delete_unary_rest_interceptors(null_interceptor): + transport = transports.RegionInstanceTemplatesRestTransport( + credentials=ga_credentials.AnonymousCredentials(), + interceptor=None + if null_interceptor + else transports.RegionInstanceTemplatesRestInterceptor(), + ) + client = RegionInstanceTemplatesClient(transport=transport) + with mock.patch.object( + type(client.transport._session), "request" + ) as req, mock.patch.object( + path_template, "transcode" + ) as transcode, mock.patch.object( + transports.RegionInstanceTemplatesRestInterceptor, "post_delete" + ) as post, mock.patch.object( + transports.RegionInstanceTemplatesRestInterceptor, "pre_delete" + ) as pre: + pre.assert_not_called() + post.assert_not_called() + pb_message = compute.DeleteRegionInstanceTemplateRequest.pb( + compute.DeleteRegionInstanceTemplateRequest() + ) + transcode.return_value = { + "method": "post", + "uri": "my_uri", + "body": pb_message, + "query_params": pb_message, + } + + req.return_value = Response() + req.return_value.status_code = 200 + req.return_value.request = PreparedRequest() + req.return_value._content = compute.Operation.to_json(compute.Operation()) + + request = compute.DeleteRegionInstanceTemplateRequest() + metadata = [ + ("key", "val"), + ("cephalopod", "squid"), + ] + pre.return_value = request, metadata + post.return_value = compute.Operation() + + client.delete_unary( + request, + metadata=[ + ("key", "val"), + ("cephalopod", "squid"), + ], + ) + + pre.assert_called_once() + post.assert_called_once() + + +def test_delete_unary_rest_bad_request( + transport: str = "rest", request_type=compute.DeleteRegionInstanceTemplateRequest +): + client = RegionInstanceTemplatesClient( + credentials=ga_credentials.AnonymousCredentials(), + transport=transport, + ) + + # send a request that will satisfy transcoding + request_init = { + "project": "sample1", + "region": "sample2", + "instance_template": "sample3", + } + request = request_type(**request_init) + + # Mock the http request call within the method and fake a BadRequest error. + with mock.patch.object(Session, "request") as req, pytest.raises( + core_exceptions.BadRequest + ): + # Wrap the value into a proper Response obj + response_value = Response() + response_value.status_code = 400 + response_value.request = Request() + req.return_value = response_value + client.delete_unary(request) + + +def test_delete_unary_rest_flattened(): + client = RegionInstanceTemplatesClient( + credentials=ga_credentials.AnonymousCredentials(), + transport="rest", + ) + + # Mock the http request call within the method and fake a response. + with mock.patch.object(type(client.transport._session), "request") as req: + # Designate an appropriate value for the returned response. + return_value = compute.Operation() + + # get arguments that satisfy an http rule for this method + sample_request = { + "project": "sample1", + "region": "sample2", + "instance_template": "sample3", + } + + # get truthy value for each flattened field + mock_args = dict( + project="project_value", + region="region_value", + instance_template="instance_template_value", + ) + mock_args.update(sample_request) + + # Wrap the value into a proper Response obj + response_value = Response() + response_value.status_code = 200 + pb_return_value = compute.Operation.pb(return_value) + json_return_value = json_format.MessageToJson(pb_return_value) + response_value._content = json_return_value.encode("UTF-8") + req.return_value = response_value + + client.delete_unary(**mock_args) + + # Establish that the underlying call was made with the expected + # request object values. + assert len(req.mock_calls) == 1 + _, args, _ = req.mock_calls[0] + assert path_template.validate( + "%s/compute/v1/projects/{project}/regions/{region}/instanceTemplates/{instance_template}" + % client.transport._host, + args[1], + ) + + +def test_delete_unary_rest_flattened_error(transport: str = "rest"): + client = RegionInstanceTemplatesClient( + credentials=ga_credentials.AnonymousCredentials(), + transport=transport, + ) + + # Attempting to call a method with both a request object and flattened + # fields is an error. + with pytest.raises(ValueError): + client.delete_unary( + compute.DeleteRegionInstanceTemplateRequest(), + project="project_value", + region="region_value", + instance_template="instance_template_value", + ) + + +def test_delete_unary_rest_error(): + client = RegionInstanceTemplatesClient( + credentials=ga_credentials.AnonymousCredentials(), transport="rest" + ) + + +@pytest.mark.parametrize( + "request_type", + [ + compute.GetRegionInstanceTemplateRequest, + dict, + ], +) +def test_get_rest(request_type): + client = RegionInstanceTemplatesClient( + credentials=ga_credentials.AnonymousCredentials(), + transport="rest", + ) + + # send a request that will satisfy transcoding + request_init = { + "project": "sample1", + "region": "sample2", + "instance_template": "sample3", + } + request = request_type(**request_init) + + # Mock the http request call within the method and fake a response. + with mock.patch.object(type(client.transport._session), "request") as req: + # Designate an appropriate value for the returned response. + return_value = compute.InstanceTemplate( + creation_timestamp="creation_timestamp_value", + description="description_value", + id=205, + kind="kind_value", + name="name_value", + region="region_value", + self_link="self_link_value", + source_instance="source_instance_value", + ) + + # Wrap the value into a proper Response obj + response_value = Response() + response_value.status_code = 200 + pb_return_value = compute.InstanceTemplate.pb(return_value) + json_return_value = json_format.MessageToJson(pb_return_value) + + response_value._content = json_return_value.encode("UTF-8") + req.return_value = response_value + response = client.get(request) + + # Establish that the response is the type that we expect. + assert isinstance(response, compute.InstanceTemplate) + assert response.creation_timestamp == "creation_timestamp_value" + assert response.description == "description_value" + assert response.id == 205 + assert response.kind == "kind_value" + assert response.name == "name_value" + assert response.region == "region_value" + assert response.self_link == "self_link_value" + assert response.source_instance == "source_instance_value" + + +def test_get_rest_required_fields( + request_type=compute.GetRegionInstanceTemplateRequest, +): + transport_class = transports.RegionInstanceTemplatesRestTransport + + request_init = {} + request_init["instance_template"] = "" + request_init["project"] = "" + request_init["region"] = "" + request = request_type(**request_init) + pb_request = request_type.pb(request) + jsonified_request = json.loads( + json_format.MessageToJson( + pb_request, + including_default_value_fields=False, + use_integers_for_enums=False, + ) + ) + + # verify fields with default values are dropped + + unset_fields = transport_class( + credentials=ga_credentials.AnonymousCredentials() + ).get._get_unset_required_fields(jsonified_request) + jsonified_request.update(unset_fields) + + # verify required fields with default values are now present + + jsonified_request["instanceTemplate"] = "instance_template_value" + jsonified_request["project"] = "project_value" + jsonified_request["region"] = "region_value" + + unset_fields = transport_class( + credentials=ga_credentials.AnonymousCredentials() + ).get._get_unset_required_fields(jsonified_request) + jsonified_request.update(unset_fields) + + # verify required fields with non-default values are left alone + assert "instanceTemplate" in jsonified_request + assert jsonified_request["instanceTemplate"] == "instance_template_value" + assert "project" in jsonified_request + assert jsonified_request["project"] == "project_value" + assert "region" in jsonified_request + assert jsonified_request["region"] == "region_value" + + client = RegionInstanceTemplatesClient( + credentials=ga_credentials.AnonymousCredentials(), + transport="rest", + ) + request = request_type(**request_init) + + # Designate an appropriate value for the returned response. + return_value = compute.InstanceTemplate() + # Mock the http request call within the method and fake a response. + with mock.patch.object(Session, "request") as req: + # We need to mock transcode() because providing default values + # for required fields will fail the real version if the http_options + # expect actual values for those fields. + with mock.patch.object(path_template, "transcode") as transcode: + # A uri without fields and an empty body will force all the + # request fields to show up in the query_params. + pb_request = request_type.pb(request) + transcode_result = { + "uri": "v1/sample_method", + "method": "get", + "query_params": pb_request, + } + transcode.return_value = transcode_result + + response_value = Response() + response_value.status_code = 200 + + pb_return_value = compute.InstanceTemplate.pb(return_value) + json_return_value = json_format.MessageToJson(pb_return_value) + + response_value._content = json_return_value.encode("UTF-8") + req.return_value = response_value + + response = client.get(request) + + expected_params = [] + actual_params = req.call_args.kwargs["params"] + assert expected_params == actual_params + + +def test_get_rest_unset_required_fields(): + transport = transports.RegionInstanceTemplatesRestTransport( + credentials=ga_credentials.AnonymousCredentials + ) + + unset_fields = transport.get._get_unset_required_fields({}) + assert set(unset_fields) == ( + set(()) + & set( + ( + "instanceTemplate", + "project", + "region", + ) + ) + ) + + +@pytest.mark.parametrize("null_interceptor", [True, False]) +def test_get_rest_interceptors(null_interceptor): + transport = transports.RegionInstanceTemplatesRestTransport( + credentials=ga_credentials.AnonymousCredentials(), + interceptor=None + if null_interceptor + else transports.RegionInstanceTemplatesRestInterceptor(), + ) + client = RegionInstanceTemplatesClient(transport=transport) + with mock.patch.object( + type(client.transport._session), "request" + ) as req, mock.patch.object( + path_template, "transcode" + ) as transcode, mock.patch.object( + transports.RegionInstanceTemplatesRestInterceptor, "post_get" + ) as post, mock.patch.object( + transports.RegionInstanceTemplatesRestInterceptor, "pre_get" + ) as pre: + pre.assert_not_called() + post.assert_not_called() + pb_message = compute.GetRegionInstanceTemplateRequest.pb( + compute.GetRegionInstanceTemplateRequest() + ) + transcode.return_value = { + "method": "post", + "uri": "my_uri", + "body": pb_message, + "query_params": pb_message, + } + + req.return_value = Response() + req.return_value.status_code = 200 + req.return_value.request = PreparedRequest() + req.return_value._content = compute.InstanceTemplate.to_json( + compute.InstanceTemplate() + ) + + request = compute.GetRegionInstanceTemplateRequest() + metadata = [ + ("key", "val"), + ("cephalopod", "squid"), + ] + pre.return_value = request, metadata + post.return_value = compute.InstanceTemplate() + + client.get( + request, + metadata=[ + ("key", "val"), + ("cephalopod", "squid"), + ], + ) + + pre.assert_called_once() + post.assert_called_once() + + +def test_get_rest_bad_request( + transport: str = "rest", request_type=compute.GetRegionInstanceTemplateRequest +): + client = RegionInstanceTemplatesClient( + credentials=ga_credentials.AnonymousCredentials(), + transport=transport, + ) + + # send a request that will satisfy transcoding + request_init = { + "project": "sample1", + "region": "sample2", + "instance_template": "sample3", + } + request = request_type(**request_init) + + # Mock the http request call within the method and fake a BadRequest error. + with mock.patch.object(Session, "request") as req, pytest.raises( + core_exceptions.BadRequest + ): + # Wrap the value into a proper Response obj + response_value = Response() + response_value.status_code = 400 + response_value.request = Request() + req.return_value = response_value + client.get(request) + + +def test_get_rest_flattened(): + client = RegionInstanceTemplatesClient( + credentials=ga_credentials.AnonymousCredentials(), + transport="rest", + ) + + # Mock the http request call within the method and fake a response. + with mock.patch.object(type(client.transport._session), "request") as req: + # Designate an appropriate value for the returned response. + return_value = compute.InstanceTemplate() + + # get arguments that satisfy an http rule for this method + sample_request = { + "project": "sample1", + "region": "sample2", + "instance_template": "sample3", + } + + # get truthy value for each flattened field + mock_args = dict( + project="project_value", + region="region_value", + instance_template="instance_template_value", + ) + mock_args.update(sample_request) + + # Wrap the value into a proper Response obj + response_value = Response() + response_value.status_code = 200 + pb_return_value = compute.InstanceTemplate.pb(return_value) + json_return_value = json_format.MessageToJson(pb_return_value) + response_value._content = json_return_value.encode("UTF-8") + req.return_value = response_value + + client.get(**mock_args) + + # Establish that the underlying call was made with the expected + # request object values. + assert len(req.mock_calls) == 1 + _, args, _ = req.mock_calls[0] + assert path_template.validate( + "%s/compute/v1/projects/{project}/regions/{region}/instanceTemplates/{instance_template}" + % client.transport._host, + args[1], + ) + + +def test_get_rest_flattened_error(transport: str = "rest"): + client = RegionInstanceTemplatesClient( + credentials=ga_credentials.AnonymousCredentials(), + transport=transport, + ) + + # Attempting to call a method with both a request object and flattened + # fields is an error. + with pytest.raises(ValueError): + client.get( + compute.GetRegionInstanceTemplateRequest(), + project="project_value", + region="region_value", + instance_template="instance_template_value", + ) + + +def test_get_rest_error(): + client = RegionInstanceTemplatesClient( + credentials=ga_credentials.AnonymousCredentials(), transport="rest" + ) + + +@pytest.mark.parametrize( + "request_type", + [ + compute.InsertRegionInstanceTemplateRequest, + dict, + ], +) +def test_insert_rest(request_type): + client = RegionInstanceTemplatesClient( + credentials=ga_credentials.AnonymousCredentials(), + transport="rest", + ) + + # send a request that will satisfy transcoding + request_init = {"project": "sample1", "region": "sample2"} + request_init["instance_template_resource"] = { + "creation_timestamp": "creation_timestamp_value", + "description": "description_value", + "id": 205, + "kind": "kind_value", + "name": "name_value", + "properties": { + "advanced_machine_features": { + "enable_nested_virtualization": True, + "enable_uefi_networking": True, + "threads_per_core": 1689, + "visible_core_count": 1918, + }, + "can_ip_forward": True, + "confidential_instance_config": {"enable_confidential_compute": True}, + "description": "description_value", + "disks": [ + { + "architecture": "architecture_value", + "auto_delete": True, + "boot": True, + "device_name": "device_name_value", + "disk_encryption_key": { + "kms_key_name": "kms_key_name_value", + "kms_key_service_account": "kms_key_service_account_value", + "raw_key": "raw_key_value", + "rsa_encrypted_key": "rsa_encrypted_key_value", + "sha256": "sha256_value", + }, + "disk_size_gb": 1261, + "force_attach": True, + "guest_os_features": [{"type_": "type__value"}], + "index": 536, + "initialize_params": { + "architecture": "architecture_value", + "description": "description_value", + "disk_name": "disk_name_value", + "disk_size_gb": 1261, + "disk_type": "disk_type_value", + "labels": {}, + "licenses": ["licenses_value1", "licenses_value2"], + "on_update_action": "on_update_action_value", + "provisioned_iops": 1740, + "resource_manager_tags": {}, + "resource_policies": [ + "resource_policies_value1", + "resource_policies_value2", + ], + "source_image": "source_image_value", + "source_image_encryption_key": {}, + "source_snapshot": "source_snapshot_value", + "source_snapshot_encryption_key": {}, + }, + "interface": "interface_value", + "kind": "kind_value", + "licenses": ["licenses_value1", "licenses_value2"], + "mode": "mode_value", + "shielded_instance_initial_state": { + "dbs": [ + {"content": "content_value", "file_type": "file_type_value"} + ], + "dbxs": {}, + "keks": {}, + "pk": {}, + }, + "source": "source_value", + "type_": "type__value", + } + ], + "guest_accelerators": [ + { + "accelerator_count": 1805, + "accelerator_type": "accelerator_type_value", + } + ], + "key_revocation_action_type": "key_revocation_action_type_value", + "labels": {}, + "machine_type": "machine_type_value", + "metadata": { + "fingerprint": "fingerprint_value", + "items": [{"key": "key_value", "value": "value_value"}], + "kind": "kind_value", + }, + "min_cpu_platform": "min_cpu_platform_value", + "network_interfaces": [ + { + "access_configs": [ + { + "external_ipv6": "external_ipv6_value", + "external_ipv6_prefix_length": 2837, + "kind": "kind_value", + "name": "name_value", + "nat_i_p": "nat_i_p_value", + "network_tier": "network_tier_value", + "public_ptr_domain_name": "public_ptr_domain_name_value", + "set_public_ptr": True, + "type_": "type__value", + } + ], + "alias_ip_ranges": [ + { + "ip_cidr_range": "ip_cidr_range_value", + "subnetwork_range_name": "subnetwork_range_name_value", + } + ], + "fingerprint": "fingerprint_value", + "internal_ipv6_prefix_length": 2831, + "ipv6_access_configs": {}, + "ipv6_access_type": "ipv6_access_type_value", + "ipv6_address": "ipv6_address_value", + "kind": "kind_value", + "name": "name_value", + "network": "network_value", + "network_attachment": "network_attachment_value", + "network_i_p": "network_i_p_value", + "nic_type": "nic_type_value", + "queue_count": 1197, + "stack_type": "stack_type_value", + "subnetwork": "subnetwork_value", + } + ], + "network_performance_config": { + "total_egress_bandwidth_tier": "total_egress_bandwidth_tier_value" + }, + "private_ipv6_google_access": "private_ipv6_google_access_value", + "reservation_affinity": { + "consume_reservation_type": "consume_reservation_type_value", + "key": "key_value", + "values": ["values_value1", "values_value2"], + }, + "resource_manager_tags": {}, + "resource_policies": [ + "resource_policies_value1", + "resource_policies_value2", + ], + "scheduling": { + "automatic_restart": True, + "instance_termination_action": "instance_termination_action_value", + "location_hint": "location_hint_value", + "min_node_cpus": 1379, + "node_affinities": [ + { + "key": "key_value", + "operator": "operator_value", + "values": ["values_value1", "values_value2"], + } + ], + "on_host_maintenance": "on_host_maintenance_value", + "preemptible": True, + "provisioning_model": "provisioning_model_value", + }, + "service_accounts": [ + {"email": "email_value", "scopes": ["scopes_value1", "scopes_value2"]} + ], + "shielded_instance_config": { + "enable_integrity_monitoring": True, + "enable_secure_boot": True, + "enable_vtpm": True, + }, + "tags": { + "fingerprint": "fingerprint_value", + "items": ["items_value1", "items_value2"], + }, + }, + "region": "region_value", + "self_link": "self_link_value", + "source_instance": "source_instance_value", + "source_instance_params": { + "disk_configs": [ + { + "auto_delete": True, + "custom_image": "custom_image_value", + "device_name": "device_name_value", + "instantiate_from": "instantiate_from_value", + } + ] + }, + } + request = request_type(**request_init) + + # Mock the http request call within the method and fake a response. + with mock.patch.object(type(client.transport._session), "request") as req: + # Designate an appropriate value for the returned response. + return_value = compute.Operation( + client_operation_id="client_operation_id_value", + creation_timestamp="creation_timestamp_value", + description="description_value", + end_time="end_time_value", + http_error_message="http_error_message_value", + http_error_status_code=2374, + id=205, + insert_time="insert_time_value", + kind="kind_value", + name="name_value", + operation_group_id="operation_group_id_value", + operation_type="operation_type_value", + progress=885, + region="region_value", + self_link="self_link_value", + start_time="start_time_value", + status=compute.Operation.Status.DONE, + status_message="status_message_value", + target_id=947, + target_link="target_link_value", + user="user_value", + zone="zone_value", + ) + + # Wrap the value into a proper Response obj + response_value = Response() + response_value.status_code = 200 + pb_return_value = compute.Operation.pb(return_value) + json_return_value = json_format.MessageToJson(pb_return_value) + + response_value._content = json_return_value.encode("UTF-8") + req.return_value = response_value + response = client.insert(request) + + # Establish that the response is the type that we expect. + assert isinstance(response, extended_operation.ExtendedOperation) + assert response.client_operation_id == "client_operation_id_value" + assert response.creation_timestamp == "creation_timestamp_value" + assert response.description == "description_value" + assert response.end_time == "end_time_value" + assert response.http_error_message == "http_error_message_value" + assert response.http_error_status_code == 2374 + assert response.id == 205 + assert response.insert_time == "insert_time_value" + assert response.kind == "kind_value" + assert response.name == "name_value" + assert response.operation_group_id == "operation_group_id_value" + assert response.operation_type == "operation_type_value" + assert response.progress == 885 + assert response.region == "region_value" + assert response.self_link == "self_link_value" + assert response.start_time == "start_time_value" + assert response.status == compute.Operation.Status.DONE + assert response.status_message == "status_message_value" + assert response.target_id == 947 + assert response.target_link == "target_link_value" + assert response.user == "user_value" + assert response.zone == "zone_value" + + +def test_insert_rest_required_fields( + request_type=compute.InsertRegionInstanceTemplateRequest, +): + transport_class = transports.RegionInstanceTemplatesRestTransport + + request_init = {} + request_init["project"] = "" + request_init["region"] = "" + request = request_type(**request_init) + pb_request = request_type.pb(request) + jsonified_request = json.loads( + json_format.MessageToJson( + pb_request, + including_default_value_fields=False, + use_integers_for_enums=False, + ) + ) + + # verify fields with default values are dropped + + unset_fields = transport_class( + credentials=ga_credentials.AnonymousCredentials() + ).insert._get_unset_required_fields(jsonified_request) + jsonified_request.update(unset_fields) + + # verify required fields with default values are now present + + jsonified_request["project"] = "project_value" + jsonified_request["region"] = "region_value" + + unset_fields = transport_class( + credentials=ga_credentials.AnonymousCredentials() + ).insert._get_unset_required_fields(jsonified_request) + # Check that path parameters and body parameters are not mixing in. + assert not set(unset_fields) - set(("request_id",)) + jsonified_request.update(unset_fields) + + # verify required fields with non-default values are left alone + assert "project" in jsonified_request + assert jsonified_request["project"] == "project_value" + assert "region" in jsonified_request + assert jsonified_request["region"] == "region_value" + + client = RegionInstanceTemplatesClient( + credentials=ga_credentials.AnonymousCredentials(), + transport="rest", + ) + request = request_type(**request_init) + + # Designate an appropriate value for the returned response. + return_value = compute.Operation() + # Mock the http request call within the method and fake a response. + with mock.patch.object(Session, "request") as req: + # We need to mock transcode() because providing default values + # for required fields will fail the real version if the http_options + # expect actual values for those fields. + with mock.patch.object(path_template, "transcode") as transcode: + # A uri without fields and an empty body will force all the + # request fields to show up in the query_params. + pb_request = request_type.pb(request) + transcode_result = { + "uri": "v1/sample_method", + "method": "post", + "query_params": pb_request, + } + transcode_result["body"] = pb_request + transcode.return_value = transcode_result + + response_value = Response() + response_value.status_code = 200 + + pb_return_value = compute.Operation.pb(return_value) + json_return_value = json_format.MessageToJson(pb_return_value) + + response_value._content = json_return_value.encode("UTF-8") + req.return_value = response_value + + response = client.insert(request) + + expected_params = [] + actual_params = req.call_args.kwargs["params"] + assert expected_params == actual_params + + +def test_insert_rest_unset_required_fields(): + transport = transports.RegionInstanceTemplatesRestTransport( + credentials=ga_credentials.AnonymousCredentials + ) + + unset_fields = transport.insert._get_unset_required_fields({}) + assert set(unset_fields) == ( + set(("requestId",)) + & set( + ( + "instanceTemplateResource", + "project", + "region", + ) + ) + ) + + +@pytest.mark.parametrize("null_interceptor", [True, False]) +def test_insert_rest_interceptors(null_interceptor): + transport = transports.RegionInstanceTemplatesRestTransport( + credentials=ga_credentials.AnonymousCredentials(), + interceptor=None + if null_interceptor + else transports.RegionInstanceTemplatesRestInterceptor(), + ) + client = RegionInstanceTemplatesClient(transport=transport) + with mock.patch.object( + type(client.transport._session), "request" + ) as req, mock.patch.object( + path_template, "transcode" + ) as transcode, mock.patch.object( + transports.RegionInstanceTemplatesRestInterceptor, "post_insert" + ) as post, mock.patch.object( + transports.RegionInstanceTemplatesRestInterceptor, "pre_insert" + ) as pre: + pre.assert_not_called() + post.assert_not_called() + pb_message = compute.InsertRegionInstanceTemplateRequest.pb( + compute.InsertRegionInstanceTemplateRequest() + ) + transcode.return_value = { + "method": "post", + "uri": "my_uri", + "body": pb_message, + "query_params": pb_message, + } + + req.return_value = Response() + req.return_value.status_code = 200 + req.return_value.request = PreparedRequest() + req.return_value._content = compute.Operation.to_json(compute.Operation()) + + request = compute.InsertRegionInstanceTemplateRequest() + metadata = [ + ("key", "val"), + ("cephalopod", "squid"), + ] + pre.return_value = request, metadata + post.return_value = compute.Operation() + + client.insert( + request, + metadata=[ + ("key", "val"), + ("cephalopod", "squid"), + ], + ) + + pre.assert_called_once() + post.assert_called_once() + + +def test_insert_rest_bad_request( + transport: str = "rest", request_type=compute.InsertRegionInstanceTemplateRequest +): + client = RegionInstanceTemplatesClient( + credentials=ga_credentials.AnonymousCredentials(), + transport=transport, + ) + + # send a request that will satisfy transcoding + request_init = {"project": "sample1", "region": "sample2"} + request_init["instance_template_resource"] = { + "creation_timestamp": "creation_timestamp_value", + "description": "description_value", + "id": 205, + "kind": "kind_value", + "name": "name_value", + "properties": { + "advanced_machine_features": { + "enable_nested_virtualization": True, + "enable_uefi_networking": True, + "threads_per_core": 1689, + "visible_core_count": 1918, + }, + "can_ip_forward": True, + "confidential_instance_config": {"enable_confidential_compute": True}, + "description": "description_value", + "disks": [ + { + "architecture": "architecture_value", + "auto_delete": True, + "boot": True, + "device_name": "device_name_value", + "disk_encryption_key": { + "kms_key_name": "kms_key_name_value", + "kms_key_service_account": "kms_key_service_account_value", + "raw_key": "raw_key_value", + "rsa_encrypted_key": "rsa_encrypted_key_value", + "sha256": "sha256_value", + }, + "disk_size_gb": 1261, + "force_attach": True, + "guest_os_features": [{"type_": "type__value"}], + "index": 536, + "initialize_params": { + "architecture": "architecture_value", + "description": "description_value", + "disk_name": "disk_name_value", + "disk_size_gb": 1261, + "disk_type": "disk_type_value", + "labels": {}, + "licenses": ["licenses_value1", "licenses_value2"], + "on_update_action": "on_update_action_value", + "provisioned_iops": 1740, + "resource_manager_tags": {}, + "resource_policies": [ + "resource_policies_value1", + "resource_policies_value2", + ], + "source_image": "source_image_value", + "source_image_encryption_key": {}, + "source_snapshot": "source_snapshot_value", + "source_snapshot_encryption_key": {}, + }, + "interface": "interface_value", + "kind": "kind_value", + "licenses": ["licenses_value1", "licenses_value2"], + "mode": "mode_value", + "shielded_instance_initial_state": { + "dbs": [ + {"content": "content_value", "file_type": "file_type_value"} + ], + "dbxs": {}, + "keks": {}, + "pk": {}, + }, + "source": "source_value", + "type_": "type__value", + } + ], + "guest_accelerators": [ + { + "accelerator_count": 1805, + "accelerator_type": "accelerator_type_value", + } + ], + "key_revocation_action_type": "key_revocation_action_type_value", + "labels": {}, + "machine_type": "machine_type_value", + "metadata": { + "fingerprint": "fingerprint_value", + "items": [{"key": "key_value", "value": "value_value"}], + "kind": "kind_value", + }, + "min_cpu_platform": "min_cpu_platform_value", + "network_interfaces": [ + { + "access_configs": [ + { + "external_ipv6": "external_ipv6_value", + "external_ipv6_prefix_length": 2837, + "kind": "kind_value", + "name": "name_value", + "nat_i_p": "nat_i_p_value", + "network_tier": "network_tier_value", + "public_ptr_domain_name": "public_ptr_domain_name_value", + "set_public_ptr": True, + "type_": "type__value", + } + ], + "alias_ip_ranges": [ + { + "ip_cidr_range": "ip_cidr_range_value", + "subnetwork_range_name": "subnetwork_range_name_value", + } + ], + "fingerprint": "fingerprint_value", + "internal_ipv6_prefix_length": 2831, + "ipv6_access_configs": {}, + "ipv6_access_type": "ipv6_access_type_value", + "ipv6_address": "ipv6_address_value", + "kind": "kind_value", + "name": "name_value", + "network": "network_value", + "network_attachment": "network_attachment_value", + "network_i_p": "network_i_p_value", + "nic_type": "nic_type_value", + "queue_count": 1197, + "stack_type": "stack_type_value", + "subnetwork": "subnetwork_value", + } + ], + "network_performance_config": { + "total_egress_bandwidth_tier": "total_egress_bandwidth_tier_value" + }, + "private_ipv6_google_access": "private_ipv6_google_access_value", + "reservation_affinity": { + "consume_reservation_type": "consume_reservation_type_value", + "key": "key_value", + "values": ["values_value1", "values_value2"], + }, + "resource_manager_tags": {}, + "resource_policies": [ + "resource_policies_value1", + "resource_policies_value2", + ], + "scheduling": { + "automatic_restart": True, + "instance_termination_action": "instance_termination_action_value", + "location_hint": "location_hint_value", + "min_node_cpus": 1379, + "node_affinities": [ + { + "key": "key_value", + "operator": "operator_value", + "values": ["values_value1", "values_value2"], + } + ], + "on_host_maintenance": "on_host_maintenance_value", + "preemptible": True, + "provisioning_model": "provisioning_model_value", + }, + "service_accounts": [ + {"email": "email_value", "scopes": ["scopes_value1", "scopes_value2"]} + ], + "shielded_instance_config": { + "enable_integrity_monitoring": True, + "enable_secure_boot": True, + "enable_vtpm": True, + }, + "tags": { + "fingerprint": "fingerprint_value", + "items": ["items_value1", "items_value2"], + }, + }, + "region": "region_value", + "self_link": "self_link_value", + "source_instance": "source_instance_value", + "source_instance_params": { + "disk_configs": [ + { + "auto_delete": True, + "custom_image": "custom_image_value", + "device_name": "device_name_value", + "instantiate_from": "instantiate_from_value", + } + ] + }, + } + request = request_type(**request_init) + + # Mock the http request call within the method and fake a BadRequest error. + with mock.patch.object(Session, "request") as req, pytest.raises( + core_exceptions.BadRequest + ): + # Wrap the value into a proper Response obj + response_value = Response() + response_value.status_code = 400 + response_value.request = Request() + req.return_value = response_value + client.insert(request) + + +def test_insert_rest_flattened(): + client = RegionInstanceTemplatesClient( + credentials=ga_credentials.AnonymousCredentials(), + transport="rest", + ) + + # Mock the http request call within the method and fake a response. + with mock.patch.object(type(client.transport._session), "request") as req: + # Designate an appropriate value for the returned response. + return_value = compute.Operation() + + # get arguments that satisfy an http rule for this method + sample_request = {"project": "sample1", "region": "sample2"} + + # get truthy value for each flattened field + mock_args = dict( + project="project_value", + region="region_value", + instance_template_resource=compute.InstanceTemplate( + creation_timestamp="creation_timestamp_value" + ), + ) + mock_args.update(sample_request) + + # Wrap the value into a proper Response obj + response_value = Response() + response_value.status_code = 200 + pb_return_value = compute.Operation.pb(return_value) + json_return_value = json_format.MessageToJson(pb_return_value) + response_value._content = json_return_value.encode("UTF-8") + req.return_value = response_value + + client.insert(**mock_args) + + # Establish that the underlying call was made with the expected + # request object values. + assert len(req.mock_calls) == 1 + _, args, _ = req.mock_calls[0] + assert path_template.validate( + "%s/compute/v1/projects/{project}/regions/{region}/instanceTemplates" + % client.transport._host, + args[1], + ) + + +def test_insert_rest_flattened_error(transport: str = "rest"): + client = RegionInstanceTemplatesClient( + credentials=ga_credentials.AnonymousCredentials(), + transport=transport, + ) + + # Attempting to call a method with both a request object and flattened + # fields is an error. + with pytest.raises(ValueError): + client.insert( + compute.InsertRegionInstanceTemplateRequest(), + project="project_value", + region="region_value", + instance_template_resource=compute.InstanceTemplate( + creation_timestamp="creation_timestamp_value" + ), + ) + + +def test_insert_rest_error(): + client = RegionInstanceTemplatesClient( + credentials=ga_credentials.AnonymousCredentials(), transport="rest" + ) + + +@pytest.mark.parametrize( + "request_type", + [ + compute.InsertRegionInstanceTemplateRequest, + dict, + ], +) +def test_insert_unary_rest(request_type): + client = RegionInstanceTemplatesClient( + credentials=ga_credentials.AnonymousCredentials(), + transport="rest", + ) + + # send a request that will satisfy transcoding + request_init = {"project": "sample1", "region": "sample2"} + request_init["instance_template_resource"] = { + "creation_timestamp": "creation_timestamp_value", + "description": "description_value", + "id": 205, + "kind": "kind_value", + "name": "name_value", + "properties": { + "advanced_machine_features": { + "enable_nested_virtualization": True, + "enable_uefi_networking": True, + "threads_per_core": 1689, + "visible_core_count": 1918, + }, + "can_ip_forward": True, + "confidential_instance_config": {"enable_confidential_compute": True}, + "description": "description_value", + "disks": [ + { + "architecture": "architecture_value", + "auto_delete": True, + "boot": True, + "device_name": "device_name_value", + "disk_encryption_key": { + "kms_key_name": "kms_key_name_value", + "kms_key_service_account": "kms_key_service_account_value", + "raw_key": "raw_key_value", + "rsa_encrypted_key": "rsa_encrypted_key_value", + "sha256": "sha256_value", + }, + "disk_size_gb": 1261, + "force_attach": True, + "guest_os_features": [{"type_": "type__value"}], + "index": 536, + "initialize_params": { + "architecture": "architecture_value", + "description": "description_value", + "disk_name": "disk_name_value", + "disk_size_gb": 1261, + "disk_type": "disk_type_value", + "labels": {}, + "licenses": ["licenses_value1", "licenses_value2"], + "on_update_action": "on_update_action_value", + "provisioned_iops": 1740, + "resource_manager_tags": {}, + "resource_policies": [ + "resource_policies_value1", + "resource_policies_value2", + ], + "source_image": "source_image_value", + "source_image_encryption_key": {}, + "source_snapshot": "source_snapshot_value", + "source_snapshot_encryption_key": {}, + }, + "interface": "interface_value", + "kind": "kind_value", + "licenses": ["licenses_value1", "licenses_value2"], + "mode": "mode_value", + "shielded_instance_initial_state": { + "dbs": [ + {"content": "content_value", "file_type": "file_type_value"} + ], + "dbxs": {}, + "keks": {}, + "pk": {}, + }, + "source": "source_value", + "type_": "type__value", + } + ], + "guest_accelerators": [ + { + "accelerator_count": 1805, + "accelerator_type": "accelerator_type_value", + } + ], + "key_revocation_action_type": "key_revocation_action_type_value", + "labels": {}, + "machine_type": "machine_type_value", + "metadata": { + "fingerprint": "fingerprint_value", + "items": [{"key": "key_value", "value": "value_value"}], + "kind": "kind_value", + }, + "min_cpu_platform": "min_cpu_platform_value", + "network_interfaces": [ + { + "access_configs": [ + { + "external_ipv6": "external_ipv6_value", + "external_ipv6_prefix_length": 2837, + "kind": "kind_value", + "name": "name_value", + "nat_i_p": "nat_i_p_value", + "network_tier": "network_tier_value", + "public_ptr_domain_name": "public_ptr_domain_name_value", + "set_public_ptr": True, + "type_": "type__value", + } + ], + "alias_ip_ranges": [ + { + "ip_cidr_range": "ip_cidr_range_value", + "subnetwork_range_name": "subnetwork_range_name_value", + } + ], + "fingerprint": "fingerprint_value", + "internal_ipv6_prefix_length": 2831, + "ipv6_access_configs": {}, + "ipv6_access_type": "ipv6_access_type_value", + "ipv6_address": "ipv6_address_value", + "kind": "kind_value", + "name": "name_value", + "network": "network_value", + "network_attachment": "network_attachment_value", + "network_i_p": "network_i_p_value", + "nic_type": "nic_type_value", + "queue_count": 1197, + "stack_type": "stack_type_value", + "subnetwork": "subnetwork_value", + } + ], + "network_performance_config": { + "total_egress_bandwidth_tier": "total_egress_bandwidth_tier_value" + }, + "private_ipv6_google_access": "private_ipv6_google_access_value", + "reservation_affinity": { + "consume_reservation_type": "consume_reservation_type_value", + "key": "key_value", + "values": ["values_value1", "values_value2"], + }, + "resource_manager_tags": {}, + "resource_policies": [ + "resource_policies_value1", + "resource_policies_value2", + ], + "scheduling": { + "automatic_restart": True, + "instance_termination_action": "instance_termination_action_value", + "location_hint": "location_hint_value", + "min_node_cpus": 1379, + "node_affinities": [ + { + "key": "key_value", + "operator": "operator_value", + "values": ["values_value1", "values_value2"], + } + ], + "on_host_maintenance": "on_host_maintenance_value", + "preemptible": True, + "provisioning_model": "provisioning_model_value", + }, + "service_accounts": [ + {"email": "email_value", "scopes": ["scopes_value1", "scopes_value2"]} + ], + "shielded_instance_config": { + "enable_integrity_monitoring": True, + "enable_secure_boot": True, + "enable_vtpm": True, + }, + "tags": { + "fingerprint": "fingerprint_value", + "items": ["items_value1", "items_value2"], + }, + }, + "region": "region_value", + "self_link": "self_link_value", + "source_instance": "source_instance_value", + "source_instance_params": { + "disk_configs": [ + { + "auto_delete": True, + "custom_image": "custom_image_value", + "device_name": "device_name_value", + "instantiate_from": "instantiate_from_value", + } + ] + }, + } + request = request_type(**request_init) + + # Mock the http request call within the method and fake a response. + with mock.patch.object(type(client.transport._session), "request") as req: + # Designate an appropriate value for the returned response. + return_value = compute.Operation( + client_operation_id="client_operation_id_value", + creation_timestamp="creation_timestamp_value", + description="description_value", + end_time="end_time_value", + http_error_message="http_error_message_value", + http_error_status_code=2374, + id=205, + insert_time="insert_time_value", + kind="kind_value", + name="name_value", + operation_group_id="operation_group_id_value", + operation_type="operation_type_value", + progress=885, + region="region_value", + self_link="self_link_value", + start_time="start_time_value", + status=compute.Operation.Status.DONE, + status_message="status_message_value", + target_id=947, + target_link="target_link_value", + user="user_value", + zone="zone_value", + ) + + # Wrap the value into a proper Response obj + response_value = Response() + response_value.status_code = 200 + pb_return_value = compute.Operation.pb(return_value) + json_return_value = json_format.MessageToJson(pb_return_value) + + response_value._content = json_return_value.encode("UTF-8") + req.return_value = response_value + response = client.insert_unary(request) + + # Establish that the response is the type that we expect. + assert isinstance(response, compute.Operation) + + +def test_insert_unary_rest_required_fields( + request_type=compute.InsertRegionInstanceTemplateRequest, +): + transport_class = transports.RegionInstanceTemplatesRestTransport + + request_init = {} + request_init["project"] = "" + request_init["region"] = "" + request = request_type(**request_init) + pb_request = request_type.pb(request) + jsonified_request = json.loads( + json_format.MessageToJson( + pb_request, + including_default_value_fields=False, + use_integers_for_enums=False, + ) + ) + + # verify fields with default values are dropped + + unset_fields = transport_class( + credentials=ga_credentials.AnonymousCredentials() + ).insert._get_unset_required_fields(jsonified_request) + jsonified_request.update(unset_fields) + + # verify required fields with default values are now present + + jsonified_request["project"] = "project_value" + jsonified_request["region"] = "region_value" + + unset_fields = transport_class( + credentials=ga_credentials.AnonymousCredentials() + ).insert._get_unset_required_fields(jsonified_request) + # Check that path parameters and body parameters are not mixing in. + assert not set(unset_fields) - set(("request_id",)) + jsonified_request.update(unset_fields) + + # verify required fields with non-default values are left alone + assert "project" in jsonified_request + assert jsonified_request["project"] == "project_value" + assert "region" in jsonified_request + assert jsonified_request["region"] == "region_value" + + client = RegionInstanceTemplatesClient( + credentials=ga_credentials.AnonymousCredentials(), + transport="rest", + ) + request = request_type(**request_init) + + # Designate an appropriate value for the returned response. + return_value = compute.Operation() + # Mock the http request call within the method and fake a response. + with mock.patch.object(Session, "request") as req: + # We need to mock transcode() because providing default values + # for required fields will fail the real version if the http_options + # expect actual values for those fields. + with mock.patch.object(path_template, "transcode") as transcode: + # A uri without fields and an empty body will force all the + # request fields to show up in the query_params. + pb_request = request_type.pb(request) + transcode_result = { + "uri": "v1/sample_method", + "method": "post", + "query_params": pb_request, + } + transcode_result["body"] = pb_request + transcode.return_value = transcode_result + + response_value = Response() + response_value.status_code = 200 + + pb_return_value = compute.Operation.pb(return_value) + json_return_value = json_format.MessageToJson(pb_return_value) + + response_value._content = json_return_value.encode("UTF-8") + req.return_value = response_value + + response = client.insert_unary(request) + + expected_params = [] + actual_params = req.call_args.kwargs["params"] + assert expected_params == actual_params + + +def test_insert_unary_rest_unset_required_fields(): + transport = transports.RegionInstanceTemplatesRestTransport( + credentials=ga_credentials.AnonymousCredentials + ) + + unset_fields = transport.insert._get_unset_required_fields({}) + assert set(unset_fields) == ( + set(("requestId",)) + & set( + ( + "instanceTemplateResource", + "project", + "region", + ) + ) + ) + + +@pytest.mark.parametrize("null_interceptor", [True, False]) +def test_insert_unary_rest_interceptors(null_interceptor): + transport = transports.RegionInstanceTemplatesRestTransport( + credentials=ga_credentials.AnonymousCredentials(), + interceptor=None + if null_interceptor + else transports.RegionInstanceTemplatesRestInterceptor(), + ) + client = RegionInstanceTemplatesClient(transport=transport) + with mock.patch.object( + type(client.transport._session), "request" + ) as req, mock.patch.object( + path_template, "transcode" + ) as transcode, mock.patch.object( + transports.RegionInstanceTemplatesRestInterceptor, "post_insert" + ) as post, mock.patch.object( + transports.RegionInstanceTemplatesRestInterceptor, "pre_insert" + ) as pre: + pre.assert_not_called() + post.assert_not_called() + pb_message = compute.InsertRegionInstanceTemplateRequest.pb( + compute.InsertRegionInstanceTemplateRequest() + ) + transcode.return_value = { + "method": "post", + "uri": "my_uri", + "body": pb_message, + "query_params": pb_message, + } + + req.return_value = Response() + req.return_value.status_code = 200 + req.return_value.request = PreparedRequest() + req.return_value._content = compute.Operation.to_json(compute.Operation()) + + request = compute.InsertRegionInstanceTemplateRequest() + metadata = [ + ("key", "val"), + ("cephalopod", "squid"), + ] + pre.return_value = request, metadata + post.return_value = compute.Operation() + + client.insert_unary( + request, + metadata=[ + ("key", "val"), + ("cephalopod", "squid"), + ], + ) + + pre.assert_called_once() + post.assert_called_once() + + +def test_insert_unary_rest_bad_request( + transport: str = "rest", request_type=compute.InsertRegionInstanceTemplateRequest +): + client = RegionInstanceTemplatesClient( + credentials=ga_credentials.AnonymousCredentials(), + transport=transport, + ) + + # send a request that will satisfy transcoding + request_init = {"project": "sample1", "region": "sample2"} + request_init["instance_template_resource"] = { + "creation_timestamp": "creation_timestamp_value", + "description": "description_value", + "id": 205, + "kind": "kind_value", + "name": "name_value", + "properties": { + "advanced_machine_features": { + "enable_nested_virtualization": True, + "enable_uefi_networking": True, + "threads_per_core": 1689, + "visible_core_count": 1918, + }, + "can_ip_forward": True, + "confidential_instance_config": {"enable_confidential_compute": True}, + "description": "description_value", + "disks": [ + { + "architecture": "architecture_value", + "auto_delete": True, + "boot": True, + "device_name": "device_name_value", + "disk_encryption_key": { + "kms_key_name": "kms_key_name_value", + "kms_key_service_account": "kms_key_service_account_value", + "raw_key": "raw_key_value", + "rsa_encrypted_key": "rsa_encrypted_key_value", + "sha256": "sha256_value", + }, + "disk_size_gb": 1261, + "force_attach": True, + "guest_os_features": [{"type_": "type__value"}], + "index": 536, + "initialize_params": { + "architecture": "architecture_value", + "description": "description_value", + "disk_name": "disk_name_value", + "disk_size_gb": 1261, + "disk_type": "disk_type_value", + "labels": {}, + "licenses": ["licenses_value1", "licenses_value2"], + "on_update_action": "on_update_action_value", + "provisioned_iops": 1740, + "resource_manager_tags": {}, + "resource_policies": [ + "resource_policies_value1", + "resource_policies_value2", + ], + "source_image": "source_image_value", + "source_image_encryption_key": {}, + "source_snapshot": "source_snapshot_value", + "source_snapshot_encryption_key": {}, + }, + "interface": "interface_value", + "kind": "kind_value", + "licenses": ["licenses_value1", "licenses_value2"], + "mode": "mode_value", + "shielded_instance_initial_state": { + "dbs": [ + {"content": "content_value", "file_type": "file_type_value"} + ], + "dbxs": {}, + "keks": {}, + "pk": {}, + }, + "source": "source_value", + "type_": "type__value", + } + ], + "guest_accelerators": [ + { + "accelerator_count": 1805, + "accelerator_type": "accelerator_type_value", + } + ], + "key_revocation_action_type": "key_revocation_action_type_value", + "labels": {}, + "machine_type": "machine_type_value", + "metadata": { + "fingerprint": "fingerprint_value", + "items": [{"key": "key_value", "value": "value_value"}], + "kind": "kind_value", + }, + "min_cpu_platform": "min_cpu_platform_value", + "network_interfaces": [ + { + "access_configs": [ + { + "external_ipv6": "external_ipv6_value", + "external_ipv6_prefix_length": 2837, + "kind": "kind_value", + "name": "name_value", + "nat_i_p": "nat_i_p_value", + "network_tier": "network_tier_value", + "public_ptr_domain_name": "public_ptr_domain_name_value", + "set_public_ptr": True, + "type_": "type__value", + } + ], + "alias_ip_ranges": [ + { + "ip_cidr_range": "ip_cidr_range_value", + "subnetwork_range_name": "subnetwork_range_name_value", + } + ], + "fingerprint": "fingerprint_value", + "internal_ipv6_prefix_length": 2831, + "ipv6_access_configs": {}, + "ipv6_access_type": "ipv6_access_type_value", + "ipv6_address": "ipv6_address_value", + "kind": "kind_value", + "name": "name_value", + "network": "network_value", + "network_attachment": "network_attachment_value", + "network_i_p": "network_i_p_value", + "nic_type": "nic_type_value", + "queue_count": 1197, + "stack_type": "stack_type_value", + "subnetwork": "subnetwork_value", + } + ], + "network_performance_config": { + "total_egress_bandwidth_tier": "total_egress_bandwidth_tier_value" + }, + "private_ipv6_google_access": "private_ipv6_google_access_value", + "reservation_affinity": { + "consume_reservation_type": "consume_reservation_type_value", + "key": "key_value", + "values": ["values_value1", "values_value2"], + }, + "resource_manager_tags": {}, + "resource_policies": [ + "resource_policies_value1", + "resource_policies_value2", + ], + "scheduling": { + "automatic_restart": True, + "instance_termination_action": "instance_termination_action_value", + "location_hint": "location_hint_value", + "min_node_cpus": 1379, + "node_affinities": [ + { + "key": "key_value", + "operator": "operator_value", + "values": ["values_value1", "values_value2"], + } + ], + "on_host_maintenance": "on_host_maintenance_value", + "preemptible": True, + "provisioning_model": "provisioning_model_value", + }, + "service_accounts": [ + {"email": "email_value", "scopes": ["scopes_value1", "scopes_value2"]} + ], + "shielded_instance_config": { + "enable_integrity_monitoring": True, + "enable_secure_boot": True, + "enable_vtpm": True, + }, + "tags": { + "fingerprint": "fingerprint_value", + "items": ["items_value1", "items_value2"], + }, + }, + "region": "region_value", + "self_link": "self_link_value", + "source_instance": "source_instance_value", + "source_instance_params": { + "disk_configs": [ + { + "auto_delete": True, + "custom_image": "custom_image_value", + "device_name": "device_name_value", + "instantiate_from": "instantiate_from_value", + } + ] + }, + } + request = request_type(**request_init) + + # Mock the http request call within the method and fake a BadRequest error. + with mock.patch.object(Session, "request") as req, pytest.raises( + core_exceptions.BadRequest + ): + # Wrap the value into a proper Response obj + response_value = Response() + response_value.status_code = 400 + response_value.request = Request() + req.return_value = response_value + client.insert_unary(request) + + +def test_insert_unary_rest_flattened(): + client = RegionInstanceTemplatesClient( + credentials=ga_credentials.AnonymousCredentials(), + transport="rest", + ) + + # Mock the http request call within the method and fake a response. + with mock.patch.object(type(client.transport._session), "request") as req: + # Designate an appropriate value for the returned response. + return_value = compute.Operation() + + # get arguments that satisfy an http rule for this method + sample_request = {"project": "sample1", "region": "sample2"} + + # get truthy value for each flattened field + mock_args = dict( + project="project_value", + region="region_value", + instance_template_resource=compute.InstanceTemplate( + creation_timestamp="creation_timestamp_value" + ), + ) + mock_args.update(sample_request) + + # Wrap the value into a proper Response obj + response_value = Response() + response_value.status_code = 200 + pb_return_value = compute.Operation.pb(return_value) + json_return_value = json_format.MessageToJson(pb_return_value) + response_value._content = json_return_value.encode("UTF-8") + req.return_value = response_value + + client.insert_unary(**mock_args) + + # Establish that the underlying call was made with the expected + # request object values. + assert len(req.mock_calls) == 1 + _, args, _ = req.mock_calls[0] + assert path_template.validate( + "%s/compute/v1/projects/{project}/regions/{region}/instanceTemplates" + % client.transport._host, + args[1], + ) + + +def test_insert_unary_rest_flattened_error(transport: str = "rest"): + client = RegionInstanceTemplatesClient( + credentials=ga_credentials.AnonymousCredentials(), + transport=transport, + ) + + # Attempting to call a method with both a request object and flattened + # fields is an error. + with pytest.raises(ValueError): + client.insert_unary( + compute.InsertRegionInstanceTemplateRequest(), + project="project_value", + region="region_value", + instance_template_resource=compute.InstanceTemplate( + creation_timestamp="creation_timestamp_value" + ), + ) + + +def test_insert_unary_rest_error(): + client = RegionInstanceTemplatesClient( + credentials=ga_credentials.AnonymousCredentials(), transport="rest" + ) + + +@pytest.mark.parametrize( + "request_type", + [ + compute.ListRegionInstanceTemplatesRequest, + dict, + ], +) +def test_list_rest(request_type): + client = RegionInstanceTemplatesClient( + credentials=ga_credentials.AnonymousCredentials(), + transport="rest", + ) + + # send a request that will satisfy transcoding + request_init = {"project": "sample1", "region": "sample2"} + request = request_type(**request_init) + + # Mock the http request call within the method and fake a response. + with mock.patch.object(type(client.transport._session), "request") as req: + # Designate an appropriate value for the returned response. + return_value = compute.InstanceTemplateList( + id="id_value", + kind="kind_value", + next_page_token="next_page_token_value", + self_link="self_link_value", + ) + + # Wrap the value into a proper Response obj + response_value = Response() + response_value.status_code = 200 + pb_return_value = compute.InstanceTemplateList.pb(return_value) + json_return_value = json_format.MessageToJson(pb_return_value) + + response_value._content = json_return_value.encode("UTF-8") + req.return_value = response_value + response = client.list(request) + + # Establish that the response is the type that we expect. + assert isinstance(response, pagers.ListPager) + assert response.id == "id_value" + assert response.kind == "kind_value" + assert response.next_page_token == "next_page_token_value" + assert response.self_link == "self_link_value" + + +def test_list_rest_required_fields( + request_type=compute.ListRegionInstanceTemplatesRequest, +): + transport_class = transports.RegionInstanceTemplatesRestTransport + + request_init = {} + request_init["project"] = "" + request_init["region"] = "" + request = request_type(**request_init) + pb_request = request_type.pb(request) + jsonified_request = json.loads( + json_format.MessageToJson( + pb_request, + including_default_value_fields=False, + use_integers_for_enums=False, + ) + ) + + # verify fields with default values are dropped + + unset_fields = transport_class( + credentials=ga_credentials.AnonymousCredentials() + ).list._get_unset_required_fields(jsonified_request) + jsonified_request.update(unset_fields) + + # verify required fields with default values are now present + + jsonified_request["project"] = "project_value" + jsonified_request["region"] = "region_value" + + unset_fields = transport_class( + credentials=ga_credentials.AnonymousCredentials() + ).list._get_unset_required_fields(jsonified_request) + # Check that path parameters and body parameters are not mixing in. + assert not set(unset_fields) - set( + ( + "filter", + "max_results", + "order_by", + "page_token", + "return_partial_success", + ) + ) + jsonified_request.update(unset_fields) + + # verify required fields with non-default values are left alone + assert "project" in jsonified_request + assert jsonified_request["project"] == "project_value" + assert "region" in jsonified_request + assert jsonified_request["region"] == "region_value" + + client = RegionInstanceTemplatesClient( + credentials=ga_credentials.AnonymousCredentials(), + transport="rest", + ) + request = request_type(**request_init) + + # Designate an appropriate value for the returned response. + return_value = compute.InstanceTemplateList() + # Mock the http request call within the method and fake a response. + with mock.patch.object(Session, "request") as req: + # We need to mock transcode() because providing default values + # for required fields will fail the real version if the http_options + # expect actual values for those fields. + with mock.patch.object(path_template, "transcode") as transcode: + # A uri without fields and an empty body will force all the + # request fields to show up in the query_params. + pb_request = request_type.pb(request) + transcode_result = { + "uri": "v1/sample_method", + "method": "get", + "query_params": pb_request, + } + transcode.return_value = transcode_result + + response_value = Response() + response_value.status_code = 200 + + pb_return_value = compute.InstanceTemplateList.pb(return_value) + json_return_value = json_format.MessageToJson(pb_return_value) + + response_value._content = json_return_value.encode("UTF-8") + req.return_value = response_value + + response = client.list(request) + + expected_params = [] + actual_params = req.call_args.kwargs["params"] + assert expected_params == actual_params + + +def test_list_rest_unset_required_fields(): + transport = transports.RegionInstanceTemplatesRestTransport( + credentials=ga_credentials.AnonymousCredentials + ) + + unset_fields = transport.list._get_unset_required_fields({}) + assert set(unset_fields) == ( + set( + ( + "filter", + "maxResults", + "orderBy", + "pageToken", + "returnPartialSuccess", + ) + ) + & set( + ( + "project", + "region", + ) + ) + ) + + +@pytest.mark.parametrize("null_interceptor", [True, False]) +def test_list_rest_interceptors(null_interceptor): + transport = transports.RegionInstanceTemplatesRestTransport( + credentials=ga_credentials.AnonymousCredentials(), + interceptor=None + if null_interceptor + else transports.RegionInstanceTemplatesRestInterceptor(), + ) + client = RegionInstanceTemplatesClient(transport=transport) + with mock.patch.object( + type(client.transport._session), "request" + ) as req, mock.patch.object( + path_template, "transcode" + ) as transcode, mock.patch.object( + transports.RegionInstanceTemplatesRestInterceptor, "post_list" + ) as post, mock.patch.object( + transports.RegionInstanceTemplatesRestInterceptor, "pre_list" + ) as pre: + pre.assert_not_called() + post.assert_not_called() + pb_message = compute.ListRegionInstanceTemplatesRequest.pb( + compute.ListRegionInstanceTemplatesRequest() + ) + transcode.return_value = { + "method": "post", + "uri": "my_uri", + "body": pb_message, + "query_params": pb_message, + } + + req.return_value = Response() + req.return_value.status_code = 200 + req.return_value.request = PreparedRequest() + req.return_value._content = compute.InstanceTemplateList.to_json( + compute.InstanceTemplateList() + ) + + request = compute.ListRegionInstanceTemplatesRequest() + metadata = [ + ("key", "val"), + ("cephalopod", "squid"), + ] + pre.return_value = request, metadata + post.return_value = compute.InstanceTemplateList() + + client.list( + request, + metadata=[ + ("key", "val"), + ("cephalopod", "squid"), + ], + ) + + pre.assert_called_once() + post.assert_called_once() + + +def test_list_rest_bad_request( + transport: str = "rest", request_type=compute.ListRegionInstanceTemplatesRequest +): + client = RegionInstanceTemplatesClient( + credentials=ga_credentials.AnonymousCredentials(), + transport=transport, + ) + + # send a request that will satisfy transcoding + request_init = {"project": "sample1", "region": "sample2"} + request = request_type(**request_init) + + # Mock the http request call within the method and fake a BadRequest error. + with mock.patch.object(Session, "request") as req, pytest.raises( + core_exceptions.BadRequest + ): + # Wrap the value into a proper Response obj + response_value = Response() + response_value.status_code = 400 + response_value.request = Request() + req.return_value = response_value + client.list(request) + + +def test_list_rest_flattened(): + client = RegionInstanceTemplatesClient( + credentials=ga_credentials.AnonymousCredentials(), + transport="rest", + ) + + # Mock the http request call within the method and fake a response. + with mock.patch.object(type(client.transport._session), "request") as req: + # Designate an appropriate value for the returned response. + return_value = compute.InstanceTemplateList() + + # get arguments that satisfy an http rule for this method + sample_request = {"project": "sample1", "region": "sample2"} + + # get truthy value for each flattened field + mock_args = dict( + project="project_value", + region="region_value", + ) + mock_args.update(sample_request) + + # Wrap the value into a proper Response obj + response_value = Response() + response_value.status_code = 200 + pb_return_value = compute.InstanceTemplateList.pb(return_value) + json_return_value = json_format.MessageToJson(pb_return_value) + response_value._content = json_return_value.encode("UTF-8") + req.return_value = response_value + + client.list(**mock_args) + + # Establish that the underlying call was made with the expected + # request object values. + assert len(req.mock_calls) == 1 + _, args, _ = req.mock_calls[0] + assert path_template.validate( + "%s/compute/v1/projects/{project}/regions/{region}/instanceTemplates" + % client.transport._host, + args[1], + ) + + +def test_list_rest_flattened_error(transport: str = "rest"): + client = RegionInstanceTemplatesClient( + credentials=ga_credentials.AnonymousCredentials(), + transport=transport, + ) + + # Attempting to call a method with both a request object and flattened + # fields is an error. + with pytest.raises(ValueError): + client.list( + compute.ListRegionInstanceTemplatesRequest(), + project="project_value", + region="region_value", + ) + + +def test_list_rest_pager(transport: str = "rest"): + client = RegionInstanceTemplatesClient( + credentials=ga_credentials.AnonymousCredentials(), + transport=transport, + ) + + # Mock the http request call within the method and fake a response. + with mock.patch.object(Session, "request") as req: + # TODO(kbandes): remove this mock unless there's a good reason for it. + # with mock.patch.object(path_template, 'transcode') as transcode: + # Set the response as a series of pages + response = ( + compute.InstanceTemplateList( + items=[ + compute.InstanceTemplate(), + compute.InstanceTemplate(), + compute.InstanceTemplate(), + ], + next_page_token="abc", + ), + compute.InstanceTemplateList( + items=[], + next_page_token="def", + ), + compute.InstanceTemplateList( + items=[ + compute.InstanceTemplate(), + ], + next_page_token="ghi", + ), + compute.InstanceTemplateList( + items=[ + compute.InstanceTemplate(), + compute.InstanceTemplate(), + ], + ), + ) + # Two responses for two calls + response = response + response + + # Wrap the values into proper Response objs + response = tuple(compute.InstanceTemplateList.to_json(x) for x in response) + return_values = tuple(Response() for i in response) + for return_val, response_val in zip(return_values, response): + return_val._content = response_val.encode("UTF-8") + return_val.status_code = 200 + req.side_effect = return_values + + sample_request = {"project": "sample1", "region": "sample2"} + + pager = client.list(request=sample_request) + + results = list(pager) + assert len(results) == 6 + assert all(isinstance(i, compute.InstanceTemplate) for i in results) + + pages = list(client.list(request=sample_request).pages) + for page_, token in zip(pages, ["abc", "def", "ghi", ""]): + assert page_.raw_page.next_page_token == token + + +def test_credentials_transport_error(): + # It is an error to provide credentials and a transport instance. + transport = transports.RegionInstanceTemplatesRestTransport( + credentials=ga_credentials.AnonymousCredentials(), + ) + with pytest.raises(ValueError): + client = RegionInstanceTemplatesClient( + credentials=ga_credentials.AnonymousCredentials(), + transport=transport, + ) + + # It is an error to provide a credentials file and a transport instance. + transport = transports.RegionInstanceTemplatesRestTransport( + credentials=ga_credentials.AnonymousCredentials(), + ) + with pytest.raises(ValueError): + client = RegionInstanceTemplatesClient( + client_options={"credentials_file": "credentials.json"}, + transport=transport, + ) + + # It is an error to provide an api_key and a transport instance. + transport = transports.RegionInstanceTemplatesRestTransport( + credentials=ga_credentials.AnonymousCredentials(), + ) + options = client_options.ClientOptions() + options.api_key = "api_key" + with pytest.raises(ValueError): + client = RegionInstanceTemplatesClient( + client_options=options, + transport=transport, + ) + + # It is an error to provide an api_key and a credential. + options = mock.Mock() + options.api_key = "api_key" + with pytest.raises(ValueError): + client = RegionInstanceTemplatesClient( + client_options=options, credentials=ga_credentials.AnonymousCredentials() + ) + + # It is an error to provide scopes and a transport instance. + transport = transports.RegionInstanceTemplatesRestTransport( + credentials=ga_credentials.AnonymousCredentials(), + ) + with pytest.raises(ValueError): + client = RegionInstanceTemplatesClient( + client_options={"scopes": ["1", "2"]}, + transport=transport, + ) + + +def test_transport_instance(): + # A client may be instantiated with a custom transport instance. + transport = transports.RegionInstanceTemplatesRestTransport( + credentials=ga_credentials.AnonymousCredentials(), + ) + client = RegionInstanceTemplatesClient(transport=transport) + assert client.transport is transport + + +@pytest.mark.parametrize( + "transport_class", + [ + transports.RegionInstanceTemplatesRestTransport, + ], +) +def test_transport_adc(transport_class): + # Test default credentials are used if not provided. + with mock.patch.object(google.auth, "default") as adc: + adc.return_value = (ga_credentials.AnonymousCredentials(), None) + transport_class() + adc.assert_called_once() + + +@pytest.mark.parametrize( + "transport_name", + [ + "rest", + ], +) +def test_transport_kind(transport_name): + transport = RegionInstanceTemplatesClient.get_transport_class(transport_name)( + credentials=ga_credentials.AnonymousCredentials(), + ) + assert transport.kind == transport_name + + +def test_region_instance_templates_base_transport_error(): + # Passing both a credentials object and credentials_file should raise an error + with pytest.raises(core_exceptions.DuplicateCredentialArgs): + transport = transports.RegionInstanceTemplatesTransport( + credentials=ga_credentials.AnonymousCredentials(), + credentials_file="credentials.json", + ) + + +def test_region_instance_templates_base_transport(): + # Instantiate the base transport. + with mock.patch( + "google.cloud.compute_v1.services.region_instance_templates.transports.RegionInstanceTemplatesTransport.__init__" + ) as Transport: + Transport.return_value = None + transport = transports.RegionInstanceTemplatesTransport( + credentials=ga_credentials.AnonymousCredentials(), + ) + + # Every method on the transport should just blindly + # raise NotImplementedError. + methods = ( + "delete", + "get", + "insert", + "list", + ) + for method in methods: + with pytest.raises(NotImplementedError): + getattr(transport, method)(request=object()) + + with pytest.raises(NotImplementedError): + transport.close() + + # Catch all for all remaining methods and properties + remainder = [ + "kind", + ] + for r in remainder: + with pytest.raises(NotImplementedError): + getattr(transport, r)() + + +def test_region_instance_templates_base_transport_with_credentials_file(): + # Instantiate the base transport with a credentials file + with mock.patch.object( + google.auth, "load_credentials_from_file", autospec=True + ) as load_creds, mock.patch( + "google.cloud.compute_v1.services.region_instance_templates.transports.RegionInstanceTemplatesTransport._prep_wrapped_messages" + ) as Transport: + Transport.return_value = None + load_creds.return_value = (ga_credentials.AnonymousCredentials(), None) + transport = transports.RegionInstanceTemplatesTransport( + credentials_file="credentials.json", + quota_project_id="octopus", + ) + load_creds.assert_called_once_with( + "credentials.json", + scopes=None, + default_scopes=( + "https://www.googleapis.com/auth/compute", + "https://www.googleapis.com/auth/cloud-platform", + ), + quota_project_id="octopus", + ) + + +def test_region_instance_templates_base_transport_with_adc(): + # Test the default credentials are used if credentials and credentials_file are None. + with mock.patch.object(google.auth, "default", autospec=True) as adc, mock.patch( + "google.cloud.compute_v1.services.region_instance_templates.transports.RegionInstanceTemplatesTransport._prep_wrapped_messages" + ) as Transport: + Transport.return_value = None + adc.return_value = (ga_credentials.AnonymousCredentials(), None) + transport = transports.RegionInstanceTemplatesTransport() + adc.assert_called_once() + + +def test_region_instance_templates_auth_adc(): + # If no credentials are provided, we should use ADC credentials. + with mock.patch.object(google.auth, "default", autospec=True) as adc: + adc.return_value = (ga_credentials.AnonymousCredentials(), None) + RegionInstanceTemplatesClient() + adc.assert_called_once_with( + scopes=None, + default_scopes=( + "https://www.googleapis.com/auth/compute", + "https://www.googleapis.com/auth/cloud-platform", + ), + quota_project_id=None, + ) + + +def test_region_instance_templates_http_transport_client_cert_source_for_mtls(): + cred = ga_credentials.AnonymousCredentials() + with mock.patch( + "google.auth.transport.requests.AuthorizedSession.configure_mtls_channel" + ) as mock_configure_mtls_channel: + transports.RegionInstanceTemplatesRestTransport( + credentials=cred, client_cert_source_for_mtls=client_cert_source_callback + ) + mock_configure_mtls_channel.assert_called_once_with(client_cert_source_callback) + + +@pytest.mark.parametrize( + "transport_name", + [ + "rest", + ], +) +def test_region_instance_templates_host_no_port(transport_name): + client = RegionInstanceTemplatesClient( + credentials=ga_credentials.AnonymousCredentials(), + client_options=client_options.ClientOptions( + api_endpoint="compute.googleapis.com" + ), + transport=transport_name, + ) + assert client.transport._host == ( + "compute.googleapis.com:443" + if transport_name in ["grpc", "grpc_asyncio"] + else "https://compute.googleapis.com" + ) + + +@pytest.mark.parametrize( + "transport_name", + [ + "rest", + ], +) +def test_region_instance_templates_host_with_port(transport_name): + client = RegionInstanceTemplatesClient( + credentials=ga_credentials.AnonymousCredentials(), + client_options=client_options.ClientOptions( + api_endpoint="compute.googleapis.com:8000" + ), + transport=transport_name, + ) + assert client.transport._host == ( + "compute.googleapis.com:8000" + if transport_name in ["grpc", "grpc_asyncio"] + else "https://compute.googleapis.com:8000" + ) + + +@pytest.mark.parametrize( + "transport_name", + [ + "rest", + ], +) +def test_region_instance_templates_client_transport_session_collision(transport_name): + creds1 = ga_credentials.AnonymousCredentials() + creds2 = ga_credentials.AnonymousCredentials() + client1 = RegionInstanceTemplatesClient( + credentials=creds1, + transport=transport_name, + ) + client2 = RegionInstanceTemplatesClient( + credentials=creds2, + transport=transport_name, + ) + session1 = client1.transport.delete._session + session2 = client2.transport.delete._session + assert session1 != session2 + session1 = client1.transport.get._session + session2 = client2.transport.get._session + assert session1 != session2 + session1 = client1.transport.insert._session + session2 = client2.transport.insert._session + assert session1 != session2 + session1 = client1.transport.list._session + session2 = client2.transport.list._session + assert session1 != session2 + + +def test_common_billing_account_path(): + billing_account = "squid" + expected = "billingAccounts/{billing_account}".format( + billing_account=billing_account, + ) + actual = RegionInstanceTemplatesClient.common_billing_account_path(billing_account) + assert expected == actual + + +def test_parse_common_billing_account_path(): + expected = { + "billing_account": "clam", + } + path = RegionInstanceTemplatesClient.common_billing_account_path(**expected) + + # Check that the path construction is reversible. + actual = RegionInstanceTemplatesClient.parse_common_billing_account_path(path) + assert expected == actual + + +def test_common_folder_path(): + folder = "whelk" + expected = "folders/{folder}".format( + folder=folder, + ) + actual = RegionInstanceTemplatesClient.common_folder_path(folder) + assert expected == actual + + +def test_parse_common_folder_path(): + expected = { + "folder": "octopus", + } + path = RegionInstanceTemplatesClient.common_folder_path(**expected) + + # Check that the path construction is reversible. + actual = RegionInstanceTemplatesClient.parse_common_folder_path(path) + assert expected == actual + + +def test_common_organization_path(): + organization = "oyster" + expected = "organizations/{organization}".format( + organization=organization, + ) + actual = RegionInstanceTemplatesClient.common_organization_path(organization) + assert expected == actual + + +def test_parse_common_organization_path(): + expected = { + "organization": "nudibranch", + } + path = RegionInstanceTemplatesClient.common_organization_path(**expected) + + # Check that the path construction is reversible. + actual = RegionInstanceTemplatesClient.parse_common_organization_path(path) + assert expected == actual + + +def test_common_project_path(): + project = "cuttlefish" + expected = "projects/{project}".format( + project=project, + ) + actual = RegionInstanceTemplatesClient.common_project_path(project) + assert expected == actual + + +def test_parse_common_project_path(): + expected = { + "project": "mussel", + } + path = RegionInstanceTemplatesClient.common_project_path(**expected) + + # Check that the path construction is reversible. + actual = RegionInstanceTemplatesClient.parse_common_project_path(path) + assert expected == actual + + +def test_common_location_path(): + project = "winkle" + location = "nautilus" + expected = "projects/{project}/locations/{location}".format( + project=project, + location=location, + ) + actual = RegionInstanceTemplatesClient.common_location_path(project, location) + assert expected == actual + + +def test_parse_common_location_path(): + expected = { + "project": "scallop", + "location": "abalone", + } + path = RegionInstanceTemplatesClient.common_location_path(**expected) + + # Check that the path construction is reversible. + actual = RegionInstanceTemplatesClient.parse_common_location_path(path) + assert expected == actual + + +def test_client_with_default_client_info(): + client_info = gapic_v1.client_info.ClientInfo() + + with mock.patch.object( + transports.RegionInstanceTemplatesTransport, "_prep_wrapped_messages" + ) as prep: + client = RegionInstanceTemplatesClient( + credentials=ga_credentials.AnonymousCredentials(), + client_info=client_info, + ) + prep.assert_called_once_with(client_info) + + with mock.patch.object( + transports.RegionInstanceTemplatesTransport, "_prep_wrapped_messages" + ) as prep: + transport_class = RegionInstanceTemplatesClient.get_transport_class() + transport = transport_class( + credentials=ga_credentials.AnonymousCredentials(), + client_info=client_info, + ) + prep.assert_called_once_with(client_info) + + +def test_transport_close(): + transports = { + "rest": "_session", + } + + for transport, close_name in transports.items(): + client = RegionInstanceTemplatesClient( + credentials=ga_credentials.AnonymousCredentials(), transport=transport + ) + with mock.patch.object( + type(getattr(client.transport, close_name)), "close" + ) as close: + with client: + close.assert_not_called() + close.assert_called_once() + + +def test_client_ctx(): + transports = [ + "rest", + ] + for transport in transports: + client = RegionInstanceTemplatesClient( + credentials=ga_credentials.AnonymousCredentials(), transport=transport + ) + # Test client calls underlying transport. + with mock.patch.object(type(client.transport), "close") as close: + close.assert_not_called() + with client: + pass + close.assert_called() + + +@pytest.mark.parametrize( + "client_class,transport_class", + [ + ( + RegionInstanceTemplatesClient, + transports.RegionInstanceTemplatesRestTransport, + ), + ], +) +def test_api_key_credentials(client_class, transport_class): + with mock.patch.object( + google.auth._default, "get_api_key_credentials", create=True + ) as get_api_key_credentials: + mock_cred = mock.Mock() + get_api_key_credentials.return_value = mock_cred + options = client_options.ClientOptions() + options.api_key = "api_key" + with mock.patch.object(transport_class, "__init__") as patched: + patched.return_value = None + client = client_class(client_options=options) + patched.assert_called_once_with( + credentials=mock_cred, + credentials_file=None, + host=client.DEFAULT_ENDPOINT, + scopes=None, + client_cert_source_for_mtls=None, + quota_project_id=None, + client_info=transports.base.DEFAULT_CLIENT_INFO, + always_use_jwt_access=True, + api_audience=None, + ) diff --git a/tests/unit/gapic/compute_v1/test_region_security_policies.py b/tests/unit/gapic/compute_v1/test_region_security_policies.py index 3d17312e8..c17628a33 100644 --- a/tests/unit/gapic/compute_v1/test_region_security_policies.py +++ b/tests/unit/gapic/compute_v1/test_region_security_policies.py @@ -1633,6 +1633,23 @@ def test_insert_rest(request_type): }, "versioned_expr": "versioned_expr_value", }, + "preconfigured_waf_config": { + "exclusions": [ + { + "request_cookies_to_exclude": [ + {"op": "op_value", "val": "val_value"} + ], + "request_headers_to_exclude": {}, + "request_query_params_to_exclude": {}, + "request_uris_to_exclude": {}, + "target_rule_ids": [ + "target_rule_ids_value1", + "target_rule_ids_value2", + ], + "target_rule_set": "target_rule_set_value", + } + ] + }, "preview": True, "priority": 898, "rate_limit_options": { @@ -1948,6 +1965,23 @@ def test_insert_rest_bad_request( }, "versioned_expr": "versioned_expr_value", }, + "preconfigured_waf_config": { + "exclusions": [ + { + "request_cookies_to_exclude": [ + {"op": "op_value", "val": "val_value"} + ], + "request_headers_to_exclude": {}, + "request_query_params_to_exclude": {}, + "request_uris_to_exclude": {}, + "target_rule_ids": [ + "target_rule_ids_value1", + "target_rule_ids_value2", + ], + "target_rule_set": "target_rule_set_value", + } + ] + }, "preview": True, "priority": 898, "rate_limit_options": { @@ -2127,6 +2161,23 @@ def test_insert_unary_rest(request_type): }, "versioned_expr": "versioned_expr_value", }, + "preconfigured_waf_config": { + "exclusions": [ + { + "request_cookies_to_exclude": [ + {"op": "op_value", "val": "val_value"} + ], + "request_headers_to_exclude": {}, + "request_query_params_to_exclude": {}, + "request_uris_to_exclude": {}, + "target_rule_ids": [ + "target_rule_ids_value1", + "target_rule_ids_value2", + ], + "target_rule_set": "target_rule_set_value", + } + ] + }, "preview": True, "priority": 898, "rate_limit_options": { @@ -2420,6 +2471,23 @@ def test_insert_unary_rest_bad_request( }, "versioned_expr": "versioned_expr_value", }, + "preconfigured_waf_config": { + "exclusions": [ + { + "request_cookies_to_exclude": [ + {"op": "op_value", "val": "val_value"} + ], + "request_headers_to_exclude": {}, + "request_query_params_to_exclude": {}, + "request_uris_to_exclude": {}, + "target_rule_ids": [ + "target_rule_ids_value1", + "target_rule_ids_value2", + ], + "target_rule_set": "target_rule_set_value", + } + ] + }, "preview": True, "priority": 898, "rate_limit_options": { @@ -2962,6 +3030,23 @@ def test_patch_rest(request_type): }, "versioned_expr": "versioned_expr_value", }, + "preconfigured_waf_config": { + "exclusions": [ + { + "request_cookies_to_exclude": [ + {"op": "op_value", "val": "val_value"} + ], + "request_headers_to_exclude": {}, + "request_query_params_to_exclude": {}, + "request_uris_to_exclude": {}, + "target_rule_ids": [ + "target_rule_ids_value1", + "target_rule_ids_value2", + ], + "target_rule_set": "target_rule_set_value", + } + ] + }, "preview": True, "priority": 898, "rate_limit_options": { @@ -3276,6 +3361,23 @@ def test_patch_rest_bad_request( }, "versioned_expr": "versioned_expr_value", }, + "preconfigured_waf_config": { + "exclusions": [ + { + "request_cookies_to_exclude": [ + {"op": "op_value", "val": "val_value"} + ], + "request_headers_to_exclude": {}, + "request_query_params_to_exclude": {}, + "request_uris_to_exclude": {}, + "target_rule_ids": [ + "target_rule_ids_value1", + "target_rule_ids_value2", + ], + "target_rule_set": "target_rule_set_value", + } + ] + }, "preview": True, "priority": 898, "rate_limit_options": { @@ -3465,6 +3567,23 @@ def test_patch_unary_rest(request_type): }, "versioned_expr": "versioned_expr_value", }, + "preconfigured_waf_config": { + "exclusions": [ + { + "request_cookies_to_exclude": [ + {"op": "op_value", "val": "val_value"} + ], + "request_headers_to_exclude": {}, + "request_query_params_to_exclude": {}, + "request_uris_to_exclude": {}, + "target_rule_ids": [ + "target_rule_ids_value1", + "target_rule_ids_value2", + ], + "target_rule_set": "target_rule_set_value", + } + ] + }, "preview": True, "priority": 898, "rate_limit_options": { @@ -3757,6 +3876,23 @@ def test_patch_unary_rest_bad_request( }, "versioned_expr": "versioned_expr_value", }, + "preconfigured_waf_config": { + "exclusions": [ + { + "request_cookies_to_exclude": [ + {"op": "op_value", "val": "val_value"} + ], + "request_headers_to_exclude": {}, + "request_query_params_to_exclude": {}, + "request_uris_to_exclude": {}, + "target_rule_ids": [ + "target_rule_ids_value1", + "target_rule_ids_value2", + ], + "target_rule_set": "target_rule_set_value", + } + ] + }, "preview": True, "priority": 898, "rate_limit_options": { diff --git a/tests/unit/gapic/compute_v1/test_security_policies.py b/tests/unit/gapic/compute_v1/test_security_policies.py index 20b0a8d2a..6c9788dea 100644 --- a/tests/unit/gapic/compute_v1/test_security_policies.py +++ b/tests/unit/gapic/compute_v1/test_security_policies.py @@ -617,6 +617,23 @@ def test_add_rule_rest(request_type): }, "versioned_expr": "versioned_expr_value", }, + "preconfigured_waf_config": { + "exclusions": [ + { + "request_cookies_to_exclude": [ + {"op": "op_value", "val": "val_value"} + ], + "request_headers_to_exclude": {}, + "request_query_params_to_exclude": {}, + "request_uris_to_exclude": {}, + "target_rule_ids": [ + "target_rule_ids_value1", + "target_rule_ids_value2", + ], + "target_rule_set": "target_rule_set_value", + } + ] + }, "preview": True, "priority": 898, "rate_limit_options": { @@ -891,6 +908,23 @@ def test_add_rule_rest_bad_request( }, "versioned_expr": "versioned_expr_value", }, + "preconfigured_waf_config": { + "exclusions": [ + { + "request_cookies_to_exclude": [ + {"op": "op_value", "val": "val_value"} + ], + "request_headers_to_exclude": {}, + "request_query_params_to_exclude": {}, + "request_uris_to_exclude": {}, + "target_rule_ids": [ + "target_rule_ids_value1", + "target_rule_ids_value2", + ], + "target_rule_set": "target_rule_set_value", + } + ] + }, "preview": True, "priority": 898, "rate_limit_options": { @@ -1031,6 +1065,23 @@ def test_add_rule_unary_rest(request_type): }, "versioned_expr": "versioned_expr_value", }, + "preconfigured_waf_config": { + "exclusions": [ + { + "request_cookies_to_exclude": [ + {"op": "op_value", "val": "val_value"} + ], + "request_headers_to_exclude": {}, + "request_query_params_to_exclude": {}, + "request_uris_to_exclude": {}, + "target_rule_ids": [ + "target_rule_ids_value1", + "target_rule_ids_value2", + ], + "target_rule_set": "target_rule_set_value", + } + ] + }, "preview": True, "priority": 898, "rate_limit_options": { @@ -1283,6 +1334,23 @@ def test_add_rule_unary_rest_bad_request( }, "versioned_expr": "versioned_expr_value", }, + "preconfigured_waf_config": { + "exclusions": [ + { + "request_cookies_to_exclude": [ + {"op": "op_value", "val": "val_value"} + ], + "request_headers_to_exclude": {}, + "request_query_params_to_exclude": {}, + "request_uris_to_exclude": {}, + "target_rule_ids": [ + "target_rule_ids_value1", + "target_rule_ids_value2", + ], + "target_rule_set": "target_rule_set_value", + } + ] + }, "preview": True, "priority": 898, "rate_limit_options": { @@ -3032,6 +3100,23 @@ def test_insert_rest(request_type): }, "versioned_expr": "versioned_expr_value", }, + "preconfigured_waf_config": { + "exclusions": [ + { + "request_cookies_to_exclude": [ + {"op": "op_value", "val": "val_value"} + ], + "request_headers_to_exclude": {}, + "request_query_params_to_exclude": {}, + "request_uris_to_exclude": {}, + "target_rule_ids": [ + "target_rule_ids_value1", + "target_rule_ids_value2", + ], + "target_rule_set": "target_rule_set_value", + } + ] + }, "preview": True, "priority": 898, "rate_limit_options": { @@ -3340,6 +3425,23 @@ def test_insert_rest_bad_request( }, "versioned_expr": "versioned_expr_value", }, + "preconfigured_waf_config": { + "exclusions": [ + { + "request_cookies_to_exclude": [ + {"op": "op_value", "val": "val_value"} + ], + "request_headers_to_exclude": {}, + "request_query_params_to_exclude": {}, + "request_uris_to_exclude": {}, + "target_rule_ids": [ + "target_rule_ids_value1", + "target_rule_ids_value2", + ], + "target_rule_set": "target_rule_set_value", + } + ] + }, "preview": True, "priority": 898, "rate_limit_options": { @@ -3517,6 +3619,23 @@ def test_insert_unary_rest(request_type): }, "versioned_expr": "versioned_expr_value", }, + "preconfigured_waf_config": { + "exclusions": [ + { + "request_cookies_to_exclude": [ + {"op": "op_value", "val": "val_value"} + ], + "request_headers_to_exclude": {}, + "request_query_params_to_exclude": {}, + "request_uris_to_exclude": {}, + "target_rule_ids": [ + "target_rule_ids_value1", + "target_rule_ids_value2", + ], + "target_rule_set": "target_rule_set_value", + } + ] + }, "preview": True, "priority": 898, "rate_limit_options": { @@ -3805,6 +3924,23 @@ def test_insert_unary_rest_bad_request( }, "versioned_expr": "versioned_expr_value", }, + "preconfigured_waf_config": { + "exclusions": [ + { + "request_cookies_to_exclude": [ + {"op": "op_value", "val": "val_value"} + ], + "request_headers_to_exclude": {}, + "request_query_params_to_exclude": {}, + "request_uris_to_exclude": {}, + "target_rule_ids": [ + "target_rule_ids_value1", + "target_rule_ids_value2", + ], + "target_rule_set": "target_rule_set_value", + } + ] + }, "preview": True, "priority": 898, "rate_limit_options": { @@ -4639,6 +4775,23 @@ def test_patch_rest(request_type): }, "versioned_expr": "versioned_expr_value", }, + "preconfigured_waf_config": { + "exclusions": [ + { + "request_cookies_to_exclude": [ + {"op": "op_value", "val": "val_value"} + ], + "request_headers_to_exclude": {}, + "request_query_params_to_exclude": {}, + "request_uris_to_exclude": {}, + "target_rule_ids": [ + "target_rule_ids_value1", + "target_rule_ids_value2", + ], + "target_rule_set": "target_rule_set_value", + } + ] + }, "preview": True, "priority": 898, "rate_limit_options": { @@ -4942,6 +5095,23 @@ def test_patch_rest_bad_request( }, "versioned_expr": "versioned_expr_value", }, + "preconfigured_waf_config": { + "exclusions": [ + { + "request_cookies_to_exclude": [ + {"op": "op_value", "val": "val_value"} + ], + "request_headers_to_exclude": {}, + "request_query_params_to_exclude": {}, + "request_uris_to_exclude": {}, + "target_rule_ids": [ + "target_rule_ids_value1", + "target_rule_ids_value2", + ], + "target_rule_set": "target_rule_set_value", + } + ] + }, "preview": True, "priority": 898, "rate_limit_options": { @@ -5121,6 +5291,23 @@ def test_patch_unary_rest(request_type): }, "versioned_expr": "versioned_expr_value", }, + "preconfigured_waf_config": { + "exclusions": [ + { + "request_cookies_to_exclude": [ + {"op": "op_value", "val": "val_value"} + ], + "request_headers_to_exclude": {}, + "request_query_params_to_exclude": {}, + "request_uris_to_exclude": {}, + "target_rule_ids": [ + "target_rule_ids_value1", + "target_rule_ids_value2", + ], + "target_rule_set": "target_rule_set_value", + } + ] + }, "preview": True, "priority": 898, "rate_limit_options": { @@ -5404,6 +5591,23 @@ def test_patch_unary_rest_bad_request( }, "versioned_expr": "versioned_expr_value", }, + "preconfigured_waf_config": { + "exclusions": [ + { + "request_cookies_to_exclude": [ + {"op": "op_value", "val": "val_value"} + ], + "request_headers_to_exclude": {}, + "request_query_params_to_exclude": {}, + "request_uris_to_exclude": {}, + "target_rule_ids": [ + "target_rule_ids_value1", + "target_rule_ids_value2", + ], + "target_rule_set": "target_rule_set_value", + } + ] + }, "preview": True, "priority": 898, "rate_limit_options": { @@ -5556,6 +5760,23 @@ def test_patch_rule_rest(request_type): }, "versioned_expr": "versioned_expr_value", }, + "preconfigured_waf_config": { + "exclusions": [ + { + "request_cookies_to_exclude": [ + {"op": "op_value", "val": "val_value"} + ], + "request_headers_to_exclude": {}, + "request_query_params_to_exclude": {}, + "request_uris_to_exclude": {}, + "target_rule_ids": [ + "target_rule_ids_value1", + "target_rule_ids_value2", + ], + "target_rule_set": "target_rule_set_value", + } + ] + }, "preview": True, "priority": 898, "rate_limit_options": { @@ -5840,6 +6061,23 @@ def test_patch_rule_rest_bad_request( }, "versioned_expr": "versioned_expr_value", }, + "preconfigured_waf_config": { + "exclusions": [ + { + "request_cookies_to_exclude": [ + {"op": "op_value", "val": "val_value"} + ], + "request_headers_to_exclude": {}, + "request_query_params_to_exclude": {}, + "request_uris_to_exclude": {}, + "target_rule_ids": [ + "target_rule_ids_value1", + "target_rule_ids_value2", + ], + "target_rule_set": "target_rule_set_value", + } + ] + }, "preview": True, "priority": 898, "rate_limit_options": { @@ -5980,6 +6218,23 @@ def test_patch_rule_unary_rest(request_type): }, "versioned_expr": "versioned_expr_value", }, + "preconfigured_waf_config": { + "exclusions": [ + { + "request_cookies_to_exclude": [ + {"op": "op_value", "val": "val_value"} + ], + "request_headers_to_exclude": {}, + "request_query_params_to_exclude": {}, + "request_uris_to_exclude": {}, + "target_rule_ids": [ + "target_rule_ids_value1", + "target_rule_ids_value2", + ], + "target_rule_set": "target_rule_set_value", + } + ] + }, "preview": True, "priority": 898, "rate_limit_options": { @@ -6242,6 +6497,23 @@ def test_patch_rule_unary_rest_bad_request( }, "versioned_expr": "versioned_expr_value", }, + "preconfigured_waf_config": { + "exclusions": [ + { + "request_cookies_to_exclude": [ + {"op": "op_value", "val": "val_value"} + ], + "request_headers_to_exclude": {}, + "request_query_params_to_exclude": {}, + "request_uris_to_exclude": {}, + "target_rule_ids": [ + "target_rule_ids_value1", + "target_rule_ids_value2", + ], + "target_rule_set": "target_rule_set_value", + } + ] + }, "preview": True, "priority": 898, "rate_limit_options": { From 54636e1f39d2a927ed6aeee5aaebd724450369a4 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Thu, 16 Mar 2023 12:44:17 +0000 Subject: [PATCH 4/7] chore(deps): Update nox in .kokoro/requirements.in [autoapprove] (#402) Source-Link: https://togithub.com/googleapis/synthtool/commit/92006bb3cdc84677aa93c7f5235424ec2b157146 Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:2e247c7bf5154df7f98cce087a20ca7605e236340c7d6d1a14447e5c06791bd6 --- .github/.OwlBot.lock.yaml | 3 +-- .kokoro/requirements.in | 2 +- .kokoro/requirements.txt | 14 +++++--------- 3 files changed, 7 insertions(+), 12 deletions(-) diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml index 33a473d58..b8edda51c 100644 --- a/.github/.OwlBot.lock.yaml +++ b/.github/.OwlBot.lock.yaml @@ -13,5 +13,4 @@ # limitations under the License. docker: image: gcr.io/cloud-devrel-public-resources/owlbot-python:latest - digest: sha256:8555f0e37e6261408f792bfd6635102d2da5ad73f8f09bcb24f25e6afb5fac97 - + digest: sha256:2e247c7bf5154df7f98cce087a20ca7605e236340c7d6d1a14447e5c06791bd6 diff --git a/.kokoro/requirements.in b/.kokoro/requirements.in index 882178ce6..ec867d9fd 100644 --- a/.kokoro/requirements.in +++ b/.kokoro/requirements.in @@ -5,6 +5,6 @@ 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 fa99c1290..66a2172a7 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 # @@ -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 From acc70b87f28251cd5cee1b585cb82b4185c9d6ea Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Tue, 21 Mar 2023 09:15:21 -0400 Subject: [PATCH 5/7] feat: Update Compute Engine API to revision 20230307 (#786) (#403) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * feat: Update Compute Engine API to revision 20230307 (#786) Source-Link: https://github.com/googleapis/googleapis/commit/f64a3c8418e2e4e493b6a432220d774e7942141a Source-Link: https://github.com/googleapis/googleapis-gen/commit/808541b7e7697e2984a0ea0eba1adb5560dade97 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiODA4NTQxYjdlNzY5N2UyOTg0YTBlYTBlYmExYWRiNTU2MGRhZGU5NyJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- google/cloud/compute/__init__.py | 4 + google/cloud/compute_v1/__init__.py | 4 + google/cloud/compute_v1/gapic_metadata.json | 5 + .../compute_v1/services/node_groups/client.py | 277 +++++++ .../services/node_groups/transports/base.py | 14 + .../services/node_groups/transports/rest.py | 157 ++++ google/cloud/compute_v1/types/__init__.py | 4 + google/cloud/compute_v1/types/compute.py | 89 ++- .../unit/gapic/compute_v1/test_node_groups.py | 682 ++++++++++++++++++ 9 files changed, 1232 insertions(+), 4 deletions(-) diff --git a/google/cloud/compute/__init__.py b/google/cloud/compute/__init__.py index 853aec1a7..41dcd4d33 100644 --- a/google/cloud/compute/__init__.py +++ b/google/cloud/compute/__init__.py @@ -1029,6 +1029,7 @@ NodeGroupsListNodes, NodeGroupsScopedList, NodeGroupsSetNodeTemplateRequest, + NodeGroupsSimulateMaintenanceEventRequest, NodeTemplate, NodeTemplateAggregatedList, NodeTemplateList, @@ -1365,6 +1366,7 @@ ShieldedInstanceIntegrityPolicy, SignedUrlKey, SimulateMaintenanceEventInstanceRequest, + SimulateMaintenanceEventNodeGroupRequest, Snapshot, SnapshotList, SourceDiskEncryptionKey, @@ -2449,6 +2451,7 @@ "NodeGroupsListNodes", "NodeGroupsScopedList", "NodeGroupsSetNodeTemplateRequest", + "NodeGroupsSimulateMaintenanceEventRequest", "NodeTemplate", "NodeTemplateAggregatedList", "NodeTemplateList", @@ -2785,6 +2788,7 @@ "ShieldedInstanceIntegrityPolicy", "SignedUrlKey", "SimulateMaintenanceEventInstanceRequest", + "SimulateMaintenanceEventNodeGroupRequest", "Snapshot", "SnapshotList", "SourceDiskEncryptionKey", diff --git a/google/cloud/compute_v1/__init__.py b/google/cloud/compute_v1/__init__.py index 5aa96998f..8e991e838 100644 --- a/google/cloud/compute_v1/__init__.py +++ b/google/cloud/compute_v1/__init__.py @@ -925,6 +925,7 @@ NodeGroupsListNodes, NodeGroupsScopedList, NodeGroupsSetNodeTemplateRequest, + NodeGroupsSimulateMaintenanceEventRequest, NodeTemplate, NodeTemplateAggregatedList, NodeTemplateList, @@ -1261,6 +1262,7 @@ ShieldedInstanceIntegrityPolicy, SignedUrlKey, SimulateMaintenanceEventInstanceRequest, + SimulateMaintenanceEventNodeGroupRequest, Snapshot, SnapshotList, SourceDiskEncryptionKey, @@ -2293,6 +2295,7 @@ "NodeGroupsListNodes", "NodeGroupsScopedList", "NodeGroupsSetNodeTemplateRequest", + "NodeGroupsSimulateMaintenanceEventRequest", "NodeTemplate", "NodeTemplateAggregatedList", "NodeTemplateList", @@ -2665,6 +2668,7 @@ "ShieldedInstanceIntegrityPolicy", "SignedUrlKey", "SimulateMaintenanceEventInstanceRequest", + "SimulateMaintenanceEventNodeGroupRequest", "Snapshot", "SnapshotList", "SnapshotsClient", diff --git a/google/cloud/compute_v1/gapic_metadata.json b/google/cloud/compute_v1/gapic_metadata.json index b64a921f2..471015961 100644 --- a/google/cloud/compute_v1/gapic_metadata.json +++ b/google/cloud/compute_v1/gapic_metadata.json @@ -1954,6 +1954,11 @@ "set_node_template" ] }, + "SimulateMaintenanceEvent": { + "methods": [ + "simulate_maintenance_event" + ] + }, "TestIamPermissions": { "methods": [ "test_iam_permissions" diff --git a/google/cloud/compute_v1/services/node_groups/client.py b/google/cloud/compute_v1/services/node_groups/client.py index 8db1836a1..d5b6c1867 100644 --- a/google/cloud/compute_v1/services/node_groups/client.py +++ b/google/cloud/compute_v1/services/node_groups/client.py @@ -2601,6 +2601,283 @@ def error_code(self): # Done; return the response. return response + def simulate_maintenance_event_unary( + self, + request: Optional[ + Union[compute.SimulateMaintenanceEventNodeGroupRequest, dict] + ] = None, + *, + project: Optional[str] = None, + zone: Optional[str] = None, + node_group: Optional[str] = None, + node_groups_simulate_maintenance_event_request_resource: Optional[ + compute.NodeGroupsSimulateMaintenanceEventRequest + ] = None, + retry: OptionalRetry = gapic_v1.method.DEFAULT, + timeout: Union[float, object] = gapic_v1.method.DEFAULT, + metadata: Sequence[Tuple[str, str]] = (), + ) -> compute.Operation: + r"""Simulates maintenance event on specified nodes from + the node group. + + Args: + request (Union[google.cloud.compute_v1.types.SimulateMaintenanceEventNodeGroupRequest, dict]): + The request object. A request message for + NodeGroups.SimulateMaintenanceEvent. See the method + description for details. + project (str): + Project ID for this request. + This corresponds to the ``project`` field + on the ``request`` instance; if ``request`` is provided, this + should not be set. + zone (str): + The name of the zone for this + request. + + This corresponds to the ``zone`` field + on the ``request`` instance; if ``request`` is provided, this + should not be set. + node_group (str): + Name of the NodeGroup resource whose + nodes will go under maintenance + simulation. + + This corresponds to the ``node_group`` field + on the ``request`` instance; if ``request`` is provided, this + should not be set. + node_groups_simulate_maintenance_event_request_resource (google.cloud.compute_v1.types.NodeGroupsSimulateMaintenanceEventRequest): + The body resource for this request + This corresponds to the ``node_groups_simulate_maintenance_event_request_resource`` field + on the ``request`` instance; if ``request`` is provided, this + should not be set. + retry (google.api_core.retry.Retry): Designation of what errors, if any, + should be retried. + timeout (float): The timeout for this request. + metadata (Sequence[Tuple[str, str]]): Strings which should be + sent along with the request as metadata. + + Returns: + google.api_core.extended_operation.ExtendedOperation: + An object representing a extended + long-running operation. + + """ + # Create or coerce a protobuf request object. + # Quick check: If we got a request object, we should *not* have + # gotten any keyword arguments that map to the request. + has_flattened_params = any( + [ + project, + zone, + node_group, + node_groups_simulate_maintenance_event_request_resource, + ] + ) + if request is not None and has_flattened_params: + raise ValueError( + "If the `request` argument is set, then none of " + "the individual field arguments should be set." + ) + + # Minor optimization to avoid making a copy if the user passes + # in a compute.SimulateMaintenanceEventNodeGroupRequest. + # There's no risk of modifying the input as we've already verified + # there are no flattened fields. + if not isinstance(request, compute.SimulateMaintenanceEventNodeGroupRequest): + request = compute.SimulateMaintenanceEventNodeGroupRequest(request) + # If we have keyword arguments corresponding to fields on the + # request, apply these. + if project is not None: + request.project = project + if zone is not None: + request.zone = zone + if node_group is not None: + request.node_group = node_group + if node_groups_simulate_maintenance_event_request_resource is not None: + request.node_groups_simulate_maintenance_event_request_resource = ( + node_groups_simulate_maintenance_event_request_resource + ) + + # Wrap the RPC method; this adds retry and timeout information, + # and friendly error handling. + rpc = self._transport._wrapped_methods[ + self._transport.simulate_maintenance_event + ] + + # Certain fields should be provided within the metadata header; + # add these here. + metadata = tuple(metadata) + ( + gapic_v1.routing_header.to_grpc_metadata( + ( + ("project", request.project), + ("zone", request.zone), + ("node_group", request.node_group), + ) + ), + ) + + # Send the request. + response = rpc( + request, + retry=retry, + timeout=timeout, + metadata=metadata, + ) + + # Done; return the response. + return response + + def simulate_maintenance_event( + self, + request: Optional[ + Union[compute.SimulateMaintenanceEventNodeGroupRequest, dict] + ] = None, + *, + project: Optional[str] = None, + zone: Optional[str] = None, + node_group: Optional[str] = None, + node_groups_simulate_maintenance_event_request_resource: Optional[ + compute.NodeGroupsSimulateMaintenanceEventRequest + ] = None, + retry: OptionalRetry = gapic_v1.method.DEFAULT, + timeout: Union[float, object] = gapic_v1.method.DEFAULT, + metadata: Sequence[Tuple[str, str]] = (), + ) -> extended_operation.ExtendedOperation: + r"""Simulates maintenance event on specified nodes from + the node group. + + Args: + request (Union[google.cloud.compute_v1.types.SimulateMaintenanceEventNodeGroupRequest, dict]): + The request object. A request message for + NodeGroups.SimulateMaintenanceEvent. See the method + description for details. + project (str): + Project ID for this request. + This corresponds to the ``project`` field + on the ``request`` instance; if ``request`` is provided, this + should not be set. + zone (str): + The name of the zone for this + request. + + This corresponds to the ``zone`` field + on the ``request`` instance; if ``request`` is provided, this + should not be set. + node_group (str): + Name of the NodeGroup resource whose + nodes will go under maintenance + simulation. + + This corresponds to the ``node_group`` field + on the ``request`` instance; if ``request`` is provided, this + should not be set. + node_groups_simulate_maintenance_event_request_resource (google.cloud.compute_v1.types.NodeGroupsSimulateMaintenanceEventRequest): + The body resource for this request + This corresponds to the ``node_groups_simulate_maintenance_event_request_resource`` field + on the ``request`` instance; if ``request`` is provided, this + should not be set. + retry (google.api_core.retry.Retry): Designation of what errors, if any, + should be retried. + timeout (float): The timeout for this request. + metadata (Sequence[Tuple[str, str]]): Strings which should be + sent along with the request as metadata. + + Returns: + google.api_core.extended_operation.ExtendedOperation: + An object representing a extended + long-running operation. + + """ + # Create or coerce a protobuf request object. + # Quick check: If we got a request object, we should *not* have + # gotten any keyword arguments that map to the request. + has_flattened_params = any( + [ + project, + zone, + node_group, + node_groups_simulate_maintenance_event_request_resource, + ] + ) + if request is not None and has_flattened_params: + raise ValueError( + "If the `request` argument is set, then none of " + "the individual field arguments should be set." + ) + + # Minor optimization to avoid making a copy if the user passes + # in a compute.SimulateMaintenanceEventNodeGroupRequest. + # There's no risk of modifying the input as we've already verified + # there are no flattened fields. + if not isinstance(request, compute.SimulateMaintenanceEventNodeGroupRequest): + request = compute.SimulateMaintenanceEventNodeGroupRequest(request) + # If we have keyword arguments corresponding to fields on the + # request, apply these. + if project is not None: + request.project = project + if zone is not None: + request.zone = zone + if node_group is not None: + request.node_group = node_group + if node_groups_simulate_maintenance_event_request_resource is not None: + request.node_groups_simulate_maintenance_event_request_resource = ( + node_groups_simulate_maintenance_event_request_resource + ) + + # Wrap the RPC method; this adds retry and timeout information, + # and friendly error handling. + rpc = self._transport._wrapped_methods[ + self._transport.simulate_maintenance_event + ] + + # Certain fields should be provided within the metadata header; + # add these here. + metadata = tuple(metadata) + ( + gapic_v1.routing_header.to_grpc_metadata( + ( + ("project", request.project), + ("zone", request.zone), + ("node_group", request.node_group), + ) + ), + ) + + # Send the request. + response = rpc( + request, + retry=retry, + timeout=timeout, + metadata=metadata, + ) + + operation_service = self._transport._zone_operations_client + operation_request = compute.GetZoneOperationRequest() + operation_request.project = request.project + operation_request.zone = request.zone + operation_request.operation = response.name + + get_operation = functools.partial(operation_service.get, operation_request) + # Cancel is not part of extended operations yet. + cancel_operation = lambda: None + + # Note: this class is an implementation detail to provide a uniform + # set of names for certain fields in the extended operation proto message. + # See google.api_core.extended_operation.ExtendedOperation for details + # on these properties and the expected interface. + class _CustomOperation(extended_operation.ExtendedOperation): + @property + def error_message(self): + return self._extended_operation.http_error_message + + @property + def error_code(self): + return self._extended_operation.http_error_status_code + + response = _CustomOperation.make(get_operation, cancel_operation, response) + + # Done; return the response. + return response + def test_iam_permissions( self, request: Optional[ diff --git a/google/cloud/compute_v1/services/node_groups/transports/base.py b/google/cloud/compute_v1/services/node_groups/transports/base.py index 0e46897e5..10f618915 100644 --- a/google/cloud/compute_v1/services/node_groups/transports/base.py +++ b/google/cloud/compute_v1/services/node_groups/transports/base.py @@ -187,6 +187,11 @@ def _prep_wrapped_messages(self, client_info): default_timeout=None, client_info=client_info, ), + self.simulate_maintenance_event: gapic_v1.method.wrap_method( + self.simulate_maintenance_event, + default_timeout=None, + client_info=client_info, + ), self.test_iam_permissions: gapic_v1.method.wrap_method( self.test_iam_permissions, default_timeout=None, @@ -313,6 +318,15 @@ def set_node_template( ]: raise NotImplementedError() + @property + def simulate_maintenance_event( + self, + ) -> Callable[ + [compute.SimulateMaintenanceEventNodeGroupRequest], + Union[compute.Operation, Awaitable[compute.Operation]], + ]: + raise NotImplementedError() + @property def test_iam_permissions( self, diff --git a/google/cloud/compute_v1/services/node_groups/transports/rest.py b/google/cloud/compute_v1/services/node_groups/transports/rest.py index b9c3fa3f1..74df9b929 100644 --- a/google/cloud/compute_v1/services/node_groups/transports/rest.py +++ b/google/cloud/compute_v1/services/node_groups/transports/rest.py @@ -159,6 +159,14 @@ def post_set_node_template(self, response): logging.log(f"Received response: {response}") return response + def pre_simulate_maintenance_event(self, request, metadata): + logging.log(f"Received request: {request}") + return request, metadata + + def post_simulate_maintenance_event(self, response): + logging.log(f"Received response: {response}") + return response + def pre_test_iam_permissions(self, request, metadata): logging.log(f"Received request: {request}") return request, metadata @@ -427,6 +435,31 @@ def post_set_node_template(self, response: compute.Operation) -> compute.Operati """ return response + def pre_simulate_maintenance_event( + self, + request: compute.SimulateMaintenanceEventNodeGroupRequest, + metadata: Sequence[Tuple[str, str]], + ) -> Tuple[ + compute.SimulateMaintenanceEventNodeGroupRequest, Sequence[Tuple[str, str]] + ]: + """Pre-rpc interceptor for simulate_maintenance_event + + Override in a subclass to manipulate the request or metadata + before they are sent to the NodeGroups server. + """ + return request, metadata + + def post_simulate_maintenance_event( + self, response: compute.Operation + ) -> compute.Operation: + """Post-rpc interceptor for simulate_maintenance_event + + Override in a subclass to manipulate the response + after it is returned by the NodeGroups server but before + it is returned to user code. + """ + return response + def pre_test_iam_permissions( self, request: compute.TestIamPermissionsNodeGroupRequest, @@ -1838,6 +1871,120 @@ def __call__( resp = self._interceptor.post_set_node_template(resp) return resp + class _SimulateMaintenanceEvent(NodeGroupsRestStub): + def __hash__(self): + return hash("SimulateMaintenanceEvent") + + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} + + @classmethod + def _get_unset_required_fields(cls, message_dict): + return { + k: v + for k, v in cls.__REQUIRED_FIELDS_DEFAULT_VALUES.items() + if k not in message_dict + } + + def __call__( + self, + request: compute.SimulateMaintenanceEventNodeGroupRequest, + *, + retry: OptionalRetry = gapic_v1.method.DEFAULT, + timeout: Optional[float] = None, + metadata: Sequence[Tuple[str, str]] = (), + ) -> compute.Operation: + r"""Call the simulate maintenance + event method over HTTP. + + Args: + request (~.compute.SimulateMaintenanceEventNodeGroupRequest): + The request object. A request message for + NodeGroups.SimulateMaintenanceEvent. See + the method description for details. + + retry (google.api_core.retry.Retry): Designation of what errors, if any, + should be retried. + timeout (float): The timeout for this request. + metadata (Sequence[Tuple[str, str]]): Strings which should be + sent along with the request as metadata. + + Returns: + ~.compute.Operation: + Represents an Operation resource. Google Compute Engine + has three Operation resources: \* + `Global `__ + \* + `Regional `__ + \* + `Zonal `__ + You can use an operation resource to manage asynchronous + API requests. For more information, read Handling API + responses. Operations can be global, regional or zonal. + - For global operations, use the ``globalOperations`` + resource. - For regional operations, use the + ``regionOperations`` resource. - For zonal operations, + use the ``zonalOperations`` resource. For more + information, read Global, Regional, and Zonal Resources. + + """ + + http_options: List[Dict[str, str]] = [ + { + "method": "post", + "uri": "/compute/v1/projects/{project}/zones/{zone}/nodeGroups/{node_group}/simulateMaintenanceEvent", + "body": "node_groups_simulate_maintenance_event_request_resource", + }, + ] + request, metadata = self._interceptor.pre_simulate_maintenance_event( + request, metadata + ) + pb_request = compute.SimulateMaintenanceEventNodeGroupRequest.pb(request) + transcoded_request = path_template.transcode(http_options, pb_request) + + # Jsonify the request body + + body = json_format.MessageToJson( + transcoded_request["body"], + including_default_value_fields=False, + use_integers_for_enums=False, + ) + uri = transcoded_request["uri"] + method = transcoded_request["method"] + + # Jsonify the query params + query_params = json.loads( + json_format.MessageToJson( + transcoded_request["query_params"], + including_default_value_fields=False, + use_integers_for_enums=False, + ) + ) + query_params.update(self._get_unset_required_fields(query_params)) + + # Send the request + headers = dict(metadata) + headers["Content-Type"] = "application/json" + response = getattr(self._session, method)( + "{host}{uri}".format(host=self._host, uri=uri), + timeout=timeout, + headers=headers, + params=rest_helpers.flatten_query_params(query_params, strict=True), + data=body, + ) + + # In case of error, raise the appropriate core_exceptions.GoogleAPICallError exception + # subclass. + if response.status_code >= 400: + raise core_exceptions.from_http_response(response) + + # Return the response + resp = compute.Operation() + pb_resp = compute.Operation.pb(resp) + + json_format.Parse(response.content, pb_resp, ignore_unknown_fields=True) + resp = self._interceptor.post_simulate_maintenance_event(resp) + return resp + class _TestIamPermissions(NodeGroupsRestStub): def __hash__(self): return hash("TestIamPermissions") @@ -2024,6 +2171,16 @@ def set_node_template( # In C++ this would require a dynamic_cast return self._SetNodeTemplate(self._session, self._host, self._interceptor) # type: ignore + @property + def simulate_maintenance_event( + self, + ) -> Callable[ + [compute.SimulateMaintenanceEventNodeGroupRequest], compute.Operation + ]: + # The return type is fine, but mypy isn't sophisticated enough to determine what's going on here. + # In C++ this would require a dynamic_cast + return self._SimulateMaintenanceEvent(self._session, self._host, self._interceptor) # type: ignore + @property def test_iam_permissions( self, diff --git a/google/cloud/compute_v1/types/__init__.py b/google/cloud/compute_v1/types/__init__.py index f60557898..2b5dc2eaf 100644 --- a/google/cloud/compute_v1/types/__init__.py +++ b/google/cloud/compute_v1/types/__init__.py @@ -827,6 +827,7 @@ NodeGroupsListNodes, NodeGroupsScopedList, NodeGroupsSetNodeTemplateRequest, + NodeGroupsSimulateMaintenanceEventRequest, NodeTemplate, NodeTemplateAggregatedList, NodeTemplateList, @@ -1163,6 +1164,7 @@ ShieldedInstanceIntegrityPolicy, SignedUrlKey, SimulateMaintenanceEventInstanceRequest, + SimulateMaintenanceEventNodeGroupRequest, Snapshot, SnapshotList, SourceDiskEncryptionKey, @@ -2158,6 +2160,7 @@ "NodeGroupsListNodes", "NodeGroupsScopedList", "NodeGroupsSetNodeTemplateRequest", + "NodeGroupsSimulateMaintenanceEventRequest", "NodeTemplate", "NodeTemplateAggregatedList", "NodeTemplateList", @@ -2494,6 +2497,7 @@ "ShieldedInstanceIntegrityPolicy", "SignedUrlKey", "SimulateMaintenanceEventInstanceRequest", + "SimulateMaintenanceEventNodeGroupRequest", "Snapshot", "SnapshotList", "SourceDiskEncryptionKey", diff --git a/google/cloud/compute_v1/types/compute.py b/google/cloud/compute_v1/types/compute.py index a1d7f7bb9..9282406c0 100644 --- a/google/cloud/compute_v1/types/compute.py +++ b/google/cloud/compute_v1/types/compute.py @@ -835,6 +835,7 @@ "NodeGroupsListNodes", "NodeGroupsScopedList", "NodeGroupsSetNodeTemplateRequest", + "NodeGroupsSimulateMaintenanceEventRequest", "NodeTemplate", "NodeTemplateAggregatedList", "NodeTemplateList", @@ -1172,6 +1173,7 @@ "ShieldedInstanceIntegrityPolicy", "SignedUrlKey", "SimulateMaintenanceEventInstanceRequest", + "SimulateMaintenanceEventNodeGroupRequest", "Snapshot", "SnapshotList", "SourceDiskEncryptionKey", @@ -30593,6 +30595,8 @@ class Type(proto.Enum): No description available. SEV_CAPABLE (87083793): No description available. + SEV_LIVE_MIGRATABLE (392039820): + No description available. SEV_SNP_CAPABLE (426919): No description available. UEFI_COMPATIBLE (195865408): @@ -30608,6 +30612,7 @@ class Type(proto.Enum): MULTI_IP_SUBNET = 151776719 SECURE_BOOT = 376811194 SEV_CAPABLE = 87083793 + SEV_LIVE_MIGRATABLE = 392039820 SEV_SNP_CAPABLE = 426919 UEFI_COMPATIBLE = 195865408 VIRTIO_SCSI_MULTIQUEUE = 201597069 @@ -32139,13 +32144,13 @@ class HealthState(proto.Enum): A value indicating that the enum field is not set. DRAINING (480455402): - No description available. + Endpoint is being drained. HEALTHY (439801213): - No description available. + Endpoint is healthy. UNHEALTHY (462118084): - No description available. + Endpoint is unhealthy. UNKNOWN (433141802): - No description available. + Health status of the endpoint is unknown. """ UNDEFINED_HEALTH_STATE = 0 DRAINING = 480455402 @@ -63360,6 +63365,21 @@ class NodeGroupsSetNodeTemplateRequest(proto.Message): ) +class NodeGroupsSimulateMaintenanceEventRequest(proto.Message): + r""" + + Attributes: + nodes (MutableSequence[str]): + Names of the nodes to go under maintenance + simulation. + """ + + nodes: MutableSequence[str] = proto.RepeatedField( + proto.STRING, + number=104993457, + ) + + class NodeTemplate(proto.Message): r"""Represent a sole-tenant Node Template resource. You can use a template to define properties for nodes in a node group. For @@ -84880,6 +84900,67 @@ class SimulateMaintenanceEventInstanceRequest(proto.Message): ) +class SimulateMaintenanceEventNodeGroupRequest(proto.Message): + r"""A request message for NodeGroups.SimulateMaintenanceEvent. + See the method description for details. + + + .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields + + Attributes: + node_group (str): + Name of the NodeGroup resource whose nodes + will go under maintenance simulation. + node_groups_simulate_maintenance_event_request_resource (google.cloud.compute_v1.types.NodeGroupsSimulateMaintenanceEventRequest): + The body resource for this request + project (str): + Project ID for this request. + request_id (str): + An optional request ID to identify requests. + Specify a unique request ID so that if you must + retry your request, the server will know to + ignore the request if it has already been + completed. For example, consider a situation + where you make an initial request and the + request times out. If you make the request again + with the same request ID, the server can check + if original operation with the same request ID + was received, and if so, will ignore the second + request. This prevents clients from accidentally + creating duplicate commitments. The request ID + must be a valid UUID with the exception that + zero UUID is not supported ( + 00000000-0000-0000-0000-000000000000). + + This field is a member of `oneof`_ ``_request_id``. + zone (str): + The name of the zone for this request. + """ + + node_group: str = proto.Field( + proto.STRING, + number=469958146, + ) + node_groups_simulate_maintenance_event_request_resource: "NodeGroupsSimulateMaintenanceEventRequest" = proto.Field( + proto.MESSAGE, + number=351468764, + message="NodeGroupsSimulateMaintenanceEventRequest", + ) + project: str = proto.Field( + proto.STRING, + number=227560217, + ) + request_id: str = proto.Field( + proto.STRING, + number=37109963, + optional=True, + ) + zone: str = proto.Field( + proto.STRING, + number=3744684, + ) + + class Snapshot(proto.Message): r"""Represents a Persistent Disk Snapshot resource. You can use snapshots to back up data on a regular interval. For more diff --git a/tests/unit/gapic/compute_v1/test_node_groups.py b/tests/unit/gapic/compute_v1/test_node_groups.py index ed8caf216..223fee270 100644 --- a/tests/unit/gapic/compute_v1/test_node_groups.py +++ b/tests/unit/gapic/compute_v1/test_node_groups.py @@ -6916,6 +6916,684 @@ def test_set_node_template_unary_rest_error(): ) +@pytest.mark.parametrize( + "request_type", + [ + compute.SimulateMaintenanceEventNodeGroupRequest, + dict, + ], +) +def test_simulate_maintenance_event_rest(request_type): + client = NodeGroupsClient( + credentials=ga_credentials.AnonymousCredentials(), + transport="rest", + ) + + # send a request that will satisfy transcoding + request_init = {"project": "sample1", "zone": "sample2", "node_group": "sample3"} + request_init["node_groups_simulate_maintenance_event_request_resource"] = { + "nodes": ["nodes_value1", "nodes_value2"] + } + request = request_type(**request_init) + + # Mock the http request call within the method and fake a response. + with mock.patch.object(type(client.transport._session), "request") as req: + # Designate an appropriate value for the returned response. + return_value = compute.Operation( + client_operation_id="client_operation_id_value", + creation_timestamp="creation_timestamp_value", + description="description_value", + end_time="end_time_value", + http_error_message="http_error_message_value", + http_error_status_code=2374, + id=205, + insert_time="insert_time_value", + kind="kind_value", + name="name_value", + operation_group_id="operation_group_id_value", + operation_type="operation_type_value", + progress=885, + region="region_value", + self_link="self_link_value", + start_time="start_time_value", + status=compute.Operation.Status.DONE, + status_message="status_message_value", + target_id=947, + target_link="target_link_value", + user="user_value", + zone="zone_value", + ) + + # Wrap the value into a proper Response obj + response_value = Response() + response_value.status_code = 200 + pb_return_value = compute.Operation.pb(return_value) + json_return_value = json_format.MessageToJson(pb_return_value) + + response_value._content = json_return_value.encode("UTF-8") + req.return_value = response_value + response = client.simulate_maintenance_event(request) + + # Establish that the response is the type that we expect. + assert isinstance(response, extended_operation.ExtendedOperation) + assert response.client_operation_id == "client_operation_id_value" + assert response.creation_timestamp == "creation_timestamp_value" + assert response.description == "description_value" + assert response.end_time == "end_time_value" + assert response.http_error_message == "http_error_message_value" + assert response.http_error_status_code == 2374 + assert response.id == 205 + assert response.insert_time == "insert_time_value" + assert response.kind == "kind_value" + assert response.name == "name_value" + assert response.operation_group_id == "operation_group_id_value" + assert response.operation_type == "operation_type_value" + assert response.progress == 885 + assert response.region == "region_value" + assert response.self_link == "self_link_value" + assert response.start_time == "start_time_value" + assert response.status == compute.Operation.Status.DONE + assert response.status_message == "status_message_value" + assert response.target_id == 947 + assert response.target_link == "target_link_value" + assert response.user == "user_value" + assert response.zone == "zone_value" + + +def test_simulate_maintenance_event_rest_required_fields( + request_type=compute.SimulateMaintenanceEventNodeGroupRequest, +): + transport_class = transports.NodeGroupsRestTransport + + request_init = {} + request_init["node_group"] = "" + request_init["project"] = "" + request_init["zone"] = "" + request = request_type(**request_init) + pb_request = request_type.pb(request) + jsonified_request = json.loads( + json_format.MessageToJson( + pb_request, + including_default_value_fields=False, + use_integers_for_enums=False, + ) + ) + + # verify fields with default values are dropped + + unset_fields = transport_class( + credentials=ga_credentials.AnonymousCredentials() + ).simulate_maintenance_event._get_unset_required_fields(jsonified_request) + jsonified_request.update(unset_fields) + + # verify required fields with default values are now present + + jsonified_request["nodeGroup"] = "node_group_value" + jsonified_request["project"] = "project_value" + jsonified_request["zone"] = "zone_value" + + unset_fields = transport_class( + credentials=ga_credentials.AnonymousCredentials() + ).simulate_maintenance_event._get_unset_required_fields(jsonified_request) + # Check that path parameters and body parameters are not mixing in. + assert not set(unset_fields) - set(("request_id",)) + jsonified_request.update(unset_fields) + + # verify required fields with non-default values are left alone + assert "nodeGroup" in jsonified_request + assert jsonified_request["nodeGroup"] == "node_group_value" + assert "project" in jsonified_request + assert jsonified_request["project"] == "project_value" + assert "zone" in jsonified_request + assert jsonified_request["zone"] == "zone_value" + + client = NodeGroupsClient( + credentials=ga_credentials.AnonymousCredentials(), + transport="rest", + ) + request = request_type(**request_init) + + # Designate an appropriate value for the returned response. + return_value = compute.Operation() + # Mock the http request call within the method and fake a response. + with mock.patch.object(Session, "request") as req: + # We need to mock transcode() because providing default values + # for required fields will fail the real version if the http_options + # expect actual values for those fields. + with mock.patch.object(path_template, "transcode") as transcode: + # A uri without fields and an empty body will force all the + # request fields to show up in the query_params. + pb_request = request_type.pb(request) + transcode_result = { + "uri": "v1/sample_method", + "method": "post", + "query_params": pb_request, + } + transcode_result["body"] = pb_request + transcode.return_value = transcode_result + + response_value = Response() + response_value.status_code = 200 + + pb_return_value = compute.Operation.pb(return_value) + json_return_value = json_format.MessageToJson(pb_return_value) + + response_value._content = json_return_value.encode("UTF-8") + req.return_value = response_value + + response = client.simulate_maintenance_event(request) + + expected_params = [] + actual_params = req.call_args.kwargs["params"] + assert expected_params == actual_params + + +def test_simulate_maintenance_event_rest_unset_required_fields(): + transport = transports.NodeGroupsRestTransport( + credentials=ga_credentials.AnonymousCredentials + ) + + unset_fields = transport.simulate_maintenance_event._get_unset_required_fields({}) + assert set(unset_fields) == ( + set(("requestId",)) + & set( + ( + "nodeGroup", + "nodeGroupsSimulateMaintenanceEventRequestResource", + "project", + "zone", + ) + ) + ) + + +@pytest.mark.parametrize("null_interceptor", [True, False]) +def test_simulate_maintenance_event_rest_interceptors(null_interceptor): + transport = transports.NodeGroupsRestTransport( + credentials=ga_credentials.AnonymousCredentials(), + interceptor=None + if null_interceptor + else transports.NodeGroupsRestInterceptor(), + ) + client = NodeGroupsClient(transport=transport) + with mock.patch.object( + type(client.transport._session), "request" + ) as req, mock.patch.object( + path_template, "transcode" + ) as transcode, mock.patch.object( + transports.NodeGroupsRestInterceptor, "post_simulate_maintenance_event" + ) as post, mock.patch.object( + transports.NodeGroupsRestInterceptor, "pre_simulate_maintenance_event" + ) as pre: + pre.assert_not_called() + post.assert_not_called() + pb_message = compute.SimulateMaintenanceEventNodeGroupRequest.pb( + compute.SimulateMaintenanceEventNodeGroupRequest() + ) + transcode.return_value = { + "method": "post", + "uri": "my_uri", + "body": pb_message, + "query_params": pb_message, + } + + req.return_value = Response() + req.return_value.status_code = 200 + req.return_value.request = PreparedRequest() + req.return_value._content = compute.Operation.to_json(compute.Operation()) + + request = compute.SimulateMaintenanceEventNodeGroupRequest() + metadata = [ + ("key", "val"), + ("cephalopod", "squid"), + ] + pre.return_value = request, metadata + post.return_value = compute.Operation() + + client.simulate_maintenance_event( + request, + metadata=[ + ("key", "val"), + ("cephalopod", "squid"), + ], + ) + + pre.assert_called_once() + post.assert_called_once() + + +def test_simulate_maintenance_event_rest_bad_request( + transport: str = "rest", + request_type=compute.SimulateMaintenanceEventNodeGroupRequest, +): + client = NodeGroupsClient( + credentials=ga_credentials.AnonymousCredentials(), + transport=transport, + ) + + # send a request that will satisfy transcoding + request_init = {"project": "sample1", "zone": "sample2", "node_group": "sample3"} + request_init["node_groups_simulate_maintenance_event_request_resource"] = { + "nodes": ["nodes_value1", "nodes_value2"] + } + request = request_type(**request_init) + + # Mock the http request call within the method and fake a BadRequest error. + with mock.patch.object(Session, "request") as req, pytest.raises( + core_exceptions.BadRequest + ): + # Wrap the value into a proper Response obj + response_value = Response() + response_value.status_code = 400 + response_value.request = Request() + req.return_value = response_value + client.simulate_maintenance_event(request) + + +def test_simulate_maintenance_event_rest_flattened(): + client = NodeGroupsClient( + credentials=ga_credentials.AnonymousCredentials(), + transport="rest", + ) + + # Mock the http request call within the method and fake a response. + with mock.patch.object(type(client.transport._session), "request") as req: + # Designate an appropriate value for the returned response. + return_value = compute.Operation() + + # get arguments that satisfy an http rule for this method + sample_request = { + "project": "sample1", + "zone": "sample2", + "node_group": "sample3", + } + + # get truthy value for each flattened field + mock_args = dict( + project="project_value", + zone="zone_value", + node_group="node_group_value", + node_groups_simulate_maintenance_event_request_resource=compute.NodeGroupsSimulateMaintenanceEventRequest( + nodes=["nodes_value"] + ), + ) + mock_args.update(sample_request) + + # Wrap the value into a proper Response obj + response_value = Response() + response_value.status_code = 200 + pb_return_value = compute.Operation.pb(return_value) + json_return_value = json_format.MessageToJson(pb_return_value) + response_value._content = json_return_value.encode("UTF-8") + req.return_value = response_value + + client.simulate_maintenance_event(**mock_args) + + # Establish that the underlying call was made with the expected + # request object values. + assert len(req.mock_calls) == 1 + _, args, _ = req.mock_calls[0] + assert path_template.validate( + "%s/compute/v1/projects/{project}/zones/{zone}/nodeGroups/{node_group}/simulateMaintenanceEvent" + % client.transport._host, + args[1], + ) + + +def test_simulate_maintenance_event_rest_flattened_error(transport: str = "rest"): + client = NodeGroupsClient( + credentials=ga_credentials.AnonymousCredentials(), + transport=transport, + ) + + # Attempting to call a method with both a request object and flattened + # fields is an error. + with pytest.raises(ValueError): + client.simulate_maintenance_event( + compute.SimulateMaintenanceEventNodeGroupRequest(), + project="project_value", + zone="zone_value", + node_group="node_group_value", + node_groups_simulate_maintenance_event_request_resource=compute.NodeGroupsSimulateMaintenanceEventRequest( + nodes=["nodes_value"] + ), + ) + + +def test_simulate_maintenance_event_rest_error(): + client = NodeGroupsClient( + credentials=ga_credentials.AnonymousCredentials(), transport="rest" + ) + + +@pytest.mark.parametrize( + "request_type", + [ + compute.SimulateMaintenanceEventNodeGroupRequest, + dict, + ], +) +def test_simulate_maintenance_event_unary_rest(request_type): + client = NodeGroupsClient( + credentials=ga_credentials.AnonymousCredentials(), + transport="rest", + ) + + # send a request that will satisfy transcoding + request_init = {"project": "sample1", "zone": "sample2", "node_group": "sample3"} + request_init["node_groups_simulate_maintenance_event_request_resource"] = { + "nodes": ["nodes_value1", "nodes_value2"] + } + request = request_type(**request_init) + + # Mock the http request call within the method and fake a response. + with mock.patch.object(type(client.transport._session), "request") as req: + # Designate an appropriate value for the returned response. + return_value = compute.Operation( + client_operation_id="client_operation_id_value", + creation_timestamp="creation_timestamp_value", + description="description_value", + end_time="end_time_value", + http_error_message="http_error_message_value", + http_error_status_code=2374, + id=205, + insert_time="insert_time_value", + kind="kind_value", + name="name_value", + operation_group_id="operation_group_id_value", + operation_type="operation_type_value", + progress=885, + region="region_value", + self_link="self_link_value", + start_time="start_time_value", + status=compute.Operation.Status.DONE, + status_message="status_message_value", + target_id=947, + target_link="target_link_value", + user="user_value", + zone="zone_value", + ) + + # Wrap the value into a proper Response obj + response_value = Response() + response_value.status_code = 200 + pb_return_value = compute.Operation.pb(return_value) + json_return_value = json_format.MessageToJson(pb_return_value) + + response_value._content = json_return_value.encode("UTF-8") + req.return_value = response_value + response = client.simulate_maintenance_event_unary(request) + + # Establish that the response is the type that we expect. + assert isinstance(response, compute.Operation) + + +def test_simulate_maintenance_event_unary_rest_required_fields( + request_type=compute.SimulateMaintenanceEventNodeGroupRequest, +): + transport_class = transports.NodeGroupsRestTransport + + request_init = {} + request_init["node_group"] = "" + request_init["project"] = "" + request_init["zone"] = "" + request = request_type(**request_init) + pb_request = request_type.pb(request) + jsonified_request = json.loads( + json_format.MessageToJson( + pb_request, + including_default_value_fields=False, + use_integers_for_enums=False, + ) + ) + + # verify fields with default values are dropped + + unset_fields = transport_class( + credentials=ga_credentials.AnonymousCredentials() + ).simulate_maintenance_event._get_unset_required_fields(jsonified_request) + jsonified_request.update(unset_fields) + + # verify required fields with default values are now present + + jsonified_request["nodeGroup"] = "node_group_value" + jsonified_request["project"] = "project_value" + jsonified_request["zone"] = "zone_value" + + unset_fields = transport_class( + credentials=ga_credentials.AnonymousCredentials() + ).simulate_maintenance_event._get_unset_required_fields(jsonified_request) + # Check that path parameters and body parameters are not mixing in. + assert not set(unset_fields) - set(("request_id",)) + jsonified_request.update(unset_fields) + + # verify required fields with non-default values are left alone + assert "nodeGroup" in jsonified_request + assert jsonified_request["nodeGroup"] == "node_group_value" + assert "project" in jsonified_request + assert jsonified_request["project"] == "project_value" + assert "zone" in jsonified_request + assert jsonified_request["zone"] == "zone_value" + + client = NodeGroupsClient( + credentials=ga_credentials.AnonymousCredentials(), + transport="rest", + ) + request = request_type(**request_init) + + # Designate an appropriate value for the returned response. + return_value = compute.Operation() + # Mock the http request call within the method and fake a response. + with mock.patch.object(Session, "request") as req: + # We need to mock transcode() because providing default values + # for required fields will fail the real version if the http_options + # expect actual values for those fields. + with mock.patch.object(path_template, "transcode") as transcode: + # A uri without fields and an empty body will force all the + # request fields to show up in the query_params. + pb_request = request_type.pb(request) + transcode_result = { + "uri": "v1/sample_method", + "method": "post", + "query_params": pb_request, + } + transcode_result["body"] = pb_request + transcode.return_value = transcode_result + + response_value = Response() + response_value.status_code = 200 + + pb_return_value = compute.Operation.pb(return_value) + json_return_value = json_format.MessageToJson(pb_return_value) + + response_value._content = json_return_value.encode("UTF-8") + req.return_value = response_value + + response = client.simulate_maintenance_event_unary(request) + + expected_params = [] + actual_params = req.call_args.kwargs["params"] + assert expected_params == actual_params + + +def test_simulate_maintenance_event_unary_rest_unset_required_fields(): + transport = transports.NodeGroupsRestTransport( + credentials=ga_credentials.AnonymousCredentials + ) + + unset_fields = transport.simulate_maintenance_event._get_unset_required_fields({}) + assert set(unset_fields) == ( + set(("requestId",)) + & set( + ( + "nodeGroup", + "nodeGroupsSimulateMaintenanceEventRequestResource", + "project", + "zone", + ) + ) + ) + + +@pytest.mark.parametrize("null_interceptor", [True, False]) +def test_simulate_maintenance_event_unary_rest_interceptors(null_interceptor): + transport = transports.NodeGroupsRestTransport( + credentials=ga_credentials.AnonymousCredentials(), + interceptor=None + if null_interceptor + else transports.NodeGroupsRestInterceptor(), + ) + client = NodeGroupsClient(transport=transport) + with mock.patch.object( + type(client.transport._session), "request" + ) as req, mock.patch.object( + path_template, "transcode" + ) as transcode, mock.patch.object( + transports.NodeGroupsRestInterceptor, "post_simulate_maintenance_event" + ) as post, mock.patch.object( + transports.NodeGroupsRestInterceptor, "pre_simulate_maintenance_event" + ) as pre: + pre.assert_not_called() + post.assert_not_called() + pb_message = compute.SimulateMaintenanceEventNodeGroupRequest.pb( + compute.SimulateMaintenanceEventNodeGroupRequest() + ) + transcode.return_value = { + "method": "post", + "uri": "my_uri", + "body": pb_message, + "query_params": pb_message, + } + + req.return_value = Response() + req.return_value.status_code = 200 + req.return_value.request = PreparedRequest() + req.return_value._content = compute.Operation.to_json(compute.Operation()) + + request = compute.SimulateMaintenanceEventNodeGroupRequest() + metadata = [ + ("key", "val"), + ("cephalopod", "squid"), + ] + pre.return_value = request, metadata + post.return_value = compute.Operation() + + client.simulate_maintenance_event_unary( + request, + metadata=[ + ("key", "val"), + ("cephalopod", "squid"), + ], + ) + + pre.assert_called_once() + post.assert_called_once() + + +def test_simulate_maintenance_event_unary_rest_bad_request( + transport: str = "rest", + request_type=compute.SimulateMaintenanceEventNodeGroupRequest, +): + client = NodeGroupsClient( + credentials=ga_credentials.AnonymousCredentials(), + transport=transport, + ) + + # send a request that will satisfy transcoding + request_init = {"project": "sample1", "zone": "sample2", "node_group": "sample3"} + request_init["node_groups_simulate_maintenance_event_request_resource"] = { + "nodes": ["nodes_value1", "nodes_value2"] + } + request = request_type(**request_init) + + # Mock the http request call within the method and fake a BadRequest error. + with mock.patch.object(Session, "request") as req, pytest.raises( + core_exceptions.BadRequest + ): + # Wrap the value into a proper Response obj + response_value = Response() + response_value.status_code = 400 + response_value.request = Request() + req.return_value = response_value + client.simulate_maintenance_event_unary(request) + + +def test_simulate_maintenance_event_unary_rest_flattened(): + client = NodeGroupsClient( + credentials=ga_credentials.AnonymousCredentials(), + transport="rest", + ) + + # Mock the http request call within the method and fake a response. + with mock.patch.object(type(client.transport._session), "request") as req: + # Designate an appropriate value for the returned response. + return_value = compute.Operation() + + # get arguments that satisfy an http rule for this method + sample_request = { + "project": "sample1", + "zone": "sample2", + "node_group": "sample3", + } + + # get truthy value for each flattened field + mock_args = dict( + project="project_value", + zone="zone_value", + node_group="node_group_value", + node_groups_simulate_maintenance_event_request_resource=compute.NodeGroupsSimulateMaintenanceEventRequest( + nodes=["nodes_value"] + ), + ) + mock_args.update(sample_request) + + # Wrap the value into a proper Response obj + response_value = Response() + response_value.status_code = 200 + pb_return_value = compute.Operation.pb(return_value) + json_return_value = json_format.MessageToJson(pb_return_value) + response_value._content = json_return_value.encode("UTF-8") + req.return_value = response_value + + client.simulate_maintenance_event_unary(**mock_args) + + # Establish that the underlying call was made with the expected + # request object values. + assert len(req.mock_calls) == 1 + _, args, _ = req.mock_calls[0] + assert path_template.validate( + "%s/compute/v1/projects/{project}/zones/{zone}/nodeGroups/{node_group}/simulateMaintenanceEvent" + % client.transport._host, + args[1], + ) + + +def test_simulate_maintenance_event_unary_rest_flattened_error(transport: str = "rest"): + client = NodeGroupsClient( + credentials=ga_credentials.AnonymousCredentials(), + transport=transport, + ) + + # Attempting to call a method with both a request object and flattened + # fields is an error. + with pytest.raises(ValueError): + client.simulate_maintenance_event_unary( + compute.SimulateMaintenanceEventNodeGroupRequest(), + project="project_value", + zone="zone_value", + node_group="node_group_value", + node_groups_simulate_maintenance_event_request_resource=compute.NodeGroupsSimulateMaintenanceEventRequest( + nodes=["nodes_value"] + ), + ) + + +def test_simulate_maintenance_event_unary_rest_error(): + client = NodeGroupsClient( + credentials=ga_credentials.AnonymousCredentials(), transport="rest" + ) + + @pytest.mark.parametrize( "request_type", [ @@ -7345,6 +8023,7 @@ def test_node_groups_base_transport(): "patch", "set_iam_policy", "set_node_template", + "simulate_maintenance_event", "test_iam_permissions", ) for method in methods: @@ -7519,6 +8198,9 @@ def test_node_groups_client_transport_session_collision(transport_name): session1 = client1.transport.set_node_template._session session2 = client2.transport.set_node_template._session assert session1 != session2 + session1 = client1.transport.simulate_maintenance_event._session + session2 = client2.transport.simulate_maintenance_event._session + assert session1 != session2 session1 = client1.transport.test_iam_permissions._session session2 = client2.transport.test_iam_permissions._session assert session1 != session2 From e9b13a03b34332c6ab0aa9f204b39b90ddbeaed0 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Thu, 23 Mar 2023 09:22:40 -0400 Subject: [PATCH 6/7] docs: Fix formatting of request arg in docstring (#404) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * docs: Fix formatting of request arg in docstring chore: Update gapic-generator-python to v1.9.1 PiperOrigin-RevId: 518604533 Source-Link: https://github.com/googleapis/googleapis/commit/8a085aeddfa010af5bcef090827aac5255383d7e Source-Link: https://github.com/googleapis/googleapis-gen/commit/b2ab4b0a0ae2907e812c209198a74e0898afcb04 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiYjJhYjRiMGEwYWUyOTA3ZTgxMmMyMDkxOThhNzRlMDg5OGFmY2IwNCJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- .../services/accelerator_types/client.py | 12 +- .../accelerator_types/transports/rest.py | 3 - .../compute_v1/services/addresses/client.py | 32 +- .../services/addresses/transports/rest.py | 6 - .../compute_v1/services/autoscalers/client.py | 43 +-- .../services/autoscalers/transports/rest.py | 7 - .../services/backend_buckets/client.py | 64 ++-- .../backend_buckets/transports/rest.py | 9 - .../services/backend_services/client.py | 88 ++--- .../backend_services/transports/rest.py | 14 - .../compute_v1/services/disk_types/client.py | 8 +- .../services/disk_types/transports/rest.py | 3 - .../cloud/compute_v1/services/disks/client.py | 50 +-- .../services/disks/transports/rest.py | 14 - .../services/external_vpn_gateways/client.py | 36 +- .../external_vpn_gateways/transports/rest.py | 6 - .../services/firewall_policies/client.py | 112 +++---- .../firewall_policies/transports/rest.py | 18 - .../compute_v1/services/firewalls/client.py | 34 +- .../services/firewalls/transports/rest.py | 6 - .../services/forwarding_rules/client.py | 52 +-- .../forwarding_rules/transports/rest.py | 8 - .../services/global_addresses/client.py | 32 +- .../global_addresses/transports/rest.py | 5 - .../global_forwarding_rules/client.py | 48 +-- .../transports/rest.py | 7 - .../global_network_endpoint_groups/client.py | 44 +-- .../transports/rest.py | 7 - .../services/global_operations/client.py | 20 +- .../global_operations/transports/rest.py | 5 - .../global_organization_operations/client.py | 12 +- .../transports/rest.py | 3 - .../client.py | 32 +- .../transports/rest.py | 5 - .../services/health_checks/client.py | 44 +-- .../services/health_checks/transports/rest.py | 7 - .../services/image_family_views/client.py | 4 +- .../image_family_views/transports/rest.py | 1 - .../compute_v1/services/images/client.py | 36 +- .../services/images/transports/rest.py | 11 - .../instance_group_managers/client.py | 136 ++++---- .../transports/rest.py | 20 -- .../services/instance_groups/client.py | 56 ++-- .../instance_groups/transports/rest.py | 9 - .../services/instance_templates/client.py | 40 +-- .../instance_templates/transports/rest.py | 8 - .../compute_v1/services/instances/client.py | 308 +++++++++--------- .../services/instances/transports/rest.py | 46 --- .../interconnect_attachments/client.py | 44 +-- .../transports/rest.py | 7 - .../services/interconnect_locations/client.py | 8 +- .../interconnect_locations/transports/rest.py | 2 - .../services/interconnects/client.py | 44 +-- .../services/interconnects/transports/rest.py | 7 - .../services/license_codes/client.py | 8 +- .../services/license_codes/transports/rest.py | 2 - .../compute_v1/services/licenses/client.py | 24 +- .../services/licenses/transports/rest.py | 7 - .../services/machine_images/client.py | 36 +- .../machine_images/transports/rest.py | 7 - .../services/machine_types/client.py | 12 +- .../services/machine_types/transports/rest.py | 3 - .../services/network_attachments/client.py | 40 +-- .../network_attachments/transports/rest.py | 8 - .../network_edge_security_services/client.py | 32 +- .../transports/rest.py | 5 - .../network_endpoint_groups/client.py | 52 +-- .../transports/rest.py | 9 - .../network_firewall_policies/client.py | 100 +++--- .../transports/rest.py | 16 - .../compute_v1/services/networks/client.py | 60 ++-- .../services/networks/transports/rest.py | 11 - .../compute_v1/services/node_groups/client.py | 83 ++--- .../services/node_groups/transports/rest.py | 14 - .../services/node_templates/client.py | 40 +-- .../node_templates/transports/rest.py | 8 - .../compute_v1/services/node_types/client.py | 8 +- .../services/node_types/transports/rest.py | 3 - .../services/packet_mirrorings/client.py | 40 +-- .../packet_mirrorings/transports/rest.py | 7 - .../compute_v1/services/projects/client.py | 84 ++--- .../services/projects/transports/rest.py | 13 - .../public_advertised_prefixes/client.py | 32 +- .../transports/rest.py | 5 - .../public_delegated_prefixes/client.py | 36 +- .../transports/rest.py | 6 - .../services/region_autoscalers/client.py | 40 +-- .../region_autoscalers/transports/rest.py | 6 - .../region_backend_services/client.py | 52 +-- .../transports/rest.py | 9 - .../services/region_commitments/client.py | 28 +- .../region_commitments/transports/rest.py | 5 - .../services/region_disk_types/client.py | 8 +- .../region_disk_types/transports/rest.py | 2 - .../services/region_disks/client.py | 83 ++--- .../services/region_disks/transports/rest.py | 13 - .../region_health_check_services/client.py | 32 +- .../transports/rest.py | 5 - .../services/region_health_checks/client.py | 40 +-- .../region_health_checks/transports/rest.py | 6 - .../region_instance_group_managers/client.py | 116 +++---- .../transports/rest.py | 19 -- .../services/region_instance_groups/client.py | 20 +- .../region_instance_groups/transports/rest.py | 4 - .../region_instance_templates/client.py | 24 +- .../transports/rest.py | 4 - .../services/region_instances/client.py | 8 +- .../region_instances/transports/rest.py | 1 - .../region_network_endpoint_groups/client.py | 24 +- .../transports/rest.py | 4 - .../client.py | 104 +++--- .../transports/rest.py | 17 - .../region_notification_endpoints/client.py | 24 +- .../transports/rest.py | 4 - .../services/region_operations/client.py | 16 +- .../region_operations/transports/rest.py | 4 - .../region_security_policies/client.py | 32 +- .../transports/rest.py | 5 - .../region_ssl_certificates/client.py | 24 +- .../transports/rest.py | 4 - .../services/region_ssl_policies/client.py | 36 +- .../region_ssl_policies/transports/rest.py | 6 - .../region_target_http_proxies/client.py | 32 +- .../transports/rest.py | 5 - .../region_target_https_proxies/client.py | 48 +-- .../transports/rest.py | 7 - .../region_target_tcp_proxies/client.py | 24 +- .../transports/rest.py | 4 - .../services/region_url_maps/client.py | 44 +-- .../region_url_maps/transports/rest.py | 7 - .../services/regions/transports/rest.py | 2 - .../services/reservations/client.py | 56 ++-- .../services/reservations/transports/rest.py | 10 - .../services/resource_policies/client.py | 40 +-- .../resource_policies/transports/rest.py | 8 - .../compute_v1/services/routers/client.py | 39 +-- .../services/routers/transports/rest.py | 10 - .../compute_v1/services/routes/client.py | 4 +- .../services/routes/transports/rest.py | 4 - .../services/security_policies/client.py | 76 ++--- .../security_policies/transports/rest.py | 12 - .../services/service_attachments/client.py | 48 +-- .../service_attachments/transports/rest.py | 9 - .../compute_v1/services/snapshots/client.py | 40 +-- .../services/snapshots/transports/rest.py | 8 - .../services/ssl_certificates/client.py | 28 +- .../ssl_certificates/transports/rest.py | 5 - .../services/ssl_policies/client.py | 39 +-- .../services/ssl_policies/transports/rest.py | 7 - .../compute_v1/services/subnetworks/client.py | 67 ++-- .../services/subnetworks/transports/rest.py | 12 - .../services/target_grpc_proxies/client.py | 32 +- .../target_grpc_proxies/transports/rest.py | 5 - .../services/target_http_proxies/client.py | 44 +-- .../target_http_proxies/transports/rest.py | 7 - .../services/target_https_proxies/client.py | 76 ++--- .../target_https_proxies/transports/rest.py | 11 - .../services/target_instances/client.py | 28 +- .../target_instances/transports/rest.py | 5 - .../services/target_pools/client.py | 71 ++-- .../services/target_pools/transports/rest.py | 11 - .../services/target_ssl_proxies/client.py | 64 ++-- .../target_ssl_proxies/transports/rest.py | 9 - .../services/target_tcp_proxies/client.py | 44 +-- .../target_tcp_proxies/transports/rest.py | 7 - .../services/target_vpn_gateways/client.py | 36 +- .../target_vpn_gateways/transports/rest.py | 6 - .../compute_v1/services/url_maps/client.py | 40 +-- .../services/url_maps/transports/rest.py | 9 - .../services/vpn_gateways/client.py | 43 +-- .../services/vpn_gateways/transports/rest.py | 8 - .../compute_v1/services/vpn_tunnels/client.py | 35 +- .../services/vpn_tunnels/transports/rest.py | 6 - .../services/zone_operations/client.py | 16 +- .../zone_operations/transports/rest.py | 4 - .../cloud/compute_v1/services/zones/client.py | 4 +- .../services/zones/transports/rest.py | 2 - 177 files changed, 1990 insertions(+), 2651 deletions(-) diff --git a/google/cloud/compute_v1/services/accelerator_types/client.py b/google/cloud/compute_v1/services/accelerator_types/client.py index 6d263179a..da7acdf9d 100644 --- a/google/cloud/compute_v1/services/accelerator_types/client.py +++ b/google/cloud/compute_v1/services/accelerator_types/client.py @@ -438,8 +438,8 @@ def aggregated_list( Args: request (Union[google.cloud.compute_v1.types.AggregatedListAcceleratorTypesRequest, dict]): The request object. A request message for - AcceleratorTypes.AggregatedList. See the method - description for details. + AcceleratorTypes.AggregatedList. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -525,8 +525,8 @@ def get( Args: request (Union[google.cloud.compute_v1.types.GetAcceleratorTypeRequest, dict]): The request object. A request message for - AcceleratorTypes.Get. See the method description for - details. + AcceleratorTypes.Get. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -632,8 +632,8 @@ def list( Args: request (Union[google.cloud.compute_v1.types.ListAcceleratorTypesRequest, dict]): The request object. A request message for - AcceleratorTypes.List. See the method description for - details. + AcceleratorTypes.List. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field diff --git a/google/cloud/compute_v1/services/accelerator_types/transports/rest.py b/google/cloud/compute_v1/services/accelerator_types/transports/rest.py index a20c06a14..b0a778275 100644 --- a/google/cloud/compute_v1/services/accelerator_types/transports/rest.py +++ b/google/cloud/compute_v1/services/accelerator_types/transports/rest.py @@ -296,7 +296,6 @@ def __call__( The request object. A request message for AcceleratorTypes.AggregatedList. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -383,7 +382,6 @@ def __call__( The request object. A request message for AcceleratorTypes.Get. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -478,7 +476,6 @@ def __call__( The request object. A request message for AcceleratorTypes.List. See the method description for details. - 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/compute_v1/services/addresses/client.py b/google/cloud/compute_v1/services/addresses/client.py index fdb5703b7..371b4ce4f 100644 --- a/google/cloud/compute_v1/services/addresses/client.py +++ b/google/cloud/compute_v1/services/addresses/client.py @@ -435,8 +435,8 @@ def aggregated_list( Args: request (Union[google.cloud.compute_v1.types.AggregatedListAddressesRequest, dict]): The request object. A request message for - Addresses.AggregatedList. See the method description for - details. + Addresses.AggregatedList. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -522,8 +522,8 @@ def delete_unary( Args: request (Union[google.cloud.compute_v1.types.DeleteAddressRequest, dict]): The request object. A request message for - Addresses.Delete. See the method description for - details. + Addresses.Delete. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -621,8 +621,8 @@ def delete( Args: request (Union[google.cloud.compute_v1.types.DeleteAddressRequest, dict]): The request object. A request message for - Addresses.Delete. See the method description for - details. + Addresses.Delete. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -849,8 +849,8 @@ def insert_unary( Args: request (Union[google.cloud.compute_v1.types.InsertAddressRequest, dict]): The request object. A request message for - Addresses.Insert. See the method description for - details. + Addresses.Insert. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -946,8 +946,8 @@ def insert( Args: request (Union[google.cloud.compute_v1.types.InsertAddressRequest, dict]): The request object. A request message for - Addresses.Insert. See the method description for - details. + Addresses.Insert. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1066,8 +1066,8 @@ def list( Args: request (Union[google.cloud.compute_v1.types.ListAddressesRequest, dict]): - The request object. A request message for - Addresses.List. See the method description for details. + The request object. A request message for Addresses.List. + See the method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1170,8 +1170,8 @@ def set_labels_unary( Args: request (Union[google.cloud.compute_v1.types.SetLabelsAddressRequest, dict]): The request object. A request message for - Addresses.SetLabels. See the method description for - details. + Addresses.SetLabels. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1284,8 +1284,8 @@ def set_labels( Args: request (Union[google.cloud.compute_v1.types.SetLabelsAddressRequest, dict]): The request object. A request message for - Addresses.SetLabels. See the method description for - details. + Addresses.SetLabels. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field diff --git a/google/cloud/compute_v1/services/addresses/transports/rest.py b/google/cloud/compute_v1/services/addresses/transports/rest.py index af806b06f..81ed9c900 100644 --- a/google/cloud/compute_v1/services/addresses/transports/rest.py +++ b/google/cloud/compute_v1/services/addresses/transports/rest.py @@ -370,7 +370,6 @@ def __call__( The request object. A request message for Addresses.AggregatedList. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -457,7 +456,6 @@ def __call__( The request object. A request message for Addresses.Delete. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -558,7 +556,6 @@ def __call__( request (~.compute.GetAddressRequest): The request object. A request message for Addresses.Get. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -652,7 +649,6 @@ def __call__( The request object. A request message for Addresses.Insert. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -762,7 +758,6 @@ def __call__( request (~.compute.ListAddressesRequest): The request object. A request message for Addresses.List. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -849,7 +844,6 @@ def __call__( The request object. A request message for Addresses.SetLabels. See the method description for details. - 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/compute_v1/services/autoscalers/client.py b/google/cloud/compute_v1/services/autoscalers/client.py index d08973b62..6102ea21c 100644 --- a/google/cloud/compute_v1/services/autoscalers/client.py +++ b/google/cloud/compute_v1/services/autoscalers/client.py @@ -435,8 +435,8 @@ def aggregated_list( Args: request (Union[google.cloud.compute_v1.types.AggregatedListAutoscalersRequest, dict]): The request object. A request message for - Autoscalers.AggregatedList. See the method description - for details. + Autoscalers.AggregatedList. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -522,8 +522,8 @@ def delete_unary( Args: request (Union[google.cloud.compute_v1.types.DeleteAutoscalerRequest, dict]): The request object. A request message for - Autoscalers.Delete. See the method description for - details. + Autoscalers.Delete. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -619,8 +619,8 @@ def delete( Args: request (Union[google.cloud.compute_v1.types.DeleteAutoscalerRequest, dict]): The request object. A request message for - Autoscalers.Delete. See the method description for - details. + Autoscalers.Delete. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -741,7 +741,8 @@ def get( Args: request (Union[google.cloud.compute_v1.types.GetAutoscalerRequest, dict]): The request object. A request message for - Autoscalers.Get. See the method description for details. + Autoscalers.Get. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -847,8 +848,8 @@ def insert_unary( Args: request (Union[google.cloud.compute_v1.types.InsertAutoscalerRequest, dict]): The request object. A request message for - Autoscalers.Insert. See the method description for - details. + Autoscalers.Insert. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -944,8 +945,8 @@ def insert( Args: request (Union[google.cloud.compute_v1.types.InsertAutoscalerRequest, dict]): The request object. A request message for - Autoscalers.Insert. See the method description for - details. + Autoscalers.Insert. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1065,8 +1066,8 @@ def list( Args: request (Union[google.cloud.compute_v1.types.ListAutoscalersRequest, dict]): The request object. A request message for - Autoscalers.List. See the method description for - details. + Autoscalers.List. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1169,8 +1170,8 @@ def patch_unary( Args: request (Union[google.cloud.compute_v1.types.PatchAutoscalerRequest, dict]): The request object. A request message for - Autoscalers.Patch. See the method description for - details. + Autoscalers.Patch. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1268,8 +1269,8 @@ def patch( Args: request (Union[google.cloud.compute_v1.types.PatchAutoscalerRequest, dict]): The request object. A request message for - Autoscalers.Patch. See the method description for - details. + Autoscalers.Patch. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1390,8 +1391,8 @@ def update_unary( Args: request (Union[google.cloud.compute_v1.types.UpdateAutoscalerRequest, dict]): The request object. A request message for - Autoscalers.Update. See the method description for - details. + Autoscalers.Update. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1487,8 +1488,8 @@ def update( Args: request (Union[google.cloud.compute_v1.types.UpdateAutoscalerRequest, dict]): The request object. A request message for - Autoscalers.Update. See the method description for - details. + Autoscalers.Update. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field diff --git a/google/cloud/compute_v1/services/autoscalers/transports/rest.py b/google/cloud/compute_v1/services/autoscalers/transports/rest.py index d30b0b186..259a13f2e 100644 --- a/google/cloud/compute_v1/services/autoscalers/transports/rest.py +++ b/google/cloud/compute_v1/services/autoscalers/transports/rest.py @@ -405,7 +405,6 @@ def __call__( The request object. A request message for Autoscalers.AggregatedList. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -492,7 +491,6 @@ def __call__( The request object. A request message for Autoscalers.Delete. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -594,7 +592,6 @@ def __call__( The request object. A request message for Autoscalers.Get. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -693,7 +690,6 @@ def __call__( The request object. A request message for Autoscalers.Insert. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -804,7 +800,6 @@ def __call__( The request object. A request message for Autoscalers.List. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -893,7 +888,6 @@ def __call__( The request object. A request message for Autoscalers.Patch. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1004,7 +998,6 @@ def __call__( The request object. A request message for Autoscalers.Update. See the method description for details. - 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/compute_v1/services/backend_buckets/client.py b/google/cloud/compute_v1/services/backend_buckets/client.py index 3073cf8ae..d1e1969d1 100644 --- a/google/cloud/compute_v1/services/backend_buckets/client.py +++ b/google/cloud/compute_v1/services/backend_buckets/client.py @@ -442,8 +442,8 @@ def add_signed_url_key_unary( Args: request (Union[google.cloud.compute_v1.types.AddSignedUrlKeyBackendBucketRequest, dict]): The request object. A request message for - BackendBuckets.AddSignedUrlKey. See the method - description for details. + BackendBuckets.AddSignedUrlKey. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -545,8 +545,8 @@ def add_signed_url_key( Args: request (Union[google.cloud.compute_v1.types.AddSignedUrlKeyBackendBucketRequest, dict]): The request object. A request message for - BackendBuckets.AddSignedUrlKey. See the method - description for details. + BackendBuckets.AddSignedUrlKey. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -668,8 +668,8 @@ def delete_unary( Args: request (Union[google.cloud.compute_v1.types.DeleteBackendBucketRequest, dict]): The request object. A request message for - BackendBuckets.Delete. See the method description for - details. + BackendBuckets.Delete. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -758,8 +758,8 @@ def delete( Args: request (Union[google.cloud.compute_v1.types.DeleteBackendBucketRequest, dict]): The request object. A request message for - BackendBuckets.Delete. See the method description for - details. + BackendBuckets.Delete. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -876,8 +876,8 @@ def delete_signed_url_key_unary( Args: request (Union[google.cloud.compute_v1.types.DeleteSignedUrlKeyBackendBucketRequest, dict]): The request object. A request message for - BackendBuckets.DeleteSignedUrlKey. See the method - description for details. + BackendBuckets.DeleteSignedUrlKey. See + the method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -981,8 +981,8 @@ def delete_signed_url_key( Args: request (Union[google.cloud.compute_v1.types.DeleteSignedUrlKeyBackendBucketRequest, dict]): The request object. A request message for - BackendBuckets.DeleteSignedUrlKey. See the method - description for details. + BackendBuckets.DeleteSignedUrlKey. See + the method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1106,8 +1106,8 @@ def get( Args: request (Union[google.cloud.compute_v1.types.GetBackendBucketRequest, dict]): The request object. A request message for - BackendBuckets.Get. See the method description for - details. + BackendBuckets.Get. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1200,8 +1200,8 @@ def insert_unary( Args: request (Union[google.cloud.compute_v1.types.InsertBackendBucketRequest, dict]): The request object. A request message for - BackendBuckets.Insert. See the method description for - details. + BackendBuckets.Insert. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1284,8 +1284,8 @@ def insert( Args: request (Union[google.cloud.compute_v1.types.InsertBackendBucketRequest, dict]): The request object. A request message for - BackendBuckets.Insert. See the method description for - details. + BackendBuckets.Insert. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1391,8 +1391,8 @@ def list( Args: request (Union[google.cloud.compute_v1.types.ListBackendBucketsRequest, dict]): The request object. A request message for - BackendBuckets.List. See the method description for - details. + BackendBuckets.List. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1483,8 +1483,8 @@ def patch_unary( Args: request (Union[google.cloud.compute_v1.types.PatchBackendBucketRequest, dict]): The request object. A request message for - BackendBuckets.Patch. See the method description for - details. + BackendBuckets.Patch. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1584,8 +1584,8 @@ def patch( Args: request (Union[google.cloud.compute_v1.types.PatchBackendBucketRequest, dict]): The request object. A request message for - BackendBuckets.Patch. See the method description for - details. + BackendBuckets.Patch. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1711,8 +1711,8 @@ def set_edge_security_policy_unary( Args: request (Union[google.cloud.compute_v1.types.SetEdgeSecurityPolicyBackendBucketRequest, dict]): The request object. A request message for - BackendBuckets.SetEdgeSecurityPolicy. See the method - description for details. + BackendBuckets.SetEdgeSecurityPolicy. + See the method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1819,8 +1819,8 @@ def set_edge_security_policy( Args: request (Union[google.cloud.compute_v1.types.SetEdgeSecurityPolicyBackendBucketRequest, dict]): The request object. A request message for - BackendBuckets.SetEdgeSecurityPolicy. See the method - description for details. + BackendBuckets.SetEdgeSecurityPolicy. + See the method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1947,8 +1947,8 @@ def update_unary( Args: request (Union[google.cloud.compute_v1.types.UpdateBackendBucketRequest, dict]): The request object. A request message for - BackendBuckets.Update. See the method description for - details. + BackendBuckets.Update. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -2046,8 +2046,8 @@ def update( Args: request (Union[google.cloud.compute_v1.types.UpdateBackendBucketRequest, dict]): The request object. A request message for - BackendBuckets.Update. See the method description for - details. + BackendBuckets.Update. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field diff --git a/google/cloud/compute_v1/services/backend_buckets/transports/rest.py b/google/cloud/compute_v1/services/backend_buckets/transports/rest.py index 1836f3326..4ac154806 100644 --- a/google/cloud/compute_v1/services/backend_buckets/transports/rest.py +++ b/google/cloud/compute_v1/services/backend_buckets/transports/rest.py @@ -473,7 +473,6 @@ def __call__( The request object. A request message for BackendBuckets.AddSignedUrlKey. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -586,7 +585,6 @@ def __call__( The request object. A request message for BackendBuckets.Delete. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -690,7 +688,6 @@ def __call__( The request object. A request message for BackendBuckets.DeleteSignedUrlKey. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -794,7 +791,6 @@ def __call__( The request object. A request message for BackendBuckets.Get. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -886,7 +882,6 @@ def __call__( The request object. A request message for BackendBuckets.Insert. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -997,7 +992,6 @@ def __call__( The request object. A request message for BackendBuckets.List. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1086,7 +1080,6 @@ def __call__( The request object. A request message for BackendBuckets.Patch. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1197,7 +1190,6 @@ def __call__( The request object. A request message for BackendBuckets.SetEdgeSecurityPolicy. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1310,7 +1302,6 @@ def __call__( The request object. A request message for BackendBuckets.Update. See the method description for details. - 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/compute_v1/services/backend_services/client.py b/google/cloud/compute_v1/services/backend_services/client.py index 7ef35b7b7..05b5bd2ce 100644 --- a/google/cloud/compute_v1/services/backend_services/client.py +++ b/google/cloud/compute_v1/services/backend_services/client.py @@ -442,8 +442,8 @@ def add_signed_url_key_unary( Args: request (Union[google.cloud.compute_v1.types.AddSignedUrlKeyBackendServiceRequest, dict]): The request object. A request message for - BackendServices.AddSignedUrlKey. See the method - description for details. + BackendServices.AddSignedUrlKey. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -545,8 +545,8 @@ def add_signed_url_key( Args: request (Union[google.cloud.compute_v1.types.AddSignedUrlKeyBackendServiceRequest, dict]): The request object. A request message for - BackendServices.AddSignedUrlKey. See the method - description for details. + BackendServices.AddSignedUrlKey. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -670,8 +670,8 @@ def aggregated_list( Args: request (Union[google.cloud.compute_v1.types.AggregatedListBackendServicesRequest, dict]): The request object. A request message for - BackendServices.AggregatedList. See the method - description for details. + BackendServices.AggregatedList. See the + method description for details. project (str): Name of the project scoping this request. @@ -760,8 +760,8 @@ def delete_unary( Args: request (Union[google.cloud.compute_v1.types.DeleteBackendServiceRequest, dict]): The request object. A request message for - BackendServices.Delete. See the method description for - details. + BackendServices.Delete. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -850,8 +850,8 @@ def delete( Args: request (Union[google.cloud.compute_v1.types.DeleteBackendServiceRequest, dict]): The request object. A request message for - BackendServices.Delete. See the method description for - details. + BackendServices.Delete. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -968,8 +968,8 @@ def delete_signed_url_key_unary( Args: request (Union[google.cloud.compute_v1.types.DeleteSignedUrlKeyBackendServiceRequest, dict]): The request object. A request message for - BackendServices.DeleteSignedUrlKey. See the method - description for details. + BackendServices.DeleteSignedUrlKey. See + the method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1073,8 +1073,8 @@ def delete_signed_url_key( Args: request (Union[google.cloud.compute_v1.types.DeleteSignedUrlKeyBackendServiceRequest, dict]): The request object. A request message for - BackendServices.DeleteSignedUrlKey. See the method - description for details. + BackendServices.DeleteSignedUrlKey. See + the method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1198,8 +1198,8 @@ def get( Args: request (Union[google.cloud.compute_v1.types.GetBackendServiceRequest, dict]): The request object. A request message for - BackendServices.Get. See the method description for - details. + BackendServices.Get. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1306,8 +1306,8 @@ def get_health( Args: request (Union[google.cloud.compute_v1.types.GetHealthBackendServiceRequest, dict]): The request object. A request message for - BackendServices.GetHealth. See the method description - for details. + BackendServices.GetHealth. See the + method description for details. project (str): This corresponds to the ``project`` field @@ -1408,8 +1408,8 @@ def get_iam_policy( Args: request (Union[google.cloud.compute_v1.types.GetIamPolicyBackendServiceRequest, dict]): The request object. A request message for - BackendServices.GetIamPolicy. See the method description - for details. + BackendServices.GetIamPolicy. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1538,8 +1538,8 @@ def insert_unary( Args: request (Union[google.cloud.compute_v1.types.InsertBackendServiceRequest, dict]): The request object. A request message for - BackendServices.Insert. See the method description for - details. + BackendServices.Insert. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1623,8 +1623,8 @@ def insert( Args: request (Union[google.cloud.compute_v1.types.InsertBackendServiceRequest, dict]): The request object. A request message for - BackendServices.Insert. See the method description for - details. + BackendServices.Insert. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1730,8 +1730,8 @@ def list( Args: request (Union[google.cloud.compute_v1.types.ListBackendServicesRequest, dict]): The request object. A request message for - BackendServices.List. See the method description for - details. + BackendServices.List. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1823,8 +1823,8 @@ def patch_unary( Args: request (Union[google.cloud.compute_v1.types.PatchBackendServiceRequest, dict]): The request object. A request message for - BackendServices.Patch. See the method description for - details. + BackendServices.Patch. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1925,8 +1925,8 @@ def patch( Args: request (Union[google.cloud.compute_v1.types.PatchBackendServiceRequest, dict]): The request object. A request message for - BackendServices.Patch. See the method description for - details. + BackendServices.Patch. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -2052,8 +2052,8 @@ def set_edge_security_policy_unary( Args: request (Union[google.cloud.compute_v1.types.SetEdgeSecurityPolicyBackendServiceRequest, dict]): The request object. A request message for - BackendServices.SetEdgeSecurityPolicy. See the method - description for details. + BackendServices.SetEdgeSecurityPolicy. + See the method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -2161,8 +2161,8 @@ def set_edge_security_policy( Args: request (Union[google.cloud.compute_v1.types.SetEdgeSecurityPolicyBackendServiceRequest, dict]): The request object. A request message for - BackendServices.SetEdgeSecurityPolicy. See the method - description for details. + BackendServices.SetEdgeSecurityPolicy. + See the method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -2294,8 +2294,8 @@ def set_iam_policy( Args: request (Union[google.cloud.compute_v1.types.SetIamPolicyBackendServiceRequest, dict]): The request object. A request message for - BackendServices.SetIamPolicy. See the method description - for details. + BackendServices.SetIamPolicy. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -2440,8 +2440,8 @@ def set_security_policy_unary( Args: request (Union[google.cloud.compute_v1.types.SetSecurityPolicyBackendServiceRequest, dict]): The request object. A request message for - BackendServices.SetSecurityPolicy. See the method - description for details. + BackendServices.SetSecurityPolicy. See + the method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -2549,8 +2549,8 @@ def set_security_policy( Args: request (Union[google.cloud.compute_v1.types.SetSecurityPolicyBackendServiceRequest, dict]): The request object. A request message for - BackendServices.SetSecurityPolicy. See the method - description for details. + BackendServices.SetSecurityPolicy. See + the method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -2678,8 +2678,8 @@ def update_unary( Args: request (Union[google.cloud.compute_v1.types.UpdateBackendServiceRequest, dict]): The request object. A request message for - BackendServices.Update. See the method description for - details. + BackendServices.Update. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -2778,8 +2778,8 @@ def update( Args: request (Union[google.cloud.compute_v1.types.UpdateBackendServiceRequest, dict]): The request object. A request message for - BackendServices.Update. See the method description for - details. + BackendServices.Update. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field diff --git a/google/cloud/compute_v1/services/backend_services/transports/rest.py b/google/cloud/compute_v1/services/backend_services/transports/rest.py index ed678cb5a..9c5e0d0e1 100644 --- a/google/cloud/compute_v1/services/backend_services/transports/rest.py +++ b/google/cloud/compute_v1/services/backend_services/transports/rest.py @@ -626,7 +626,6 @@ def __call__( The request object. A request message for BackendServices.AddSignedUrlKey. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -739,7 +738,6 @@ def __call__( The request object. A request message for BackendServices.AggregatedList. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -828,7 +826,6 @@ def __call__( The request object. A request message for BackendServices.Delete. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -932,7 +929,6 @@ def __call__( The request object. A request message for BackendServices.DeleteSignedUrlKey. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1036,7 +1032,6 @@ def __call__( The request object. A request message for BackendServices.Get. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1138,7 +1133,6 @@ def __call__( The request object. A request message for BackendServices.GetHealth. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1234,7 +1228,6 @@ def __call__( The request object. A request message for BackendServices.GetIamPolicy. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1362,7 +1355,6 @@ def __call__( The request object. A request message for BackendServices.Insert. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1473,7 +1465,6 @@ def __call__( The request object. A request message for BackendServices.List. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1562,7 +1553,6 @@ def __call__( The request object. A request message for BackendServices.Patch. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1673,7 +1663,6 @@ def __call__( The request object. A request message for BackendServices.SetEdgeSecurityPolicy. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1786,7 +1775,6 @@ def __call__( The request object. A request message for BackendServices.SetIamPolicy. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1923,7 +1911,6 @@ def __call__( The request object. A request message for BackendServices.SetSecurityPolicy. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -2036,7 +2023,6 @@ def __call__( The request object. A request message for BackendServices.Update. See the method description for details. - 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/compute_v1/services/disk_types/client.py b/google/cloud/compute_v1/services/disk_types/client.py index 215fd8b37..70befc08b 100644 --- a/google/cloud/compute_v1/services/disk_types/client.py +++ b/google/cloud/compute_v1/services/disk_types/client.py @@ -432,8 +432,8 @@ def aggregated_list( Args: request (Union[google.cloud.compute_v1.types.AggregatedListDiskTypesRequest, dict]): The request object. A request message for - DiskTypes.AggregatedList. See the method description for - details. + DiskTypes.AggregatedList. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -625,8 +625,8 @@ def list( Args: request (Union[google.cloud.compute_v1.types.ListDiskTypesRequest, dict]): - The request object. A request message for - DiskTypes.List. See the method description for details. + The request object. A request message for DiskTypes.List. + See the method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field diff --git a/google/cloud/compute_v1/services/disk_types/transports/rest.py b/google/cloud/compute_v1/services/disk_types/transports/rest.py index 00e6a9685..e92afa126 100644 --- a/google/cloud/compute_v1/services/disk_types/transports/rest.py +++ b/google/cloud/compute_v1/services/disk_types/transports/rest.py @@ -287,7 +287,6 @@ def __call__( The request object. A request message for DiskTypes.AggregatedList. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -373,7 +372,6 @@ def __call__( request (~.compute.GetDiskTypeRequest): The request object. A request message for DiskTypes.Get. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -470,7 +468,6 @@ def __call__( request (~.compute.ListDiskTypesRequest): The request object. A request message for DiskTypes.List. See the method description for details. - 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/compute_v1/services/disks/client.py b/google/cloud/compute_v1/services/disks/client.py index ca99aff41..ff19418dc 100644 --- a/google/cloud/compute_v1/services/disks/client.py +++ b/google/cloud/compute_v1/services/disks/client.py @@ -442,8 +442,8 @@ def add_resource_policies_unary( Args: request (Union[google.cloud.compute_v1.types.AddResourcePoliciesDiskRequest, dict]): The request object. A request message for - Disks.AddResourcePolicies. See the method description - for details. + Disks.AddResourcePolicies. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -557,8 +557,8 @@ def add_resource_policies( Args: request (Union[google.cloud.compute_v1.types.AddResourcePoliciesDiskRequest, dict]): The request object. A request message for - Disks.AddResourcePolicies. See the method description - for details. + Disks.AddResourcePolicies. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -690,8 +690,8 @@ def aggregated_list( Args: request (Union[google.cloud.compute_v1.types.AggregatedListDisksRequest, dict]): The request object. A request message for - Disks.AggregatedList. See the method description for - details. + Disks.AggregatedList. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -782,8 +782,8 @@ def create_snapshot_unary( Args: request (Union[google.cloud.compute_v1.types.CreateSnapshotDiskRequest, dict]): The request object. A request message for - Disks.CreateSnapshot. See the method description for - details. + Disks.CreateSnapshot. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -895,8 +895,8 @@ def create_snapshot( Args: request (Union[google.cloud.compute_v1.types.CreateSnapshotDiskRequest, dict]): The request object. A request message for - Disks.CreateSnapshot. See the method description for - details. + Disks.CreateSnapshot. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1372,8 +1372,8 @@ def get_iam_policy( Args: request (Union[google.cloud.compute_v1.types.GetIamPolicyDiskRequest, dict]): The request object. A request message for - Disks.GetIamPolicy. See the method description for - details. + Disks.GetIamPolicy. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1741,8 +1741,8 @@ def list( Args: request (Union[google.cloud.compute_v1.types.ListDisksRequest, dict]): - The request object. A request message for Disks.List. - See the method description for details. + The request object. A request message for Disks.List. See + the method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1848,8 +1848,8 @@ def remove_resource_policies_unary( Args: request (Union[google.cloud.compute_v1.types.RemoveResourcePoliciesDiskRequest, dict]): The request object. A request message for - Disks.RemoveResourcePolicies. See the method description - for details. + Disks.RemoveResourcePolicies. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1963,8 +1963,8 @@ def remove_resource_policies( Args: request (Union[google.cloud.compute_v1.types.RemoveResourcePoliciesDiskRequest, dict]): The request object. A request message for - Disks.RemoveResourcePolicies. See the method description - for details. + Disks.RemoveResourcePolicies. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -2339,8 +2339,8 @@ def set_iam_policy( Args: request (Union[google.cloud.compute_v1.types.SetIamPolicyDiskRequest, dict]): The request object. A request message for - Disks.SetIamPolicy. See the method description for - details. + Disks.SetIamPolicy. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -2491,7 +2491,8 @@ def set_labels_unary( Args: request (Union[google.cloud.compute_v1.types.SetLabelsDiskRequest, dict]): The request object. A request message for - Disks.SetLabels. See the method description for details. + Disks.SetLabels. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -2604,7 +2605,8 @@ def set_labels( Args: request (Union[google.cloud.compute_v1.types.SetLabelsDiskRequest, dict]): The request object. A request message for - Disks.SetLabels. See the method description for details. + Disks.SetLabels. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -2744,8 +2746,8 @@ def test_iam_permissions( Args: request (Union[google.cloud.compute_v1.types.TestIamPermissionsDiskRequest, dict]): The request object. A request message for - Disks.TestIamPermissions. See the method description for - details. + Disks.TestIamPermissions. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field diff --git a/google/cloud/compute_v1/services/disks/transports/rest.py b/google/cloud/compute_v1/services/disks/transports/rest.py index 5def36397..8ef11c76a 100644 --- a/google/cloud/compute_v1/services/disks/transports/rest.py +++ b/google/cloud/compute_v1/services/disks/transports/rest.py @@ -602,7 +602,6 @@ def __call__( The request object. A request message for Disks.AddResourcePolicies. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -715,7 +714,6 @@ def __call__( The request object. A request message for Disks.AggregatedList. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -802,7 +800,6 @@ def __call__( The request object. A request message for Disks.CreateSnapshot. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -912,7 +909,6 @@ def __call__( request (~.compute.DeleteDiskRequest): The request object. A request message for Disks.Delete. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1013,7 +1009,6 @@ def __call__( request (~.compute.GetDiskRequest): The request object. A request message for Disks.Get. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1112,7 +1107,6 @@ def __call__( The request object. A request message for Disks.GetIamPolicy. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1239,7 +1233,6 @@ def __call__( request (~.compute.InsertDiskRequest): The request object. A request message for Disks.Insert. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1349,7 +1342,6 @@ def __call__( request (~.compute.ListDisksRequest): The request object. A request message for Disks.List. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1436,7 +1428,6 @@ def __call__( The request object. A request message for Disks.RemoveResourcePolicies. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1548,7 +1539,6 @@ def __call__( request (~.compute.ResizeDiskRequest): The request object. A request message for Disks.Resize. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1659,7 +1649,6 @@ def __call__( The request object. A request message for Disks.SetIamPolicy. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1796,7 +1785,6 @@ def __call__( The request object. A request message for Disks.SetLabels. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1907,7 +1895,6 @@ def __call__( The request object. A request message for Disks.TestIamPermissions. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -2004,7 +1991,6 @@ def __call__( request (~.compute.UpdateDiskRequest): The request object. A request message for Disks.Update. See the method description for details. - 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/compute_v1/services/external_vpn_gateways/client.py b/google/cloud/compute_v1/services/external_vpn_gateways/client.py index 5a49b9b17..b200f2d03 100644 --- a/google/cloud/compute_v1/services/external_vpn_gateways/client.py +++ b/google/cloud/compute_v1/services/external_vpn_gateways/client.py @@ -438,8 +438,8 @@ def delete_unary( Args: request (Union[google.cloud.compute_v1.types.DeleteExternalVpnGatewayRequest, dict]): The request object. A request message for - ExternalVpnGateways.Delete. See the method description - for details. + ExternalVpnGateways.Delete. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -528,8 +528,8 @@ def delete( Args: request (Union[google.cloud.compute_v1.types.DeleteExternalVpnGatewayRequest, dict]): The request object. A request message for - ExternalVpnGateways.Delete. See the method description - for details. + ExternalVpnGateways.Delete. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -644,8 +644,8 @@ def get( Args: request (Union[google.cloud.compute_v1.types.GetExternalVpnGatewayRequest, dict]): The request object. A request message for - ExternalVpnGateways.Get. See the method description for - details. + ExternalVpnGateways.Get. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -747,8 +747,8 @@ def insert_unary( Args: request (Union[google.cloud.compute_v1.types.InsertExternalVpnGatewayRequest, dict]): The request object. A request message for - ExternalVpnGateways.Insert. See the method description - for details. + ExternalVpnGateways.Insert. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -831,8 +831,8 @@ def insert( Args: request (Union[google.cloud.compute_v1.types.InsertExternalVpnGatewayRequest, dict]): The request object. A request message for - ExternalVpnGateways.Insert. See the method description - for details. + ExternalVpnGateways.Insert. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -938,8 +938,8 @@ def list( Args: request (Union[google.cloud.compute_v1.types.ListExternalVpnGatewaysRequest, dict]): The request object. A request message for - ExternalVpnGateways.List. See the method description for - details. + ExternalVpnGateways.List. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1033,8 +1033,8 @@ def set_labels_unary( Args: request (Union[google.cloud.compute_v1.types.SetLabelsExternalVpnGatewayRequest, dict]): The request object. A request message for - ExternalVpnGateways.SetLabels. See the method - description for details. + ExternalVpnGateways.SetLabels. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1141,8 +1141,8 @@ def set_labels( Args: request (Union[google.cloud.compute_v1.types.SetLabelsExternalVpnGatewayRequest, dict]): The request object. A request message for - ExternalVpnGateways.SetLabels. See the method - description for details. + ExternalVpnGateways.SetLabels. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1272,8 +1272,8 @@ def test_iam_permissions( Args: request (Union[google.cloud.compute_v1.types.TestIamPermissionsExternalVpnGatewayRequest, dict]): The request object. A request message for - ExternalVpnGateways.TestIamPermissions. See the method - description for details. + ExternalVpnGateways.TestIamPermissions. + See the method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field diff --git a/google/cloud/compute_v1/services/external_vpn_gateways/transports/rest.py b/google/cloud/compute_v1/services/external_vpn_gateways/transports/rest.py index 833a3ca8c..efd66b003 100644 --- a/google/cloud/compute_v1/services/external_vpn_gateways/transports/rest.py +++ b/google/cloud/compute_v1/services/external_vpn_gateways/transports/rest.py @@ -384,7 +384,6 @@ def __call__( The request object. A request message for ExternalVpnGateways.Delete. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -486,7 +485,6 @@ def __call__( The request object. A request message for ExternalVpnGateways.Get. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -587,7 +585,6 @@ def __call__( The request object. A request message for ExternalVpnGateways.Insert. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -698,7 +695,6 @@ def __call__( The request object. A request message for ExternalVpnGateways.List. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -787,7 +783,6 @@ def __call__( The request object. A request message for ExternalVpnGateways.SetLabels. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -898,7 +893,6 @@ def __call__( The request object. A request message for ExternalVpnGateways.TestIamPermissions. See the method description for details. - 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/compute_v1/services/firewall_policies/client.py b/google/cloud/compute_v1/services/firewall_policies/client.py index 9d7a278cc..af34f584f 100644 --- a/google/cloud/compute_v1/services/firewall_policies/client.py +++ b/google/cloud/compute_v1/services/firewall_policies/client.py @@ -443,8 +443,8 @@ def add_association_unary( Args: request (Union[google.cloud.compute_v1.types.AddAssociationFirewallPolicyRequest, dict]): The request object. A request message for - FirewallPolicies.AddAssociation. See the method - description for details. + FirewallPolicies.AddAssociation. See the + method description for details. firewall_policy (str): Name of the firewall policy to update. @@ -539,8 +539,8 @@ def add_association( Args: request (Union[google.cloud.compute_v1.types.AddAssociationFirewallPolicyRequest, dict]): The request object. A request message for - FirewallPolicies.AddAssociation. See the method - description for details. + FirewallPolicies.AddAssociation. See the + method description for details. firewall_policy (str): Name of the firewall policy to update. @@ -653,8 +653,8 @@ def add_rule_unary( Args: request (Union[google.cloud.compute_v1.types.AddRuleFirewallPolicyRequest, dict]): The request object. A request message for - FirewallPolicies.AddRule. See the method description for - details. + FirewallPolicies.AddRule. See the method + description for details. firewall_policy (str): Name of the firewall policy to update. @@ -740,8 +740,8 @@ def add_rule( Args: request (Union[google.cloud.compute_v1.types.AddRuleFirewallPolicyRequest, dict]): The request object. A request message for - FirewallPolicies.AddRule. See the method description for - details. + FirewallPolicies.AddRule. See the method + description for details. firewall_policy (str): Name of the firewall policy to update. @@ -849,8 +849,8 @@ def clone_rules_unary( Args: request (Union[google.cloud.compute_v1.types.CloneRulesFirewallPolicyRequest, dict]): The request object. A request message for - FirewallPolicies.CloneRules. See the method description - for details. + FirewallPolicies.CloneRules. See the + method description for details. firewall_policy (str): Name of the firewall policy to update. @@ -928,8 +928,8 @@ def clone_rules( Args: request (Union[google.cloud.compute_v1.types.CloneRulesFirewallPolicyRequest, dict]): The request object. A request message for - FirewallPolicies.CloneRules. See the method description - for details. + FirewallPolicies.CloneRules. See the + method description for details. firewall_policy (str): Name of the firewall policy to update. @@ -1030,8 +1030,8 @@ def delete_unary( Args: request (Union[google.cloud.compute_v1.types.DeleteFirewallPolicyRequest, dict]): The request object. A request message for - FirewallPolicies.Delete. See the method description for - details. + FirewallPolicies.Delete. See the method + description for details. firewall_policy (str): Name of the firewall policy to delete. @@ -1109,8 +1109,8 @@ def delete( Args: request (Union[google.cloud.compute_v1.types.DeleteFirewallPolicyRequest, dict]): The request object. A request message for - FirewallPolicies.Delete. See the method description for - details. + FirewallPolicies.Delete. See the method + description for details. firewall_policy (str): Name of the firewall policy to delete. @@ -1211,8 +1211,8 @@ def get( Args: request (Union[google.cloud.compute_v1.types.GetFirewallPolicyRequest, dict]): The request object. A request message for - FirewallPolicies.Get. See the method description for - details. + FirewallPolicies.Get. See the method + description for details. firewall_policy (str): Name of the firewall policy to get. This corresponds to the ``firewall_policy`` field @@ -1290,8 +1290,8 @@ def get_association( Args: request (Union[google.cloud.compute_v1.types.GetAssociationFirewallPolicyRequest, dict]): The request object. A request message for - FirewallPolicies.GetAssociation. See the method - description for details. + FirewallPolicies.GetAssociation. See the + method description for details. firewall_policy (str): Name of the firewall policy to which the queried rule belongs. @@ -1370,8 +1370,8 @@ def get_iam_policy( Args: request (Union[google.cloud.compute_v1.types.GetIamPolicyFirewallPolicyRequest, dict]): The request object. A request message for - FirewallPolicies.GetIamPolicy. See the method - description for details. + FirewallPolicies.GetIamPolicy. See the + method description for details. resource (str): Name or id of the resource for this request. @@ -1485,8 +1485,8 @@ def get_rule( Args: request (Union[google.cloud.compute_v1.types.GetRuleFirewallPolicyRequest, dict]): The request object. A request message for - FirewallPolicies.GetRule. See the method description for - details. + FirewallPolicies.GetRule. See the method + description for details. firewall_policy (str): Name of the firewall policy to which the queried rule belongs. @@ -1568,8 +1568,8 @@ def insert_unary( Args: request (Union[google.cloud.compute_v1.types.InsertFirewallPolicyRequest, dict]): The request object. A request message for - FirewallPolicies.Insert. See the method description for - details. + FirewallPolicies.Insert. See the method + description for details. parent_id (str): Parent ID for this request. The ID can be either be "folders/[FOLDER_ID]" if the parent is a folder or @@ -1650,8 +1650,8 @@ def insert( Args: request (Union[google.cloud.compute_v1.types.InsertFirewallPolicyRequest, dict]): The request object. A request message for - FirewallPolicies.Insert. See the method description for - details. + FirewallPolicies.Insert. See the method + description for details. parent_id (str): Parent ID for this request. The ID can be either be "folders/[FOLDER_ID]" if the parent is a folder or @@ -1754,8 +1754,8 @@ def list( Args: request (Union[google.cloud.compute_v1.types.ListFirewallPoliciesRequest, dict]): The request object. A request message for - FirewallPolicies.List. See the method description for - details. + FirewallPolicies.List. See the method + description for details. retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1817,8 +1817,8 @@ def list_associations( Args: request (Union[google.cloud.compute_v1.types.ListAssociationsFirewallPolicyRequest, dict]): The request object. A request message for - FirewallPolicies.ListAssociations. See the method - description for details. + FirewallPolicies.ListAssociations. See + the method description for details. retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1867,8 +1867,8 @@ def move_unary( Args: request (Union[google.cloud.compute_v1.types.MoveFirewallPolicyRequest, dict]): The request object. A request message for - FirewallPolicies.Move. See the method description for - details. + FirewallPolicies.Move. See the method + description for details. firewall_policy (str): Name of the firewall policy to update. @@ -1958,8 +1958,8 @@ def move( Args: request (Union[google.cloud.compute_v1.types.MoveFirewallPolicyRequest, dict]): The request object. A request message for - FirewallPolicies.Move. See the method description for - details. + FirewallPolicies.Move. See the method + description for details. firewall_policy (str): Name of the firewall policy to update. @@ -2074,8 +2074,8 @@ def patch_unary( Args: request (Union[google.cloud.compute_v1.types.PatchFirewallPolicyRequest, dict]): The request object. A request message for - FirewallPolicies.Patch. See the method description for - details. + FirewallPolicies.Patch. See the method + description for details. firewall_policy (str): Name of the firewall policy to update. @@ -2162,8 +2162,8 @@ def patch( Args: request (Union[google.cloud.compute_v1.types.PatchFirewallPolicyRequest, dict]): The request object. A request message for - FirewallPolicies.Patch. See the method description for - details. + FirewallPolicies.Patch. See the method + description for details. firewall_policy (str): Name of the firewall policy to update. @@ -2272,8 +2272,8 @@ def patch_rule_unary( Args: request (Union[google.cloud.compute_v1.types.PatchRuleFirewallPolicyRequest, dict]): The request object. A request message for - FirewallPolicies.PatchRule. See the method description - for details. + FirewallPolicies.PatchRule. See the + method description for details. firewall_policy (str): Name of the firewall policy to update. @@ -2359,8 +2359,8 @@ def patch_rule( Args: request (Union[google.cloud.compute_v1.types.PatchRuleFirewallPolicyRequest, dict]): The request object. A request message for - FirewallPolicies.PatchRule. See the method description - for details. + FirewallPolicies.PatchRule. See the + method description for details. firewall_policy (str): Name of the firewall policy to update. @@ -2471,8 +2471,8 @@ def remove_association_unary( Args: request (Union[google.cloud.compute_v1.types.RemoveAssociationFirewallPolicyRequest, dict]): The request object. A request message for - FirewallPolicies.RemoveAssociation. See the method - description for details. + FirewallPolicies.RemoveAssociation. See + the method description for details. firewall_policy (str): Name of the firewall policy to update. @@ -2553,8 +2553,8 @@ def remove_association( Args: request (Union[google.cloud.compute_v1.types.RemoveAssociationFirewallPolicyRequest, dict]): The request object. A request message for - FirewallPolicies.RemoveAssociation. See the method - description for details. + FirewallPolicies.RemoveAssociation. See + the method description for details. firewall_policy (str): Name of the firewall policy to update. @@ -2655,8 +2655,8 @@ def remove_rule_unary( Args: request (Union[google.cloud.compute_v1.types.RemoveRuleFirewallPolicyRequest, dict]): The request object. A request message for - FirewallPolicies.RemoveRule. See the method description - for details. + FirewallPolicies.RemoveRule. See the + method description for details. firewall_policy (str): Name of the firewall policy to update. @@ -2734,8 +2734,8 @@ def remove_rule( Args: request (Union[google.cloud.compute_v1.types.RemoveRuleFirewallPolicyRequest, dict]): The request object. A request message for - FirewallPolicies.RemoveRule. See the method description - for details. + FirewallPolicies.RemoveRule. See the + method description for details. firewall_policy (str): Name of the firewall policy to update. @@ -2842,8 +2842,8 @@ def set_iam_policy( Args: request (Union[google.cloud.compute_v1.types.SetIamPolicyFirewallPolicyRequest, dict]): The request object. A request message for - FirewallPolicies.SetIamPolicy. See the method - description for details. + FirewallPolicies.SetIamPolicy. See the + method description for details. resource (str): Name or id of the resource for this request. @@ -2974,8 +2974,8 @@ def test_iam_permissions( Args: request (Union[google.cloud.compute_v1.types.TestIamPermissionsFirewallPolicyRequest, dict]): The request object. A request message for - FirewallPolicies.TestIamPermissions. See the method - description for details. + FirewallPolicies.TestIamPermissions. See + the method description for details. resource (str): Name or id of the resource for this request. diff --git a/google/cloud/compute_v1/services/firewall_policies/transports/rest.py b/google/cloud/compute_v1/services/firewall_policies/transports/rest.py index 5074504ca..ac00bef4e 100644 --- a/google/cloud/compute_v1/services/firewall_policies/transports/rest.py +++ b/google/cloud/compute_v1/services/firewall_policies/transports/rest.py @@ -740,7 +740,6 @@ def __call__( The request object. A request message for FirewallPolicies.AddAssociation. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -851,7 +850,6 @@ def __call__( The request object. A request message for FirewallPolicies.AddRule. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -962,7 +960,6 @@ def __call__( The request object. A request message for FirewallPolicies.CloneRules. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1064,7 +1061,6 @@ def __call__( The request object. A request message for FirewallPolicies.Delete. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1166,7 +1162,6 @@ def __call__( The request object. A request message for FirewallPolicies.Get. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1255,7 +1250,6 @@ def __call__( The request object. A request message for FirewallPolicies.GetAssociation. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1342,7 +1336,6 @@ def __call__( The request object. A request message for FirewallPolicies.GetIamPolicy. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1470,7 +1463,6 @@ def __call__( The request object. A request message for FirewallPolicies.GetRule. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1563,7 +1555,6 @@ def __call__( The request object. A request message for FirewallPolicies.Insert. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1664,7 +1655,6 @@ def __call__( The request object. A request message for FirewallPolicies.List. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1740,7 +1730,6 @@ def __call__( The request object. A request message for FirewallPolicies.ListAssociations. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1830,7 +1819,6 @@ def __call__( The request object. A request message for FirewallPolicies.Move. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1932,7 +1920,6 @@ def __call__( The request object. A request message for FirewallPolicies.Patch. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -2043,7 +2030,6 @@ def __call__( The request object. A request message for FirewallPolicies.PatchRule. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -2154,7 +2140,6 @@ def __call__( The request object. A request message for FirewallPolicies.RemoveAssociation. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -2258,7 +2243,6 @@ def __call__( The request object. A request message for FirewallPolicies.RemoveRule. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -2360,7 +2344,6 @@ def __call__( The request object. A request message for FirewallPolicies.SetIamPolicy. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -2497,7 +2480,6 @@ def __call__( The request object. A request message for FirewallPolicies.TestIamPermissions. See the method description for details. - 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/compute_v1/services/firewalls/client.py b/google/cloud/compute_v1/services/firewalls/client.py index e745d1ada..93e273f35 100644 --- a/google/cloud/compute_v1/services/firewalls/client.py +++ b/google/cloud/compute_v1/services/firewalls/client.py @@ -436,8 +436,8 @@ def delete_unary( Args: request (Union[google.cloud.compute_v1.types.DeleteFirewallRequest, dict]): The request object. A request message for - Firewalls.Delete. See the method description for - details. + Firewalls.Delete. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -524,8 +524,8 @@ def delete( Args: request (Union[google.cloud.compute_v1.types.DeleteFirewallRequest, dict]): The request object. A request message for - Firewalls.Delete. See the method description for - details. + Firewalls.Delete. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -727,8 +727,8 @@ def insert_unary( Args: request (Union[google.cloud.compute_v1.types.InsertFirewallRequest, dict]): The request object. A request message for - Firewalls.Insert. See the method description for - details. + Firewalls.Insert. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -811,8 +811,8 @@ def insert( Args: request (Union[google.cloud.compute_v1.types.InsertFirewallRequest, dict]): The request object. A request message for - Firewalls.Insert. See the method description for - details. + Firewalls.Insert. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -917,8 +917,8 @@ def list( Args: request (Union[google.cloud.compute_v1.types.ListFirewallsRequest, dict]): - The request object. A request message for - Firewalls.List. See the method description for details. + The request object. A request message for Firewalls.List. + See the method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1008,7 +1008,8 @@ def patch_unary( Args: request (Union[google.cloud.compute_v1.types.PatchFirewallRequest, dict]): The request object. A request message for - Firewalls.Patch. See the method description for details. + Firewalls.Patch. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1106,7 +1107,8 @@ def patch( Args: request (Union[google.cloud.compute_v1.types.PatchFirewallRequest, dict]): The request object. A request message for - Firewalls.Patch. See the method description for details. + Firewalls.Patch. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1229,8 +1231,8 @@ def update_unary( Args: request (Union[google.cloud.compute_v1.types.UpdateFirewallRequest, dict]): The request object. A request message for - Firewalls.Update. See the method description for - details. + Firewalls.Update. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1329,8 +1331,8 @@ def update( Args: request (Union[google.cloud.compute_v1.types.UpdateFirewallRequest, dict]): The request object. A request message for - Firewalls.Update. See the method description for - details. + Firewalls.Update. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field diff --git a/google/cloud/compute_v1/services/firewalls/transports/rest.py b/google/cloud/compute_v1/services/firewalls/transports/rest.py index 0b858fd7b..95044e1a0 100644 --- a/google/cloud/compute_v1/services/firewalls/transports/rest.py +++ b/google/cloud/compute_v1/services/firewalls/transports/rest.py @@ -370,7 +370,6 @@ def __call__( The request object. A request message for Firewalls.Delete. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -471,7 +470,6 @@ def __call__( request (~.compute.GetFirewallRequest): The request object. A request message for Firewalls.Get. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -563,7 +561,6 @@ def __call__( The request object. A request message for Firewalls.Insert. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -673,7 +670,6 @@ def __call__( request (~.compute.ListFirewallsRequest): The request object. A request message for Firewalls.List. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -760,7 +756,6 @@ def __call__( The request object. A request message for Firewalls.Patch. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -871,7 +866,6 @@ def __call__( The request object. A request message for Firewalls.Update. See the method description for details. - 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/compute_v1/services/forwarding_rules/client.py b/google/cloud/compute_v1/services/forwarding_rules/client.py index 806469a52..833976dd3 100644 --- a/google/cloud/compute_v1/services/forwarding_rules/client.py +++ b/google/cloud/compute_v1/services/forwarding_rules/client.py @@ -439,8 +439,8 @@ def aggregated_list( Args: request (Union[google.cloud.compute_v1.types.AggregatedListForwardingRulesRequest, dict]): The request object. A request message for - ForwardingRules.AggregatedList. See the method - description for details. + ForwardingRules.AggregatedList. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -526,8 +526,8 @@ def delete_unary( Args: request (Union[google.cloud.compute_v1.types.DeleteForwardingRuleRequest, dict]): The request object. A request message for - ForwardingRules.Delete. See the method description for - details. + ForwardingRules.Delete. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -627,8 +627,8 @@ def delete( Args: request (Union[google.cloud.compute_v1.types.DeleteForwardingRuleRequest, dict]): The request object. A request message for - ForwardingRules.Delete. See the method description for - details. + ForwardingRules.Delete. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -753,8 +753,8 @@ def get( Args: request (Union[google.cloud.compute_v1.types.GetForwardingRuleRequest, dict]): The request object. A request message for - ForwardingRules.Get. See the method description for - details. + ForwardingRules.Get. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -866,8 +866,8 @@ def insert_unary( Args: request (Union[google.cloud.compute_v1.types.InsertForwardingRuleRequest, dict]): The request object. A request message for - ForwardingRules.Insert. See the method description for - details. + ForwardingRules.Insert. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -966,8 +966,8 @@ def insert( Args: request (Union[google.cloud.compute_v1.types.InsertForwardingRuleRequest, dict]): The request object. A request message for - ForwardingRules.Insert. See the method description for - details. + ForwardingRules.Insert. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1089,8 +1089,8 @@ def list( Args: request (Union[google.cloud.compute_v1.types.ListForwardingRulesRequest, dict]): The request object. A request message for - ForwardingRules.List. See the method description for - details. + ForwardingRules.List. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1196,8 +1196,8 @@ def patch_unary( Args: request (Union[google.cloud.compute_v1.types.PatchForwardingRuleRequest, dict]): The request object. A request message for - ForwardingRules.Patch. See the method description for - details. + ForwardingRules.Patch. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1310,8 +1310,8 @@ def patch( Args: request (Union[google.cloud.compute_v1.types.PatchForwardingRuleRequest, dict]): The request object. A request message for - ForwardingRules.Patch. See the method description for - details. + ForwardingRules.Patch. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1450,8 +1450,8 @@ def set_labels_unary( Args: request (Union[google.cloud.compute_v1.types.SetLabelsForwardingRuleRequest, dict]): The request object. A request message for - ForwardingRules.SetLabels. See the method description - for details. + ForwardingRules.SetLabels. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1565,8 +1565,8 @@ def set_labels( Args: request (Union[google.cloud.compute_v1.types.SetLabelsForwardingRuleRequest, dict]): The request object. A request message for - ForwardingRules.SetLabels. See the method description - for details. + ForwardingRules.SetLabels. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1702,8 +1702,8 @@ def set_target_unary( Args: request (Union[google.cloud.compute_v1.types.SetTargetForwardingRuleRequest, dict]): The request object. A request message for - ForwardingRules.SetTarget. See the method description - for details. + ForwardingRules.SetTarget. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1814,8 +1814,8 @@ def set_target( Args: request (Union[google.cloud.compute_v1.types.SetTargetForwardingRuleRequest, dict]): The request object. A request message for - ForwardingRules.SetTarget. See the method description - for details. + ForwardingRules.SetTarget. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field diff --git a/google/cloud/compute_v1/services/forwarding_rules/transports/rest.py b/google/cloud/compute_v1/services/forwarding_rules/transports/rest.py index 60879d915..155210194 100644 --- a/google/cloud/compute_v1/services/forwarding_rules/transports/rest.py +++ b/google/cloud/compute_v1/services/forwarding_rules/transports/rest.py @@ -438,7 +438,6 @@ def __call__( The request object. A request message for ForwardingRules.AggregatedList. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -525,7 +524,6 @@ def __call__( The request object. A request message for ForwardingRules.Delete. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -627,7 +625,6 @@ def __call__( The request object. A request message for ForwardingRules.Get. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -726,7 +723,6 @@ def __call__( The request object. A request message for ForwardingRules.Insert. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -837,7 +833,6 @@ def __call__( The request object. A request message for ForwardingRules.List. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -926,7 +921,6 @@ def __call__( The request object. A request message for ForwardingRules.Patch. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1037,7 +1031,6 @@ def __call__( The request object. A request message for ForwardingRules.SetLabels. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1148,7 +1141,6 @@ def __call__( The request object. A request message for ForwardingRules.SetTarget. See the method description for details. - 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/compute_v1/services/global_addresses/client.py b/google/cloud/compute_v1/services/global_addresses/client.py index 84d5715ae..5b5f60cda 100644 --- a/google/cloud/compute_v1/services/global_addresses/client.py +++ b/google/cloud/compute_v1/services/global_addresses/client.py @@ -438,8 +438,8 @@ def delete_unary( Args: request (Union[google.cloud.compute_v1.types.DeleteGlobalAddressRequest, dict]): The request object. A request message for - GlobalAddresses.Delete. See the method description for - details. + GlobalAddresses.Delete. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -528,8 +528,8 @@ def delete( Args: request (Union[google.cloud.compute_v1.types.DeleteGlobalAddressRequest, dict]): The request object. A request message for - GlobalAddresses.Delete. See the method description for - details. + GlobalAddresses.Delete. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -642,8 +642,8 @@ def get( Args: request (Union[google.cloud.compute_v1.types.GetGlobalAddressRequest, dict]): The request object. A request message for - GlobalAddresses.Get. See the method description for - details. + GlobalAddresses.Get. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -738,8 +738,8 @@ def insert_unary( Args: request (Union[google.cloud.compute_v1.types.InsertGlobalAddressRequest, dict]): The request object. A request message for - GlobalAddresses.Insert. See the method description for - details. + GlobalAddresses.Insert. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -822,8 +822,8 @@ def insert( Args: request (Union[google.cloud.compute_v1.types.InsertGlobalAddressRequest, dict]): The request object. A request message for - GlobalAddresses.Insert. See the method description for - details. + GlobalAddresses.Insert. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -928,8 +928,8 @@ def list( Args: request (Union[google.cloud.compute_v1.types.ListGlobalAddressesRequest, dict]): The request object. A request message for - GlobalAddresses.List. See the method description for - details. + GlobalAddresses.List. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1019,8 +1019,8 @@ def set_labels_unary( Args: request (Union[google.cloud.compute_v1.types.SetLabelsGlobalAddressRequest, dict]): The request object. A request message for - GlobalAddresses.SetLabels. See the method description - for details. + GlobalAddresses.SetLabels. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1124,8 +1124,8 @@ def set_labels( Args: request (Union[google.cloud.compute_v1.types.SetLabelsGlobalAddressRequest, dict]): The request object. A request message for - GlobalAddresses.SetLabels. See the method description - for details. + GlobalAddresses.SetLabels. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field diff --git a/google/cloud/compute_v1/services/global_addresses/transports/rest.py b/google/cloud/compute_v1/services/global_addresses/transports/rest.py index fbcc23502..2f9ac4bf9 100644 --- a/google/cloud/compute_v1/services/global_addresses/transports/rest.py +++ b/google/cloud/compute_v1/services/global_addresses/transports/rest.py @@ -347,7 +347,6 @@ def __call__( The request object. A request message for GlobalAddresses.Delete. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -449,7 +448,6 @@ def __call__( The request object. A request message for GlobalAddresses.Get. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -543,7 +541,6 @@ def __call__( The request object. A request message for GlobalAddresses.Insert. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -654,7 +651,6 @@ def __call__( The request object. A request message for GlobalAddresses.List. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -741,7 +737,6 @@ def __call__( The request object. A request message for GlobalAddresses.SetLabels. See the method description for details. - 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/compute_v1/services/global_forwarding_rules/client.py b/google/cloud/compute_v1/services/global_forwarding_rules/client.py index ac233b764..f04706863 100644 --- a/google/cloud/compute_v1/services/global_forwarding_rules/client.py +++ b/google/cloud/compute_v1/services/global_forwarding_rules/client.py @@ -440,8 +440,8 @@ def delete_unary( Args: request (Union[google.cloud.compute_v1.types.DeleteGlobalForwardingRuleRequest, dict]): The request object. A request message for - GlobalForwardingRules.Delete. See the method description - for details. + GlobalForwardingRules.Delete. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -532,8 +532,8 @@ def delete( Args: request (Union[google.cloud.compute_v1.types.DeleteGlobalForwardingRuleRequest, dict]): The request object. A request message for - GlobalForwardingRules.Delete. See the method description - for details. + GlobalForwardingRules.Delete. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -648,8 +648,8 @@ def get( Args: request (Union[google.cloud.compute_v1.types.GetGlobalForwardingRuleRequest, dict]): The request object. A request message for - GlobalForwardingRules.Get. See the method description - for details. + GlobalForwardingRules.Get. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -752,8 +752,8 @@ def insert_unary( Args: request (Union[google.cloud.compute_v1.types.InsertGlobalForwardingRuleRequest, dict]): The request object. A request message for - GlobalForwardingRules.Insert. See the method description - for details. + GlobalForwardingRules.Insert. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -839,8 +839,8 @@ def insert( Args: request (Union[google.cloud.compute_v1.types.InsertGlobalForwardingRuleRequest, dict]): The request object. A request message for - GlobalForwardingRules.Insert. See the method description - for details. + GlobalForwardingRules.Insert. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -946,8 +946,8 @@ def list( Args: request (Union[google.cloud.compute_v1.types.ListGlobalForwardingRulesRequest, dict]): The request object. A request message for - GlobalForwardingRules.List. See the method description - for details. + GlobalForwardingRules.List. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1038,8 +1038,8 @@ def patch_unary( Args: request (Union[google.cloud.compute_v1.types.PatchGlobalForwardingRuleRequest, dict]): The request object. A request message for - GlobalForwardingRules.Patch. See the method description - for details. + GlobalForwardingRules.Patch. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1139,8 +1139,8 @@ def patch( Args: request (Union[google.cloud.compute_v1.types.PatchGlobalForwardingRuleRequest, dict]): The request object. A request message for - GlobalForwardingRules.Patch. See the method description - for details. + GlobalForwardingRules.Patch. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1267,8 +1267,8 @@ def set_labels_unary( Args: request (Union[google.cloud.compute_v1.types.SetLabelsGlobalForwardingRuleRequest, dict]): The request object. A request message for - GlobalForwardingRules.SetLabels. See the method - description for details. + GlobalForwardingRules.SetLabels. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1375,8 +1375,8 @@ def set_labels( Args: request (Union[google.cloud.compute_v1.types.SetLabelsGlobalForwardingRuleRequest, dict]): The request object. A request message for - GlobalForwardingRules.SetLabels. See the method - description for details. + GlobalForwardingRules.SetLabels. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1505,8 +1505,8 @@ def set_target_unary( Args: request (Union[google.cloud.compute_v1.types.SetTargetGlobalForwardingRuleRequest, dict]): The request object. A request message for - GlobalForwardingRules.SetTarget. See the method - description for details. + GlobalForwardingRules.SetTarget. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1609,8 +1609,8 @@ def set_target( Args: request (Union[google.cloud.compute_v1.types.SetTargetGlobalForwardingRuleRequest, dict]): The request object. A request message for - GlobalForwardingRules.SetTarget. See the method - description for details. + GlobalForwardingRules.SetTarget. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field diff --git a/google/cloud/compute_v1/services/global_forwarding_rules/transports/rest.py b/google/cloud/compute_v1/services/global_forwarding_rules/transports/rest.py index 6cada5e8b..0e5be1c57 100644 --- a/google/cloud/compute_v1/services/global_forwarding_rules/transports/rest.py +++ b/google/cloud/compute_v1/services/global_forwarding_rules/transports/rest.py @@ -407,7 +407,6 @@ def __call__( The request object. A request message for GlobalForwardingRules.Delete. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -509,7 +508,6 @@ def __call__( The request object. A request message for GlobalForwardingRules.Get. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -608,7 +606,6 @@ def __call__( The request object. A request message for GlobalForwardingRules.Insert. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -719,7 +716,6 @@ def __call__( The request object. A request message for GlobalForwardingRules.List. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -808,7 +804,6 @@ def __call__( The request object. A request message for GlobalForwardingRules.Patch. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -919,7 +914,6 @@ def __call__( The request object. A request message for GlobalForwardingRules.SetLabels. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1030,7 +1024,6 @@ def __call__( The request object. A request message for GlobalForwardingRules.SetTarget. See the method description for details. - 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/compute_v1/services/global_network_endpoint_groups/client.py b/google/cloud/compute_v1/services/global_network_endpoint_groups/client.py index 2a39593d1..0b9035101 100644 --- a/google/cloud/compute_v1/services/global_network_endpoint_groups/client.py +++ b/google/cloud/compute_v1/services/global_network_endpoint_groups/client.py @@ -446,8 +446,8 @@ def attach_network_endpoints_unary( Args: request (Union[google.cloud.compute_v1.types.AttachNetworkEndpointsGlobalNetworkEndpointGroupRequest, dict]): The request object. A request message for - GlobalNetworkEndpointGroups.AttachNetworkEndpoints. See - the method description for details. + GlobalNetworkEndpointGroups.AttachNetworkEndpoints. + See the method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -566,8 +566,8 @@ def attach_network_endpoints( Args: request (Union[google.cloud.compute_v1.types.AttachNetworkEndpointsGlobalNetworkEndpointGroupRequest, dict]): The request object. A request message for - GlobalNetworkEndpointGroups.AttachNetworkEndpoints. See - the method description for details. + GlobalNetworkEndpointGroups.AttachNetworkEndpoints. + See the method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -708,8 +708,8 @@ def delete_unary( Args: request (Union[google.cloud.compute_v1.types.DeleteGlobalNetworkEndpointGroupRequest, dict]): The request object. A request message for - GlobalNetworkEndpointGroups.Delete. See the method - description for details. + GlobalNetworkEndpointGroups.Delete. See + the method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -803,8 +803,8 @@ def delete( Args: request (Union[google.cloud.compute_v1.types.DeleteGlobalNetworkEndpointGroupRequest, dict]): The request object. A request message for - GlobalNetworkEndpointGroups.Delete. See the method - description for details. + GlobalNetworkEndpointGroups.Delete. See + the method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -924,8 +924,8 @@ def detach_network_endpoints_unary( Args: request (Union[google.cloud.compute_v1.types.DetachNetworkEndpointsGlobalNetworkEndpointGroupRequest, dict]): The request object. A request message for - GlobalNetworkEndpointGroups.DetachNetworkEndpoints. See - the method description for details. + GlobalNetworkEndpointGroups.DetachNetworkEndpoints. + See the method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1044,8 +1044,8 @@ def detach_network_endpoints( Args: request (Union[google.cloud.compute_v1.types.DetachNetworkEndpointsGlobalNetworkEndpointGroupRequest, dict]): The request object. A request message for - GlobalNetworkEndpointGroups.DetachNetworkEndpoints. See - the method description for details. + GlobalNetworkEndpointGroups.DetachNetworkEndpoints. + See the method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1184,8 +1184,8 @@ def get( Args: request (Union[google.cloud.compute_v1.types.GetGlobalNetworkEndpointGroupRequest, dict]): The request object. A request message for - GlobalNetworkEndpointGroups.Get. See the method - description for details. + GlobalNetworkEndpointGroups.Get. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1287,8 +1287,8 @@ def insert_unary( Args: request (Union[google.cloud.compute_v1.types.InsertGlobalNetworkEndpointGroupRequest, dict]): The request object. A request message for - GlobalNetworkEndpointGroups.Insert. See the method - description for details. + GlobalNetworkEndpointGroups.Insert. See + the method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1376,8 +1376,8 @@ def insert( Args: request (Union[google.cloud.compute_v1.types.InsertGlobalNetworkEndpointGroupRequest, dict]): The request object. A request message for - GlobalNetworkEndpointGroups.Insert. See the method - description for details. + GlobalNetworkEndpointGroups.Insert. See + the method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1487,8 +1487,8 @@ def list( Args: request (Union[google.cloud.compute_v1.types.ListGlobalNetworkEndpointGroupsRequest, dict]): The request object. A request message for - GlobalNetworkEndpointGroups.List. See the method - description for details. + GlobalNetworkEndpointGroups.List. See + the method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1576,8 +1576,8 @@ def list_network_endpoints( Args: request (Union[google.cloud.compute_v1.types.ListNetworkEndpointsGlobalNetworkEndpointGroupsRequest, dict]): The request object. A request message for - GlobalNetworkEndpointGroups.ListNetworkEndpoints. See - the method description for details. + GlobalNetworkEndpointGroups.ListNetworkEndpoints. + See the method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field diff --git a/google/cloud/compute_v1/services/global_network_endpoint_groups/transports/rest.py b/google/cloud/compute_v1/services/global_network_endpoint_groups/transports/rest.py index 9d907c633..f7bb4c663 100644 --- a/google/cloud/compute_v1/services/global_network_endpoint_groups/transports/rest.py +++ b/google/cloud/compute_v1/services/global_network_endpoint_groups/transports/rest.py @@ -430,7 +430,6 @@ def __call__( The request object. A request message for GlobalNetworkEndpointGroups.AttachNetworkEndpoints. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -547,7 +546,6 @@ def __call__( The request object. A request message for GlobalNetworkEndpointGroups.Delete. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -649,7 +647,6 @@ def __call__( The request object. A request message for GlobalNetworkEndpointGroups.DetachNetworkEndpoints. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -766,7 +763,6 @@ def __call__( The request object. A request message for GlobalNetworkEndpointGroups.Get. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -864,7 +860,6 @@ def __call__( The request object. A request message for GlobalNetworkEndpointGroups.Insert. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -975,7 +970,6 @@ def __call__( The request object. A request message for GlobalNetworkEndpointGroups.List. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1062,7 +1056,6 @@ def __call__( The request object. A request message for GlobalNetworkEndpointGroups.ListNetworkEndpoints. See the method description for details. - 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/compute_v1/services/global_operations/client.py b/google/cloud/compute_v1/services/global_operations/client.py index a43030f4c..8f9b69f97 100644 --- a/google/cloud/compute_v1/services/global_operations/client.py +++ b/google/cloud/compute_v1/services/global_operations/client.py @@ -436,8 +436,8 @@ def aggregated_list( Args: request (Union[google.cloud.compute_v1.types.AggregatedListGlobalOperationsRequest, dict]): The request object. A request message for - GlobalOperations.AggregatedList. See the method - description for details. + GlobalOperations.AggregatedList. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -522,8 +522,8 @@ def delete( Args: request (Union[google.cloud.compute_v1.types.DeleteGlobalOperationRequest, dict]): The request object. A request message for - GlobalOperations.Delete. See the method description for - details. + GlobalOperations.Delete. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -613,8 +613,8 @@ def get( Args: request (Union[google.cloud.compute_v1.types.GetGlobalOperationRequest, dict]): The request object. A request message for - GlobalOperations.Get. See the method description for - details. + GlobalOperations.Get. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -716,8 +716,8 @@ def list( Args: request (Union[google.cloud.compute_v1.types.ListGlobalOperationsRequest, dict]): The request object. A request message for - GlobalOperations.List. See the method description for - details. + GlobalOperations.List. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -816,8 +816,8 @@ def wait( Args: request (Union[google.cloud.compute_v1.types.WaitGlobalOperationRequest, dict]): The request object. A request message for - GlobalOperations.Wait. See the method description for - details. + GlobalOperations.Wait. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field diff --git a/google/cloud/compute_v1/services/global_operations/transports/rest.py b/google/cloud/compute_v1/services/global_operations/transports/rest.py index ec4e80576..42ab3eece 100644 --- a/google/cloud/compute_v1/services/global_operations/transports/rest.py +++ b/google/cloud/compute_v1/services/global_operations/transports/rest.py @@ -353,7 +353,6 @@ def __call__( The request object. A request message for GlobalOperations.AggregatedList. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -440,7 +439,6 @@ def __call__( The request object. A request message for GlobalOperations.Delete. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -530,7 +528,6 @@ def __call__( The request object. A request message for GlobalOperations.Get. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -632,7 +629,6 @@ def __call__( The request object. A request message for GlobalOperations.List. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -721,7 +717,6 @@ def __call__( The request object. A request message for GlobalOperations.Wait. See the method description for details. - 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/compute_v1/services/global_organization_operations/client.py b/google/cloud/compute_v1/services/global_organization_operations/client.py index 3ab92d3bf..37645f9af 100644 --- a/google/cloud/compute_v1/services/global_organization_operations/client.py +++ b/google/cloud/compute_v1/services/global_organization_operations/client.py @@ -438,8 +438,8 @@ def delete( Args: request (Union[google.cloud.compute_v1.types.DeleteGlobalOrganizationOperationRequest, dict]): The request object. A request message for - GlobalOrganizationOperations.Delete. See the method - description for details. + GlobalOrganizationOperations.Delete. See + the method description for details. operation (str): Name of the Operations resource to delete. @@ -521,8 +521,8 @@ def get( Args: request (Union[google.cloud.compute_v1.types.GetGlobalOrganizationOperationRequest, dict]): The request object. A request message for - GlobalOrganizationOperations.Get. See the method - description for details. + GlobalOrganizationOperations.Get. See + the method description for details. operation (str): Name of the Operations resource to return. @@ -615,8 +615,8 @@ def list( Args: request (Union[google.cloud.compute_v1.types.ListGlobalOrganizationOperationsRequest, dict]): The request object. A request message for - GlobalOrganizationOperations.List. See the method - description for details. + GlobalOrganizationOperations.List. See + the method description for details. 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/compute_v1/services/global_organization_operations/transports/rest.py b/google/cloud/compute_v1/services/global_organization_operations/transports/rest.py index 40cb90ee9..aa6151d08 100644 --- a/google/cloud/compute_v1/services/global_organization_operations/transports/rest.py +++ b/google/cloud/compute_v1/services/global_organization_operations/transports/rest.py @@ -297,7 +297,6 @@ def __call__( The request object. A request message for GlobalOrganizationOperations.Delete. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -387,7 +386,6 @@ def __call__( The request object. A request message for GlobalOrganizationOperations.Get. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -479,7 +477,6 @@ def __call__( The request object. A request message for GlobalOrganizationOperations.List. See the method description for details. - 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/compute_v1/services/global_public_delegated_prefixes/client.py b/google/cloud/compute_v1/services/global_public_delegated_prefixes/client.py index 77c27adae..216adc554 100644 --- a/google/cloud/compute_v1/services/global_public_delegated_prefixes/client.py +++ b/google/cloud/compute_v1/services/global_public_delegated_prefixes/client.py @@ -442,8 +442,8 @@ def delete_unary( Args: request (Union[google.cloud.compute_v1.types.DeleteGlobalPublicDelegatedPrefixeRequest, dict]): The request object. A request message for - GlobalPublicDelegatedPrefixes.Delete. See the method - description for details. + GlobalPublicDelegatedPrefixes.Delete. + See the method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -534,8 +534,8 @@ def delete( Args: request (Union[google.cloud.compute_v1.types.DeleteGlobalPublicDelegatedPrefixeRequest, dict]): The request object. A request message for - GlobalPublicDelegatedPrefixes.Delete. See the method - description for details. + GlobalPublicDelegatedPrefixes.Delete. + See the method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -651,8 +651,8 @@ def get( Args: request (Union[google.cloud.compute_v1.types.GetGlobalPublicDelegatedPrefixeRequest, dict]): The request object. A request message for - GlobalPublicDelegatedPrefixes.Get. See the method - description for details. + GlobalPublicDelegatedPrefixes.Get. See + the method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -754,8 +754,8 @@ def insert_unary( Args: request (Union[google.cloud.compute_v1.types.InsertGlobalPublicDelegatedPrefixeRequest, dict]): The request object. A request message for - GlobalPublicDelegatedPrefixes.Insert. See the method - description for details. + GlobalPublicDelegatedPrefixes.Insert. + See the method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -845,8 +845,8 @@ def insert( Args: request (Union[google.cloud.compute_v1.types.InsertGlobalPublicDelegatedPrefixeRequest, dict]): The request object. A request message for - GlobalPublicDelegatedPrefixes.Insert. See the method - description for details. + GlobalPublicDelegatedPrefixes.Insert. + See the method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -956,8 +956,8 @@ def list( Args: request (Union[google.cloud.compute_v1.types.ListGlobalPublicDelegatedPrefixesRequest, dict]): The request object. A request message for - GlobalPublicDelegatedPrefixes.List. See the method - description for details. + GlobalPublicDelegatedPrefixes.List. See + the method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1050,8 +1050,8 @@ def patch_unary( Args: request (Union[google.cloud.compute_v1.types.PatchGlobalPublicDelegatedPrefixeRequest, dict]): The request object. A request message for - GlobalPublicDelegatedPrefixes.Patch. See the method - description for details. + GlobalPublicDelegatedPrefixes.Patch. See + the method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1159,8 +1159,8 @@ def patch( Args: request (Union[google.cloud.compute_v1.types.PatchGlobalPublicDelegatedPrefixeRequest, dict]): The request object. A request message for - GlobalPublicDelegatedPrefixes.Patch. See the method - description for details. + GlobalPublicDelegatedPrefixes.Patch. See + the method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field diff --git a/google/cloud/compute_v1/services/global_public_delegated_prefixes/transports/rest.py b/google/cloud/compute_v1/services/global_public_delegated_prefixes/transports/rest.py index 428982846..8c0bbd23d 100644 --- a/google/cloud/compute_v1/services/global_public_delegated_prefixes/transports/rest.py +++ b/google/cloud/compute_v1/services/global_public_delegated_prefixes/transports/rest.py @@ -365,7 +365,6 @@ def __call__( The request object. A request message for GlobalPublicDelegatedPrefixes.Delete. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -467,7 +466,6 @@ def __call__( The request object. A request message for GlobalPublicDelegatedPrefixes.Get. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -563,7 +561,6 @@ def __call__( The request object. A request message for GlobalPublicDelegatedPrefixes.Insert. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -674,7 +671,6 @@ def __call__( The request object. A request message for GlobalPublicDelegatedPrefixes.List. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -761,7 +757,6 @@ def __call__( The request object. A request message for GlobalPublicDelegatedPrefixes.Patch. See the method description for details. - 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/compute_v1/services/health_checks/client.py b/google/cloud/compute_v1/services/health_checks/client.py index 2212e69d6..7206aa2ce 100644 --- a/google/cloud/compute_v1/services/health_checks/client.py +++ b/google/cloud/compute_v1/services/health_checks/client.py @@ -438,8 +438,8 @@ def aggregated_list( Args: request (Union[google.cloud.compute_v1.types.AggregatedListHealthChecksRequest, dict]): The request object. A request message for - HealthChecks.AggregatedList. See the method description - for details. + HealthChecks.AggregatedList. See the + method description for details. project (str): Name of the project scoping this request. @@ -526,8 +526,8 @@ def delete_unary( Args: request (Union[google.cloud.compute_v1.types.DeleteHealthCheckRequest, dict]): The request object. A request message for - HealthChecks.Delete. See the method description for - details. + HealthChecks.Delete. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -616,8 +616,8 @@ def delete( Args: request (Union[google.cloud.compute_v1.types.DeleteHealthCheckRequest, dict]): The request object. A request message for - HealthChecks.Delete. See the method description for - details. + HealthChecks.Delete. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -730,8 +730,8 @@ def get( Args: request (Union[google.cloud.compute_v1.types.GetHealthCheckRequest, dict]): The request object. A request message for - HealthChecks.Get. See the method description for - details. + HealthChecks.Get. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -838,8 +838,8 @@ def insert_unary( Args: request (Union[google.cloud.compute_v1.types.InsertHealthCheckRequest, dict]): The request object. A request message for - HealthChecks.Insert. See the method description for - details. + HealthChecks.Insert. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -922,8 +922,8 @@ def insert( Args: request (Union[google.cloud.compute_v1.types.InsertHealthCheckRequest, dict]): The request object. A request message for - HealthChecks.Insert. See the method description for - details. + HealthChecks.Insert. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1029,8 +1029,8 @@ def list( Args: request (Union[google.cloud.compute_v1.types.ListHealthChecksRequest, dict]): The request object. A request message for - HealthChecks.List. See the method description for - details. + HealthChecks.List. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1121,8 +1121,8 @@ def patch_unary( Args: request (Union[google.cloud.compute_v1.types.PatchHealthCheckRequest, dict]): The request object. A request message for - HealthChecks.Patch. See the method description for - details. + HealthChecks.Patch. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1222,8 +1222,8 @@ def patch( Args: request (Union[google.cloud.compute_v1.types.PatchHealthCheckRequest, dict]): The request object. A request message for - HealthChecks.Patch. See the method description for - details. + HealthChecks.Patch. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1345,8 +1345,8 @@ def update_unary( Args: request (Union[google.cloud.compute_v1.types.UpdateHealthCheckRequest, dict]): The request object. A request message for - HealthChecks.Update. See the method description for - details. + HealthChecks.Update. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1444,8 +1444,8 @@ def update( Args: request (Union[google.cloud.compute_v1.types.UpdateHealthCheckRequest, dict]): The request object. A request message for - HealthChecks.Update. See the method description for - details. + HealthChecks.Update. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field diff --git a/google/cloud/compute_v1/services/health_checks/transports/rest.py b/google/cloud/compute_v1/services/health_checks/transports/rest.py index c86d3c13c..ca5f3dde2 100644 --- a/google/cloud/compute_v1/services/health_checks/transports/rest.py +++ b/google/cloud/compute_v1/services/health_checks/transports/rest.py @@ -407,7 +407,6 @@ def __call__( The request object. A request message for HealthChecks.AggregatedList. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -494,7 +493,6 @@ def __call__( The request object. A request message for HealthChecks.Delete. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -596,7 +594,6 @@ def __call__( The request object. A request message for HealthChecks.Get. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -703,7 +700,6 @@ def __call__( The request object. A request message for HealthChecks.Insert. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -814,7 +810,6 @@ def __call__( The request object. A request message for HealthChecks.List. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -903,7 +898,6 @@ def __call__( The request object. A request message for HealthChecks.Patch. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1014,7 +1008,6 @@ def __call__( The request object. A request message for HealthChecks.Update. See the method description for details. - 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/compute_v1/services/image_family_views/client.py b/google/cloud/compute_v1/services/image_family_views/client.py index b992097d8..54e3ff193 100644 --- a/google/cloud/compute_v1/services/image_family_views/client.py +++ b/google/cloud/compute_v1/services/image_family_views/client.py @@ -437,8 +437,8 @@ def get( Args: request (Union[google.cloud.compute_v1.types.GetImageFamilyViewRequest, dict]): The request object. A request message for - ImageFamilyViews.Get. See the method description for - details. + ImageFamilyViews.Get. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field diff --git a/google/cloud/compute_v1/services/image_family_views/transports/rest.py b/google/cloud/compute_v1/services/image_family_views/transports/rest.py index f4483ecad..0ebb26f8a 100644 --- a/google/cloud/compute_v1/services/image_family_views/transports/rest.py +++ b/google/cloud/compute_v1/services/image_family_views/transports/rest.py @@ -231,7 +231,6 @@ def __call__( The request object. A request message for ImageFamilyViews.Get. See the method description for details. - 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/compute_v1/services/images/client.py b/google/cloud/compute_v1/services/images/client.py index 0765ec04a..a95505eb5 100644 --- a/google/cloud/compute_v1/services/images/client.py +++ b/google/cloud/compute_v1/services/images/client.py @@ -637,8 +637,8 @@ def deprecate_unary( Args: request (Union[google.cloud.compute_v1.types.DeprecateImageRequest, dict]): The request object. A request message for - Images.Deprecate. See the method description for - details. + Images.Deprecate. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -735,8 +735,8 @@ def deprecate( Args: request (Union[google.cloud.compute_v1.types.DeprecateImageRequest, dict]): The request object. A request message for - Images.Deprecate. See the method description for - details. + Images.Deprecate. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -853,8 +853,8 @@ def get( Args: request (Union[google.cloud.compute_v1.types.GetImageRequest, dict]): - The request object. A request message for Images.Get. - See the method description for details. + The request object. A request message for Images.Get. See + the method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -945,8 +945,8 @@ def get_from_family( Args: request (Union[google.cloud.compute_v1.types.GetFromFamilyImageRequest, dict]): The request object. A request message for - Images.GetFromFamily. See the method description for - details. + Images.GetFromFamily. See the method + description for details. project (str): The image project that the image belongs to. For example, to get a CentOS @@ -1042,8 +1042,8 @@ def get_iam_policy( Args: request (Union[google.cloud.compute_v1.types.GetIamPolicyImageRequest, dict]): The request object. A request message for - Images.GetIamPolicy. See the method description for - details. + Images.GetIamPolicy. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1674,8 +1674,8 @@ def set_iam_policy( Args: request (Union[google.cloud.compute_v1.types.SetIamPolicyImageRequest, dict]): The request object. A request message for - Images.SetIamPolicy. See the method description for - details. + Images.SetIamPolicy. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1817,8 +1817,8 @@ def set_labels_unary( Args: request (Union[google.cloud.compute_v1.types.SetLabelsImageRequest, dict]): The request object. A request message for - Images.SetLabels. See the method description for - details. + Images.SetLabels. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1922,8 +1922,8 @@ def set_labels( Args: request (Union[google.cloud.compute_v1.types.SetLabelsImageRequest, dict]): The request object. A request message for - Images.SetLabels. See the method description for - details. + Images.SetLabels. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -2051,8 +2051,8 @@ def test_iam_permissions( Args: request (Union[google.cloud.compute_v1.types.TestIamPermissionsImageRequest, dict]): The request object. A request message for - Images.TestIamPermissions. See the method description - for details. + Images.TestIamPermissions. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field diff --git a/google/cloud/compute_v1/services/images/transports/rest.py b/google/cloud/compute_v1/services/images/transports/rest.py index 5ac9768b5..5f7e22465 100644 --- a/google/cloud/compute_v1/services/images/transports/rest.py +++ b/google/cloud/compute_v1/services/images/transports/rest.py @@ -512,7 +512,6 @@ def __call__( request (~.compute.DeleteImageRequest): The request object. A request message for Images.Delete. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -614,7 +613,6 @@ def __call__( The request object. A request message for Images.Deprecate. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -724,7 +722,6 @@ def __call__( request (~.compute.GetImageRequest): The request object. A request message for Images.Get. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -815,7 +812,6 @@ def __call__( The request object. A request message for Images.GetFromFamily. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -906,7 +902,6 @@ def __call__( The request object. A request message for Images.GetIamPolicy. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1033,7 +1028,6 @@ def __call__( request (~.compute.InsertImageRequest): The request object. A request message for Images.Insert. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1143,7 +1137,6 @@ def __call__( request (~.compute.ListImagesRequest): The request object. A request message for Images.List. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1229,7 +1222,6 @@ def __call__( request (~.compute.PatchImageRequest): The request object. A request message for Images.Patch. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1340,7 +1332,6 @@ def __call__( The request object. A request message for Images.SetIamPolicy. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1477,7 +1468,6 @@ def __call__( The request object. A request message for Images.SetLabels. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1588,7 +1578,6 @@ def __call__( The request object. A request message for Images.TestIamPermissions. See the method description for details. - 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/compute_v1/services/instance_group_managers/client.py b/google/cloud/compute_v1/services/instance_group_managers/client.py index b4e8da98f..a6ef0d0ae 100644 --- a/google/cloud/compute_v1/services/instance_group_managers/client.py +++ b/google/cloud/compute_v1/services/instance_group_managers/client.py @@ -460,8 +460,8 @@ def abandon_instances_unary( request (Union[google.cloud.compute_v1.types.AbandonInstancesInstanceGroupManagerRequest, dict]): The request object. Messages A request message for - InstanceGroupManagers.AbandonInstances. See the method - description for details. + InstanceGroupManagers.AbandonInstances. + See the method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -598,8 +598,8 @@ def abandon_instances( request (Union[google.cloud.compute_v1.types.AbandonInstancesInstanceGroupManagerRequest, dict]): The request object. Messages A request message for - InstanceGroupManagers.AbandonInstances. See the method - description for details. + InstanceGroupManagers.AbandonInstances. + See the method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -741,8 +741,8 @@ def aggregated_list( Args: request (Union[google.cloud.compute_v1.types.AggregatedListInstanceGroupManagersRequest, dict]): The request object. A request message for - InstanceGroupManagers.AggregatedList. See the method - description for details. + InstanceGroupManagers.AggregatedList. + See the method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -835,8 +835,8 @@ def apply_updates_to_instances_unary( Args: request (Union[google.cloud.compute_v1.types.ApplyUpdatesToInstancesInstanceGroupManagerRequest, dict]): The request object. A request message for - InstanceGroupManagers.ApplyUpdatesToInstances. See the - method description for details. + InstanceGroupManagers.ApplyUpdatesToInstances. + See the method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -966,8 +966,8 @@ def apply_updates_to_instances( Args: request (Union[google.cloud.compute_v1.types.ApplyUpdatesToInstancesInstanceGroupManagerRequest, dict]): The request object. A request message for - InstanceGroupManagers.ApplyUpdatesToInstances. See the - method description for details. + InstanceGroupManagers.ApplyUpdatesToInstances. + See the method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1127,8 +1127,8 @@ def create_instances_unary( Args: request (Union[google.cloud.compute_v1.types.CreateInstancesInstanceGroupManagerRequest, dict]): The request object. A request message for - InstanceGroupManagers.CreateInstances. See the method - description for details. + InstanceGroupManagers.CreateInstances. + See the method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1257,8 +1257,8 @@ def create_instances( Args: request (Union[google.cloud.compute_v1.types.CreateInstancesInstanceGroupManagerRequest, dict]): The request object. A request message for - InstanceGroupManagers.CreateInstances. See the method - description for details. + InstanceGroupManagers.CreateInstances. + See the method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1405,8 +1405,8 @@ def delete_unary( Args: request (Union[google.cloud.compute_v1.types.DeleteInstanceGroupManagerRequest, dict]): The request object. A request message for - InstanceGroupManagers.Delete. See the method description - for details. + InstanceGroupManagers.Delete. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1511,8 +1511,8 @@ def delete( Args: request (Union[google.cloud.compute_v1.types.DeleteInstanceGroupManagerRequest, dict]): The request object. A request message for - InstanceGroupManagers.Delete. See the method description - for details. + InstanceGroupManagers.Delete. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1656,8 +1656,8 @@ def delete_instances_unary( Args: request (Union[google.cloud.compute_v1.types.DeleteInstancesInstanceGroupManagerRequest, dict]): The request object. A request message for - InstanceGroupManagers.DeleteInstances. See the method - description for details. + InstanceGroupManagers.DeleteInstances. + See the method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1792,8 +1792,8 @@ def delete_instances( Args: request (Union[google.cloud.compute_v1.types.DeleteInstancesInstanceGroupManagerRequest, dict]): The request object. A request message for - InstanceGroupManagers.DeleteInstances. See the method - description for details. + InstanceGroupManagers.DeleteInstances. + See the method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1940,8 +1940,8 @@ def delete_per_instance_configs_unary( Args: request (Union[google.cloud.compute_v1.types.DeletePerInstanceConfigsInstanceGroupManagerRequest, dict]): The request object. A request message for - InstanceGroupManagers.DeletePerInstanceConfigs. See the - method description for details. + InstanceGroupManagers.DeletePerInstanceConfigs. + See the method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -2073,8 +2073,8 @@ def delete_per_instance_configs( Args: request (Union[google.cloud.compute_v1.types.DeletePerInstanceConfigsInstanceGroupManagerRequest, dict]): The request object. A request message for - InstanceGroupManagers.DeletePerInstanceConfigs. See the - method description for details. + InstanceGroupManagers.DeletePerInstanceConfigs. + See the method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -2226,8 +2226,8 @@ def get( Args: request (Union[google.cloud.compute_v1.types.GetInstanceGroupManagerRequest, dict]): The request object. A request message for - InstanceGroupManagers.Get. See the method description - for details. + InstanceGroupManagers.Get. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -2346,8 +2346,8 @@ def insert_unary( Args: request (Union[google.cloud.compute_v1.types.InsertInstanceGroupManagerRequest, dict]): The request object. A request message for - InstanceGroupManagers.Insert. See the method description - for details. + InstanceGroupManagers.Insert. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -2458,8 +2458,8 @@ def insert( Args: request (Union[google.cloud.compute_v1.types.InsertInstanceGroupManagerRequest, dict]): The request object. A request message for - InstanceGroupManagers.Insert. See the method description - for details. + InstanceGroupManagers.Insert. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -2583,8 +2583,8 @@ def list( Args: request (Union[google.cloud.compute_v1.types.ListInstanceGroupManagersRequest, dict]): The request object. A request message for - InstanceGroupManagers.List. See the method description - for details. + InstanceGroupManagers.List. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -2689,8 +2689,8 @@ def list_errors( Args: request (Union[google.cloud.compute_v1.types.ListErrorsInstanceGroupManagersRequest, dict]): The request object. A request message for - InstanceGroupManagers.ListErrors. See the method - description for details. + InstanceGroupManagers.ListErrors. See + the method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -2814,8 +2814,8 @@ def list_managed_instances( Args: request (Union[google.cloud.compute_v1.types.ListManagedInstancesInstanceGroupManagersRequest, dict]): The request object. A request message for - InstanceGroupManagers.ListManagedInstances. See the - method description for details. + InstanceGroupManagers.ListManagedInstances. + See the method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -2931,8 +2931,8 @@ def list_per_instance_configs( Args: request (Union[google.cloud.compute_v1.types.ListPerInstanceConfigsInstanceGroupManagersRequest, dict]): The request object. A request message for - InstanceGroupManagers.ListPerInstanceConfigs. See the - method description for details. + InstanceGroupManagers.ListPerInstanceConfigs. + See the method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -3063,8 +3063,8 @@ def patch_unary( Args: request (Union[google.cloud.compute_v1.types.PatchInstanceGroupManagerRequest, dict]): The request object. A request message for - InstanceGroupManagers.Patch. See the method description - for details. + InstanceGroupManagers.Patch. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -3189,8 +3189,8 @@ def patch( Args: request (Union[google.cloud.compute_v1.types.PatchInstanceGroupManagerRequest, dict]): The request object. A request message for - InstanceGroupManagers.Patch. See the method description - for details. + InstanceGroupManagers.Patch. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -3334,8 +3334,8 @@ def patch_per_instance_configs_unary( Args: request (Union[google.cloud.compute_v1.types.PatchPerInstanceConfigsInstanceGroupManagerRequest, dict]): The request object. A request message for - InstanceGroupManagers.PatchPerInstanceConfigs. See the - method description for details. + InstanceGroupManagers.PatchPerInstanceConfigs. + See the method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -3469,8 +3469,8 @@ def patch_per_instance_configs( Args: request (Union[google.cloud.compute_v1.types.PatchPerInstanceConfigsInstanceGroupManagerRequest, dict]): The request object. A request message for - InstanceGroupManagers.PatchPerInstanceConfigs. See the - method description for details. + InstanceGroupManagers.PatchPerInstanceConfigs. + See the method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -3639,8 +3639,8 @@ def recreate_instances_unary( Args: request (Union[google.cloud.compute_v1.types.RecreateInstancesInstanceGroupManagerRequest, dict]): The request object. A request message for - InstanceGroupManagers.RecreateInstances. See the method - description for details. + InstanceGroupManagers.RecreateInstances. + See the method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -3776,8 +3776,8 @@ def recreate_instances( Args: request (Union[google.cloud.compute_v1.types.RecreateInstancesInstanceGroupManagerRequest, dict]): The request object. A request message for - InstanceGroupManagers.RecreateInstances. See the method - description for details. + InstanceGroupManagers.RecreateInstances. + See the method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -3942,8 +3942,8 @@ def resize_unary( Args: request (Union[google.cloud.compute_v1.types.ResizeInstanceGroupManagerRequest, dict]): The request object. A request message for - InstanceGroupManagers.Resize. See the method description - for details. + InstanceGroupManagers.Resize. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -4078,8 +4078,8 @@ def resize( Args: request (Union[google.cloud.compute_v1.types.ResizeInstanceGroupManagerRequest, dict]): The request object. A request message for - InstanceGroupManagers.Resize. See the method description - for details. + InstanceGroupManagers.Resize. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -4226,8 +4226,8 @@ def set_instance_template_unary( Args: request (Union[google.cloud.compute_v1.types.SetInstanceTemplateInstanceGroupManagerRequest, dict]): The request object. A request message for - InstanceGroupManagers.SetInstanceTemplate. See the - method description for details. + InstanceGroupManagers.SetInstanceTemplate. + See the method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -4357,8 +4357,8 @@ def set_instance_template( Args: request (Union[google.cloud.compute_v1.types.SetInstanceTemplateInstanceGroupManagerRequest, dict]): The request object. A request message for - InstanceGroupManagers.SetInstanceTemplate. See the - method description for details. + InstanceGroupManagers.SetInstanceTemplate. + See the method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -4516,8 +4516,8 @@ def set_target_pools_unary( Args: request (Union[google.cloud.compute_v1.types.SetTargetPoolsInstanceGroupManagerRequest, dict]): The request object. A request message for - InstanceGroupManagers.SetTargetPools. See the method - description for details. + InstanceGroupManagers.SetTargetPools. + See the method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -4645,8 +4645,8 @@ def set_target_pools( Args: request (Union[google.cloud.compute_v1.types.SetTargetPoolsInstanceGroupManagerRequest, dict]): The request object. A request message for - InstanceGroupManagers.SetTargetPools. See the method - description for details. + InstanceGroupManagers.SetTargetPools. + See the method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -4795,8 +4795,8 @@ def update_per_instance_configs_unary( Args: request (Union[google.cloud.compute_v1.types.UpdatePerInstanceConfigsInstanceGroupManagerRequest, dict]): The request object. A request message for - InstanceGroupManagers.UpdatePerInstanceConfigs. See the - method description for details. + InstanceGroupManagers.UpdatePerInstanceConfigs. + See the method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -4930,8 +4930,8 @@ def update_per_instance_configs( Args: request (Union[google.cloud.compute_v1.types.UpdatePerInstanceConfigsInstanceGroupManagerRequest, dict]): The request object. A request message for - InstanceGroupManagers.UpdatePerInstanceConfigs. See the - method description for details. + InstanceGroupManagers.UpdatePerInstanceConfigs. + See the method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field diff --git a/google/cloud/compute_v1/services/instance_group_managers/transports/rest.py b/google/cloud/compute_v1/services/instance_group_managers/transports/rest.py index 63a5c65f6..e4131b91e 100644 --- a/google/cloud/compute_v1/services/instance_group_managers/transports/rest.py +++ b/google/cloud/compute_v1/services/instance_group_managers/transports/rest.py @@ -840,7 +840,6 @@ def __call__( A request message for InstanceGroupManagers.AbandonInstances. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -953,7 +952,6 @@ def __call__( The request object. A request message for InstanceGroupManagers.AggregatedList. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1041,7 +1039,6 @@ def __call__( The request object. A request message for InstanceGroupManagers.ApplyUpdatesToInstances. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1156,7 +1153,6 @@ def __call__( The request object. A request message for InstanceGroupManagers.CreateInstances. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1269,7 +1265,6 @@ def __call__( The request object. A request message for InstanceGroupManagers.Delete. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1371,7 +1366,6 @@ def __call__( The request object. A request message for InstanceGroupManagers.DeleteInstances. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1485,7 +1479,6 @@ def __call__( The request object. A request message for InstanceGroupManagers.DeletePerInstanceConfigs. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1600,7 +1593,6 @@ def __call__( The request object. A request message for InstanceGroupManagers.Get. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1696,7 +1688,6 @@ def __call__( The request object. A request message for InstanceGroupManagers.Insert. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1807,7 +1798,6 @@ def __call__( The request object. A request message for InstanceGroupManagers.List. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1894,7 +1884,6 @@ def __call__( The request object. A request message for InstanceGroupManagers.ListErrors. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1981,7 +1970,6 @@ def __call__( The request object. A request message for InstanceGroupManagers.ListManagedInstances. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -2072,7 +2060,6 @@ def __call__( The request object. A request message for InstanceGroupManagers.ListPerInstanceConfigs. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -2163,7 +2150,6 @@ def __call__( The request object. A request message for InstanceGroupManagers.Patch. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -2275,7 +2261,6 @@ def __call__( The request object. A request message for InstanceGroupManagers.PatchPerInstanceConfigs. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -2390,7 +2375,6 @@ def __call__( The request object. A request message for InstanceGroupManagers.RecreateInstances. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -2507,7 +2491,6 @@ def __call__( The request object. A request message for InstanceGroupManagers.Resize. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -2609,7 +2592,6 @@ def __call__( The request object. A request message for InstanceGroupManagers.SetInstanceTemplate. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -2724,7 +2706,6 @@ def __call__( The request object. A request message for InstanceGroupManagers.SetTargetPools. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -2838,7 +2819,6 @@ def __call__( The request object. A request message for InstanceGroupManagers.UpdatePerInstanceConfigs. See the method description for details. - 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/compute_v1/services/instance_groups/client.py b/google/cloud/compute_v1/services/instance_groups/client.py index 64efa7ae3..51704bdbc 100644 --- a/google/cloud/compute_v1/services/instance_groups/client.py +++ b/google/cloud/compute_v1/services/instance_groups/client.py @@ -445,8 +445,8 @@ def add_instances_unary( Args: request (Union[google.cloud.compute_v1.types.AddInstancesInstanceGroupRequest, dict]): The request object. A request message for - InstanceGroups.AddInstances. See the method description - for details. + InstanceGroups.AddInstances. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -568,8 +568,8 @@ def add_instances( Args: request (Union[google.cloud.compute_v1.types.AddInstancesInstanceGroupRequest, dict]): The request object. A request message for - InstanceGroups.AddInstances. See the method description - for details. + InstanceGroups.AddInstances. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -711,8 +711,8 @@ def aggregated_list( Args: request (Union[google.cloud.compute_v1.types.AggregatedListInstanceGroupsRequest, dict]): The request object. A request message for - InstanceGroups.AggregatedList. See the method - description for details. + InstanceGroups.AggregatedList. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -801,8 +801,8 @@ def delete_unary( Args: request (Union[google.cloud.compute_v1.types.DeleteInstanceGroupRequest, dict]): The request object. A request message for - InstanceGroups.Delete. See the method description for - details. + InstanceGroups.Delete. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -905,8 +905,8 @@ def delete( Args: request (Union[google.cloud.compute_v1.types.DeleteInstanceGroupRequest, dict]): The request object. A request message for - InstanceGroups.Delete. See the method description for - details. + InstanceGroups.Delete. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1035,8 +1035,8 @@ def get( Args: request (Union[google.cloud.compute_v1.types.GetInstanceGroupRequest, dict]): The request object. A request message for - InstanceGroups.Get. See the method description for - details. + InstanceGroups.Get. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1147,8 +1147,8 @@ def insert_unary( Args: request (Union[google.cloud.compute_v1.types.InsertInstanceGroupRequest, dict]): The request object. A request message for - InstanceGroups.Insert. See the method description for - details. + InstanceGroups.Insert. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1246,8 +1246,8 @@ def insert( Args: request (Union[google.cloud.compute_v1.types.InsertInstanceGroupRequest, dict]): The request object. A request message for - InstanceGroups.Insert. See the method description for - details. + InstanceGroups.Insert. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1371,8 +1371,8 @@ def list( Args: request (Union[google.cloud.compute_v1.types.ListInstanceGroupsRequest, dict]): The request object. A request message for - InstanceGroups.List. See the method description for - details. + InstanceGroups.List. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1481,8 +1481,8 @@ def list_instances( Args: request (Union[google.cloud.compute_v1.types.ListInstancesInstanceGroupsRequest, dict]): The request object. A request message for - InstanceGroups.ListInstances. See the method description - for details. + InstanceGroups.ListInstances. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1619,8 +1619,8 @@ def remove_instances_unary( Args: request (Union[google.cloud.compute_v1.types.RemoveInstancesInstanceGroupRequest, dict]): The request object. A request message for - InstanceGroups.RemoveInstances. See the method - description for details. + InstanceGroups.RemoveInstances. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1746,8 +1746,8 @@ def remove_instances( Args: request (Union[google.cloud.compute_v1.types.RemoveInstancesInstanceGroupRequest, dict]): The request object. A request message for - InstanceGroups.RemoveInstances. See the method - description for details. + InstanceGroups.RemoveInstances. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1894,8 +1894,8 @@ def set_named_ports_unary( Args: request (Union[google.cloud.compute_v1.types.SetNamedPortsInstanceGroupRequest, dict]): The request object. A request message for - InstanceGroups.SetNamedPorts. See the method description - for details. + InstanceGroups.SetNamedPorts. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -2017,8 +2017,8 @@ def set_named_ports( Args: request (Union[google.cloud.compute_v1.types.SetNamedPortsInstanceGroupRequest, dict]): The request object. A request message for - InstanceGroups.SetNamedPorts. See the method description - for details. + InstanceGroups.SetNamedPorts. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field diff --git a/google/cloud/compute_v1/services/instance_groups/transports/rest.py b/google/cloud/compute_v1/services/instance_groups/transports/rest.py index 1d7dd6115..bc1fd82c2 100644 --- a/google/cloud/compute_v1/services/instance_groups/transports/rest.py +++ b/google/cloud/compute_v1/services/instance_groups/transports/rest.py @@ -469,7 +469,6 @@ def __call__( The request object. A request message for InstanceGroups.AddInstances. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -580,7 +579,6 @@ def __call__( The request object. A request message for InstanceGroups.AggregatedList. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -667,7 +665,6 @@ def __call__( The request object. A request message for InstanceGroups.Delete. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -769,7 +766,6 @@ def __call__( The request object. A request message for InstanceGroups.Get. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -870,7 +866,6 @@ def __call__( The request object. A request message for InstanceGroups.Insert. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -981,7 +976,6 @@ def __call__( The request object. A request message for InstanceGroups.List. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1068,7 +1062,6 @@ def __call__( The request object. A request message for InstanceGroups.ListInstances. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1164,7 +1157,6 @@ def __call__( The request object. A request message for InstanceGroups.RemoveInstances. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1277,7 +1269,6 @@ def __call__( The request object. A request message for InstanceGroups.SetNamedPorts. See the method description for details. - 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/compute_v1/services/instance_templates/client.py b/google/cloud/compute_v1/services/instance_templates/client.py index d1292111e..321024701 100644 --- a/google/cloud/compute_v1/services/instance_templates/client.py +++ b/google/cloud/compute_v1/services/instance_templates/client.py @@ -441,8 +441,8 @@ def aggregated_list( Args: request (Union[google.cloud.compute_v1.types.AggregatedListInstanceTemplatesRequest, dict]): The request object. A request message for - InstanceTemplates.AggregatedList. See the method - description for details. + InstanceTemplates.AggregatedList. See + the method description for details. project (str): Name of the project scoping this request. @@ -534,8 +534,8 @@ def delete_unary( Args: request (Union[google.cloud.compute_v1.types.DeleteInstanceTemplateRequest, dict]): The request object. A request message for - InstanceTemplates.Delete. See the method description for - details. + InstanceTemplates.Delete. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -627,8 +627,8 @@ def delete( Args: request (Union[google.cloud.compute_v1.types.DeleteInstanceTemplateRequest, dict]): The request object. A request message for - InstanceTemplates.Delete. See the method description for - details. + InstanceTemplates.Delete. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -741,8 +741,8 @@ def get( Args: request (Union[google.cloud.compute_v1.types.GetInstanceTemplateRequest, dict]): The request object. A request message for - InstanceTemplates.Get. See the method description for - details. + InstanceTemplates.Get. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -835,8 +835,8 @@ def get_iam_policy( Args: request (Union[google.cloud.compute_v1.types.GetIamPolicyInstanceTemplateRequest, dict]): The request object. A request message for - InstanceTemplates.GetIamPolicy. See the method - description for details. + InstanceTemplates.GetIamPolicy. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -968,8 +968,8 @@ def insert_unary( Args: request (Union[google.cloud.compute_v1.types.InsertInstanceTemplateRequest, dict]): The request object. A request message for - InstanceTemplates.Insert. See the method description for - details. + InstanceTemplates.Insert. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1056,8 +1056,8 @@ def insert( Args: request (Union[google.cloud.compute_v1.types.InsertInstanceTemplateRequest, dict]): The request object. A request message for - InstanceTemplates.Insert. See the method description for - details. + InstanceTemplates.Insert. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1163,8 +1163,8 @@ def list( Args: request (Union[google.cloud.compute_v1.types.ListInstanceTemplatesRequest, dict]): The request object. A request message for - InstanceTemplates.List. See the method description for - details. + InstanceTemplates.List. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1256,8 +1256,8 @@ def set_iam_policy( Args: request (Union[google.cloud.compute_v1.types.SetIamPolicyInstanceTemplateRequest, dict]): The request object. A request message for - InstanceTemplates.SetIamPolicy. See the method - description for details. + InstanceTemplates.SetIamPolicy. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1401,8 +1401,8 @@ def test_iam_permissions( Args: request (Union[google.cloud.compute_v1.types.TestIamPermissionsInstanceTemplateRequest, dict]): The request object. A request message for - InstanceTemplates.TestIamPermissions. See the method - description for details. + InstanceTemplates.TestIamPermissions. + See the method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field diff --git a/google/cloud/compute_v1/services/instance_templates/transports/rest.py b/google/cloud/compute_v1/services/instance_templates/transports/rest.py index 58fde9c2e..d1f954407 100644 --- a/google/cloud/compute_v1/services/instance_templates/transports/rest.py +++ b/google/cloud/compute_v1/services/instance_templates/transports/rest.py @@ -444,7 +444,6 @@ def __call__( The request object. A request message for InstanceTemplates.AggregatedList. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -533,7 +532,6 @@ def __call__( The request object. A request message for InstanceTemplates.Delete. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -635,7 +633,6 @@ def __call__( The request object. A request message for InstanceTemplates.Get. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -727,7 +724,6 @@ def __call__( The request object. A request message for InstanceTemplates.GetIamPolicy. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -855,7 +851,6 @@ def __call__( The request object. A request message for InstanceTemplates.Insert. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -966,7 +961,6 @@ def __call__( The request object. A request message for InstanceTemplates.List. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1053,7 +1047,6 @@ def __call__( The request object. A request message for InstanceTemplates.SetIamPolicy. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1190,7 +1183,6 @@ def __call__( The request object. A request message for InstanceTemplates.TestIamPermissions. See the method description for details. - 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/compute_v1/services/instances/client.py b/google/cloud/compute_v1/services/instances/client.py index 80f7222d2..ddaf0889a 100644 --- a/google/cloud/compute_v1/services/instances/client.py +++ b/google/cloud/compute_v1/services/instances/client.py @@ -440,8 +440,8 @@ def add_access_config_unary( Args: request (Union[google.cloud.compute_v1.types.AddAccessConfigInstanceRequest, dict]): The request object. A request message for - Instances.AddAccessConfig. See the method description - for details. + Instances.AddAccessConfig. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -560,8 +560,8 @@ def add_access_config( Args: request (Union[google.cloud.compute_v1.types.AddAccessConfigInstanceRequest, dict]): The request object. A request message for - Instances.AddAccessConfig. See the method description - for details. + Instances.AddAccessConfig. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -709,8 +709,8 @@ def add_resource_policies_unary( Args: request (Union[google.cloud.compute_v1.types.AddResourcePoliciesInstanceRequest, dict]): The request object. A request message for - Instances.AddResourcePolicies. See the method - description for details. + Instances.AddResourcePolicies. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -826,8 +826,8 @@ def add_resource_policies( Args: request (Union[google.cloud.compute_v1.types.AddResourcePoliciesInstanceRequest, dict]): The request object. A request message for - Instances.AddResourcePolicies. See the method - description for details. + Instances.AddResourcePolicies. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -963,8 +963,8 @@ def aggregated_list( Args: request (Union[google.cloud.compute_v1.types.AggregatedListInstancesRequest, dict]): The request object. A request message for - Instances.AggregatedList. See the method description for - details. + Instances.AggregatedList. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1055,8 +1055,8 @@ def attach_disk_unary( Args: request (Union[google.cloud.compute_v1.types.AttachDiskInstanceRequest, dict]): The request object. A request message for - Instances.AttachDisk. See the method description for - details. + Instances.AttachDisk. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1166,8 +1166,8 @@ def attach_disk( Args: request (Union[google.cloud.compute_v1.types.AttachDiskInstanceRequest, dict]): The request object. A request message for - Instances.AttachDisk. See the method description for - details. + Instances.AttachDisk. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1301,8 +1301,8 @@ def bulk_insert_unary( Args: request (Union[google.cloud.compute_v1.types.BulkInsertInstanceRequest, dict]): The request object. A request message for - Instances.BulkInsert. See the method description for - details. + Instances.BulkInsert. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1407,8 +1407,8 @@ def bulk_insert( Args: request (Union[google.cloud.compute_v1.types.BulkInsertInstanceRequest, dict]): The request object. A request message for - Instances.BulkInsert. See the method description for - details. + Instances.BulkInsert. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1535,8 +1535,8 @@ def delete_unary( Args: request (Union[google.cloud.compute_v1.types.DeleteInstanceRequest, dict]): The request object. A request message for - Instances.Delete. See the method description for - details. + Instances.Delete. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1637,8 +1637,8 @@ def delete( Args: request (Union[google.cloud.compute_v1.types.DeleteInstanceRequest, dict]): The request object. A request message for - Instances.Delete. See the method description for - details. + Instances.Delete. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1768,8 +1768,8 @@ def delete_access_config_unary( Args: request (Union[google.cloud.compute_v1.types.DeleteAccessConfigInstanceRequest, dict]): The request object. A request message for - Instances.DeleteAccessConfig. See the method description - for details. + Instances.DeleteAccessConfig. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1890,8 +1890,8 @@ def delete_access_config( Args: request (Union[google.cloud.compute_v1.types.DeleteAccessConfigInstanceRequest, dict]): The request object. A request message for - Instances.DeleteAccessConfig. See the method description - for details. + Instances.DeleteAccessConfig. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -2033,8 +2033,8 @@ def detach_disk_unary( Args: request (Union[google.cloud.compute_v1.types.DetachDiskInstanceRequest, dict]): The request object. A request message for - Instances.DetachDisk. See the method description for - details. + Instances.DetachDisk. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -2144,8 +2144,8 @@ def detach_disk( Args: request (Union[google.cloud.compute_v1.types.DetachDiskInstanceRequest, dict]): The request object. A request message for - Instances.DetachDisk. See the method description for - details. + Instances.DetachDisk. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -2386,8 +2386,8 @@ def get_effective_firewalls( Args: request (Union[google.cloud.compute_v1.types.GetEffectiveFirewallsInstanceRequest, dict]): The request object. A request message for - Instances.GetEffectiveFirewalls. See the method - description for details. + Instances.GetEffectiveFirewalls. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -2496,8 +2496,8 @@ def get_guest_attributes( Args: request (Union[google.cloud.compute_v1.types.GetGuestAttributesInstanceRequest, dict]): The request object. A request message for - Instances.GetGuestAttributes. See the method description - for details. + Instances.GetGuestAttributes. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -2596,8 +2596,8 @@ def get_iam_policy( Args: request (Union[google.cloud.compute_v1.types.GetIamPolicyInstanceRequest, dict]): The request object. A request message for - Instances.GetIamPolicy. See the method description for - details. + Instances.GetIamPolicy. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -2735,8 +2735,8 @@ def get_screenshot( Args: request (Union[google.cloud.compute_v1.types.GetScreenshotInstanceRequest, dict]): The request object. A request message for - Instances.GetScreenshot. See the method description for - details. + Instances.GetScreenshot. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -2837,8 +2837,8 @@ def get_serial_port_output( Args: request (Union[google.cloud.compute_v1.types.GetSerialPortOutputInstanceRequest, dict]): The request object. A request message for - Instances.GetSerialPortOutput. See the method - description for details. + Instances.GetSerialPortOutput. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -2938,8 +2938,8 @@ def get_shielded_instance_identity( Args: request (Union[google.cloud.compute_v1.types.GetShieldedInstanceIdentityInstanceRequest, dict]): The request object. A request message for - Instances.GetShieldedInstanceIdentity. See the method - description for details. + Instances.GetShieldedInstanceIdentity. + See the method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -3040,8 +3040,8 @@ def insert_unary( Args: request (Union[google.cloud.compute_v1.types.InsertInstanceRequest, dict]): The request object. A request message for - Instances.Insert. See the method description for - details. + Instances.Insert. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -3139,8 +3139,8 @@ def insert( Args: request (Union[google.cloud.compute_v1.types.InsertInstanceRequest, dict]): The request object. A request message for - Instances.Insert. See the method description for - details. + Instances.Insert. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -3261,8 +3261,8 @@ def list( Args: request (Union[google.cloud.compute_v1.types.ListInstancesRequest, dict]): - The request object. A request message for - Instances.List. See the method description for details. + The request object. A request message for Instances.List. + See the method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -3368,8 +3368,8 @@ def list_referrers( Args: request (Union[google.cloud.compute_v1.types.ListReferrersInstancesRequest, dict]): The request object. A request message for - Instances.ListReferrers. See the method description for - details. + Instances.ListReferrers. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -3488,8 +3488,8 @@ def remove_resource_policies_unary( Args: request (Union[google.cloud.compute_v1.types.RemoveResourcePoliciesInstanceRequest, dict]): The request object. A request message for - Instances.RemoveResourcePolicies. See the method - description for details. + Instances.RemoveResourcePolicies. See + the method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -3608,8 +3608,8 @@ def remove_resource_policies( Args: request (Union[google.cloud.compute_v1.types.RemoveResourcePoliciesInstanceRequest, dict]): The request object. A request message for - Instances.RemoveResourcePolicies. See the method - description for details. + Instances.RemoveResourcePolicies. See + the method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -3750,7 +3750,8 @@ def reset_unary( Args: request (Union[google.cloud.compute_v1.types.ResetInstanceRequest, dict]): The request object. A request message for - Instances.Reset. See the method description for details. + Instances.Reset. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -3852,7 +3853,8 @@ def reset( Args: request (Union[google.cloud.compute_v1.types.ResetInstanceRequest, dict]): The request object. A request message for - Instances.Reset. See the method description for details. + Instances.Reset. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -3978,8 +3980,8 @@ def resume_unary( Args: request (Union[google.cloud.compute_v1.types.ResumeInstanceRequest, dict]): The request object. A request message for - Instances.Resume. See the method description for - details. + Instances.Resume. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -4080,8 +4082,8 @@ def resume( Args: request (Union[google.cloud.compute_v1.types.ResumeInstanceRequest, dict]): The request object. A request message for - Instances.Resume. See the method description for - details. + Instances.Resume. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -4208,8 +4210,8 @@ def send_diagnostic_interrupt( Args: request (Union[google.cloud.compute_v1.types.SendDiagnosticInterruptInstanceRequest, dict]): The request object. A request message for - Instances.SendDiagnosticInterrupt. See the method - description for details. + Instances.SendDiagnosticInterrupt. See + the method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -4314,8 +4316,8 @@ def set_deletion_protection_unary( Args: request (Union[google.cloud.compute_v1.types.SetDeletionProtectionInstanceRequest, dict]): The request object. A request message for - Instances.SetDeletionProtection. See the method - description for details. + Instances.SetDeletionProtection. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -4417,8 +4419,8 @@ def set_deletion_protection( Args: request (Union[google.cloud.compute_v1.types.SetDeletionProtectionInstanceRequest, dict]): The request object. A request message for - Instances.SetDeletionProtection. See the method - description for details. + Instances.SetDeletionProtection. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -4546,8 +4548,8 @@ def set_disk_auto_delete_unary( Args: request (Union[google.cloud.compute_v1.types.SetDiskAutoDeleteInstanceRequest, dict]): The request object. A request message for - Instances.SetDiskAutoDelete. See the method description - for details. + Instances.SetDiskAutoDelete. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -4668,8 +4670,8 @@ def set_disk_auto_delete( Args: request (Union[google.cloud.compute_v1.types.SetDiskAutoDeleteInstanceRequest, dict]): The request object. A request message for - Instances.SetDiskAutoDelete. See the method description - for details. + Instances.SetDiskAutoDelete. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -4814,8 +4816,8 @@ def set_iam_policy( Args: request (Union[google.cloud.compute_v1.types.SetIamPolicyInstanceRequest, dict]): The request object. A request message for - Instances.SetIamPolicy. See the method description for - details. + Instances.SetIamPolicy. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -4968,8 +4970,8 @@ def set_labels_unary( Args: request (Union[google.cloud.compute_v1.types.SetLabelsInstanceRequest, dict]): The request object. A request message for - Instances.SetLabels. See the method description for - details. + Instances.SetLabels. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -5084,8 +5086,8 @@ def set_labels( Args: request (Union[google.cloud.compute_v1.types.SetLabelsInstanceRequest, dict]): The request object. A request message for - Instances.SetLabels. See the method description for - details. + Instances.SetLabels. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -5227,8 +5229,8 @@ def set_machine_resources_unary( Args: request (Union[google.cloud.compute_v1.types.SetMachineResourcesInstanceRequest, dict]): The request object. A request message for - Instances.SetMachineResources. See the method - description for details. + Instances.SetMachineResources. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -5345,8 +5347,8 @@ def set_machine_resources( Args: request (Union[google.cloud.compute_v1.types.SetMachineResourcesInstanceRequest, dict]): The request object. A request message for - Instances.SetMachineResources. See the method - description for details. + Instances.SetMachineResources. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -5486,8 +5488,8 @@ def set_machine_type_unary( Args: request (Union[google.cloud.compute_v1.types.SetMachineTypeInstanceRequest, dict]): The request object. A request message for - Instances.SetMachineType. See the method description for - details. + Instances.SetMachineType. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -5602,8 +5604,8 @@ def set_machine_type( Args: request (Union[google.cloud.compute_v1.types.SetMachineTypeInstanceRequest, dict]): The request object. A request message for - Instances.SetMachineType. See the method description for - details. + Instances.SetMachineType. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -5741,8 +5743,8 @@ def set_metadata_unary( Args: request (Union[google.cloud.compute_v1.types.SetMetadataInstanceRequest, dict]): The request object. A request message for - Instances.SetMetadata. See the method description for - details. + Instances.SetMetadata. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -5851,8 +5853,8 @@ def set_metadata( Args: request (Union[google.cloud.compute_v1.types.SetMetadataInstanceRequest, dict]): The request object. A request message for - Instances.SetMetadata. See the method description for - details. + Instances.SetMetadata. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -5990,8 +5992,8 @@ def set_min_cpu_platform_unary( Args: request (Union[google.cloud.compute_v1.types.SetMinCpuPlatformInstanceRequest, dict]): The request object. A request message for - Instances.SetMinCpuPlatform. See the method description - for details. + Instances.SetMinCpuPlatform. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -6108,8 +6110,8 @@ def set_min_cpu_platform( Args: request (Union[google.cloud.compute_v1.types.SetMinCpuPlatformInstanceRequest, dict]): The request object. A request message for - Instances.SetMinCpuPlatform. See the method description - for details. + Instances.SetMinCpuPlatform. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -6248,8 +6250,8 @@ def set_name_unary( Args: request (Union[google.cloud.compute_v1.types.SetNameInstanceRequest, dict]): The request object. A request message for - Instances.SetName. See the method description for - details. + Instances.SetName. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -6361,8 +6363,8 @@ def set_name( Args: request (Union[google.cloud.compute_v1.types.SetNameInstanceRequest, dict]): The request object. A request message for - Instances.SetName. See the method description for - details. + Instances.SetName. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -6502,8 +6504,8 @@ def set_scheduling_unary( Args: request (Union[google.cloud.compute_v1.types.SetSchedulingInstanceRequest, dict]): The request object. A request message for - Instances.SetScheduling. See the method description for - details. + Instances.SetScheduling. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -6614,8 +6616,8 @@ def set_scheduling( Args: request (Union[google.cloud.compute_v1.types.SetSchedulingInstanceRequest, dict]): The request object. A request message for - Instances.SetScheduling. See the method description for - details. + Instances.SetScheduling. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -6750,8 +6752,8 @@ def set_service_account_unary( Args: request (Union[google.cloud.compute_v1.types.SetServiceAccountInstanceRequest, dict]): The request object. A request message for - Instances.SetServiceAccount. See the method description - for details. + Instances.SetServiceAccount. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -6867,8 +6869,8 @@ def set_service_account( Args: request (Union[google.cloud.compute_v1.types.SetServiceAccountInstanceRequest, dict]): The request object. A request message for - Instances.SetServiceAccount. See the method description - for details. + Instances.SetServiceAccount. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -7012,8 +7014,8 @@ def set_shielded_instance_integrity_policy_unary( Args: request (Union[google.cloud.compute_v1.types.SetShieldedInstanceIntegrityPolicyInstanceRequest, dict]): The request object. A request message for - Instances.SetShieldedInstanceIntegrityPolicy. See the - method description for details. + Instances.SetShieldedInstanceIntegrityPolicy. + See the method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -7136,8 +7138,8 @@ def set_shielded_instance_integrity_policy( Args: request (Union[google.cloud.compute_v1.types.SetShieldedInstanceIntegrityPolicyInstanceRequest, dict]): The request object. A request message for - Instances.SetShieldedInstanceIntegrityPolicy. See the - method description for details. + Instances.SetShieldedInstanceIntegrityPolicy. + See the method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -7279,8 +7281,8 @@ def set_tags_unary( Args: request (Union[google.cloud.compute_v1.types.SetTagsInstanceRequest, dict]): The request object. A request message for - Instances.SetTags. See the method description for - details. + Instances.SetTags. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -7389,8 +7391,8 @@ def set_tags( Args: request (Union[google.cloud.compute_v1.types.SetTagsInstanceRequest, dict]): The request object. A request message for - Instances.SetTags. See the method description for - details. + Instances.SetTags. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -7525,8 +7527,8 @@ def simulate_maintenance_event_unary( Args: request (Union[google.cloud.compute_v1.types.SimulateMaintenanceEventInstanceRequest, dict]): The request object. A request message for - Instances.SimulateMaintenanceEvent. See the method - description for details. + Instances.SimulateMaintenanceEvent. See + the method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -7631,8 +7633,8 @@ def simulate_maintenance_event( Args: request (Union[google.cloud.compute_v1.types.SimulateMaintenanceEventInstanceRequest, dict]): The request object. A request message for - Instances.SimulateMaintenanceEvent. See the method - description for details. + Instances.SimulateMaintenanceEvent. See + the method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -7761,7 +7763,8 @@ def start_unary( Args: request (Union[google.cloud.compute_v1.types.StartInstanceRequest, dict]): The request object. A request message for - Instances.Start. See the method description for details. + Instances.Start. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -7863,7 +7866,8 @@ def start( Args: request (Union[google.cloud.compute_v1.types.StartInstanceRequest, dict]): The request object. A request message for - Instances.Start. See the method description for details. + Instances.Start. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -7995,8 +7999,8 @@ def start_with_encryption_key_unary( Args: request (Union[google.cloud.compute_v1.types.StartWithEncryptionKeyInstanceRequest, dict]): The request object. A request message for - Instances.StartWithEncryptionKey. See the method - description for details. + Instances.StartWithEncryptionKey. See + the method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -8121,8 +8125,8 @@ def start_with_encryption_key( Args: request (Union[google.cloud.compute_v1.types.StartWithEncryptionKeyInstanceRequest, dict]): The request object. A request message for - Instances.StartWithEncryptionKey. See the method - description for details. + Instances.StartWithEncryptionKey. See + the method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -8270,8 +8274,8 @@ def stop_unary( Args: request (Union[google.cloud.compute_v1.types.StopInstanceRequest, dict]): - The request object. A request message for - Instances.Stop. See the method description for details. + The request object. A request message for Instances.Stop. + See the method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -8376,8 +8380,8 @@ def stop( Args: request (Union[google.cloud.compute_v1.types.StopInstanceRequest, dict]): - The request object. A request message for - Instances.Stop. See the method description for details. + The request object. A request message for Instances.Stop. + See the method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -8510,8 +8514,8 @@ def suspend_unary( Args: request (Union[google.cloud.compute_v1.types.SuspendInstanceRequest, dict]): The request object. A request message for - Instances.Suspend. See the method description for - details. + Instances.Suspend. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -8619,8 +8623,8 @@ def suspend( Args: request (Union[google.cloud.compute_v1.types.SuspendInstanceRequest, dict]): The request object. A request message for - Instances.Suspend. See the method description for - details. + Instances.Suspend. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -8751,8 +8755,8 @@ def test_iam_permissions( Args: request (Union[google.cloud.compute_v1.types.TestIamPermissionsInstanceRequest, dict]): The request object. A request message for - Instances.TestIamPermissions. See the method description - for details. + Instances.TestIamPermissions. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -8865,8 +8869,8 @@ def update_unary( Args: request (Union[google.cloud.compute_v1.types.UpdateInstanceRequest, dict]): The request object. A request message for - Instances.Update. See the method description for - details. + Instances.Update. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -8977,8 +8981,8 @@ def update( Args: request (Union[google.cloud.compute_v1.types.UpdateInstanceRequest, dict]): The request object. A request message for - Instances.Update. See the method description for - details. + Instances.Update. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -9117,8 +9121,8 @@ def update_access_config_unary( Args: request (Union[google.cloud.compute_v1.types.UpdateAccessConfigInstanceRequest, dict]): The request object. A request message for - Instances.UpdateAccessConfig. See the method description - for details. + Instances.UpdateAccessConfig. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -9241,8 +9245,8 @@ def update_access_config( Args: request (Union[google.cloud.compute_v1.types.UpdateAccessConfigInstanceRequest, dict]): The request object. A request message for - Instances.UpdateAccessConfig. See the method description - for details. + Instances.UpdateAccessConfig. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -9389,8 +9393,8 @@ def update_display_device_unary( Args: request (Union[google.cloud.compute_v1.types.UpdateDisplayDeviceInstanceRequest, dict]): The request object. A request message for - Instances.UpdateDisplayDevice. See the method - description for details. + Instances.UpdateDisplayDevice. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -9503,8 +9507,8 @@ def update_display_device( Args: request (Union[google.cloud.compute_v1.types.UpdateDisplayDeviceInstanceRequest, dict]): The request object. A request message for - Instances.UpdateDisplayDevice. See the method - description for details. + Instances.UpdateDisplayDevice. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -9646,8 +9650,8 @@ def update_network_interface_unary( Args: request (Union[google.cloud.compute_v1.types.UpdateNetworkInterfaceInstanceRequest, dict]): The request object. A request message for - Instances.UpdateNetworkInterface. See the method - description for details. + Instances.UpdateNetworkInterface. See + the method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -9773,8 +9777,8 @@ def update_network_interface( Args: request (Union[google.cloud.compute_v1.types.UpdateNetworkInterfaceInstanceRequest, dict]): The request object. A request message for - Instances.UpdateNetworkInterface. See the method - description for details. + Instances.UpdateNetworkInterface. See + the method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -9923,8 +9927,8 @@ def update_shielded_instance_config_unary( Args: request (Union[google.cloud.compute_v1.types.UpdateShieldedInstanceConfigInstanceRequest, dict]): The request object. A request message for - Instances.UpdateShieldedInstanceConfig. See the method - description for details. + Instances.UpdateShieldedInstanceConfig. + See the method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -10045,8 +10049,8 @@ def update_shielded_instance_config( Args: request (Union[google.cloud.compute_v1.types.UpdateShieldedInstanceConfigInstanceRequest, dict]): The request object. A request message for - Instances.UpdateShieldedInstanceConfig. See the method - description for details. + Instances.UpdateShieldedInstanceConfig. + See the method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field diff --git a/google/cloud/compute_v1/services/instances/transports/rest.py b/google/cloud/compute_v1/services/instances/transports/rest.py index d79e19e7b..e0faaa398 100644 --- a/google/cloud/compute_v1/services/instances/transports/rest.py +++ b/google/cloud/compute_v1/services/instances/transports/rest.py @@ -1591,7 +1591,6 @@ def __call__( The request object. A request message for Instances.AddAccessConfig. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1704,7 +1703,6 @@ def __call__( The request object. A request message for Instances.AddResourcePolicies. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1817,7 +1815,6 @@ def __call__( The request object. A request message for Instances.AggregatedList. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1904,7 +1901,6 @@ def __call__( The request object. A request message for Instances.AttachDisk. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -2015,7 +2011,6 @@ def __call__( The request object. A request message for Instances.BulkInsert. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -2126,7 +2121,6 @@ def __call__( The request object. A request message for Instances.Delete. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -2231,7 +2225,6 @@ def __call__( The request object. A request message for Instances.DeleteAccessConfig. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -2337,7 +2330,6 @@ def __call__( The request object. A request message for Instances.DetachDisk. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -2438,7 +2430,6 @@ def __call__( request (~.compute.GetInstanceRequest): The request object. A request message for Instances.Get. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -2532,7 +2523,6 @@ def __call__( The request object. A request message for Instances.GetEffectiveFirewalls. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -2621,7 +2611,6 @@ def __call__( The request object. A request message for Instances.GetGuestAttributes. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -2710,7 +2699,6 @@ def __call__( The request object. A request message for Instances.GetIamPolicy. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -2838,7 +2826,6 @@ def __call__( The request object. A request message for Instances.GetScreenshot. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -2925,7 +2912,6 @@ def __call__( The request object. A request message for Instances.GetSerialPortOutput. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -3015,7 +3001,6 @@ def __call__( The request object. A request message for Instances.GetShieldedInstanceIdentity. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -3104,7 +3089,6 @@ def __call__( The request object. A request message for Instances.Insert. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -3214,7 +3198,6 @@ def __call__( request (~.compute.ListInstancesRequest): The request object. A request message for Instances.List. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -3301,7 +3284,6 @@ def __call__( The request object. A request message for Instances.ListReferrers. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -3390,7 +3372,6 @@ def __call__( The request object. A request message for Instances.RemoveResourcePolicies. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -3503,7 +3484,6 @@ def __call__( The request object. A request message for Instances.Reset. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -3605,7 +3585,6 @@ def __call__( The request object. A request message for Instances.Resume. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -3707,7 +3686,6 @@ def __call__( The request object. A request message for Instances.SendDiagnosticInterrupt. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -3799,7 +3777,6 @@ def __call__( The request object. A request message for Instances.SetDeletionProtection. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -3906,7 +3883,6 @@ def __call__( The request object. A request message for Instances.SetDiskAutoDelete. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -4010,7 +3986,6 @@ def __call__( The request object. A request message for Instances.SetIamPolicy. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -4147,7 +4122,6 @@ def __call__( The request object. A request message for Instances.SetLabels. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -4258,7 +4232,6 @@ def __call__( The request object. A request message for Instances.SetMachineResources. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -4371,7 +4344,6 @@ def __call__( The request object. A request message for Instances.SetMachineType. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -4484,7 +4456,6 @@ def __call__( The request object. A request message for Instances.SetMetadata. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -4595,7 +4566,6 @@ def __call__( The request object. A request message for Instances.SetMinCpuPlatform. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -4708,7 +4678,6 @@ def __call__( The request object. A request message for Instances.SetName. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -4819,7 +4788,6 @@ def __call__( The request object. A request message for Instances.SetScheduling. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -4930,7 +4898,6 @@ def __call__( The request object. A request message for Instances.SetServiceAccount. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -5044,7 +5011,6 @@ def __call__( The request object. A request message for Instances.SetShieldedInstanceIntegrityPolicy. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -5162,7 +5128,6 @@ def __call__( The request object. A request message for Instances.SetTags. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -5274,7 +5239,6 @@ def __call__( The request object. A request message for Instances.SimulateMaintenanceEvent. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -5378,7 +5342,6 @@ def __call__( The request object. A request message for Instances.Start. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -5480,7 +5443,6 @@ def __call__( The request object. A request message for Instances.StartWithEncryptionKey. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -5592,7 +5554,6 @@ def __call__( request (~.compute.StopInstanceRequest): The request object. A request message for Instances.Stop. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -5694,7 +5655,6 @@ def __call__( The request object. A request message for Instances.Suspend. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -5796,7 +5756,6 @@ def __call__( The request object. A request message for Instances.TestIamPermissions. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -5894,7 +5853,6 @@ def __call__( The request object. A request message for Instances.Update. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -6007,7 +5965,6 @@ def __call__( The request object. A request message for Instances.UpdateAccessConfig. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -6120,7 +6077,6 @@ def __call__( The request object. A request message for Instances.UpdateDisplayDevice. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -6235,7 +6191,6 @@ def __call__( The request object. A request message for Instances.UpdateNetworkInterface. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -6349,7 +6304,6 @@ def __call__( The request object. A request message for Instances.UpdateShieldedInstanceConfig. See the method description for details. - 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/compute_v1/services/interconnect_attachments/client.py b/google/cloud/compute_v1/services/interconnect_attachments/client.py index 534724717..340ac3c2a 100644 --- a/google/cloud/compute_v1/services/interconnect_attachments/client.py +++ b/google/cloud/compute_v1/services/interconnect_attachments/client.py @@ -440,8 +440,8 @@ def aggregated_list( Args: request (Union[google.cloud.compute_v1.types.AggregatedListInterconnectAttachmentsRequest, dict]): The request object. A request message for - InterconnectAttachments.AggregatedList. See the method - description for details. + InterconnectAttachments.AggregatedList. + See the method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -531,8 +531,8 @@ def delete_unary( Args: request (Union[google.cloud.compute_v1.types.DeleteInterconnectAttachmentRequest, dict]): The request object. A request message for - InterconnectAttachments.Delete. See the method - description for details. + InterconnectAttachments.Delete. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -632,8 +632,8 @@ def delete( Args: request (Union[google.cloud.compute_v1.types.DeleteInterconnectAttachmentRequest, dict]): The request object. A request message for - InterconnectAttachments.Delete. See the method - description for details. + InterconnectAttachments.Delete. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -756,8 +756,8 @@ def get( Args: request (Union[google.cloud.compute_v1.types.GetInterconnectAttachmentRequest, dict]): The request object. A request message for - InterconnectAttachments.Get. See the method description - for details. + InterconnectAttachments.Get. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -866,8 +866,8 @@ def insert_unary( Args: request (Union[google.cloud.compute_v1.types.InsertInterconnectAttachmentRequest, dict]): The request object. A request message for - InterconnectAttachments.Insert. See the method - description for details. + InterconnectAttachments.Insert. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -969,8 +969,8 @@ def insert( Args: request (Union[google.cloud.compute_v1.types.InsertInterconnectAttachmentRequest, dict]): The request object. A request message for - InterconnectAttachments.Insert. See the method - description for details. + InterconnectAttachments.Insert. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1094,8 +1094,8 @@ def list( Args: request (Union[google.cloud.compute_v1.types.ListInterconnectAttachmentsRequest, dict]): The request object. A request message for - InterconnectAttachments.List. See the method description - for details. + InterconnectAttachments.List. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1203,8 +1203,8 @@ def patch_unary( Args: request (Union[google.cloud.compute_v1.types.PatchInterconnectAttachmentRequest, dict]): The request object. A request message for - InterconnectAttachments.Patch. See the method - description for details. + InterconnectAttachments.Patch. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1323,8 +1323,8 @@ def patch( Args: request (Union[google.cloud.compute_v1.types.PatchInterconnectAttachmentRequest, dict]): The request object. A request message for - InterconnectAttachments.Patch. See the method - description for details. + InterconnectAttachments.Patch. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1467,8 +1467,8 @@ def set_labels_unary( Args: request (Union[google.cloud.compute_v1.types.SetLabelsInterconnectAttachmentRequest, dict]): The request object. A request message for - InterconnectAttachments.SetLabels. See the method - description for details. + InterconnectAttachments.SetLabels. See + the method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1584,8 +1584,8 @@ def set_labels( Args: request (Union[google.cloud.compute_v1.types.SetLabelsInterconnectAttachmentRequest, dict]): The request object. A request message for - InterconnectAttachments.SetLabels. See the method - description for details. + InterconnectAttachments.SetLabels. See + the method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field diff --git a/google/cloud/compute_v1/services/interconnect_attachments/transports/rest.py b/google/cloud/compute_v1/services/interconnect_attachments/transports/rest.py index 1eaa5612e..84e5cb7f5 100644 --- a/google/cloud/compute_v1/services/interconnect_attachments/transports/rest.py +++ b/google/cloud/compute_v1/services/interconnect_attachments/transports/rest.py @@ -415,7 +415,6 @@ def __call__( The request object. A request message for InterconnectAttachments.AggregatedList. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -504,7 +503,6 @@ def __call__( The request object. A request message for InterconnectAttachments.Delete. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -606,7 +604,6 @@ def __call__( The request object. A request message for InterconnectAttachments.Get. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -701,7 +698,6 @@ def __call__( The request object. A request message for InterconnectAttachments.Insert. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -812,7 +808,6 @@ def __call__( The request object. A request message for InterconnectAttachments.List. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -902,7 +897,6 @@ def __call__( The request object. A request message for InterconnectAttachments.Patch. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1013,7 +1007,6 @@ def __call__( The request object. A request message for InterconnectAttachments.SetLabels. See the method description for details. - 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/compute_v1/services/interconnect_locations/client.py b/google/cloud/compute_v1/services/interconnect_locations/client.py index cb4612b24..dc9ca6a58 100644 --- a/google/cloud/compute_v1/services/interconnect_locations/client.py +++ b/google/cloud/compute_v1/services/interconnect_locations/client.py @@ -437,8 +437,8 @@ def get( Args: request (Union[google.cloud.compute_v1.types.GetInterconnectLocationRequest, dict]): The request object. A request message for - InterconnectLocations.Get. See the method description - for details. + InterconnectLocations.Get. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -532,8 +532,8 @@ def list( Args: request (Union[google.cloud.compute_v1.types.ListInterconnectLocationsRequest, dict]): The request object. A request message for - InterconnectLocations.List. See the method description - for details. + InterconnectLocations.List. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field diff --git a/google/cloud/compute_v1/services/interconnect_locations/transports/rest.py b/google/cloud/compute_v1/services/interconnect_locations/transports/rest.py index 705ee8b25..4fc8264a9 100644 --- a/google/cloud/compute_v1/services/interconnect_locations/transports/rest.py +++ b/google/cloud/compute_v1/services/interconnect_locations/transports/rest.py @@ -264,7 +264,6 @@ def __call__( The request object. A request message for InterconnectLocations.Get. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -358,7 +357,6 @@ def __call__( The request object. A request message for InterconnectLocations.List. See the method description for details. - 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/compute_v1/services/interconnects/client.py b/google/cloud/compute_v1/services/interconnects/client.py index 8f8a7a88d..384f55efe 100644 --- a/google/cloud/compute_v1/services/interconnects/client.py +++ b/google/cloud/compute_v1/services/interconnects/client.py @@ -436,8 +436,8 @@ def delete_unary( Args: request (Union[google.cloud.compute_v1.types.DeleteInterconnectRequest, dict]): The request object. A request message for - Interconnects.Delete. See the method description for - details. + Interconnects.Delete. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -524,8 +524,8 @@ def delete( Args: request (Union[google.cloud.compute_v1.types.DeleteInterconnectRequest, dict]): The request object. A request message for - Interconnects.Delete. See the method description for - details. + Interconnects.Delete. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -637,8 +637,8 @@ def get( Args: request (Union[google.cloud.compute_v1.types.GetInterconnectRequest, dict]): The request object. A request message for - Interconnects.Get. See the method description for - details. + Interconnects.Get. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -732,8 +732,8 @@ def get_diagnostics( Args: request (Union[google.cloud.compute_v1.types.GetDiagnosticsInterconnectRequest, dict]): The request object. A request message for - Interconnects.GetDiagnostics. See the method description - for details. + Interconnects.GetDiagnostics. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -823,8 +823,8 @@ def insert_unary( Args: request (Union[google.cloud.compute_v1.types.InsertInterconnectRequest, dict]): The request object. A request message for - Interconnects.Insert. See the method description for - details. + Interconnects.Insert. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -907,8 +907,8 @@ def insert( Args: request (Union[google.cloud.compute_v1.types.InsertInterconnectRequest, dict]): The request object. A request message for - Interconnects.Insert. See the method description for - details. + Interconnects.Insert. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1014,8 +1014,8 @@ def list( Args: request (Union[google.cloud.compute_v1.types.ListInterconnectsRequest, dict]): The request object. A request message for - Interconnects.List. See the method description for - details. + Interconnects.List. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1106,8 +1106,8 @@ def patch_unary( Args: request (Union[google.cloud.compute_v1.types.PatchInterconnectRequest, dict]): The request object. A request message for - Interconnects.Patch. See the method description for - details. + Interconnects.Patch. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1205,8 +1205,8 @@ def patch( Args: request (Union[google.cloud.compute_v1.types.PatchInterconnectRequest, dict]): The request object. A request message for - Interconnects.Patch. See the method description for - details. + Interconnects.Patch. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1328,8 +1328,8 @@ def set_labels_unary( Args: request (Union[google.cloud.compute_v1.types.SetLabelsInterconnectRequest, dict]): The request object. A request message for - Interconnects.SetLabels. See the method description for - details. + Interconnects.SetLabels. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1433,8 +1433,8 @@ def set_labels( Args: request (Union[google.cloud.compute_v1.types.SetLabelsInterconnectRequest, dict]): The request object. A request message for - Interconnects.SetLabels. See the method description for - details. + Interconnects.SetLabels. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field diff --git a/google/cloud/compute_v1/services/interconnects/transports/rest.py b/google/cloud/compute_v1/services/interconnects/transports/rest.py index 7d3ea6001..03ed51c61 100644 --- a/google/cloud/compute_v1/services/interconnects/transports/rest.py +++ b/google/cloud/compute_v1/services/interconnects/transports/rest.py @@ -407,7 +407,6 @@ def __call__( The request object. A request message for Interconnects.Delete. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -509,7 +508,6 @@ def __call__( The request object. A request message for Interconnects.Get. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -602,7 +600,6 @@ def __call__( The request object. A request message for Interconnects.GetDiagnostics. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -691,7 +688,6 @@ def __call__( The request object. A request message for Interconnects.Insert. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -802,7 +798,6 @@ def __call__( The request object. A request message for Interconnects.List. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -891,7 +886,6 @@ def __call__( The request object. A request message for Interconnects.Patch. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1002,7 +996,6 @@ def __call__( The request object. A request message for Interconnects.SetLabels. See the method description for details. - 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/compute_v1/services/license_codes/client.py b/google/cloud/compute_v1/services/license_codes/client.py index 881e49654..609a448cc 100644 --- a/google/cloud/compute_v1/services/license_codes/client.py +++ b/google/cloud/compute_v1/services/license_codes/client.py @@ -435,8 +435,8 @@ def get( Args: request (Union[google.cloud.compute_v1.types.GetLicenseCodeRequest, dict]): The request object. A request message for - LicenseCodes.Get. See the method description for - details. + LicenseCodes.Get. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -535,8 +535,8 @@ def test_iam_permissions( Args: request (Union[google.cloud.compute_v1.types.TestIamPermissionsLicenseCodeRequest, dict]): The request object. A request message for - LicenseCodes.TestIamPermissions. See the method - description for details. + LicenseCodes.TestIamPermissions. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field diff --git a/google/cloud/compute_v1/services/license_codes/transports/rest.py b/google/cloud/compute_v1/services/license_codes/transports/rest.py index 77b22f058..62b5303fa 100644 --- a/google/cloud/compute_v1/services/license_codes/transports/rest.py +++ b/google/cloud/compute_v1/services/license_codes/transports/rest.py @@ -262,7 +262,6 @@ def __call__( The request object. A request message for LicenseCodes.Get. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -354,7 +353,6 @@ def __call__( The request object. A request message for LicenseCodes.TestIamPermissions. See the method description for details. - 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/compute_v1/services/licenses/client.py b/google/cloud/compute_v1/services/licenses/client.py index 6f3e91889..2c0424b56 100644 --- a/google/cloud/compute_v1/services/licenses/client.py +++ b/google/cloud/compute_v1/services/licenses/client.py @@ -438,7 +438,8 @@ def delete_unary( Args: request (Union[google.cloud.compute_v1.types.DeleteLicenseRequest, dict]): The request object. A request message for - Licenses.Delete. See the method description for details. + Licenses.Delete. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -529,7 +530,8 @@ def delete( Args: request (Union[google.cloud.compute_v1.types.DeleteLicenseRequest, dict]): The request object. A request message for - Licenses.Delete. See the method description for details. + Licenses.Delete. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -739,8 +741,8 @@ def get_iam_policy( Args: request (Union[google.cloud.compute_v1.types.GetIamPolicyLicenseRequest, dict]): The request object. A request message for - Licenses.GetIamPolicy. See the method description for - details. + Licenses.GetIamPolicy. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -869,7 +871,8 @@ def insert_unary( Args: request (Union[google.cloud.compute_v1.types.InsertLicenseRequest, dict]): The request object. A request message for - Licenses.Insert. See the method description for details. + Licenses.Insert. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -953,7 +956,8 @@ def insert( Args: request (Union[google.cloud.compute_v1.types.InsertLicenseRequest, dict]): The request object. A request message for - Licenses.Insert. See the method description for details. + Licenses.Insert. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1157,8 +1161,8 @@ def set_iam_policy( Args: request (Union[google.cloud.compute_v1.types.SetIamPolicyLicenseRequest, dict]): The request object. A request message for - Licenses.SetIamPolicy. See the method description for - details. + Licenses.SetIamPolicy. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1301,8 +1305,8 @@ def test_iam_permissions( Args: request (Union[google.cloud.compute_v1.types.TestIamPermissionsLicenseRequest, dict]): The request object. A request message for - Licenses.TestIamPermissions. See the method description - for details. + Licenses.TestIamPermissions. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field diff --git a/google/cloud/compute_v1/services/licenses/transports/rest.py b/google/cloud/compute_v1/services/licenses/transports/rest.py index fb48a1f34..b95d3943a 100644 --- a/google/cloud/compute_v1/services/licenses/transports/rest.py +++ b/google/cloud/compute_v1/services/licenses/transports/rest.py @@ -403,7 +403,6 @@ def __call__( The request object. A request message for Licenses.Delete. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -506,7 +505,6 @@ def __call__( request (~.compute.GetLicenseRequest): The request object. A request message for Licenses.Get. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -598,7 +596,6 @@ def __call__( The request object. A request message for Licenses.GetIamPolicy. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -726,7 +723,6 @@ def __call__( The request object. A request message for Licenses.Insert. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -836,7 +832,6 @@ def __call__( request (~.compute.ListLicensesRequest): The request object. A request message for Licenses.List. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -923,7 +918,6 @@ def __call__( The request object. A request message for Licenses.SetIamPolicy. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1060,7 +1054,6 @@ def __call__( The request object. A request message for Licenses.TestIamPermissions. See the method description for details. - 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/compute_v1/services/machine_images/client.py b/google/cloud/compute_v1/services/machine_images/client.py index 174ef6758..147ad0406 100644 --- a/google/cloud/compute_v1/services/machine_images/client.py +++ b/google/cloud/compute_v1/services/machine_images/client.py @@ -437,8 +437,8 @@ def delete_unary( Args: request (Union[google.cloud.compute_v1.types.DeleteMachineImageRequest, dict]): The request object. A request message for - MachineImages.Delete. See the method description for - details. + MachineImages.Delete. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -528,8 +528,8 @@ def delete( Args: request (Union[google.cloud.compute_v1.types.DeleteMachineImageRequest, dict]): The request object. A request message for - MachineImages.Delete. See the method description for - details. + MachineImages.Delete. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -642,8 +642,8 @@ def get( Args: request (Union[google.cloud.compute_v1.types.GetMachineImageRequest, dict]): The request object. A request message for - MachineImages.Get. See the method description for - details. + MachineImages.Get. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -737,8 +737,8 @@ def get_iam_policy( Args: request (Union[google.cloud.compute_v1.types.GetIamPolicyMachineImageRequest, dict]): The request object. A request message for - MachineImages.GetIamPolicy. See the method description - for details. + MachineImages.GetIamPolicy. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -870,8 +870,8 @@ def insert_unary( Args: request (Union[google.cloud.compute_v1.types.InsertMachineImageRequest, dict]): The request object. A request message for - MachineImages.Insert. See the method description for - details. + MachineImages.Insert. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -958,8 +958,8 @@ def insert( Args: request (Union[google.cloud.compute_v1.types.InsertMachineImageRequest, dict]): The request object. A request message for - MachineImages.Insert. See the method description for - details. + MachineImages.Insert. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1065,8 +1065,8 @@ def list( Args: request (Union[google.cloud.compute_v1.types.ListMachineImagesRequest, dict]): The request object. A request message for - MachineImages.List. See the method description for - details. + MachineImages.List. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1156,8 +1156,8 @@ def set_iam_policy( Args: request (Union[google.cloud.compute_v1.types.SetIamPolicyMachineImageRequest, dict]): The request object. A request message for - MachineImages.SetIamPolicy. See the method description - for details. + MachineImages.SetIamPolicy. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1301,8 +1301,8 @@ def test_iam_permissions( Args: request (Union[google.cloud.compute_v1.types.TestIamPermissionsMachineImageRequest, dict]): The request object. A request message for - MachineImages.TestIamPermissions. See the method - description for details. + MachineImages.TestIamPermissions. See + the method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field diff --git a/google/cloud/compute_v1/services/machine_images/transports/rest.py b/google/cloud/compute_v1/services/machine_images/transports/rest.py index 428f13b56..1e57e0006 100644 --- a/google/cloud/compute_v1/services/machine_images/transports/rest.py +++ b/google/cloud/compute_v1/services/machine_images/transports/rest.py @@ -409,7 +409,6 @@ def __call__( The request object. A request message for MachineImages.Delete. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -511,7 +510,6 @@ def __call__( The request object. A request message for MachineImages.Get. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -606,7 +604,6 @@ def __call__( The request object. A request message for MachineImages.GetIamPolicy. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -734,7 +731,6 @@ def __call__( The request object. A request message for MachineImages.Insert. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -845,7 +841,6 @@ def __call__( The request object. A request message for MachineImages.List. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -932,7 +927,6 @@ def __call__( The request object. A request message for MachineImages.SetIamPolicy. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1069,7 +1063,6 @@ def __call__( The request object. A request message for MachineImages.TestIamPermissions. See the method description for details. - 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/compute_v1/services/machine_types/client.py b/google/cloud/compute_v1/services/machine_types/client.py index 2ef035a3b..3f85cebd8 100644 --- a/google/cloud/compute_v1/services/machine_types/client.py +++ b/google/cloud/compute_v1/services/machine_types/client.py @@ -434,8 +434,8 @@ def aggregated_list( Args: request (Union[google.cloud.compute_v1.types.AggregatedListMachineTypesRequest, dict]): The request object. A request message for - MachineTypes.AggregatedList. See the method description - for details. + MachineTypes.AggregatedList. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -521,8 +521,8 @@ def get( Args: request (Union[google.cloud.compute_v1.types.GetMachineTypeRequest, dict]): The request object. A request message for - MachineTypes.Get. See the method description for - details. + MachineTypes.Get. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -623,8 +623,8 @@ def list( Args: request (Union[google.cloud.compute_v1.types.ListMachineTypesRequest, dict]): The request object. A request message for - MachineTypes.List. See the method description for - details. + MachineTypes.List. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field diff --git a/google/cloud/compute_v1/services/machine_types/transports/rest.py b/google/cloud/compute_v1/services/machine_types/transports/rest.py index c3128f083..e43db3803 100644 --- a/google/cloud/compute_v1/services/machine_types/transports/rest.py +++ b/google/cloud/compute_v1/services/machine_types/transports/rest.py @@ -291,7 +291,6 @@ def __call__( The request object. A request message for MachineTypes.AggregatedList. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -378,7 +377,6 @@ def __call__( The request object. A request message for MachineTypes.Get. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -470,7 +468,6 @@ def __call__( The request object. A request message for MachineTypes.List. See the method description for details. - 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/compute_v1/services/network_attachments/client.py b/google/cloud/compute_v1/services/network_attachments/client.py index 1d4eadb33..bdeebb6f0 100644 --- a/google/cloud/compute_v1/services/network_attachments/client.py +++ b/google/cloud/compute_v1/services/network_attachments/client.py @@ -441,8 +441,8 @@ def aggregated_list( Args: request (Union[google.cloud.compute_v1.types.AggregatedListNetworkAttachmentsRequest, dict]): The request object. A request message for - NetworkAttachments.AggregatedList. See the method - description for details. + NetworkAttachments.AggregatedList. See + the method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -531,8 +531,8 @@ def delete_unary( Args: request (Union[google.cloud.compute_v1.types.DeleteNetworkAttachmentRequest, dict]): The request object. A request message for - NetworkAttachments.Delete. See the method description - for details. + NetworkAttachments.Delete. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -631,8 +631,8 @@ def delete( Args: request (Union[google.cloud.compute_v1.types.DeleteNetworkAttachmentRequest, dict]): The request object. A request message for - NetworkAttachments.Delete. See the method description - for details. + NetworkAttachments.Delete. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -756,8 +756,8 @@ def get( Args: request (Union[google.cloud.compute_v1.types.GetNetworkAttachmentRequest, dict]): The request object. A request message for - NetworkAttachments.Get. See the method description for - details. + NetworkAttachments.Get. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -858,8 +858,8 @@ def get_iam_policy( Args: request (Union[google.cloud.compute_v1.types.GetIamPolicyNetworkAttachmentRequest, dict]): The request object. A request message for - NetworkAttachments.GetIamPolicy. See the method - description for details. + NetworkAttachments.GetIamPolicy. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -999,8 +999,8 @@ def insert_unary( Args: request (Union[google.cloud.compute_v1.types.InsertNetworkAttachmentRequest, dict]): The request object. A request message for - NetworkAttachments.Insert. See the method description - for details. + NetworkAttachments.Insert. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1097,8 +1097,8 @@ def insert( Args: request (Union[google.cloud.compute_v1.types.InsertNetworkAttachmentRequest, dict]): The request object. A request message for - NetworkAttachments.Insert. See the method description - for details. + NetworkAttachments.Insert. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1218,8 +1218,8 @@ def list( Args: request (Union[google.cloud.compute_v1.types.ListNetworkAttachmentsRequest, dict]): The request object. A request message for - NetworkAttachments.List. See the method description for - details. + NetworkAttachments.List. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1323,8 +1323,8 @@ def set_iam_policy( Args: request (Union[google.cloud.compute_v1.types.SetIamPolicyNetworkAttachmentRequest, dict]): The request object. A request message for - NetworkAttachments.SetIamPolicy. See the method - description for details. + NetworkAttachments.SetIamPolicy. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1479,8 +1479,8 @@ def test_iam_permissions( Args: request (Union[google.cloud.compute_v1.types.TestIamPermissionsNetworkAttachmentRequest, dict]): The request object. A request message for - NetworkAttachments.TestIamPermissions. See the method - description for details. + NetworkAttachments.TestIamPermissions. + See the method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field diff --git a/google/cloud/compute_v1/services/network_attachments/transports/rest.py b/google/cloud/compute_v1/services/network_attachments/transports/rest.py index 15d26aa97..abbd5b0f0 100644 --- a/google/cloud/compute_v1/services/network_attachments/transports/rest.py +++ b/google/cloud/compute_v1/services/network_attachments/transports/rest.py @@ -446,7 +446,6 @@ def __call__( The request object. A request message for NetworkAttachments.AggregatedList. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -535,7 +534,6 @@ def __call__( The request object. A request message for NetworkAttachments.Delete. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -637,7 +635,6 @@ def __call__( The request object. A request message for NetworkAttachments.Get. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -726,7 +723,6 @@ def __call__( The request object. A request message for NetworkAttachments.GetIamPolicy. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -854,7 +850,6 @@ def __call__( The request object. A request message for NetworkAttachments.Insert. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -965,7 +960,6 @@ def __call__( The request object. A request message for NetworkAttachments.List. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1052,7 +1046,6 @@ def __call__( The request object. A request message for NetworkAttachments.SetIamPolicy. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1189,7 +1182,6 @@ def __call__( The request object. A request message for NetworkAttachments.TestIamPermissions. See the method description for details. - 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/compute_v1/services/network_edge_security_services/client.py b/google/cloud/compute_v1/services/network_edge_security_services/client.py index 0f736a62d..f34b4a8b2 100644 --- a/google/cloud/compute_v1/services/network_edge_security_services/client.py +++ b/google/cloud/compute_v1/services/network_edge_security_services/client.py @@ -442,8 +442,8 @@ def aggregated_list( Args: request (Union[google.cloud.compute_v1.types.AggregatedListNetworkEdgeSecurityServicesRequest, dict]): The request object. A request message for - NetworkEdgeSecurityServices.AggregatedList. See the - method description for details. + NetworkEdgeSecurityServices.AggregatedList. + See the method description for details. project (str): Name of the project scoping this request. @@ -535,8 +535,8 @@ def delete_unary( Args: request (Union[google.cloud.compute_v1.types.DeleteNetworkEdgeSecurityServiceRequest, dict]): The request object. A request message for - NetworkEdgeSecurityServices.Delete. See the method - description for details. + NetworkEdgeSecurityServices.Delete. See + the method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -641,8 +641,8 @@ def delete( Args: request (Union[google.cloud.compute_v1.types.DeleteNetworkEdgeSecurityServiceRequest, dict]): The request object. A request message for - NetworkEdgeSecurityServices.Delete. See the method - description for details. + NetworkEdgeSecurityServices.Delete. See + the method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -772,8 +772,8 @@ def get( Args: request (Union[google.cloud.compute_v1.types.GetNetworkEdgeSecurityServiceRequest, dict]): The request object. A request message for - NetworkEdgeSecurityServices.Get. See the method - description for details. + NetworkEdgeSecurityServices.Get. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -881,8 +881,8 @@ def insert_unary( Args: request (Union[google.cloud.compute_v1.types.InsertNetworkEdgeSecurityServiceRequest, dict]): The request object. A request message for - NetworkEdgeSecurityServices.Insert. See the method - description for details. + NetworkEdgeSecurityServices.Insert. See + the method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -988,8 +988,8 @@ def insert( Args: request (Union[google.cloud.compute_v1.types.InsertNetworkEdgeSecurityServiceRequest, dict]): The request object. A request message for - NetworkEdgeSecurityServices.Insert. See the method - description for details. + NetworkEdgeSecurityServices.Insert. See + the method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1121,8 +1121,8 @@ def patch_unary( Args: request (Union[google.cloud.compute_v1.types.PatchNetworkEdgeSecurityServiceRequest, dict]): The request object. A request message for - NetworkEdgeSecurityServices.Patch. See the method - description for details. + NetworkEdgeSecurityServices.Patch. See + the method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1247,8 +1247,8 @@ def patch( Args: request (Union[google.cloud.compute_v1.types.PatchNetworkEdgeSecurityServiceRequest, dict]): The request object. A request message for - NetworkEdgeSecurityServices.Patch. See the method - description for details. + NetworkEdgeSecurityServices.Patch. See + the method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field diff --git a/google/cloud/compute_v1/services/network_edge_security_services/transports/rest.py b/google/cloud/compute_v1/services/network_edge_security_services/transports/rest.py index a24a4ce86..89bc99409 100644 --- a/google/cloud/compute_v1/services/network_edge_security_services/transports/rest.py +++ b/google/cloud/compute_v1/services/network_edge_security_services/transports/rest.py @@ -360,7 +360,6 @@ def __call__( The request object. A request message for NetworkEdgeSecurityServices.AggregatedList. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -449,7 +448,6 @@ def __call__( The request object. A request message for NetworkEdgeSecurityServices.Delete. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -551,7 +549,6 @@ def __call__( The request object. A request message for NetworkEdgeSecurityServices.Get. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -640,7 +637,6 @@ def __call__( The request object. A request message for NetworkEdgeSecurityServices.Insert. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -751,7 +747,6 @@ def __call__( The request object. A request message for NetworkEdgeSecurityServices.Patch. See the method description for details. - 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/compute_v1/services/network_endpoint_groups/client.py b/google/cloud/compute_v1/services/network_endpoint_groups/client.py index 97edaae76..21e5ffe6c 100644 --- a/google/cloud/compute_v1/services/network_endpoint_groups/client.py +++ b/google/cloud/compute_v1/services/network_endpoint_groups/client.py @@ -440,8 +440,8 @@ def aggregated_list( Args: request (Union[google.cloud.compute_v1.types.AggregatedListNetworkEndpointGroupsRequest, dict]): The request object. A request message for - NetworkEndpointGroups.AggregatedList. See the method - description for details. + NetworkEndpointGroups.AggregatedList. + See the method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -533,8 +533,8 @@ def attach_network_endpoints_unary( Args: request (Union[google.cloud.compute_v1.types.AttachNetworkEndpointsNetworkEndpointGroupRequest, dict]): The request object. A request message for - NetworkEndpointGroups.AttachNetworkEndpoints. See the - method description for details. + NetworkEndpointGroups.AttachNetworkEndpoints. + See the method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -661,8 +661,8 @@ def attach_network_endpoints( Args: request (Union[google.cloud.compute_v1.types.AttachNetworkEndpointsNetworkEndpointGroupRequest, dict]): The request object. A request message for - NetworkEndpointGroups.AttachNetworkEndpoints. See the - method description for details. + NetworkEndpointGroups.AttachNetworkEndpoints. + See the method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -814,8 +814,8 @@ def delete_unary( Args: request (Union[google.cloud.compute_v1.types.DeleteNetworkEndpointGroupRequest, dict]): The request object. A request message for - NetworkEndpointGroups.Delete. See the method description - for details. + NetworkEndpointGroups.Delete. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -923,8 +923,8 @@ def delete( Args: request (Union[google.cloud.compute_v1.types.DeleteNetworkEndpointGroupRequest, dict]): The request object. A request message for - NetworkEndpointGroups.Delete. See the method description - for details. + NetworkEndpointGroups.Delete. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1057,8 +1057,8 @@ def detach_network_endpoints_unary( Args: request (Union[google.cloud.compute_v1.types.DetachNetworkEndpointsNetworkEndpointGroupRequest, dict]): The request object. A request message for - NetworkEndpointGroups.DetachNetworkEndpoints. See the - method description for details. + NetworkEndpointGroups.DetachNetworkEndpoints. + See the method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1185,8 +1185,8 @@ def detach_network_endpoints( Args: request (Union[google.cloud.compute_v1.types.DetachNetworkEndpointsNetworkEndpointGroupRequest, dict]): The request object. A request message for - NetworkEndpointGroups.DetachNetworkEndpoints. See the - method description for details. + NetworkEndpointGroups.DetachNetworkEndpoints. + See the method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1332,8 +1332,8 @@ def get( Args: request (Union[google.cloud.compute_v1.types.GetNetworkEndpointGroupRequest, dict]): The request object. A request message for - NetworkEndpointGroups.Get. See the method description - for details. + NetworkEndpointGroups.Get. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1447,8 +1447,8 @@ def insert_unary( Args: request (Union[google.cloud.compute_v1.types.InsertNetworkEndpointGroupRequest, dict]): The request object. A request message for - NetworkEndpointGroups.Insert. See the method description - for details. + NetworkEndpointGroups.Insert. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1552,8 +1552,8 @@ def insert( Args: request (Union[google.cloud.compute_v1.types.InsertNetworkEndpointGroupRequest, dict]): The request object. A request message for - NetworkEndpointGroups.Insert. See the method description - for details. + NetworkEndpointGroups.Insert. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1678,8 +1678,8 @@ def list( Args: request (Union[google.cloud.compute_v1.types.ListNetworkEndpointGroupsRequest, dict]): The request object. A request message for - NetworkEndpointGroups.List. See the method description - for details. + NetworkEndpointGroups.List. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1786,8 +1786,8 @@ def list_network_endpoints( Args: request (Union[google.cloud.compute_v1.types.ListNetworkEndpointsNetworkEndpointGroupsRequest, dict]): The request object. A request message for - NetworkEndpointGroups.ListNetworkEndpoints. See the - method description for details. + NetworkEndpointGroups.ListNetworkEndpoints. + See the method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1924,8 +1924,8 @@ def test_iam_permissions( Args: request (Union[google.cloud.compute_v1.types.TestIamPermissionsNetworkEndpointGroupRequest, dict]): The request object. A request message for - NetworkEndpointGroups.TestIamPermissions. See the method - description for details. + NetworkEndpointGroups.TestIamPermissions. + See the method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field diff --git a/google/cloud/compute_v1/services/network_endpoint_groups/transports/rest.py b/google/cloud/compute_v1/services/network_endpoint_groups/transports/rest.py index e30d75b87..d592bc1c3 100644 --- a/google/cloud/compute_v1/services/network_endpoint_groups/transports/rest.py +++ b/google/cloud/compute_v1/services/network_endpoint_groups/transports/rest.py @@ -490,7 +490,6 @@ def __call__( The request object. A request message for NetworkEndpointGroups.AggregatedList. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -577,7 +576,6 @@ def __call__( The request object. A request message for NetworkEndpointGroups.AttachNetworkEndpoints. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -692,7 +690,6 @@ def __call__( The request object. A request message for NetworkEndpointGroups.Delete. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -794,7 +791,6 @@ def __call__( The request object. A request message for NetworkEndpointGroups.DetachNetworkEndpoints. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -909,7 +905,6 @@ def __call__( The request object. A request message for NetworkEndpointGroups.Get. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1007,7 +1002,6 @@ def __call__( The request object. A request message for NetworkEndpointGroups.Insert. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1118,7 +1112,6 @@ def __call__( The request object. A request message for NetworkEndpointGroups.List. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1205,7 +1198,6 @@ def __call__( The request object. A request message for NetworkEndpointGroups.ListNetworkEndpoints. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1305,7 +1297,6 @@ def __call__( The request object. A request message for NetworkEndpointGroups.TestIamPermissions. See the method description for details. - 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/compute_v1/services/network_firewall_policies/client.py b/google/cloud/compute_v1/services/network_firewall_policies/client.py index 7bfe5e192..126d84a42 100644 --- a/google/cloud/compute_v1/services/network_firewall_policies/client.py +++ b/google/cloud/compute_v1/services/network_firewall_policies/client.py @@ -444,8 +444,8 @@ def add_association_unary( Args: request (Union[google.cloud.compute_v1.types.AddAssociationNetworkFirewallPolicyRequest, dict]): The request object. A request message for - NetworkFirewallPolicies.AddAssociation. See the method - description for details. + NetworkFirewallPolicies.AddAssociation. + See the method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -551,8 +551,8 @@ def add_association( Args: request (Union[google.cloud.compute_v1.types.AddAssociationNetworkFirewallPolicyRequest, dict]): The request object. A request message for - NetworkFirewallPolicies.AddAssociation. See the method - description for details. + NetworkFirewallPolicies.AddAssociation. + See the method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -679,8 +679,8 @@ def add_rule_unary( Args: request (Union[google.cloud.compute_v1.types.AddRuleNetworkFirewallPolicyRequest, dict]): The request object. A request message for - NetworkFirewallPolicies.AddRule. See the method - description for details. + NetworkFirewallPolicies.AddRule. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -781,8 +781,8 @@ def add_rule( Args: request (Union[google.cloud.compute_v1.types.AddRuleNetworkFirewallPolicyRequest, dict]): The request object. A request message for - NetworkFirewallPolicies.AddRule. See the method - description for details. + NetworkFirewallPolicies.AddRule. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -906,8 +906,8 @@ def clone_rules_unary( Args: request (Union[google.cloud.compute_v1.types.CloneRulesNetworkFirewallPolicyRequest, dict]): The request object. A request message for - NetworkFirewallPolicies.CloneRules. See the method - description for details. + NetworkFirewallPolicies.CloneRules. See + the method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -998,8 +998,8 @@ def clone_rules( Args: request (Union[google.cloud.compute_v1.types.CloneRulesNetworkFirewallPolicyRequest, dict]): The request object. A request message for - NetworkFirewallPolicies.CloneRules. See the method - description for details. + NetworkFirewallPolicies.CloneRules. See + the method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1114,8 +1114,8 @@ def delete_unary( Args: request (Union[google.cloud.compute_v1.types.DeleteNetworkFirewallPolicyRequest, dict]): The request object. A request message for - NetworkFirewallPolicies.Delete. See the method - description for details. + NetworkFirewallPolicies.Delete. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1206,8 +1206,8 @@ def delete( Args: request (Union[google.cloud.compute_v1.types.DeleteNetworkFirewallPolicyRequest, dict]): The request object. A request message for - NetworkFirewallPolicies.Delete. See the method - description for details. + NetworkFirewallPolicies.Delete. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1320,8 +1320,8 @@ def get( Args: request (Union[google.cloud.compute_v1.types.GetNetworkFirewallPolicyRequest, dict]): The request object. A request message for - NetworkFirewallPolicies.Get. See the method description - for details. + NetworkFirewallPolicies.Get. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1410,8 +1410,8 @@ def get_association( Args: request (Union[google.cloud.compute_v1.types.GetAssociationNetworkFirewallPolicyRequest, dict]): The request object. A request message for - NetworkFirewallPolicies.GetAssociation. See the method - description for details. + NetworkFirewallPolicies.GetAssociation. + See the method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1501,8 +1501,8 @@ def get_iam_policy( Args: request (Union[google.cloud.compute_v1.types.GetIamPolicyNetworkFirewallPolicyRequest, dict]): The request object. A request message for - NetworkFirewallPolicies.GetIamPolicy. See the method - description for details. + NetworkFirewallPolicies.GetIamPolicy. + See the method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1631,8 +1631,8 @@ def get_rule( Args: request (Union[google.cloud.compute_v1.types.GetRuleNetworkFirewallPolicyRequest, dict]): The request object. A request message for - NetworkFirewallPolicies.GetRule. See the method - description for details. + NetworkFirewallPolicies.GetRule. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1726,8 +1726,8 @@ def insert_unary( Args: request (Union[google.cloud.compute_v1.types.InsertNetworkFirewallPolicyRequest, dict]): The request object. A request message for - NetworkFirewallPolicies.Insert. See the method - description for details. + NetworkFirewallPolicies.Insert. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1812,8 +1812,8 @@ def insert( Args: request (Union[google.cloud.compute_v1.types.InsertNetworkFirewallPolicyRequest, dict]): The request object. A request message for - NetworkFirewallPolicies.Insert. See the method - description for details. + NetworkFirewallPolicies.Insert. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1921,8 +1921,8 @@ def list( Args: request (Union[google.cloud.compute_v1.types.ListNetworkFirewallPoliciesRequest, dict]): The request object. A request message for - NetworkFirewallPolicies.List. See the method description - for details. + NetworkFirewallPolicies.List. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -2011,8 +2011,8 @@ def patch_unary( Args: request (Union[google.cloud.compute_v1.types.PatchNetworkFirewallPolicyRequest, dict]): The request object. A request message for - NetworkFirewallPolicies.Patch. See the method - description for details. + NetworkFirewallPolicies.Patch. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -2112,8 +2112,8 @@ def patch( Args: request (Union[google.cloud.compute_v1.types.PatchNetworkFirewallPolicyRequest, dict]): The request object. A request message for - NetworkFirewallPolicies.Patch. See the method - description for details. + NetworkFirewallPolicies.Patch. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -2236,8 +2236,8 @@ def patch_rule_unary( Args: request (Union[google.cloud.compute_v1.types.PatchRuleNetworkFirewallPolicyRequest, dict]): The request object. A request message for - NetworkFirewallPolicies.PatchRule. See the method - description for details. + NetworkFirewallPolicies.PatchRule. See + the method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -2338,8 +2338,8 @@ def patch_rule( Args: request (Union[google.cloud.compute_v1.types.PatchRuleNetworkFirewallPolicyRequest, dict]): The request object. A request message for - NetworkFirewallPolicies.PatchRule. See the method - description for details. + NetworkFirewallPolicies.PatchRule. See + the method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -2464,8 +2464,8 @@ def remove_association_unary( Args: request (Union[google.cloud.compute_v1.types.RemoveAssociationNetworkFirewallPolicyRequest, dict]): The request object. A request message for - NetworkFirewallPolicies.RemoveAssociation. See the - method description for details. + NetworkFirewallPolicies.RemoveAssociation. + See the method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -2559,8 +2559,8 @@ def remove_association( Args: request (Union[google.cloud.compute_v1.types.RemoveAssociationNetworkFirewallPolicyRequest, dict]): The request object. A request message for - NetworkFirewallPolicies.RemoveAssociation. See the - method description for details. + NetworkFirewallPolicies.RemoveAssociation. + See the method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -2677,8 +2677,8 @@ def remove_rule_unary( Args: request (Union[google.cloud.compute_v1.types.RemoveRuleNetworkFirewallPolicyRequest, dict]): The request object. A request message for - NetworkFirewallPolicies.RemoveRule. See the method - description for details. + NetworkFirewallPolicies.RemoveRule. See + the method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -2769,8 +2769,8 @@ def remove_rule( Args: request (Union[google.cloud.compute_v1.types.RemoveRuleNetworkFirewallPolicyRequest, dict]): The request object. A request message for - NetworkFirewallPolicies.RemoveRule. See the method - description for details. + NetworkFirewallPolicies.RemoveRule. See + the method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -2889,8 +2889,8 @@ def set_iam_policy( Args: request (Union[google.cloud.compute_v1.types.SetIamPolicyNetworkFirewallPolicyRequest, dict]): The request object. A request message for - NetworkFirewallPolicies.SetIamPolicy. See the method - description for details. + NetworkFirewallPolicies.SetIamPolicy. + See the method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -3034,8 +3034,8 @@ def test_iam_permissions( Args: request (Union[google.cloud.compute_v1.types.TestIamPermissionsNetworkFirewallPolicyRequest, dict]): The request object. A request message for - NetworkFirewallPolicies.TestIamPermissions. See the - method description for details. + NetworkFirewallPolicies.TestIamPermissions. + See the method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field diff --git a/google/cloud/compute_v1/services/network_firewall_policies/transports/rest.py b/google/cloud/compute_v1/services/network_firewall_policies/transports/rest.py index e0041be39..7574037b1 100644 --- a/google/cloud/compute_v1/services/network_firewall_policies/transports/rest.py +++ b/google/cloud/compute_v1/services/network_firewall_policies/transports/rest.py @@ -693,7 +693,6 @@ def __call__( The request object. A request message for NetworkFirewallPolicies.AddAssociation. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -804,7 +803,6 @@ def __call__( The request object. A request message for NetworkFirewallPolicies.AddRule. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -915,7 +913,6 @@ def __call__( The request object. A request message for NetworkFirewallPolicies.CloneRules. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1017,7 +1014,6 @@ def __call__( The request object. A request message for NetworkFirewallPolicies.Delete. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1119,7 +1115,6 @@ def __call__( The request object. A request message for NetworkFirewallPolicies.Get. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1208,7 +1203,6 @@ def __call__( The request object. A request message for NetworkFirewallPolicies.GetAssociation. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1295,7 +1289,6 @@ def __call__( The request object. A request message for NetworkFirewallPolicies.GetIamPolicy. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1423,7 +1416,6 @@ def __call__( The request object. A request message for NetworkFirewallPolicies.GetRule. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1514,7 +1506,6 @@ def __call__( The request object. A request message for NetworkFirewallPolicies.Insert. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1625,7 +1616,6 @@ def __call__( The request object. A request message for NetworkFirewallPolicies.List. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1712,7 +1702,6 @@ def __call__( The request object. A request message for NetworkFirewallPolicies.Patch. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1823,7 +1812,6 @@ def __call__( The request object. A request message for NetworkFirewallPolicies.PatchRule. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1934,7 +1922,6 @@ def __call__( The request object. A request message for NetworkFirewallPolicies.RemoveAssociation. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -2040,7 +2027,6 @@ def __call__( The request object. A request message for NetworkFirewallPolicies.RemoveRule. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -2142,7 +2128,6 @@ def __call__( The request object. A request message for NetworkFirewallPolicies.SetIamPolicy. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -2279,7 +2264,6 @@ def __call__( The request object. A request message for NetworkFirewallPolicies.TestIamPermissions. See the method description for details. - 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/compute_v1/services/networks/client.py b/google/cloud/compute_v1/services/networks/client.py index 7ec31b17f..a3bab882c 100644 --- a/google/cloud/compute_v1/services/networks/client.py +++ b/google/cloud/compute_v1/services/networks/client.py @@ -439,8 +439,8 @@ def add_peering_unary( Args: request (Union[google.cloud.compute_v1.types.AddPeeringNetworkRequest, dict]): The request object. A request message for - Networks.AddPeering. See the method description for - details. + Networks.AddPeering. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -543,8 +543,8 @@ def add_peering( Args: request (Union[google.cloud.compute_v1.types.AddPeeringNetworkRequest, dict]): The request object. A request message for - Networks.AddPeering. See the method description for - details. + Networks.AddPeering. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -668,7 +668,8 @@ def delete_unary( Args: request (Union[google.cloud.compute_v1.types.DeleteNetworkRequest, dict]): The request object. A request message for - Networks.Delete. See the method description for details. + Networks.Delete. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -755,7 +756,8 @@ def delete( Args: request (Union[google.cloud.compute_v1.types.DeleteNetworkRequest, dict]): The request object. A request message for - Networks.Delete. See the method description for details. + Networks.Delete. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -958,8 +960,8 @@ def get_effective_firewalls( Args: request (Union[google.cloud.compute_v1.types.GetEffectiveFirewallsNetworkRequest, dict]): The request object. A request message for - Networks.GetEffectiveFirewalls. See the method - description for details. + Networks.GetEffectiveFirewalls. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1045,7 +1047,8 @@ def insert_unary( Args: request (Union[google.cloud.compute_v1.types.InsertNetworkRequest, dict]): The request object. A request message for - Networks.Insert. See the method description for details. + Networks.Insert. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1128,7 +1131,8 @@ def insert( Args: request (Union[google.cloud.compute_v1.types.InsertNetworkRequest, dict]): The request object. A request message for - Networks.Insert. See the method description for details. + Networks.Insert. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1321,8 +1325,8 @@ def list_peering_routes( Args: request (Union[google.cloud.compute_v1.types.ListPeeringRoutesNetworksRequest, dict]): The request object. A request message for - Networks.ListPeeringRoutes. See the method description - for details. + Networks.ListPeeringRoutes. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1421,8 +1425,8 @@ def patch_unary( Args: request (Union[google.cloud.compute_v1.types.PatchNetworkRequest, dict]): - The request object. A request message for - Networks.Patch. See the method description for details. + The request object. A request message for Networks.Patch. + See the method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1518,8 +1522,8 @@ def patch( Args: request (Union[google.cloud.compute_v1.types.PatchNetworkRequest, dict]): - The request object. A request message for - Networks.Patch. See the method description for details. + The request object. A request message for Networks.Patch. + See the method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1640,8 +1644,8 @@ def remove_peering_unary( Args: request (Union[google.cloud.compute_v1.types.RemovePeeringNetworkRequest, dict]): The request object. A request message for - Networks.RemovePeering. See the method description for - details. + Networks.RemovePeering. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1744,8 +1748,8 @@ def remove_peering( Args: request (Union[google.cloud.compute_v1.types.RemovePeeringNetworkRequest, dict]): The request object. A request message for - Networks.RemovePeering. See the method description for - details. + Networks.RemovePeering. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1870,8 +1874,8 @@ def switch_to_custom_mode_unary( Args: request (Union[google.cloud.compute_v1.types.SwitchToCustomModeNetworkRequest, dict]): The request object. A request message for - Networks.SwitchToCustomMode. See the method description - for details. + Networks.SwitchToCustomMode. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1959,8 +1963,8 @@ def switch_to_custom_mode( Args: request (Union[google.cloud.compute_v1.types.SwitchToCustomModeNetworkRequest, dict]): The request object. A request message for - Networks.SwitchToCustomMode. See the method description - for details. + Networks.SwitchToCustomMode. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -2077,8 +2081,8 @@ def update_peering_unary( Args: request (Union[google.cloud.compute_v1.types.UpdatePeeringNetworkRequest, dict]): The request object. A request message for - Networks.UpdatePeering. See the method description for - details. + Networks.UpdatePeering. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -2184,8 +2188,8 @@ def update_peering( Args: request (Union[google.cloud.compute_v1.types.UpdatePeeringNetworkRequest, dict]): The request object. A request message for - Networks.UpdatePeering. See the method description for - details. + Networks.UpdatePeering. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field diff --git a/google/cloud/compute_v1/services/networks/transports/rest.py b/google/cloud/compute_v1/services/networks/transports/rest.py index 9f864d39b..f8d01cbca 100644 --- a/google/cloud/compute_v1/services/networks/transports/rest.py +++ b/google/cloud/compute_v1/services/networks/transports/rest.py @@ -517,7 +517,6 @@ def __call__( The request object. A request message for Networks.AddPeering. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -628,7 +627,6 @@ def __call__( The request object. A request message for Networks.Delete. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -729,7 +727,6 @@ def __call__( request (~.compute.GetNetworkRequest): The request object. A request message for Networks.Get. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -821,7 +818,6 @@ def __call__( The request object. A request message for Networks.GetEffectiveFirewalls. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -910,7 +906,6 @@ def __call__( The request object. A request message for Networks.Insert. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1020,7 +1015,6 @@ def __call__( request (~.compute.ListNetworksRequest): The request object. A request message for Networks.List. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1107,7 +1101,6 @@ def __call__( The request object. A request message for Networks.ListPeeringRoutes. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1195,7 +1188,6 @@ def __call__( request (~.compute.PatchNetworkRequest): The request object. A request message for Networks.Patch. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1306,7 +1298,6 @@ def __call__( The request object. A request message for Networks.RemovePeering. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1417,7 +1408,6 @@ def __call__( The request object. A request message for Networks.SwitchToCustomMode. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1521,7 +1511,6 @@ def __call__( The request object. A request message for Networks.UpdatePeering. See the method description for details. - 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/compute_v1/services/node_groups/client.py b/google/cloud/compute_v1/services/node_groups/client.py index d5b6c1867..a899933e9 100644 --- a/google/cloud/compute_v1/services/node_groups/client.py +++ b/google/cloud/compute_v1/services/node_groups/client.py @@ -440,8 +440,8 @@ def add_nodes_unary( Args: request (Union[google.cloud.compute_v1.types.AddNodesNodeGroupRequest, dict]): The request object. A request message for - NodeGroups.AddNodes. See the method description for - details. + NodeGroups.AddNodes. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -553,8 +553,8 @@ def add_nodes( Args: request (Union[google.cloud.compute_v1.types.AddNodesNodeGroupRequest, dict]): The request object. A request message for - NodeGroups.AddNodes. See the method description for - details. + NodeGroups.AddNodes. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -688,8 +688,8 @@ def aggregated_list( Args: request (Union[google.cloud.compute_v1.types.AggregatedListNodeGroupsRequest, dict]): The request object. A request message for - NodeGroups.AggregatedList. See the method description - for details. + NodeGroups.AggregatedList. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -775,8 +775,8 @@ def delete_unary( Args: request (Union[google.cloud.compute_v1.types.DeleteNodeGroupRequest, dict]): The request object. A request message for - NodeGroups.Delete. See the method description for - details. + NodeGroups.Delete. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -876,8 +876,8 @@ def delete( Args: request (Union[google.cloud.compute_v1.types.DeleteNodeGroupRequest, dict]): The request object. A request message for - NodeGroups.Delete. See the method description for - details. + NodeGroups.Delete. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1005,8 +1005,8 @@ def delete_nodes_unary( Args: request (Union[google.cloud.compute_v1.types.DeleteNodesNodeGroupRequest, dict]): The request object. A request message for - NodeGroups.DeleteNodes. See the method description for - details. + NodeGroups.DeleteNodes. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1120,8 +1120,8 @@ def delete_nodes( Args: request (Union[google.cloud.compute_v1.types.DeleteNodesNodeGroupRequest, dict]): The request object. A request message for - NodeGroups.DeleteNodes. See the method description for - details. + NodeGroups.DeleteNodes. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1259,8 +1259,8 @@ def get( Args: request (Union[google.cloud.compute_v1.types.GetNodeGroupRequest, dict]): - The request object. A request message for - NodeGroups.Get. See the method description for details. + The request object. A request message for NodeGroups.Get. + See the method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1368,8 +1368,8 @@ def get_iam_policy( Args: request (Union[google.cloud.compute_v1.types.GetIamPolicyNodeGroupRequest, dict]): The request object. A request message for - NodeGroups.GetIamPolicy. See the method description for - details. + NodeGroups.GetIamPolicy. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1509,8 +1509,8 @@ def insert_unary( Args: request (Union[google.cloud.compute_v1.types.InsertNodeGroupRequest, dict]): The request object. A request message for - NodeGroups.Insert. See the method description for - details. + NodeGroups.Insert. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1620,8 +1620,8 @@ def insert( Args: request (Union[google.cloud.compute_v1.types.InsertNodeGroupRequest, dict]): The request object. A request message for - NodeGroups.Insert. See the method description for - details. + NodeGroups.Insert. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1755,7 +1755,8 @@ def list( Args: request (Union[google.cloud.compute_v1.types.ListNodeGroupsRequest, dict]): The request object. A request message for - NodeGroups.List. See the method description for details. + NodeGroups.List. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1856,8 +1857,8 @@ def list_nodes( Args: request (Union[google.cloud.compute_v1.types.ListNodesNodeGroupsRequest, dict]): The request object. A request message for - NodeGroups.ListNodes. See the method description for - details. + NodeGroups.ListNodes. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1968,8 +1969,8 @@ def patch_unary( Args: request (Union[google.cloud.compute_v1.types.PatchNodeGroupRequest, dict]): The request object. A request message for - NodeGroups.Patch. See the method description for - details. + NodeGroups.Patch. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -2077,8 +2078,8 @@ def patch( Args: request (Union[google.cloud.compute_v1.types.PatchNodeGroupRequest, dict]): The request object. A request message for - NodeGroups.Patch. See the method description for - details. + NodeGroups.Patch. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -2212,8 +2213,8 @@ def set_iam_policy( Args: request (Union[google.cloud.compute_v1.types.SetIamPolicyNodeGroupRequest, dict]): The request object. A request message for - NodeGroups.SetIamPolicy. See the method description for - details. + NodeGroups.SetIamPolicy. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -2365,8 +2366,8 @@ def set_node_template_unary( Args: request (Union[google.cloud.compute_v1.types.SetNodeTemplateNodeGroupRequest, dict]): The request object. A request message for - NodeGroups.SetNodeTemplate. See the method description - for details. + NodeGroups.SetNodeTemplate. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -2480,8 +2481,8 @@ def set_node_template( Args: request (Union[google.cloud.compute_v1.types.SetNodeTemplateNodeGroupRequest, dict]): The request object. A request message for - NodeGroups.SetNodeTemplate. See the method description - for details. + NodeGroups.SetNodeTemplate. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -2623,8 +2624,8 @@ def simulate_maintenance_event_unary( Args: request (Union[google.cloud.compute_v1.types.SimulateMaintenanceEventNodeGroupRequest, dict]): The request object. A request message for - NodeGroups.SimulateMaintenanceEvent. See the method - description for details. + NodeGroups.SimulateMaintenanceEvent. See + the method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -2749,8 +2750,8 @@ def simulate_maintenance_event( Args: request (Union[google.cloud.compute_v1.types.SimulateMaintenanceEventNodeGroupRequest, dict]): The request object. A request message for - NodeGroups.SimulateMaintenanceEvent. See the method - description for details. + NodeGroups.SimulateMaintenanceEvent. See + the method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -2900,8 +2901,8 @@ def test_iam_permissions( Args: request (Union[google.cloud.compute_v1.types.TestIamPermissionsNodeGroupRequest, dict]): The request object. A request message for - NodeGroups.TestIamPermissions. See the method - description for details. + NodeGroups.TestIamPermissions. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field diff --git a/google/cloud/compute_v1/services/node_groups/transports/rest.py b/google/cloud/compute_v1/services/node_groups/transports/rest.py index 74df9b929..a5f455c48 100644 --- a/google/cloud/compute_v1/services/node_groups/transports/rest.py +++ b/google/cloud/compute_v1/services/node_groups/transports/rest.py @@ -616,7 +616,6 @@ def __call__( The request object. A request message for NodeGroups.AddNodes. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -727,7 +726,6 @@ def __call__( The request object. A request message for NodeGroups.AggregatedList. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -814,7 +812,6 @@ def __call__( The request object. A request message for NodeGroups.Delete. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -916,7 +913,6 @@ def __call__( The request object. A request message for NodeGroups.DeleteNodes. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1026,7 +1022,6 @@ def __call__( request (~.compute.GetNodeGroupRequest): The request object. A request message for NodeGroups.Get. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1124,7 +1119,6 @@ def __call__( The request object. A request message for NodeGroups.GetIamPolicy. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1254,7 +1248,6 @@ def __call__( The request object. A request message for NodeGroups.Insert. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1365,7 +1358,6 @@ def __call__( The request object. A request message for NodeGroups.List. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1452,7 +1444,6 @@ def __call__( The request object. A request message for NodeGroups.ListNodes. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1539,7 +1530,6 @@ def __call__( The request object. A request message for NodeGroups.Patch. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1650,7 +1640,6 @@ def __call__( The request object. A request message for NodeGroups.SetIamPolicy. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1787,7 +1776,6 @@ def __call__( The request object. A request message for NodeGroups.SetNodeTemplate. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1901,7 +1889,6 @@ def __call__( The request object. A request message for NodeGroups.SimulateMaintenanceEvent. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -2014,7 +2001,6 @@ def __call__( The request object. A request message for NodeGroups.TestIamPermissions. See the method description for details. - 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/compute_v1/services/node_templates/client.py b/google/cloud/compute_v1/services/node_templates/client.py index 4d5e9d51e..d1d05fd13 100644 --- a/google/cloud/compute_v1/services/node_templates/client.py +++ b/google/cloud/compute_v1/services/node_templates/client.py @@ -437,8 +437,8 @@ def aggregated_list( Args: request (Union[google.cloud.compute_v1.types.AggregatedListNodeTemplatesRequest, dict]): The request object. A request message for - NodeTemplates.AggregatedList. See the method description - for details. + NodeTemplates.AggregatedList. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -524,8 +524,8 @@ def delete_unary( Args: request (Union[google.cloud.compute_v1.types.DeleteNodeTemplateRequest, dict]): The request object. A request message for - NodeTemplates.Delete. See the method description for - details. + NodeTemplates.Delete. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -625,8 +625,8 @@ def delete( Args: request (Union[google.cloud.compute_v1.types.DeleteNodeTemplateRequest, dict]): The request object. A request message for - NodeTemplates.Delete. See the method description for - details. + NodeTemplates.Delete. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -751,8 +751,8 @@ def get( Args: request (Union[google.cloud.compute_v1.types.GetNodeTemplateRequest, dict]): The request object. A request message for - NodeTemplates.Get. See the method description for - details. + NodeTemplates.Get. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -854,8 +854,8 @@ def get_iam_policy( Args: request (Union[google.cloud.compute_v1.types.GetIamPolicyNodeTemplateRequest, dict]): The request object. A request message for - NodeTemplates.GetIamPolicy. See the method description - for details. + NodeTemplates.GetIamPolicy. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -994,8 +994,8 @@ def insert_unary( Args: request (Union[google.cloud.compute_v1.types.InsertNodeTemplateRequest, dict]): The request object. A request message for - NodeTemplates.Insert. See the method description for - details. + NodeTemplates.Insert. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1093,8 +1093,8 @@ def insert( Args: request (Union[google.cloud.compute_v1.types.InsertNodeTemplateRequest, dict]): The request object. A request message for - NodeTemplates.Insert. See the method description for - details. + NodeTemplates.Insert. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1216,8 +1216,8 @@ def list( Args: request (Union[google.cloud.compute_v1.types.ListNodeTemplatesRequest, dict]): The request object. A request message for - NodeTemplates.List. See the method description for - details. + NodeTemplates.List. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1322,8 +1322,8 @@ def set_iam_policy( Args: request (Union[google.cloud.compute_v1.types.SetIamPolicyNodeTemplateRequest, dict]): The request object. A request message for - NodeTemplates.SetIamPolicy. See the method description - for details. + NodeTemplates.SetIamPolicy. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1478,8 +1478,8 @@ def test_iam_permissions( Args: request (Union[google.cloud.compute_v1.types.TestIamPermissionsNodeTemplateRequest, dict]): The request object. A request message for - NodeTemplates.TestIamPermissions. See the method - description for details. + NodeTemplates.TestIamPermissions. See + the method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field diff --git a/google/cloud/compute_v1/services/node_templates/transports/rest.py b/google/cloud/compute_v1/services/node_templates/transports/rest.py index b5476deb9..7e06eb1f5 100644 --- a/google/cloud/compute_v1/services/node_templates/transports/rest.py +++ b/google/cloud/compute_v1/services/node_templates/transports/rest.py @@ -440,7 +440,6 @@ def __call__( The request object. A request message for NodeTemplates.AggregatedList. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -527,7 +526,6 @@ def __call__( The request object. A request message for NodeTemplates.Delete. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -629,7 +627,6 @@ def __call__( The request object. A request message for NodeTemplates.Get. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -721,7 +718,6 @@ def __call__( The request object. A request message for NodeTemplates.GetIamPolicy. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -849,7 +845,6 @@ def __call__( The request object. A request message for NodeTemplates.Insert. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -960,7 +955,6 @@ def __call__( The request object. A request message for NodeTemplates.List. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1047,7 +1041,6 @@ def __call__( The request object. A request message for NodeTemplates.SetIamPolicy. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1184,7 +1177,6 @@ def __call__( The request object. A request message for NodeTemplates.TestIamPermissions. See the method description for details. - 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/compute_v1/services/node_types/client.py b/google/cloud/compute_v1/services/node_types/client.py index 895662b4e..65fbb49b9 100644 --- a/google/cloud/compute_v1/services/node_types/client.py +++ b/google/cloud/compute_v1/services/node_types/client.py @@ -432,8 +432,8 @@ def aggregated_list( Args: request (Union[google.cloud.compute_v1.types.AggregatedListNodeTypesRequest, dict]): The request object. A request message for - NodeTypes.AggregatedList. See the method description for - details. + NodeTypes.AggregatedList. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -624,8 +624,8 @@ def list( Args: request (Union[google.cloud.compute_v1.types.ListNodeTypesRequest, dict]): - The request object. A request message for - NodeTypes.List. See the method description for details. + The request object. A request message for NodeTypes.List. + See the method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field diff --git a/google/cloud/compute_v1/services/node_types/transports/rest.py b/google/cloud/compute_v1/services/node_types/transports/rest.py index fa359adac..b5f78355f 100644 --- a/google/cloud/compute_v1/services/node_types/transports/rest.py +++ b/google/cloud/compute_v1/services/node_types/transports/rest.py @@ -287,7 +287,6 @@ def __call__( The request object. A request message for NodeTypes.AggregatedList. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -373,7 +372,6 @@ def __call__( request (~.compute.GetNodeTypeRequest): The request object. A request message for NodeTypes.Get. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -469,7 +467,6 @@ def __call__( request (~.compute.ListNodeTypesRequest): The request object. A request message for NodeTypes.List. See the method description for details. - 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/compute_v1/services/packet_mirrorings/client.py b/google/cloud/compute_v1/services/packet_mirrorings/client.py index 344a61845..95fd0ccef 100644 --- a/google/cloud/compute_v1/services/packet_mirrorings/client.py +++ b/google/cloud/compute_v1/services/packet_mirrorings/client.py @@ -439,8 +439,8 @@ def aggregated_list( Args: request (Union[google.cloud.compute_v1.types.AggregatedListPacketMirroringsRequest, dict]): The request object. A request message for - PacketMirrorings.AggregatedList. See the method - description for details. + PacketMirrorings.AggregatedList. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -527,8 +527,8 @@ def delete_unary( Args: request (Union[google.cloud.compute_v1.types.DeletePacketMirroringRequest, dict]): The request object. A request message for - PacketMirrorings.Delete. See the method description for - details. + PacketMirrorings.Delete. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -626,8 +626,8 @@ def delete( Args: request (Union[google.cloud.compute_v1.types.DeletePacketMirroringRequest, dict]): The request object. A request message for - PacketMirrorings.Delete. See the method description for - details. + PacketMirrorings.Delete. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -750,8 +750,8 @@ def get( Args: request (Union[google.cloud.compute_v1.types.GetPacketMirroringRequest, dict]): The request object. A request message for - PacketMirrorings.Get. See the method description for - details. + PacketMirrorings.Get. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -859,8 +859,8 @@ def insert_unary( Args: request (Union[google.cloud.compute_v1.types.InsertPacketMirroringRequest, dict]): The request object. A request message for - PacketMirrorings.Insert. See the method description for - details. + PacketMirrorings.Insert. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -957,8 +957,8 @@ def insert( Args: request (Union[google.cloud.compute_v1.types.InsertPacketMirroringRequest, dict]): The request object. A request message for - PacketMirrorings.Insert. See the method description for - details. + PacketMirrorings.Insert. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1078,8 +1078,8 @@ def list( Args: request (Union[google.cloud.compute_v1.types.ListPacketMirroringsRequest, dict]): The request object. A request message for - PacketMirrorings.List. See the method description for - details. + PacketMirrorings.List. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1183,8 +1183,8 @@ def patch_unary( Args: request (Union[google.cloud.compute_v1.types.PatchPacketMirroringRequest, dict]): The request object. A request message for - PacketMirrorings.Patch. See the method description for - details. + PacketMirrorings.Patch. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1295,8 +1295,8 @@ def patch( Args: request (Union[google.cloud.compute_v1.types.PatchPacketMirroringRequest, dict]): The request object. A request message for - PacketMirrorings.Patch. See the method description for - details. + PacketMirrorings.Patch. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1434,8 +1434,8 @@ def test_iam_permissions( Args: request (Union[google.cloud.compute_v1.types.TestIamPermissionsPacketMirroringRequest, dict]): The request object. A request message for - PacketMirrorings.TestIamPermissions. See the method - description for details. + PacketMirrorings.TestIamPermissions. See + the method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field diff --git a/google/cloud/compute_v1/services/packet_mirrorings/transports/rest.py b/google/cloud/compute_v1/services/packet_mirrorings/transports/rest.py index 6bd232b10..50664246a 100644 --- a/google/cloud/compute_v1/services/packet_mirrorings/transports/rest.py +++ b/google/cloud/compute_v1/services/packet_mirrorings/transports/rest.py @@ -415,7 +415,6 @@ def __call__( The request object. A request message for PacketMirrorings.AggregatedList. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -502,7 +501,6 @@ def __call__( The request object. A request message for PacketMirrorings.Delete. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -604,7 +602,6 @@ def __call__( The request object. A request message for PacketMirrorings.Get. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -701,7 +698,6 @@ def __call__( The request object. A request message for PacketMirrorings.Insert. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -812,7 +808,6 @@ def __call__( The request object. A request message for PacketMirrorings.List. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -901,7 +896,6 @@ def __call__( The request object. A request message for PacketMirrorings.Patch. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1012,7 +1006,6 @@ def __call__( The request object. A request message for PacketMirrorings.TestIamPermissions. See the method description for details. - 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/compute_v1/services/projects/client.py b/google/cloud/compute_v1/services/projects/client.py index b236f405b..824a59da3 100644 --- a/google/cloud/compute_v1/services/projects/client.py +++ b/google/cloud/compute_v1/services/projects/client.py @@ -435,8 +435,8 @@ def disable_xpn_host_unary( Args: request (Union[google.cloud.compute_v1.types.DisableXpnHostProjectRequest, dict]): The request object. A request message for - Projects.DisableXpnHost. See the method description for - details. + Projects.DisableXpnHost. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -510,8 +510,8 @@ def disable_xpn_host( Args: request (Union[google.cloud.compute_v1.types.DisableXpnHostProjectRequest, dict]): The request object. A request message for - Projects.DisableXpnHost. See the method description for - details. + Projects.DisableXpnHost. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -613,8 +613,8 @@ def disable_xpn_resource_unary( Args: request (Union[google.cloud.compute_v1.types.DisableXpnResourceProjectRequest, dict]): The request object. A request message for - Projects.DisableXpnResource. See the method description - for details. + Projects.DisableXpnResource. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -703,8 +703,8 @@ def disable_xpn_resource( Args: request (Union[google.cloud.compute_v1.types.DisableXpnResourceProjectRequest, dict]): The request object. A request message for - Projects.DisableXpnResource. See the method description - for details. + Projects.DisableXpnResource. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -813,8 +813,8 @@ def enable_xpn_host_unary( Args: request (Union[google.cloud.compute_v1.types.EnableXpnHostProjectRequest, dict]): The request object. A request message for - Projects.EnableXpnHost. See the method description for - details. + Projects.EnableXpnHost. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -888,8 +888,8 @@ def enable_xpn_host( Args: request (Union[google.cloud.compute_v1.types.EnableXpnHostProjectRequest, dict]): The request object. A request message for - Projects.EnableXpnHost. See the method description for - details. + Projects.EnableXpnHost. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -992,8 +992,8 @@ def enable_xpn_resource_unary( Args: request (Union[google.cloud.compute_v1.types.EnableXpnResourceProjectRequest, dict]): The request object. A request message for - Projects.EnableXpnResource. See the method description - for details. + Projects.EnableXpnResource. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1083,8 +1083,8 @@ def enable_xpn_resource( Args: request (Union[google.cloud.compute_v1.types.EnableXpnResourceProjectRequest, dict]): The request object. A request message for - Projects.EnableXpnResource. See the method description - for details. + Projects.EnableXpnResource. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1279,8 +1279,8 @@ def get_xpn_host( Args: request (Union[google.cloud.compute_v1.types.GetXpnHostProjectRequest, dict]): The request object. A request message for - Projects.GetXpnHost. See the method description for - details. + Projects.GetXpnHost. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1358,8 +1358,8 @@ def get_xpn_resources( Args: request (Union[google.cloud.compute_v1.types.GetXpnResourcesProjectsRequest, dict]): The request object. A request message for - Projects.GetXpnResources. See the method description for - details. + Projects.GetXpnResources. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1447,8 +1447,8 @@ def list_xpn_hosts( Args: request (Union[google.cloud.compute_v1.types.ListXpnHostsProjectsRequest, dict]): The request object. A request message for - Projects.ListXpnHosts. See the method description for - details. + Projects.ListXpnHosts. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1542,8 +1542,8 @@ def move_disk_unary( Args: request (Union[google.cloud.compute_v1.types.MoveDiskProjectRequest, dict]): The request object. A request message for - Projects.MoveDisk. See the method description for - details. + Projects.MoveDisk. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1625,8 +1625,8 @@ def move_disk( Args: request (Union[google.cloud.compute_v1.types.MoveDiskProjectRequest, dict]): The request object. A request message for - Projects.MoveDisk. See the method description for - details. + Projects.MoveDisk. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1736,8 +1736,8 @@ def move_instance_unary( Args: request (Union[google.cloud.compute_v1.types.MoveInstanceProjectRequest, dict]): The request object. A request message for - Projects.MoveInstance. See the method description for - details. + Projects.MoveInstance. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1823,8 +1823,8 @@ def move_instance( Args: request (Union[google.cloud.compute_v1.types.MoveInstanceProjectRequest, dict]): The request object. A request message for - Projects.MoveInstance. See the method description for - details. + Projects.MoveInstance. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1934,8 +1934,8 @@ def set_common_instance_metadata_unary( Args: request (Union[google.cloud.compute_v1.types.SetCommonInstanceMetadataProjectRequest, dict]): The request object. A request message for - Projects.SetCommonInstanceMetadata. See the method - description for details. + Projects.SetCommonInstanceMetadata. See + the method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -2023,8 +2023,8 @@ def set_common_instance_metadata( Args: request (Union[google.cloud.compute_v1.types.SetCommonInstanceMetadataProjectRequest, dict]): The request object. A request message for - Projects.SetCommonInstanceMetadata. See the method - description for details. + Projects.SetCommonInstanceMetadata. See + the method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -2139,8 +2139,8 @@ def set_default_network_tier_unary( Args: request (Union[google.cloud.compute_v1.types.SetDefaultNetworkTierProjectRequest, dict]): The request object. A request message for - Projects.SetDefaultNetworkTier. See the method - description for details. + Projects.SetDefaultNetworkTier. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -2233,8 +2233,8 @@ def set_default_network_tier( Args: request (Union[google.cloud.compute_v1.types.SetDefaultNetworkTierProjectRequest, dict]): The request object. A request message for - Projects.SetDefaultNetworkTier. See the method - description for details. + Projects.SetDefaultNetworkTier. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -2349,8 +2349,8 @@ def set_usage_export_bucket_unary( Args: request (Union[google.cloud.compute_v1.types.SetUsageExportBucketProjectRequest, dict]): The request object. A request message for - Projects.SetUsageExportBucket. See the method - description for details. + Projects.SetUsageExportBucket. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -2437,8 +2437,8 @@ def set_usage_export_bucket( Args: request (Union[google.cloud.compute_v1.types.SetUsageExportBucketProjectRequest, dict]): The request object. A request message for - Projects.SetUsageExportBucket. See the method - description for details. + Projects.SetUsageExportBucket. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field diff --git a/google/cloud/compute_v1/services/projects/transports/rest.py b/google/cloud/compute_v1/services/projects/transports/rest.py index 298bc9647..210f04dcf 100644 --- a/google/cloud/compute_v1/services/projects/transports/rest.py +++ b/google/cloud/compute_v1/services/projects/transports/rest.py @@ -591,7 +591,6 @@ def __call__( The request object. A request message for Projects.DisableXpnHost. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -695,7 +694,6 @@ def __call__( The request object. A request message for Projects.DisableXpnResource. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -808,7 +806,6 @@ def __call__( The request object. A request message for Projects.EnableXpnHost. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -910,7 +907,6 @@ def __call__( The request object. A request message for Projects.EnableXpnResource. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1022,7 +1018,6 @@ def __call__( request (~.compute.GetProjectRequest): The request object. A request message for Projects.Get. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1114,7 +1109,6 @@ def __call__( The request object. A request message for Projects.GetXpnHost. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1206,7 +1200,6 @@ def __call__( The request object. A request message for Projects.GetXpnResources. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1295,7 +1288,6 @@ def __call__( The request object. A request message for Projects.ListXpnHosts. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1391,7 +1383,6 @@ def __call__( The request object. A request message for Projects.MoveDisk. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1502,7 +1493,6 @@ def __call__( The request object. A request message for Projects.MoveInstance. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1614,7 +1604,6 @@ def __call__( The request object. A request message for Projects.SetCommonInstanceMetadata. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1727,7 +1716,6 @@ def __call__( The request object. A request message for Projects.SetDefaultNetworkTier. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1840,7 +1828,6 @@ def __call__( The request object. A request message for Projects.SetUsageExportBucket. See the method description for details. - 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/compute_v1/services/public_advertised_prefixes/client.py b/google/cloud/compute_v1/services/public_advertised_prefixes/client.py index 07aaac241..1022c2b6f 100644 --- a/google/cloud/compute_v1/services/public_advertised_prefixes/client.py +++ b/google/cloud/compute_v1/services/public_advertised_prefixes/client.py @@ -440,8 +440,8 @@ def delete_unary( Args: request (Union[google.cloud.compute_v1.types.DeletePublicAdvertisedPrefixeRequest, dict]): The request object. A request message for - PublicAdvertisedPrefixes.Delete. See the method - description for details. + PublicAdvertisedPrefixes.Delete. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -532,8 +532,8 @@ def delete( Args: request (Union[google.cloud.compute_v1.types.DeletePublicAdvertisedPrefixeRequest, dict]): The request object. A request message for - PublicAdvertisedPrefixes.Delete. See the method - description for details. + PublicAdvertisedPrefixes.Delete. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -649,8 +649,8 @@ def get( Args: request (Union[google.cloud.compute_v1.types.GetPublicAdvertisedPrefixeRequest, dict]): The request object. A request message for - PublicAdvertisedPrefixes.Get. See the method description - for details. + PublicAdvertisedPrefixes.Get. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -749,8 +749,8 @@ def insert_unary( Args: request (Union[google.cloud.compute_v1.types.InsertPublicAdvertisedPrefixeRequest, dict]): The request object. A request message for - PublicAdvertisedPrefixes.Insert. See the method - description for details. + PublicAdvertisedPrefixes.Insert. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -840,8 +840,8 @@ def insert( Args: request (Union[google.cloud.compute_v1.types.InsertPublicAdvertisedPrefixeRequest, dict]): The request object. A request message for - PublicAdvertisedPrefixes.Insert. See the method - description for details. + PublicAdvertisedPrefixes.Insert. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -950,8 +950,8 @@ def list( Args: request (Union[google.cloud.compute_v1.types.ListPublicAdvertisedPrefixesRequest, dict]): The request object. A request message for - PublicAdvertisedPrefixes.List. See the method - description for details. + PublicAdvertisedPrefixes.List. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1044,8 +1044,8 @@ def patch_unary( Args: request (Union[google.cloud.compute_v1.types.PatchPublicAdvertisedPrefixeRequest, dict]): The request object. A request message for - PublicAdvertisedPrefixes.Patch. See the method - description for details. + PublicAdvertisedPrefixes.Patch. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1153,8 +1153,8 @@ def patch( Args: request (Union[google.cloud.compute_v1.types.PatchPublicAdvertisedPrefixeRequest, dict]): The request object. A request message for - PublicAdvertisedPrefixes.Patch. See the method - description for details. + PublicAdvertisedPrefixes.Patch. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field diff --git a/google/cloud/compute_v1/services/public_advertised_prefixes/transports/rest.py b/google/cloud/compute_v1/services/public_advertised_prefixes/transports/rest.py index 9de3e10ff..0f35d77d3 100644 --- a/google/cloud/compute_v1/services/public_advertised_prefixes/transports/rest.py +++ b/google/cloud/compute_v1/services/public_advertised_prefixes/transports/rest.py @@ -351,7 +351,6 @@ def __call__( The request object. A request message for PublicAdvertisedPrefixes.Delete. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -453,7 +452,6 @@ def __call__( The request object. A request message for PublicAdvertisedPrefixes.Get. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -546,7 +544,6 @@ def __call__( The request object. A request message for PublicAdvertisedPrefixes.Insert. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -657,7 +654,6 @@ def __call__( The request object. A request message for PublicAdvertisedPrefixes.List. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -744,7 +740,6 @@ def __call__( The request object. A request message for PublicAdvertisedPrefixes.Patch. See the method description for details. - 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/compute_v1/services/public_delegated_prefixes/client.py b/google/cloud/compute_v1/services/public_delegated_prefixes/client.py index 3d545f8ca..805e0f226 100644 --- a/google/cloud/compute_v1/services/public_delegated_prefixes/client.py +++ b/google/cloud/compute_v1/services/public_delegated_prefixes/client.py @@ -440,8 +440,8 @@ def aggregated_list( Args: request (Union[google.cloud.compute_v1.types.AggregatedListPublicDelegatedPrefixesRequest, dict]): The request object. A request message for - PublicDelegatedPrefixes.AggregatedList. See the method - description for details. + PublicDelegatedPrefixes.AggregatedList. + See the method description for details. project (str): Name of the project scoping this request. @@ -534,8 +534,8 @@ def delete_unary( Args: request (Union[google.cloud.compute_v1.types.DeletePublicDelegatedPrefixeRequest, dict]): The request object. A request message for - PublicDelegatedPrefixes.Delete. See the method - description for details. + PublicDelegatedPrefixes.Delete. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -636,8 +636,8 @@ def delete( Args: request (Union[google.cloud.compute_v1.types.DeletePublicDelegatedPrefixeRequest, dict]): The request object. A request message for - PublicDelegatedPrefixes.Delete. See the method - description for details. + PublicDelegatedPrefixes.Delete. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -761,8 +761,8 @@ def get( Args: request (Union[google.cloud.compute_v1.types.GetPublicDelegatedPrefixeRequest, dict]): The request object. A request message for - PublicDelegatedPrefixes.Get. See the method description - for details. + PublicDelegatedPrefixes.Get. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -873,8 +873,8 @@ def insert_unary( Args: request (Union[google.cloud.compute_v1.types.InsertPublicDelegatedPrefixeRequest, dict]): The request object. A request message for - PublicDelegatedPrefixes.Insert. See the method - description for details. + PublicDelegatedPrefixes.Insert. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -977,8 +977,8 @@ def insert( Args: request (Union[google.cloud.compute_v1.types.InsertPublicDelegatedPrefixeRequest, dict]): The request object. A request message for - PublicDelegatedPrefixes.Insert. See the method - description for details. + PublicDelegatedPrefixes.Insert. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1102,8 +1102,8 @@ def list( Args: request (Union[google.cloud.compute_v1.types.ListPublicDelegatedPrefixesRequest, dict]): The request object. A request message for - PublicDelegatedPrefixes.List. See the method description - for details. + PublicDelegatedPrefixes.List. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1209,8 +1209,8 @@ def patch_unary( Args: request (Union[google.cloud.compute_v1.types.PatchPublicDelegatedPrefixeRequest, dict]): The request object. A request message for - PublicDelegatedPrefixes.Patch. See the method - description for details. + PublicDelegatedPrefixes.Patch. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1327,8 +1327,8 @@ def patch( Args: request (Union[google.cloud.compute_v1.types.PatchPublicDelegatedPrefixeRequest, dict]): The request object. A request message for - PublicDelegatedPrefixes.Patch. See the method - description for details. + PublicDelegatedPrefixes.Patch. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field diff --git a/google/cloud/compute_v1/services/public_delegated_prefixes/transports/rest.py b/google/cloud/compute_v1/services/public_delegated_prefixes/transports/rest.py index e2ab700d7..126664e07 100644 --- a/google/cloud/compute_v1/services/public_delegated_prefixes/transports/rest.py +++ b/google/cloud/compute_v1/services/public_delegated_prefixes/transports/rest.py @@ -384,7 +384,6 @@ def __call__( The request object. A request message for PublicDelegatedPrefixes.AggregatedList. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -473,7 +472,6 @@ def __call__( The request object. A request message for PublicDelegatedPrefixes.Delete. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -575,7 +573,6 @@ def __call__( The request object. A request message for PublicDelegatedPrefixes.Get. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -671,7 +668,6 @@ def __call__( The request object. A request message for PublicDelegatedPrefixes.Insert. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -782,7 +778,6 @@ def __call__( The request object. A request message for PublicDelegatedPrefixes.List. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -869,7 +864,6 @@ def __call__( The request object. A request message for PublicDelegatedPrefixes.Patch. See the method description for details. - 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/compute_v1/services/region_autoscalers/client.py b/google/cloud/compute_v1/services/region_autoscalers/client.py index 5a5ef4841..eca7d26a7 100644 --- a/google/cloud/compute_v1/services/region_autoscalers/client.py +++ b/google/cloud/compute_v1/services/region_autoscalers/client.py @@ -439,8 +439,8 @@ def delete_unary( Args: request (Union[google.cloud.compute_v1.types.DeleteRegionAutoscalerRequest, dict]): The request object. A request message for - RegionAutoscalers.Delete. See the method description for - details. + RegionAutoscalers.Delete. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -538,8 +538,8 @@ def delete( Args: request (Union[google.cloud.compute_v1.types.DeleteRegionAutoscalerRequest, dict]): The request object. A request message for - RegionAutoscalers.Delete. See the method description for - details. + RegionAutoscalers.Delete. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -662,8 +662,8 @@ def get( Args: request (Union[google.cloud.compute_v1.types.GetRegionAutoscalerRequest, dict]): The request object. A request message for - RegionAutoscalers.Get. See the method description for - details. + RegionAutoscalers.Get. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -771,8 +771,8 @@ def insert_unary( Args: request (Union[google.cloud.compute_v1.types.InsertRegionAutoscalerRequest, dict]): The request object. A request message for - RegionAutoscalers.Insert. See the method description for - details. + RegionAutoscalers.Insert. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -870,8 +870,8 @@ def insert( Args: request (Union[google.cloud.compute_v1.types.InsertRegionAutoscalerRequest, dict]): The request object. A request message for - RegionAutoscalers.Insert. See the method description for - details. + RegionAutoscalers.Insert. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -993,8 +993,8 @@ def list( Args: request (Union[google.cloud.compute_v1.types.ListRegionAutoscalersRequest, dict]): The request object. A request message for - RegionAutoscalers.List. See the method description for - details. + RegionAutoscalers.List. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1098,8 +1098,8 @@ def patch_unary( Args: request (Union[google.cloud.compute_v1.types.PatchRegionAutoscalerRequest, dict]): The request object. A request message for - RegionAutoscalers.Patch. See the method description for - details. + RegionAutoscalers.Patch. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1199,8 +1199,8 @@ def patch( Args: request (Union[google.cloud.compute_v1.types.PatchRegionAutoscalerRequest, dict]): The request object. A request message for - RegionAutoscalers.Patch. See the method description for - details. + RegionAutoscalers.Patch. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1323,8 +1323,8 @@ def update_unary( Args: request (Union[google.cloud.compute_v1.types.UpdateRegionAutoscalerRequest, dict]): The request object. A request message for - RegionAutoscalers.Update. See the method description for - details. + RegionAutoscalers.Update. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1422,8 +1422,8 @@ def update( Args: request (Union[google.cloud.compute_v1.types.UpdateRegionAutoscalerRequest, dict]): The request object. A request message for - RegionAutoscalers.Update. See the method description for - details. + RegionAutoscalers.Update. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field diff --git a/google/cloud/compute_v1/services/region_autoscalers/transports/rest.py b/google/cloud/compute_v1/services/region_autoscalers/transports/rest.py index 9bd800661..e5af4e928 100644 --- a/google/cloud/compute_v1/services/region_autoscalers/transports/rest.py +++ b/google/cloud/compute_v1/services/region_autoscalers/transports/rest.py @@ -378,7 +378,6 @@ def __call__( The request object. A request message for RegionAutoscalers.Delete. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -480,7 +479,6 @@ def __call__( The request object. A request message for RegionAutoscalers.Get. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -579,7 +577,6 @@ def __call__( The request object. A request message for RegionAutoscalers.Insert. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -690,7 +687,6 @@ def __call__( The request object. A request message for RegionAutoscalers.List. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -777,7 +773,6 @@ def __call__( The request object. A request message for RegionAutoscalers.Patch. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -888,7 +883,6 @@ def __call__( The request object. A request message for RegionAutoscalers.Update. See the method description for details. - 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/compute_v1/services/region_backend_services/client.py b/google/cloud/compute_v1/services/region_backend_services/client.py index 19ab12851..5da6f6697 100644 --- a/google/cloud/compute_v1/services/region_backend_services/client.py +++ b/google/cloud/compute_v1/services/region_backend_services/client.py @@ -442,8 +442,8 @@ def delete_unary( Args: request (Union[google.cloud.compute_v1.types.DeleteRegionBackendServiceRequest, dict]): The request object. A request message for - RegionBackendServices.Delete. See the method description - for details. + RegionBackendServices.Delete. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -546,8 +546,8 @@ def delete( Args: request (Union[google.cloud.compute_v1.types.DeleteRegionBackendServiceRequest, dict]): The request object. A request message for - RegionBackendServices.Delete. See the method description - for details. + RegionBackendServices.Delete. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -673,8 +673,8 @@ def get( Args: request (Union[google.cloud.compute_v1.types.GetRegionBackendServiceRequest, dict]): The request object. A request message for - RegionBackendServices.Get. See the method description - for details. + RegionBackendServices.Get. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -793,8 +793,8 @@ def get_health( Args: request (Union[google.cloud.compute_v1.types.GetHealthRegionBackendServiceRequest, dict]): The request object. A request message for - RegionBackendServices.GetHealth. See the method - description for details. + RegionBackendServices.GetHealth. See the + method description for details. project (str): This corresponds to the ``project`` field @@ -906,8 +906,8 @@ def get_iam_policy( Args: request (Union[google.cloud.compute_v1.types.GetIamPolicyRegionBackendServiceRequest, dict]): The request object. A request message for - RegionBackendServices.GetIamPolicy. See the method - description for details. + RegionBackendServices.GetIamPolicy. See + the method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1050,8 +1050,8 @@ def insert_unary( Args: request (Union[google.cloud.compute_v1.types.InsertRegionBackendServiceRequest, dict]): The request object. A request message for - RegionBackendServices.Insert. See the method description - for details. + RegionBackendServices.Insert. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1153,8 +1153,8 @@ def insert( Args: request (Union[google.cloud.compute_v1.types.InsertRegionBackendServiceRequest, dict]): The request object. A request message for - RegionBackendServices.Insert. See the method description - for details. + RegionBackendServices.Insert. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1277,8 +1277,8 @@ def list( Args: request (Union[google.cloud.compute_v1.types.ListRegionBackendServicesRequest, dict]): The request object. A request message for - RegionBackendServices.List. See the method description - for details. + RegionBackendServices.List. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1385,8 +1385,8 @@ def patch_unary( Args: request (Union[google.cloud.compute_v1.types.PatchRegionBackendServiceRequest, dict]): The request object. A request message for - RegionBackendServices.Patch. See the method description - for details. + RegionBackendServices.Patch. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1500,8 +1500,8 @@ def patch( Args: request (Union[google.cloud.compute_v1.types.PatchRegionBackendServiceRequest, dict]): The request object. A request message for - RegionBackendServices.Patch. See the method description - for details. + RegionBackendServices.Patch. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1641,8 +1641,8 @@ def set_iam_policy( Args: request (Union[google.cloud.compute_v1.types.SetIamPolicyRegionBackendServiceRequest, dict]): The request object. A request message for - RegionBackendServices.SetIamPolicy. See the method - description for details. + RegionBackendServices.SetIamPolicy. See + the method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1796,8 +1796,8 @@ def update_unary( Args: request (Union[google.cloud.compute_v1.types.UpdateRegionBackendServiceRequest, dict]): The request object. A request message for - RegionBackendServices.Update. See the method description - for details. + RegionBackendServices.Update. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1911,8 +1911,8 @@ def update( Args: request (Union[google.cloud.compute_v1.types.UpdateRegionBackendServiceRequest, dict]): The request object. A request message for - RegionBackendServices.Update. See the method description - for details. + RegionBackendServices.Update. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field diff --git a/google/cloud/compute_v1/services/region_backend_services/transports/rest.py b/google/cloud/compute_v1/services/region_backend_services/transports/rest.py index 1de3dbb85..de37ffc3e 100644 --- a/google/cloud/compute_v1/services/region_backend_services/transports/rest.py +++ b/google/cloud/compute_v1/services/region_backend_services/transports/rest.py @@ -471,7 +471,6 @@ def __call__( The request object. A request message for RegionBackendServices.Delete. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -573,7 +572,6 @@ def __call__( The request object. A request message for RegionBackendServices.Get. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -675,7 +673,6 @@ def __call__( The request object. A request message for RegionBackendServices.GetHealth. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -771,7 +768,6 @@ def __call__( The request object. A request message for RegionBackendServices.GetIamPolicy. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -899,7 +895,6 @@ def __call__( The request object. A request message for RegionBackendServices.Insert. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1010,7 +1005,6 @@ def __call__( The request object. A request message for RegionBackendServices.List. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1099,7 +1093,6 @@ def __call__( The request object. A request message for RegionBackendServices.Patch. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1210,7 +1203,6 @@ def __call__( The request object. A request message for RegionBackendServices.SetIamPolicy. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1347,7 +1339,6 @@ def __call__( The request object. A request message for RegionBackendServices.Update. See the method description for details. - 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/compute_v1/services/region_commitments/client.py b/google/cloud/compute_v1/services/region_commitments/client.py index e1e9b6ae6..8e152de2e 100644 --- a/google/cloud/compute_v1/services/region_commitments/client.py +++ b/google/cloud/compute_v1/services/region_commitments/client.py @@ -440,8 +440,8 @@ def aggregated_list( Args: request (Union[google.cloud.compute_v1.types.AggregatedListRegionCommitmentsRequest, dict]): The request object. A request message for - RegionCommitments.AggregatedList. See the method - description for details. + RegionCommitments.AggregatedList. See + the method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -527,8 +527,8 @@ def get( Args: request (Union[google.cloud.compute_v1.types.GetRegionCommitmentRequest, dict]): The request object. A request message for - RegionCommitments.Get. See the method description for - details. + RegionCommitments.Get. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -632,8 +632,8 @@ def insert_unary( Args: request (Union[google.cloud.compute_v1.types.InsertRegionCommitmentRequest, dict]): The request object. A request message for - RegionCommitments.Insert. See the method description for - details. + RegionCommitments.Insert. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -729,8 +729,8 @@ def insert( Args: request (Union[google.cloud.compute_v1.types.InsertRegionCommitmentRequest, dict]): The request object. A request message for - RegionCommitments.Insert. See the method description for - details. + RegionCommitments.Insert. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -850,8 +850,8 @@ def list( Args: request (Union[google.cloud.compute_v1.types.ListRegionCommitmentsRequest, dict]): The request object. A request message for - RegionCommitments.List. See the method description for - details. + RegionCommitments.List. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -955,8 +955,8 @@ def update_unary( Args: request (Union[google.cloud.compute_v1.types.UpdateRegionCommitmentRequest, dict]): The request object. A request message for - RegionCommitments.Update. See the method description for - details. + RegionCommitments.Update. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1065,8 +1065,8 @@ def update( Args: request (Union[google.cloud.compute_v1.types.UpdateRegionCommitmentRequest, dict]): The request object. A request message for - RegionCommitments.Update. See the method description for - details. + RegionCommitments.Update. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field diff --git a/google/cloud/compute_v1/services/region_commitments/transports/rest.py b/google/cloud/compute_v1/services/region_commitments/transports/rest.py index 78c76690c..5219d5d68 100644 --- a/google/cloud/compute_v1/services/region_commitments/transports/rest.py +++ b/google/cloud/compute_v1/services/region_commitments/transports/rest.py @@ -351,7 +351,6 @@ def __call__( The request object. A request message for RegionCommitments.AggregatedList. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -438,7 +437,6 @@ def __call__( The request object. A request message for RegionCommitments.Get. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -534,7 +532,6 @@ def __call__( The request object. A request message for RegionCommitments.Insert. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -645,7 +642,6 @@ def __call__( The request object. A request message for RegionCommitments.List. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -734,7 +730,6 @@ def __call__( The request object. A request message for RegionCommitments.Update. See the method description for details. - 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/compute_v1/services/region_disk_types/client.py b/google/cloud/compute_v1/services/region_disk_types/client.py index 8b8b689f2..55472880b 100644 --- a/google/cloud/compute_v1/services/region_disk_types/client.py +++ b/google/cloud/compute_v1/services/region_disk_types/client.py @@ -436,8 +436,8 @@ def get( Args: request (Union[google.cloud.compute_v1.types.GetRegionDiskTypeRequest, dict]): The request object. A request message for - RegionDiskTypes.Get. See the method description for - details. + RegionDiskTypes.Get. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -544,8 +544,8 @@ def list( Args: request (Union[google.cloud.compute_v1.types.ListRegionDiskTypesRequest, dict]): The request object. A request message for - RegionDiskTypes.List. See the method description for - details. + RegionDiskTypes.List. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field diff --git a/google/cloud/compute_v1/services/region_disk_types/transports/rest.py b/google/cloud/compute_v1/services/region_disk_types/transports/rest.py index 54527520c..0feccc585 100644 --- a/google/cloud/compute_v1/services/region_disk_types/transports/rest.py +++ b/google/cloud/compute_v1/services/region_disk_types/transports/rest.py @@ -262,7 +262,6 @@ def __call__( The request object. A request message for RegionDiskTypes.Get. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -360,7 +359,6 @@ def __call__( The request object. A request message for RegionDiskTypes.List. See the method description for details. - 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/compute_v1/services/region_disks/client.py b/google/cloud/compute_v1/services/region_disks/client.py index 021cde85b..ace83b3ea 100644 --- a/google/cloud/compute_v1/services/region_disks/client.py +++ b/google/cloud/compute_v1/services/region_disks/client.py @@ -444,8 +444,8 @@ def add_resource_policies_unary( Args: request (Union[google.cloud.compute_v1.types.AddResourcePoliciesRegionDiskRequest, dict]): The request object. A request message for - RegionDisks.AddResourcePolicies. See the method - description for details. + RegionDisks.AddResourcePolicies. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -561,8 +561,8 @@ def add_resource_policies( Args: request (Union[google.cloud.compute_v1.types.AddResourcePoliciesRegionDiskRequest, dict]): The request object. A request message for - RegionDisks.AddResourcePolicies. See the method - description for details. + RegionDisks.AddResourcePolicies. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -701,8 +701,8 @@ def create_snapshot_unary( Args: request (Union[google.cloud.compute_v1.types.CreateSnapshotRegionDiskRequest, dict]): The request object. A request message for - RegionDisks.CreateSnapshot. See the method description - for details. + RegionDisks.CreateSnapshot. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -812,8 +812,8 @@ def create_snapshot( Args: request (Union[google.cloud.compute_v1.types.CreateSnapshotRegionDiskRequest, dict]): The request object. A request message for - RegionDisks.CreateSnapshot. See the method description - for details. + RegionDisks.CreateSnapshot. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -947,8 +947,8 @@ def delete_unary( Args: request (Union[google.cloud.compute_v1.types.DeleteRegionDiskRequest, dict]): The request object. A request message for - RegionDisks.Delete. See the method description for - details. + RegionDisks.Delete. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1050,8 +1050,8 @@ def delete( Args: request (Union[google.cloud.compute_v1.types.DeleteRegionDiskRequest, dict]): The request object. A request message for - RegionDisks.Delete. See the method description for - details. + RegionDisks.Delete. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1174,7 +1174,8 @@ def get( Args: request (Union[google.cloud.compute_v1.types.GetRegionDiskRequest, dict]): The request object. A request message for - RegionDisks.Get. See the method description for details. + RegionDisks.Get. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1283,8 +1284,8 @@ def get_iam_policy( Args: request (Union[google.cloud.compute_v1.types.GetIamPolicyRegionDiskRequest, dict]): The request object. A request message for - RegionDisks.GetIamPolicy. See the method description for - details. + RegionDisks.GetIamPolicy. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1423,8 +1424,8 @@ def insert_unary( Args: request (Union[google.cloud.compute_v1.types.InsertRegionDiskRequest, dict]): The request object. A request message for - RegionDisks.Insert. See the method description for - details. + RegionDisks.Insert. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1520,8 +1521,8 @@ def insert( Args: request (Union[google.cloud.compute_v1.types.InsertRegionDiskRequest, dict]): The request object. A request message for - RegionDisks.Insert. See the method description for - details. + RegionDisks.Insert. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1641,8 +1642,8 @@ def list( Args: request (Union[google.cloud.compute_v1.types.ListRegionDisksRequest, dict]): The request object. A request message for - RegionDisks.List. See the method description for - details. + RegionDisks.List. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1746,8 +1747,8 @@ def remove_resource_policies_unary( Args: request (Union[google.cloud.compute_v1.types.RemoveResourcePoliciesRegionDiskRequest, dict]): The request object. A request message for - RegionDisks.RemoveResourcePolicies. See the method - description for details. + RegionDisks.RemoveResourcePolicies. See + the method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1866,8 +1867,8 @@ def remove_resource_policies( Args: request (Union[google.cloud.compute_v1.types.RemoveResourcePoliciesRegionDiskRequest, dict]): The request object. A request message for - RegionDisks.RemoveResourcePolicies. See the method - description for details. + RegionDisks.RemoveResourcePolicies. See + the method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -2009,8 +2010,8 @@ def resize_unary( Args: request (Union[google.cloud.compute_v1.types.ResizeRegionDiskRequest, dict]): The request object. A request message for - RegionDisks.Resize. See the method description for - details. + RegionDisks.Resize. See the method + description for details. project (str): The project ID for this request. This corresponds to the ``project`` field @@ -2120,8 +2121,8 @@ def resize( Args: request (Union[google.cloud.compute_v1.types.ResizeRegionDiskRequest, dict]): The request object. A request message for - RegionDisks.Resize. See the method description for - details. + RegionDisks.Resize. See the method + description for details. project (str): The project ID for this request. This corresponds to the ``project`` field @@ -2257,8 +2258,8 @@ def set_iam_policy( Args: request (Union[google.cloud.compute_v1.types.SetIamPolicyRegionDiskRequest, dict]): The request object. A request message for - RegionDisks.SetIamPolicy. See the method description for - details. + RegionDisks.SetIamPolicy. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -2410,8 +2411,8 @@ def set_labels_unary( Args: request (Union[google.cloud.compute_v1.types.SetLabelsRegionDiskRequest, dict]): The request object. A request message for - RegionDisks.SetLabels. See the method description for - details. + RegionDisks.SetLabels. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -2523,8 +2524,8 @@ def set_labels( Args: request (Union[google.cloud.compute_v1.types.SetLabelsRegionDiskRequest, dict]): The request object. A request message for - RegionDisks.SetLabels. See the method description for - details. + RegionDisks.SetLabels. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -2664,8 +2665,8 @@ def test_iam_permissions( Args: request (Union[google.cloud.compute_v1.types.TestIamPermissionsRegionDiskRequest, dict]): The request object. A request message for - RegionDisks.TestIamPermissions. See the method - description for details. + RegionDisks.TestIamPermissions. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -2778,8 +2779,8 @@ def update_unary( Args: request (Union[google.cloud.compute_v1.types.UpdateRegionDiskRequest, dict]): The request object. A request message for - RegionDisks.Update. See the method description for - details. + RegionDisks.Update. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -2888,8 +2889,8 @@ def update( Args: request (Union[google.cloud.compute_v1.types.UpdateRegionDiskRequest, dict]): The request object. A request message for - RegionDisks.Update. See the method description for - details. + RegionDisks.Update. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field diff --git a/google/cloud/compute_v1/services/region_disks/transports/rest.py b/google/cloud/compute_v1/services/region_disks/transports/rest.py index 9cb1f614a..25817fc2b 100644 --- a/google/cloud/compute_v1/services/region_disks/transports/rest.py +++ b/google/cloud/compute_v1/services/region_disks/transports/rest.py @@ -585,7 +585,6 @@ def __call__( The request object. A request message for RegionDisks.AddResourcePolicies. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -698,7 +697,6 @@ def __call__( The request object. A request message for RegionDisks.CreateSnapshot. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -809,7 +807,6 @@ def __call__( The request object. A request message for RegionDisks.Delete. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -911,7 +908,6 @@ def __call__( The request object. A request message for RegionDisks.Get. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1010,7 +1006,6 @@ def __call__( The request object. A request message for RegionDisks.GetIamPolicy. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1138,7 +1133,6 @@ def __call__( The request object. A request message for RegionDisks.Insert. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1249,7 +1243,6 @@ def __call__( The request object. A request message for RegionDisks.List. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1336,7 +1329,6 @@ def __call__( The request object. A request message for RegionDisks.RemoveResourcePolicies. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1449,7 +1441,6 @@ def __call__( The request object. A request message for RegionDisks.Resize. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1560,7 +1551,6 @@ def __call__( The request object. A request message for RegionDisks.SetIamPolicy. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1697,7 +1687,6 @@ def __call__( The request object. A request message for RegionDisks.SetLabels. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1808,7 +1797,6 @@ def __call__( The request object. A request message for RegionDisks.TestIamPermissions. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1906,7 +1894,6 @@ def __call__( The request object. A request message for RegionDisks.Update. See the method description for details. - 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/compute_v1/services/region_health_check_services/client.py b/google/cloud/compute_v1/services/region_health_check_services/client.py index 70f596599..cb5b031ca 100644 --- a/google/cloud/compute_v1/services/region_health_check_services/client.py +++ b/google/cloud/compute_v1/services/region_health_check_services/client.py @@ -441,8 +441,8 @@ def delete_unary( Args: request (Union[google.cloud.compute_v1.types.DeleteRegionHealthCheckServiceRequest, dict]): The request object. A request message for - RegionHealthCheckServices.Delete. See the method - description for details. + RegionHealthCheckServices.Delete. See + the method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -545,8 +545,8 @@ def delete( Args: request (Union[google.cloud.compute_v1.types.DeleteRegionHealthCheckServiceRequest, dict]): The request object. A request message for - RegionHealthCheckServices.Delete. See the method - description for details. + RegionHealthCheckServices.Delete. See + the method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -675,8 +675,8 @@ def get( Args: request (Union[google.cloud.compute_v1.types.GetRegionHealthCheckServiceRequest, dict]): The request object. A request message for - RegionHealthCheckServices.Get. See the method - description for details. + RegionHealthCheckServices.Get. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -781,8 +781,8 @@ def insert_unary( Args: request (Union[google.cloud.compute_v1.types.InsertRegionHealthCheckServiceRequest, dict]): The request object. A request message for - RegionHealthCheckServices.Insert. See the method - description for details. + RegionHealthCheckServices.Insert. See + the method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -883,8 +883,8 @@ def insert( Args: request (Union[google.cloud.compute_v1.types.InsertRegionHealthCheckServiceRequest, dict]): The request object. A request message for - RegionHealthCheckServices.Insert. See the method - description for details. + RegionHealthCheckServices.Insert. See + the method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1009,8 +1009,8 @@ def list( Args: request (Union[google.cloud.compute_v1.types.ListRegionHealthCheckServicesRequest, dict]): The request object. A request message for - RegionHealthCheckServices.List. See the method - description for details. + RegionHealthCheckServices.List. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1116,8 +1116,8 @@ def patch_unary( Args: request (Union[google.cloud.compute_v1.types.PatchRegionHealthCheckServiceRequest, dict]): The request object. A request message for - RegionHealthCheckServices.Patch. See the method - description for details. + RegionHealthCheckServices.Patch. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1233,8 +1233,8 @@ def patch( Args: request (Union[google.cloud.compute_v1.types.PatchRegionHealthCheckServiceRequest, dict]): The request object. A request message for - RegionHealthCheckServices.Patch. See the method - description for details. + RegionHealthCheckServices.Patch. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field diff --git a/google/cloud/compute_v1/services/region_health_check_services/transports/rest.py b/google/cloud/compute_v1/services/region_health_check_services/transports/rest.py index df0de8fb1..ea7045c69 100644 --- a/google/cloud/compute_v1/services/region_health_check_services/transports/rest.py +++ b/google/cloud/compute_v1/services/region_health_check_services/transports/rest.py @@ -355,7 +355,6 @@ def __call__( The request object. A request message for RegionHealthCheckServices.Delete. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -457,7 +456,6 @@ def __call__( The request object. A request message for RegionHealthCheckServices.Get. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -546,7 +544,6 @@ def __call__( The request object. A request message for RegionHealthCheckServices.Insert. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -657,7 +654,6 @@ def __call__( The request object. A request message for RegionHealthCheckServices.List. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -744,7 +740,6 @@ def __call__( The request object. A request message for RegionHealthCheckServices.Patch. See the method description for details. - 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/compute_v1/services/region_health_checks/client.py b/google/cloud/compute_v1/services/region_health_checks/client.py index 2bca07907..876c34385 100644 --- a/google/cloud/compute_v1/services/region_health_checks/client.py +++ b/google/cloud/compute_v1/services/region_health_checks/client.py @@ -439,8 +439,8 @@ def delete_unary( Args: request (Union[google.cloud.compute_v1.types.DeleteRegionHealthCheckRequest, dict]): The request object. A request message for - RegionHealthChecks.Delete. See the method description - for details. + RegionHealthChecks.Delete. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -540,8 +540,8 @@ def delete( Args: request (Union[google.cloud.compute_v1.types.DeleteRegionHealthCheckRequest, dict]): The request object. A request message for - RegionHealthChecks.Delete. See the method description - for details. + RegionHealthChecks.Delete. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -666,8 +666,8 @@ def get( Args: request (Union[google.cloud.compute_v1.types.GetRegionHealthCheckRequest, dict]): The request object. A request message for - RegionHealthChecks.Get. See the method description for - details. + RegionHealthChecks.Get. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -785,8 +785,8 @@ def insert_unary( Args: request (Union[google.cloud.compute_v1.types.InsertRegionHealthCheckRequest, dict]): The request object. A request message for - RegionHealthChecks.Insert. See the method description - for details. + RegionHealthChecks.Insert. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -884,8 +884,8 @@ def insert( Args: request (Union[google.cloud.compute_v1.types.InsertRegionHealthCheckRequest, dict]): The request object. A request message for - RegionHealthChecks.Insert. See the method description - for details. + RegionHealthChecks.Insert. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1007,8 +1007,8 @@ def list( Args: request (Union[google.cloud.compute_v1.types.ListRegionHealthChecksRequest, dict]): The request object. A request message for - RegionHealthChecks.List. See the method description for - details. + RegionHealthChecks.List. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1114,8 +1114,8 @@ def patch_unary( Args: request (Union[google.cloud.compute_v1.types.PatchRegionHealthCheckRequest, dict]): The request object. A request message for - RegionHealthChecks.Patch. See the method description for - details. + RegionHealthChecks.Patch. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1228,8 +1228,8 @@ def patch( Args: request (Union[google.cloud.compute_v1.types.PatchRegionHealthCheckRequest, dict]): The request object. A request message for - RegionHealthChecks.Patch. See the method description for - details. + RegionHealthChecks.Patch. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1365,8 +1365,8 @@ def update_unary( Args: request (Union[google.cloud.compute_v1.types.UpdateRegionHealthCheckRequest, dict]): The request object. A request message for - RegionHealthChecks.Update. See the method description - for details. + RegionHealthChecks.Update. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1477,8 +1477,8 @@ def update( Args: request (Union[google.cloud.compute_v1.types.UpdateRegionHealthCheckRequest, dict]): The request object. A request message for - RegionHealthChecks.Update. See the method description - for details. + RegionHealthChecks.Update. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field diff --git a/google/cloud/compute_v1/services/region_health_checks/transports/rest.py b/google/cloud/compute_v1/services/region_health_checks/transports/rest.py index a7f4cac05..db791a6b4 100644 --- a/google/cloud/compute_v1/services/region_health_checks/transports/rest.py +++ b/google/cloud/compute_v1/services/region_health_checks/transports/rest.py @@ -376,7 +376,6 @@ def __call__( The request object. A request message for RegionHealthChecks.Delete. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -478,7 +477,6 @@ def __call__( The request object. A request message for RegionHealthChecks.Get. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -585,7 +583,6 @@ def __call__( The request object. A request message for RegionHealthChecks.Insert. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -696,7 +693,6 @@ def __call__( The request object. A request message for RegionHealthChecks.List. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -785,7 +781,6 @@ def __call__( The request object. A request message for RegionHealthChecks.Patch. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -896,7 +891,6 @@ def __call__( The request object. A request message for RegionHealthChecks.Update. See the method description for details. - 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/compute_v1/services/region_instance_group_managers/client.py b/google/cloud/compute_v1/services/region_instance_group_managers/client.py index ccbf21c1e..418f6d5fc 100644 --- a/google/cloud/compute_v1/services/region_instance_group_managers/client.py +++ b/google/cloud/compute_v1/services/region_instance_group_managers/client.py @@ -461,8 +461,8 @@ def abandon_instances_unary( Args: request (Union[google.cloud.compute_v1.types.AbandonInstancesRegionInstanceGroupManagerRequest, dict]): The request object. A request message for - RegionInstanceGroupManagers.AbandonInstances. See the - method description for details. + RegionInstanceGroupManagers.AbandonInstances. + See the method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -601,8 +601,8 @@ def abandon_instances( Args: request (Union[google.cloud.compute_v1.types.AbandonInstancesRegionInstanceGroupManagerRequest, dict]): The request object. A request message for - RegionInstanceGroupManagers.AbandonInstances. See the - method description for details. + RegionInstanceGroupManagers.AbandonInstances. + See the method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -754,8 +754,8 @@ def apply_updates_to_instances_unary( Args: request (Union[google.cloud.compute_v1.types.ApplyUpdatesToInstancesRegionInstanceGroupManagerRequest, dict]): The request object. A request message for - RegionInstanceGroupManagers.ApplyUpdatesToInstances. See - the method description for details. + RegionInstanceGroupManagers.ApplyUpdatesToInstances. + See the method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -888,8 +888,8 @@ def apply_updates_to_instances( Args: request (Union[google.cloud.compute_v1.types.ApplyUpdatesToInstancesRegionInstanceGroupManagerRequest, dict]): The request object. A request message for - RegionInstanceGroupManagers.ApplyUpdatesToInstances. See - the method description for details. + RegionInstanceGroupManagers.ApplyUpdatesToInstances. + See the method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1051,8 +1051,8 @@ def create_instances_unary( Args: request (Union[google.cloud.compute_v1.types.CreateInstancesRegionInstanceGroupManagerRequest, dict]): The request object. A request message for - RegionInstanceGroupManagers.CreateInstances. See the - method description for details. + RegionInstanceGroupManagers.CreateInstances. + See the method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1186,8 +1186,8 @@ def create_instances( Args: request (Union[google.cloud.compute_v1.types.CreateInstancesRegionInstanceGroupManagerRequest, dict]): The request object. A request message for - RegionInstanceGroupManagers.CreateInstances. See the - method description for details. + RegionInstanceGroupManagers.CreateInstances. + See the method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1337,8 +1337,8 @@ def delete_unary( Args: request (Union[google.cloud.compute_v1.types.DeleteRegionInstanceGroupManagerRequest, dict]): The request object. A request message for - RegionInstanceGroupManagers.Delete. See the method - description for details. + RegionInstanceGroupManagers.Delete. See + the method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1441,8 +1441,8 @@ def delete( Args: request (Union[google.cloud.compute_v1.types.DeleteRegionInstanceGroupManagerRequest, dict]): The request object. A request message for - RegionInstanceGroupManagers.Delete. See the method - description for details. + RegionInstanceGroupManagers.Delete. See + the method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1586,8 +1586,8 @@ def delete_instances_unary( Args: request (Union[google.cloud.compute_v1.types.DeleteInstancesRegionInstanceGroupManagerRequest, dict]): The request object. A request message for - RegionInstanceGroupManagers.DeleteInstances. See the - method description for details. + RegionInstanceGroupManagers.DeleteInstances. + See the method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1725,8 +1725,8 @@ def delete_instances( Args: request (Union[google.cloud.compute_v1.types.DeleteInstancesRegionInstanceGroupManagerRequest, dict]): The request object. A request message for - RegionInstanceGroupManagers.DeleteInstances. See the - method description for details. + RegionInstanceGroupManagers.DeleteInstances. + See the method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -2166,8 +2166,8 @@ def get( Args: request (Union[google.cloud.compute_v1.types.GetRegionInstanceGroupManagerRequest, dict]): The request object. A request message for - RegionInstanceGroupManagers.Get. See the method - description for details. + RegionInstanceGroupManagers.Get. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -2285,8 +2285,8 @@ def insert_unary( Args: request (Union[google.cloud.compute_v1.types.InsertRegionInstanceGroupManagerRequest, dict]): The request object. A request message for - RegionInstanceGroupManagers.Insert. See the method - description for details. + RegionInstanceGroupManagers.Insert. See + the method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -2396,8 +2396,8 @@ def insert( Args: request (Union[google.cloud.compute_v1.types.InsertRegionInstanceGroupManagerRequest, dict]): The request object. A request message for - RegionInstanceGroupManagers.Insert. See the method - description for details. + RegionInstanceGroupManagers.Insert. See + the method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -2523,8 +2523,8 @@ def list( Args: request (Union[google.cloud.compute_v1.types.ListRegionInstanceGroupManagersRequest, dict]): The request object. A request message for - RegionInstanceGroupManagers.List. See the method - description for details. + RegionInstanceGroupManagers.List. See + the method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -2630,8 +2630,8 @@ def list_errors( Args: request (Union[google.cloud.compute_v1.types.ListErrorsRegionInstanceGroupManagersRequest, dict]): The request object. A request message for - RegionInstanceGroupManagers.ListErrors. See the method - description for details. + RegionInstanceGroupManagers.ListErrors. + See the method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -2753,8 +2753,8 @@ def list_managed_instances( Args: request (Union[google.cloud.compute_v1.types.ListManagedInstancesRegionInstanceGroupManagersRequest, dict]): The request object. A request message for - RegionInstanceGroupManagers.ListManagedInstances. See - the method description for details. + RegionInstanceGroupManagers.ListManagedInstances. + See the method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -2874,8 +2874,8 @@ def list_per_instance_configs( Args: request (Union[google.cloud.compute_v1.types.ListPerInstanceConfigsRegionInstanceGroupManagersRequest, dict]): The request object. A request message for - RegionInstanceGroupManagers.ListPerInstanceConfigs. See - the method description for details. + RegionInstanceGroupManagers.ListPerInstanceConfigs. + See the method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -3007,8 +3007,8 @@ def patch_unary( Args: request (Union[google.cloud.compute_v1.types.PatchRegionInstanceGroupManagerRequest, dict]): The request object. A request message for - RegionInstanceGroupManagers.Patch. See the method - description for details. + RegionInstanceGroupManagers.Patch. See + the method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -3135,8 +3135,8 @@ def patch( Args: request (Union[google.cloud.compute_v1.types.PatchRegionInstanceGroupManagerRequest, dict]): The request object. A request message for - RegionInstanceGroupManagers.Patch. See the method - description for details. + RegionInstanceGroupManagers.Patch. See + the method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -3282,8 +3282,8 @@ def patch_per_instance_configs_unary( Args: request (Union[google.cloud.compute_v1.types.PatchPerInstanceConfigsRegionInstanceGroupManagerRequest, dict]): The request object. A request message for - RegionInstanceGroupManagers.PatchPerInstanceConfigs. See - the method description for details. + RegionInstanceGroupManagers.PatchPerInstanceConfigs. + See the method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -3418,8 +3418,8 @@ def patch_per_instance_configs( Args: request (Union[google.cloud.compute_v1.types.PatchPerInstanceConfigsRegionInstanceGroupManagerRequest, dict]): The request object. A request message for - RegionInstanceGroupManagers.PatchPerInstanceConfigs. See - the method description for details. + RegionInstanceGroupManagers.PatchPerInstanceConfigs. + See the method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -3587,8 +3587,8 @@ def recreate_instances_unary( Args: request (Union[google.cloud.compute_v1.types.RecreateInstancesRegionInstanceGroupManagerRequest, dict]): The request object. A request message for - RegionInstanceGroupManagers.RecreateInstances. See the - method description for details. + RegionInstanceGroupManagers.RecreateInstances. + See the method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -3724,8 +3724,8 @@ def recreate_instances( Args: request (Union[google.cloud.compute_v1.types.RecreateInstancesRegionInstanceGroupManagerRequest, dict]): The request object. A request message for - RegionInstanceGroupManagers.RecreateInstances. See the - method description for details. + RegionInstanceGroupManagers.RecreateInstances. + See the method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -3883,8 +3883,8 @@ def resize_unary( Args: request (Union[google.cloud.compute_v1.types.ResizeRegionInstanceGroupManagerRequest, dict]): The request object. A request message for - RegionInstanceGroupManagers.Resize. See the method - description for details. + RegionInstanceGroupManagers.Resize. See + the method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -4006,8 +4006,8 @@ def resize( Args: request (Union[google.cloud.compute_v1.types.ResizeRegionInstanceGroupManagerRequest, dict]): The request object. A request message for - RegionInstanceGroupManagers.Resize. See the method - description for details. + RegionInstanceGroupManagers.Resize. See + the method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -4146,8 +4146,8 @@ def set_instance_template_unary( Args: request (Union[google.cloud.compute_v1.types.SetInstanceTemplateRegionInstanceGroupManagerRequest, dict]): The request object. A request message for - RegionInstanceGroupManagers.SetInstanceTemplate. See the - method description for details. + RegionInstanceGroupManagers.SetInstanceTemplate. + See the method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -4274,8 +4274,8 @@ def set_instance_template( Args: request (Union[google.cloud.compute_v1.types.SetInstanceTemplateRegionInstanceGroupManagerRequest, dict]): The request object. A request message for - RegionInstanceGroupManagers.SetInstanceTemplate. See the - method description for details. + RegionInstanceGroupManagers.SetInstanceTemplate. + See the method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -4427,8 +4427,8 @@ def set_target_pools_unary( Args: request (Union[google.cloud.compute_v1.types.SetTargetPoolsRegionInstanceGroupManagerRequest, dict]): The request object. A request message for - RegionInstanceGroupManagers.SetTargetPools. See the - method description for details. + RegionInstanceGroupManagers.SetTargetPools. + See the method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -4554,8 +4554,8 @@ def set_target_pools( Args: request (Union[google.cloud.compute_v1.types.SetTargetPoolsRegionInstanceGroupManagerRequest, dict]): The request object. A request message for - RegionInstanceGroupManagers.SetTargetPools. See the - method description for details. + RegionInstanceGroupManagers.SetTargetPools. + See the method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field diff --git a/google/cloud/compute_v1/services/region_instance_group_managers/transports/rest.py b/google/cloud/compute_v1/services/region_instance_group_managers/transports/rest.py index 8c093d800..89f940cf6 100644 --- a/google/cloud/compute_v1/services/region_instance_group_managers/transports/rest.py +++ b/google/cloud/compute_v1/services/region_instance_group_managers/transports/rest.py @@ -821,7 +821,6 @@ def __call__( The request object. A request message for RegionInstanceGroupManagers.AbandonInstances. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -937,7 +936,6 @@ def __call__( The request object. A request message for RegionInstanceGroupManagers.ApplyUpdatesToInstances. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1054,7 +1052,6 @@ def __call__( The request object. A request message for RegionInstanceGroupManagers.CreateInstances. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1169,7 +1166,6 @@ def __call__( The request object. A request message for RegionInstanceGroupManagers.Delete. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1271,7 +1267,6 @@ def __call__( The request object. A request message for RegionInstanceGroupManagers.DeleteInstances. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1387,7 +1382,6 @@ def __call__( The request object. A request message for RegionInstanceGroupManagers.DeletePerInstanceConfigs. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1504,7 +1498,6 @@ def __call__( The request object. A request message for RegionInstanceGroupManagers.Get. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1600,7 +1593,6 @@ def __call__( The request object. A request message for RegionInstanceGroupManagers.Insert. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1711,7 +1703,6 @@ def __call__( The request object. A request message for RegionInstanceGroupManagers.List. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1800,7 +1791,6 @@ def __call__( The request object. A request message for RegionInstanceGroupManagers.ListErrors. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1889,7 +1879,6 @@ def __call__( The request object. A request message for RegionInstanceGroupManagers.ListManagedInstances. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1982,7 +1971,6 @@ def __call__( The request object. A request message for RegionInstanceGroupManagers.ListPerInstanceConfigs. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -2077,7 +2065,6 @@ def __call__( The request object. A request message for RegionInstanceGroupManagers.Patch. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -2189,7 +2176,6 @@ def __call__( The request object. A request message for RegionInstanceGroupManagers.PatchPerInstanceConfigs. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -2306,7 +2292,6 @@ def __call__( The request object. A request message for RegionInstanceGroupManagers.RecreateInstances. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -2423,7 +2408,6 @@ def __call__( The request object. A request message for RegionInstanceGroupManagers.Resize. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -2525,7 +2509,6 @@ def __call__( The request object. A request message for RegionInstanceGroupManagers.SetInstanceTemplate. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -2640,7 +2623,6 @@ def __call__( The request object. A request message for RegionInstanceGroupManagers.SetTargetPools. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -2756,7 +2738,6 @@ def __call__( The request object. A request message for RegionInstanceGroupManagers.UpdatePerInstanceConfigs. See the method description for details. - 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/compute_v1/services/region_instance_groups/client.py b/google/cloud/compute_v1/services/region_instance_groups/client.py index 77a985a51..ff375fbe8 100644 --- a/google/cloud/compute_v1/services/region_instance_groups/client.py +++ b/google/cloud/compute_v1/services/region_instance_groups/client.py @@ -439,8 +439,8 @@ def get( Args: request (Union[google.cloud.compute_v1.types.GetRegionInstanceGroupRequest, dict]): The request object. A request message for - RegionInstanceGroups.Get. See the method description for - details. + RegionInstanceGroups.Get. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -552,8 +552,8 @@ def list( Args: request (Union[google.cloud.compute_v1.types.ListRegionInstanceGroupsRequest, dict]): The request object. A request message for - RegionInstanceGroups.List. See the method description - for details. + RegionInstanceGroups.List. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -664,8 +664,8 @@ def list_instances( Args: request (Union[google.cloud.compute_v1.types.ListInstancesRegionInstanceGroupsRequest, dict]): The request object. A request message for - RegionInstanceGroups.ListInstances. See the method - description for details. + RegionInstanceGroups.ListInstances. See + the method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -797,8 +797,8 @@ def set_named_ports_unary( Args: request (Union[google.cloud.compute_v1.types.SetNamedPortsRegionInstanceGroupRequest, dict]): The request object. A request message for - RegionInstanceGroups.SetNamedPorts. See the method - description for details. + RegionInstanceGroups.SetNamedPorts. See + the method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -920,8 +920,8 @@ def set_named_ports( Args: request (Union[google.cloud.compute_v1.types.SetNamedPortsRegionInstanceGroupRequest, dict]): The request object. A request message for - RegionInstanceGroups.SetNamedPorts. See the method - description for details. + RegionInstanceGroups.SetNamedPorts. See + the method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field diff --git a/google/cloud/compute_v1/services/region_instance_groups/transports/rest.py b/google/cloud/compute_v1/services/region_instance_groups/transports/rest.py index 6720190a6..54a1a3224 100644 --- a/google/cloud/compute_v1/services/region_instance_groups/transports/rest.py +++ b/google/cloud/compute_v1/services/region_instance_groups/transports/rest.py @@ -326,7 +326,6 @@ def __call__( The request object. A request message for RegionInstanceGroups.Get. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -427,7 +426,6 @@ def __call__( The request object. A request message for RegionInstanceGroups.List. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -516,7 +514,6 @@ def __call__( The request object. A request message for RegionInstanceGroups.ListInstances. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -612,7 +609,6 @@ def __call__( The request object. A request message for RegionInstanceGroups.SetNamedPorts. See the method description for details. - 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/compute_v1/services/region_instance_templates/client.py b/google/cloud/compute_v1/services/region_instance_templates/client.py index 96c328fa2..fc7b12457 100644 --- a/google/cloud/compute_v1/services/region_instance_templates/client.py +++ b/google/cloud/compute_v1/services/region_instance_templates/client.py @@ -442,8 +442,8 @@ def delete_unary( Args: request (Union[google.cloud.compute_v1.types.DeleteRegionInstanceTemplateRequest, dict]): The request object. A request message for - RegionInstanceTemplates.Delete. See the method - description for details. + RegionInstanceTemplates.Delete. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -546,8 +546,8 @@ def delete( Args: request (Union[google.cloud.compute_v1.types.DeleteRegionInstanceTemplateRequest, dict]): The request object. A request message for - RegionInstanceTemplates.Delete. See the method - description for details. + RegionInstanceTemplates.Delete. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -672,8 +672,8 @@ def get( Args: request (Union[google.cloud.compute_v1.types.GetRegionInstanceTemplateRequest, dict]): The request object. A request message for - RegionInstanceTemplates.Get. See the method description - for details. + RegionInstanceTemplates.Get. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -778,8 +778,8 @@ def insert_unary( Args: request (Union[google.cloud.compute_v1.types.InsertRegionInstanceTemplateRequest, dict]): The request object. A request message for - RegionInstanceTemplates.Insert. See the method - description for details. + RegionInstanceTemplates.Insert. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -880,8 +880,8 @@ def insert( Args: request (Union[google.cloud.compute_v1.types.InsertRegionInstanceTemplateRequest, dict]): The request object. A request message for - RegionInstanceTemplates.Insert. See the method - description for details. + RegionInstanceTemplates.Insert. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1005,8 +1005,8 @@ def list( Args: request (Union[google.cloud.compute_v1.types.ListRegionInstanceTemplatesRequest, dict]): The request object. A request message for - RegionInstanceTemplates.List. See the method description - for details. + RegionInstanceTemplates.List. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field diff --git a/google/cloud/compute_v1/services/region_instance_templates/transports/rest.py b/google/cloud/compute_v1/services/region_instance_templates/transports/rest.py index affefefcb..f828087a8 100644 --- a/google/cloud/compute_v1/services/region_instance_templates/transports/rest.py +++ b/google/cloud/compute_v1/services/region_instance_templates/transports/rest.py @@ -320,7 +320,6 @@ def __call__( The request object. A request message for RegionInstanceTemplates.Delete. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -422,7 +421,6 @@ def __call__( The request object. A request message for RegionInstanceTemplates.Get. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -514,7 +512,6 @@ def __call__( The request object. A request message for RegionInstanceTemplates.Insert. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -625,7 +622,6 @@ def __call__( The request object. A request message for RegionInstanceTemplates.List. See the method description for details. - 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/compute_v1/services/region_instances/client.py b/google/cloud/compute_v1/services/region_instances/client.py index b47f7cca1..71d7911ec 100644 --- a/google/cloud/compute_v1/services/region_instances/client.py +++ b/google/cloud/compute_v1/services/region_instances/client.py @@ -441,8 +441,8 @@ def bulk_insert_unary( Args: request (Union[google.cloud.compute_v1.types.BulkInsertRegionInstanceRequest, dict]): The request object. A request message for - RegionInstances.BulkInsert. See the method description - for details. + RegionInstances.BulkInsert. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -546,8 +546,8 @@ def bulk_insert( Args: request (Union[google.cloud.compute_v1.types.BulkInsertRegionInstanceRequest, dict]): The request object. A request message for - RegionInstances.BulkInsert. See the method description - for details. + RegionInstances.BulkInsert. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field diff --git a/google/cloud/compute_v1/services/region_instances/transports/rest.py b/google/cloud/compute_v1/services/region_instances/transports/rest.py index 1d7aaf865..6a8c59189 100644 --- a/google/cloud/compute_v1/services/region_instances/transports/rest.py +++ b/google/cloud/compute_v1/services/region_instances/transports/rest.py @@ -231,7 +231,6 @@ def __call__( The request object. A request message for RegionInstances.BulkInsert. See the method description for details. - 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/compute_v1/services/region_network_endpoint_groups/client.py b/google/cloud/compute_v1/services/region_network_endpoint_groups/client.py index 32c149146..b6c1187fd 100644 --- a/google/cloud/compute_v1/services/region_network_endpoint_groups/client.py +++ b/google/cloud/compute_v1/services/region_network_endpoint_groups/client.py @@ -445,8 +445,8 @@ def delete_unary( Args: request (Union[google.cloud.compute_v1.types.DeleteRegionNetworkEndpointGroupRequest, dict]): The request object. A request message for - RegionNetworkEndpointGroups.Delete. See the method - description for details. + RegionNetworkEndpointGroups.Delete. See + the method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -552,8 +552,8 @@ def delete( Args: request (Union[google.cloud.compute_v1.types.DeleteRegionNetworkEndpointGroupRequest, dict]): The request object. A request message for - RegionNetworkEndpointGroups.Delete. See the method - description for details. + RegionNetworkEndpointGroups.Delete. See + the method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -682,8 +682,8 @@ def get( Args: request (Union[google.cloud.compute_v1.types.GetRegionNetworkEndpointGroupRequest, dict]): The request object. A request message for - RegionNetworkEndpointGroups.Get. See the method - description for details. + RegionNetworkEndpointGroups.Get. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -797,8 +797,8 @@ def insert_unary( Args: request (Union[google.cloud.compute_v1.types.InsertRegionNetworkEndpointGroupRequest, dict]): The request object. A request message for - RegionNetworkEndpointGroups.Insert. See the method - description for details. + RegionNetworkEndpointGroups.Insert. See + the method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -902,8 +902,8 @@ def insert( Args: request (Union[google.cloud.compute_v1.types.InsertRegionNetworkEndpointGroupRequest, dict]): The request object. A request message for - RegionNetworkEndpointGroups.Insert. See the method - description for details. + RegionNetworkEndpointGroups.Insert. See + the method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1031,8 +1031,8 @@ def list( Args: request (Union[google.cloud.compute_v1.types.ListRegionNetworkEndpointGroupsRequest, dict]): The request object. A request message for - RegionNetworkEndpointGroups.List. See the method - description for details. + RegionNetworkEndpointGroups.List. See + the method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field diff --git a/google/cloud/compute_v1/services/region_network_endpoint_groups/transports/rest.py b/google/cloud/compute_v1/services/region_network_endpoint_groups/transports/rest.py index d14bc178f..f57593ac2 100644 --- a/google/cloud/compute_v1/services/region_network_endpoint_groups/transports/rest.py +++ b/google/cloud/compute_v1/services/region_network_endpoint_groups/transports/rest.py @@ -328,7 +328,6 @@ def __call__( The request object. A request message for RegionNetworkEndpointGroups.Delete. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -430,7 +429,6 @@ def __call__( The request object. A request message for RegionNetworkEndpointGroups.Get. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -528,7 +526,6 @@ def __call__( The request object. A request message for RegionNetworkEndpointGroups.Insert. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -639,7 +636,6 @@ def __call__( The request object. A request message for RegionNetworkEndpointGroups.List. See the method description for details. - 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/compute_v1/services/region_network_firewall_policies/client.py b/google/cloud/compute_v1/services/region_network_firewall_policies/client.py index 727998a7e..06b778c03 100644 --- a/google/cloud/compute_v1/services/region_network_firewall_policies/client.py +++ b/google/cloud/compute_v1/services/region_network_firewall_policies/client.py @@ -447,8 +447,8 @@ def add_association_unary( Args: request (Union[google.cloud.compute_v1.types.AddAssociationRegionNetworkFirewallPolicyRequest, dict]): The request object. A request message for - RegionNetworkFirewallPolicies.AddAssociation. See the - method description for details. + RegionNetworkFirewallPolicies.AddAssociation. + See the method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -567,8 +567,8 @@ def add_association( Args: request (Union[google.cloud.compute_v1.types.AddAssociationRegionNetworkFirewallPolicyRequest, dict]): The request object. A request message for - RegionNetworkFirewallPolicies.AddAssociation. See the - method description for details. + RegionNetworkFirewallPolicies.AddAssociation. + See the method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -709,8 +709,8 @@ def add_rule_unary( Args: request (Union[google.cloud.compute_v1.types.AddRuleRegionNetworkFirewallPolicyRequest, dict]): The request object. A request message for - RegionNetworkFirewallPolicies.AddRule. See the method - description for details. + RegionNetworkFirewallPolicies.AddRule. + See the method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -822,8 +822,8 @@ def add_rule( Args: request (Union[google.cloud.compute_v1.types.AddRuleRegionNetworkFirewallPolicyRequest, dict]): The request object. A request message for - RegionNetworkFirewallPolicies.AddRule. See the method - description for details. + RegionNetworkFirewallPolicies.AddRule. + See the method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -960,8 +960,8 @@ def clone_rules_unary( Args: request (Union[google.cloud.compute_v1.types.CloneRulesRegionNetworkFirewallPolicyRequest, dict]): The request object. A request message for - RegionNetworkFirewallPolicies.CloneRules. See the method - description for details. + RegionNetworkFirewallPolicies.CloneRules. + See the method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1066,8 +1066,8 @@ def clone_rules( Args: request (Union[google.cloud.compute_v1.types.CloneRulesRegionNetworkFirewallPolicyRequest, dict]): The request object. A request message for - RegionNetworkFirewallPolicies.CloneRules. See the method - description for details. + RegionNetworkFirewallPolicies.CloneRules. + See the method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1196,8 +1196,8 @@ def delete_unary( Args: request (Union[google.cloud.compute_v1.types.DeleteRegionNetworkFirewallPolicyRequest, dict]): The request object. A request message for - RegionNetworkFirewallPolicies.Delete. See the method - description for details. + RegionNetworkFirewallPolicies.Delete. + See the method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1299,8 +1299,8 @@ def delete( Args: request (Union[google.cloud.compute_v1.types.DeleteRegionNetworkFirewallPolicyRequest, dict]): The request object. A request message for - RegionNetworkFirewallPolicies.Delete. See the method - description for details. + RegionNetworkFirewallPolicies.Delete. + See the method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1427,8 +1427,8 @@ def get( Args: request (Union[google.cloud.compute_v1.types.GetRegionNetworkFirewallPolicyRequest, dict]): The request object. A request message for - RegionNetworkFirewallPolicies.Get. See the method - description for details. + RegionNetworkFirewallPolicies.Get. See + the method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1528,8 +1528,8 @@ def get_association( Args: request (Union[google.cloud.compute_v1.types.GetAssociationRegionNetworkFirewallPolicyRequest, dict]): The request object. A request message for - RegionNetworkFirewallPolicies.GetAssociation. See the - method description for details. + RegionNetworkFirewallPolicies.GetAssociation. + See the method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1631,8 +1631,8 @@ def get_effective_firewalls( Args: request (Union[google.cloud.compute_v1.types.GetEffectiveFirewallsRegionNetworkFirewallPolicyRequest, dict]): The request object. A request message for - RegionNetworkFirewallPolicies.GetEffectiveFirewalls. See - the method description for details. + RegionNetworkFirewallPolicies.GetEffectiveFirewalls. + See the method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1734,8 +1734,8 @@ def get_iam_policy( Args: request (Union[google.cloud.compute_v1.types.GetIamPolicyRegionNetworkFirewallPolicyRequest, dict]): The request object. A request message for - RegionNetworkFirewallPolicies.GetIamPolicy. See the - method description for details. + RegionNetworkFirewallPolicies.GetIamPolicy. + See the method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1877,8 +1877,8 @@ def get_rule( Args: request (Union[google.cloud.compute_v1.types.GetRuleRegionNetworkFirewallPolicyRequest, dict]): The request object. A request message for - RegionNetworkFirewallPolicies.GetRule. See the method - description for details. + RegionNetworkFirewallPolicies.GetRule. + See the method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1983,8 +1983,8 @@ def insert_unary( Args: request (Union[google.cloud.compute_v1.types.InsertRegionNetworkFirewallPolicyRequest, dict]): The request object. A request message for - RegionNetworkFirewallPolicies.Insert. See the method - description for details. + RegionNetworkFirewallPolicies.Insert. + See the method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -2084,8 +2084,8 @@ def insert( Args: request (Union[google.cloud.compute_v1.types.InsertRegionNetworkFirewallPolicyRequest, dict]): The request object. A request message for - RegionNetworkFirewallPolicies.Insert. See the method - description for details. + RegionNetworkFirewallPolicies.Insert. + See the method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -2210,8 +2210,8 @@ def list( Args: request (Union[google.cloud.compute_v1.types.ListRegionNetworkFirewallPoliciesRequest, dict]): The request object. A request message for - RegionNetworkFirewallPolicies.List. See the method - description for details. + RegionNetworkFirewallPolicies.List. See + the method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -2314,8 +2314,8 @@ def patch_unary( Args: request (Union[google.cloud.compute_v1.types.PatchRegionNetworkFirewallPolicyRequest, dict]): The request object. A request message for - RegionNetworkFirewallPolicies.Patch. See the method - description for details. + RegionNetworkFirewallPolicies.Patch. See + the method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -2427,8 +2427,8 @@ def patch( Args: request (Union[google.cloud.compute_v1.types.PatchRegionNetworkFirewallPolicyRequest, dict]): The request object. A request message for - RegionNetworkFirewallPolicies.Patch. See the method - description for details. + RegionNetworkFirewallPolicies.Patch. See + the method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -2565,8 +2565,8 @@ def patch_rule_unary( Args: request (Union[google.cloud.compute_v1.types.PatchRuleRegionNetworkFirewallPolicyRequest, dict]): The request object. A request message for - RegionNetworkFirewallPolicies.PatchRule. See the method - description for details. + RegionNetworkFirewallPolicies.PatchRule. + See the method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -2678,8 +2678,8 @@ def patch_rule( Args: request (Union[google.cloud.compute_v1.types.PatchRuleRegionNetworkFirewallPolicyRequest, dict]): The request object. A request message for - RegionNetworkFirewallPolicies.PatchRule. See the method - description for details. + RegionNetworkFirewallPolicies.PatchRule. + See the method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -2816,8 +2816,8 @@ def remove_association_unary( Args: request (Union[google.cloud.compute_v1.types.RemoveAssociationRegionNetworkFirewallPolicyRequest, dict]): The request object. A request message for - RegionNetworkFirewallPolicies.RemoveAssociation. See the - method description for details. + RegionNetworkFirewallPolicies.RemoveAssociation. + See the method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -2924,8 +2924,8 @@ def remove_association( Args: request (Union[google.cloud.compute_v1.types.RemoveAssociationRegionNetworkFirewallPolicyRequest, dict]): The request object. A request message for - RegionNetworkFirewallPolicies.RemoveAssociation. See the - method description for details. + RegionNetworkFirewallPolicies.RemoveAssociation. + See the method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -3056,8 +3056,8 @@ def remove_rule_unary( Args: request (Union[google.cloud.compute_v1.types.RemoveRuleRegionNetworkFirewallPolicyRequest, dict]): The request object. A request message for - RegionNetworkFirewallPolicies.RemoveRule. See the method - description for details. + RegionNetworkFirewallPolicies.RemoveRule. + See the method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -3161,8 +3161,8 @@ def remove_rule( Args: request (Union[google.cloud.compute_v1.types.RemoveRuleRegionNetworkFirewallPolicyRequest, dict]): The request object. A request message for - RegionNetworkFirewallPolicies.RemoveRule. See the method - description for details. + RegionNetworkFirewallPolicies.RemoveRule. + See the method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -3295,8 +3295,8 @@ def set_iam_policy( Args: request (Union[google.cloud.compute_v1.types.SetIamPolicyRegionNetworkFirewallPolicyRequest, dict]): The request object. A request message for - RegionNetworkFirewallPolicies.SetIamPolicy. See the - method description for details. + RegionNetworkFirewallPolicies.SetIamPolicy. + See the method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -3453,8 +3453,8 @@ def test_iam_permissions( Args: request (Union[google.cloud.compute_v1.types.TestIamPermissionsRegionNetworkFirewallPolicyRequest, dict]): The request object. A request message for - RegionNetworkFirewallPolicies.TestIamPermissions. See - the method description for details. + RegionNetworkFirewallPolicies.TestIamPermissions. + See the method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field diff --git a/google/cloud/compute_v1/services/region_network_firewall_policies/transports/rest.py b/google/cloud/compute_v1/services/region_network_firewall_policies/transports/rest.py index d366e7b0f..306f89c22 100644 --- a/google/cloud/compute_v1/services/region_network_firewall_policies/transports/rest.py +++ b/google/cloud/compute_v1/services/region_network_firewall_policies/transports/rest.py @@ -751,7 +751,6 @@ def __call__( The request object. A request message for RegionNetworkFirewallPolicies.AddAssociation. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -864,7 +863,6 @@ def __call__( The request object. A request message for RegionNetworkFirewallPolicies.AddRule. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -975,7 +973,6 @@ def __call__( The request object. A request message for RegionNetworkFirewallPolicies.CloneRules. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1079,7 +1076,6 @@ def __call__( The request object. A request message for RegionNetworkFirewallPolicies.Delete. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1181,7 +1177,6 @@ def __call__( The request object. A request message for RegionNetworkFirewallPolicies.Get. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1270,7 +1265,6 @@ def __call__( The request object. A request message for RegionNetworkFirewallPolicies.GetAssociation. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1361,7 +1355,6 @@ def __call__( The request object. A request message for RegionNetworkFirewallPolicies.GetEffectiveFirewalls. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1458,7 +1451,6 @@ def __call__( The request object. A request message for RegionNetworkFirewallPolicies.GetIamPolicy. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1588,7 +1580,6 @@ def __call__( The request object. A request message for RegionNetworkFirewallPolicies.GetRule. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1679,7 +1670,6 @@ def __call__( The request object. A request message for RegionNetworkFirewallPolicies.Insert. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1790,7 +1780,6 @@ def __call__( The request object. A request message for RegionNetworkFirewallPolicies.List. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1877,7 +1866,6 @@ def __call__( The request object. A request message for RegionNetworkFirewallPolicies.Patch. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1988,7 +1976,6 @@ def __call__( The request object. A request message for RegionNetworkFirewallPolicies.PatchRule. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -2099,7 +2086,6 @@ def __call__( The request object. A request message for RegionNetworkFirewallPolicies.RemoveAssociation. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -2205,7 +2191,6 @@ def __call__( The request object. A request message for RegionNetworkFirewallPolicies.RemoveRule. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -2309,7 +2294,6 @@ def __call__( The request object. A request message for RegionNetworkFirewallPolicies.SetIamPolicy. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -2448,7 +2432,6 @@ def __call__( The request object. A request message for RegionNetworkFirewallPolicies.TestIamPermissions. See the method description for details. - 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/compute_v1/services/region_notification_endpoints/client.py b/google/cloud/compute_v1/services/region_notification_endpoints/client.py index 7f096a5e9..e6709ef5f 100644 --- a/google/cloud/compute_v1/services/region_notification_endpoints/client.py +++ b/google/cloud/compute_v1/services/region_notification_endpoints/client.py @@ -444,8 +444,8 @@ def delete_unary( Args: request (Union[google.cloud.compute_v1.types.DeleteRegionNotificationEndpointRequest, dict]): The request object. A request message for - RegionNotificationEndpoints.Delete. See the method - description for details. + RegionNotificationEndpoints.Delete. See + the method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -548,8 +548,8 @@ def delete( Args: request (Union[google.cloud.compute_v1.types.DeleteRegionNotificationEndpointRequest, dict]): The request object. A request message for - RegionNotificationEndpoints.Delete. See the method - description for details. + RegionNotificationEndpoints.Delete. See + the method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -677,8 +677,8 @@ def get( Args: request (Union[google.cloud.compute_v1.types.GetRegionNotificationEndpointRequest, dict]): The request object. A request message for - RegionNotificationEndpoints.Get. See the method - description for details. + RegionNotificationEndpoints.Get. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -787,8 +787,8 @@ def insert_unary( Args: request (Union[google.cloud.compute_v1.types.InsertRegionNotificationEndpointRequest, dict]): The request object. A request message for - RegionNotificationEndpoints.Insert. See the method - description for details. + RegionNotificationEndpoints.Insert. See + the method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -889,8 +889,8 @@ def insert( Args: request (Union[google.cloud.compute_v1.types.InsertRegionNotificationEndpointRequest, dict]): The request object. A request message for - RegionNotificationEndpoints.Insert. See the method - description for details. + RegionNotificationEndpoints.Insert. See + the method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1014,8 +1014,8 @@ def list( Args: request (Union[google.cloud.compute_v1.types.ListRegionNotificationEndpointsRequest, dict]): The request object. A request message for - RegionNotificationEndpoints.List. See the method - description for details. + RegionNotificationEndpoints.List. See + the method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field diff --git a/google/cloud/compute_v1/services/region_notification_endpoints/transports/rest.py b/google/cloud/compute_v1/services/region_notification_endpoints/transports/rest.py index 510410280..e10407f84 100644 --- a/google/cloud/compute_v1/services/region_notification_endpoints/transports/rest.py +++ b/google/cloud/compute_v1/services/region_notification_endpoints/transports/rest.py @@ -328,7 +328,6 @@ def __call__( The request object. A request message for RegionNotificationEndpoints.Delete. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -430,7 +429,6 @@ def __call__( The request object. A request message for RegionNotificationEndpoints.Get. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -524,7 +522,6 @@ def __call__( The request object. A request message for RegionNotificationEndpoints.Insert. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -635,7 +632,6 @@ def __call__( The request object. A request message for RegionNotificationEndpoints.List. See the method description for details. - 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/compute_v1/services/region_operations/client.py b/google/cloud/compute_v1/services/region_operations/client.py index c2ac7291e..e39b11674 100644 --- a/google/cloud/compute_v1/services/region_operations/client.py +++ b/google/cloud/compute_v1/services/region_operations/client.py @@ -437,8 +437,8 @@ def delete( Args: request (Union[google.cloud.compute_v1.types.DeleteRegionOperationRequest, dict]): The request object. A request message for - RegionOperations.Delete. See the method description for - details. + RegionOperations.Delete. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -538,8 +538,8 @@ def get( Args: request (Union[google.cloud.compute_v1.types.GetRegionOperationRequest, dict]): The request object. A request message for - RegionOperations.Get. See the method description for - details. + RegionOperations.Get. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -650,8 +650,8 @@ def list( Args: request (Union[google.cloud.compute_v1.types.ListRegionOperationsRequest, dict]): The request object. A request message for - RegionOperations.List. See the method description for - details. + RegionOperations.List. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -763,8 +763,8 @@ def wait( Args: request (Union[google.cloud.compute_v1.types.WaitRegionOperationRequest, dict]): The request object. A request message for - RegionOperations.Wait. See the method description for - details. + RegionOperations.Wait. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field diff --git a/google/cloud/compute_v1/services/region_operations/transports/rest.py b/google/cloud/compute_v1/services/region_operations/transports/rest.py index eb746a7b5..3da137049 100644 --- a/google/cloud/compute_v1/services/region_operations/transports/rest.py +++ b/google/cloud/compute_v1/services/region_operations/transports/rest.py @@ -320,7 +320,6 @@ def __call__( The request object. A request message for RegionOperations.Delete. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -410,7 +409,6 @@ def __call__( The request object. A request message for RegionOperations.Get. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -512,7 +510,6 @@ def __call__( The request object. A request message for RegionOperations.List. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -601,7 +598,6 @@ def __call__( The request object. A request message for RegionOperations.Wait. See the method description for details. - 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/compute_v1/services/region_security_policies/client.py b/google/cloud/compute_v1/services/region_security_policies/client.py index b56efd138..678bc8647 100644 --- a/google/cloud/compute_v1/services/region_security_policies/client.py +++ b/google/cloud/compute_v1/services/region_security_policies/client.py @@ -441,8 +441,8 @@ def delete_unary( Args: request (Union[google.cloud.compute_v1.types.DeleteRegionSecurityPolicyRequest, dict]): The request object. A request message for - RegionSecurityPolicies.Delete. See the method - description for details. + RegionSecurityPolicies.Delete. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -544,8 +544,8 @@ def delete( Args: request (Union[google.cloud.compute_v1.types.DeleteRegionSecurityPolicyRequest, dict]): The request object. A request message for - RegionSecurityPolicies.Delete. See the method - description for details. + RegionSecurityPolicies.Delete. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -671,8 +671,8 @@ def get( Args: request (Union[google.cloud.compute_v1.types.GetRegionSecurityPolicyRequest, dict]): The request object. A request message for - RegionSecurityPolicies.Get. See the method description - for details. + RegionSecurityPolicies.Get. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -777,8 +777,8 @@ def insert_unary( Args: request (Union[google.cloud.compute_v1.types.InsertRegionSecurityPolicyRequest, dict]): The request object. A request message for - RegionSecurityPolicies.Insert. See the method - description for details. + RegionSecurityPolicies.Insert. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -878,8 +878,8 @@ def insert( Args: request (Union[google.cloud.compute_v1.types.InsertRegionSecurityPolicyRequest, dict]): The request object. A request message for - RegionSecurityPolicies.Insert. See the method - description for details. + RegionSecurityPolicies.Insert. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1003,8 +1003,8 @@ def list( Args: request (Union[google.cloud.compute_v1.types.ListRegionSecurityPoliciesRequest, dict]): The request object. A request message for - RegionSecurityPolicies.List. See the method description - for details. + RegionSecurityPolicies.List. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1110,8 +1110,8 @@ def patch_unary( Args: request (Union[google.cloud.compute_v1.types.PatchRegionSecurityPolicyRequest, dict]): The request object. A request message for - RegionSecurityPolicies.Patch. See the method description - for details. + RegionSecurityPolicies.Patch. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1226,8 +1226,8 @@ def patch( Args: request (Union[google.cloud.compute_v1.types.PatchRegionSecurityPolicyRequest, dict]): The request object. A request message for - RegionSecurityPolicies.Patch. See the method description - for details. + RegionSecurityPolicies.Patch. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field diff --git a/google/cloud/compute_v1/services/region_security_policies/transports/rest.py b/google/cloud/compute_v1/services/region_security_policies/transports/rest.py index 4dd6642c2..9a29214ed 100644 --- a/google/cloud/compute_v1/services/region_security_policies/transports/rest.py +++ b/google/cloud/compute_v1/services/region_security_policies/transports/rest.py @@ -349,7 +349,6 @@ def __call__( The request object. A request message for RegionSecurityPolicies.Delete. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -451,7 +450,6 @@ def __call__( The request object. A request message for RegionSecurityPolicies.Get. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -544,7 +542,6 @@ def __call__( The request object. A request message for RegionSecurityPolicies.Insert. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -655,7 +652,6 @@ def __call__( The request object. A request message for RegionSecurityPolicies.List. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -742,7 +738,6 @@ def __call__( The request object. A request message for RegionSecurityPolicies.Patch. See the method description for details. - 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/compute_v1/services/region_ssl_certificates/client.py b/google/cloud/compute_v1/services/region_ssl_certificates/client.py index 67067cb83..7edb5f9aa 100644 --- a/google/cloud/compute_v1/services/region_ssl_certificates/client.py +++ b/google/cloud/compute_v1/services/region_ssl_certificates/client.py @@ -442,8 +442,8 @@ def delete_unary( Args: request (Union[google.cloud.compute_v1.types.DeleteRegionSslCertificateRequest, dict]): The request object. A request message for - RegionSslCertificates.Delete. See the method description - for details. + RegionSslCertificates.Delete. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -546,8 +546,8 @@ def delete( Args: request (Union[google.cloud.compute_v1.types.DeleteRegionSslCertificateRequest, dict]): The request object. A request message for - RegionSslCertificates.Delete. See the method description - for details. + RegionSslCertificates.Delete. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -674,8 +674,8 @@ def get( Args: request (Union[google.cloud.compute_v1.types.GetRegionSslCertificateRequest, dict]): The request object. A request message for - RegionSslCertificates.Get. See the method description - for details. + RegionSslCertificates.Get. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -793,8 +793,8 @@ def insert_unary( Args: request (Union[google.cloud.compute_v1.types.InsertRegionSslCertificateRequest, dict]): The request object. A request message for - RegionSslCertificates.Insert. See the method description - for details. + RegionSslCertificates.Insert. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -895,8 +895,8 @@ def insert( Args: request (Union[google.cloud.compute_v1.types.InsertRegionSslCertificateRequest, dict]): The request object. A request message for - RegionSslCertificates.Insert. See the method description - for details. + RegionSslCertificates.Insert. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1019,8 +1019,8 @@ def list( Args: request (Union[google.cloud.compute_v1.types.ListRegionSslCertificatesRequest, dict]): The request object. A request message for - RegionSslCertificates.List. See the method description - for details. + RegionSslCertificates.List. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field diff --git a/google/cloud/compute_v1/services/region_ssl_certificates/transports/rest.py b/google/cloud/compute_v1/services/region_ssl_certificates/transports/rest.py index 354e741d2..805837212 100644 --- a/google/cloud/compute_v1/services/region_ssl_certificates/transports/rest.py +++ b/google/cloud/compute_v1/services/region_ssl_certificates/transports/rest.py @@ -320,7 +320,6 @@ def __call__( The request object. A request message for RegionSslCertificates.Delete. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -422,7 +421,6 @@ def __call__( The request object. A request message for RegionSslCertificates.Get. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -525,7 +523,6 @@ def __call__( The request object. A request message for RegionSslCertificates.Insert. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -636,7 +633,6 @@ def __call__( The request object. A request message for RegionSslCertificates.List. See the method description for details. - 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/compute_v1/services/region_ssl_policies/client.py b/google/cloud/compute_v1/services/region_ssl_policies/client.py index ec3d21855..15cde23ea 100644 --- a/google/cloud/compute_v1/services/region_ssl_policies/client.py +++ b/google/cloud/compute_v1/services/region_ssl_policies/client.py @@ -441,8 +441,8 @@ def delete_unary( Args: request (Union[google.cloud.compute_v1.types.DeleteRegionSslPolicyRequest, dict]): The request object. A request message for - RegionSslPolicies.Delete. See the method description for - details. + RegionSslPolicies.Delete. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -545,8 +545,8 @@ def delete( Args: request (Union[google.cloud.compute_v1.types.DeleteRegionSslPolicyRequest, dict]): The request object. A request message for - RegionSslPolicies.Delete. See the method description for - details. + RegionSslPolicies.Delete. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -673,8 +673,8 @@ def get( Args: request (Union[google.cloud.compute_v1.types.GetRegionSslPolicyRequest, dict]): The request object. A request message for - RegionSslPolicies.Get. See the method description for - details. + RegionSslPolicies.Get. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -780,8 +780,8 @@ def insert_unary( Args: request (Union[google.cloud.compute_v1.types.InsertRegionSslPolicyRequest, dict]): The request object. A request message for - RegionSslPolicies.Insert. See the method description for - details. + RegionSslPolicies.Insert. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -879,8 +879,8 @@ def insert( Args: request (Union[google.cloud.compute_v1.types.InsertRegionSslPolicyRequest, dict]): The request object. A request message for - RegionSslPolicies.Insert. See the method description for - details. + RegionSslPolicies.Insert. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1002,8 +1002,8 @@ def list( Args: request (Union[google.cloud.compute_v1.types.ListRegionSslPoliciesRequest, dict]): The request object. A request message for - RegionSslPolicies.List. See the method description for - details. + RegionSslPolicies.List. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1105,8 +1105,8 @@ def list_available_features( Args: request (Union[google.cloud.compute_v1.types.ListAvailableFeaturesRegionSslPoliciesRequest, dict]): The request object. A request message for - RegionSslPolicies.ListAvailableFeatures. See the method - description for details. + RegionSslPolicies.ListAvailableFeatures. + See the method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1198,8 +1198,8 @@ def patch_unary( Args: request (Union[google.cloud.compute_v1.types.PatchRegionSslPolicyRequest, dict]): The request object. A request message for - RegionSslPolicies.Patch. See the method description for - details. + RegionSslPolicies.Patch. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1309,8 +1309,8 @@ def patch( Args: request (Union[google.cloud.compute_v1.types.PatchRegionSslPolicyRequest, dict]): The request object. A request message for - RegionSslPolicies.Patch. See the method description for - details. + RegionSslPolicies.Patch. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field diff --git a/google/cloud/compute_v1/services/region_ssl_policies/transports/rest.py b/google/cloud/compute_v1/services/region_ssl_policies/transports/rest.py index 48919ee04..f50daa958 100644 --- a/google/cloud/compute_v1/services/region_ssl_policies/transports/rest.py +++ b/google/cloud/compute_v1/services/region_ssl_policies/transports/rest.py @@ -380,7 +380,6 @@ def __call__( The request object. A request message for RegionSslPolicies.Delete. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -482,7 +481,6 @@ def __call__( The request object. A request message for RegionSslPolicies.Get. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -575,7 +573,6 @@ def __call__( The request object. A request message for RegionSslPolicies.Insert. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -686,7 +683,6 @@ def __call__( The request object. A request message for RegionSslPolicies.List. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -773,7 +769,6 @@ def __call__( The request object. A request message for RegionSslPolicies.ListAvailableFeatures. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -864,7 +859,6 @@ def __call__( The request object. A request message for RegionSslPolicies.Patch. See the method description for details. - 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/compute_v1/services/region_target_http_proxies/client.py b/google/cloud/compute_v1/services/region_target_http_proxies/client.py index 911f83d7f..dbc94177c 100644 --- a/google/cloud/compute_v1/services/region_target_http_proxies/client.py +++ b/google/cloud/compute_v1/services/region_target_http_proxies/client.py @@ -441,8 +441,8 @@ def delete_unary( Args: request (Union[google.cloud.compute_v1.types.DeleteRegionTargetHttpProxyRequest, dict]): The request object. A request message for - RegionTargetHttpProxies.Delete. See the method - description for details. + RegionTargetHttpProxies.Delete. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -544,8 +544,8 @@ def delete( Args: request (Union[google.cloud.compute_v1.types.DeleteRegionTargetHttpProxyRequest, dict]): The request object. A request message for - RegionTargetHttpProxies.Delete. See the method - description for details. + RegionTargetHttpProxies.Delete. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -671,8 +671,8 @@ def get( Args: request (Union[google.cloud.compute_v1.types.GetRegionTargetHttpProxyRequest, dict]): The request object. A request message for - RegionTargetHttpProxies.Get. See the method description - for details. + RegionTargetHttpProxies.Get. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -787,8 +787,8 @@ def insert_unary( Args: request (Union[google.cloud.compute_v1.types.InsertRegionTargetHttpProxyRequest, dict]): The request object. A request message for - RegionTargetHttpProxies.Insert. See the method - description for details. + RegionTargetHttpProxies.Insert. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -889,8 +889,8 @@ def insert( Args: request (Union[google.cloud.compute_v1.types.InsertRegionTargetHttpProxyRequest, dict]): The request object. A request message for - RegionTargetHttpProxies.Insert. See the method - description for details. + RegionTargetHttpProxies.Insert. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1015,8 +1015,8 @@ def list( Args: request (Union[google.cloud.compute_v1.types.ListRegionTargetHttpProxiesRequest, dict]): The request object. A request message for - RegionTargetHttpProxies.List. See the method description - for details. + RegionTargetHttpProxies.List. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1120,8 +1120,8 @@ def set_url_map_unary( Args: request (Union[google.cloud.compute_v1.types.SetUrlMapRegionTargetHttpProxyRequest, dict]): The request object. A request message for - RegionTargetHttpProxies.SetUrlMap. See the method - description for details. + RegionTargetHttpProxies.SetUrlMap. See + the method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1233,8 +1233,8 @@ def set_url_map( Args: request (Union[google.cloud.compute_v1.types.SetUrlMapRegionTargetHttpProxyRequest, dict]): The request object. A request message for - RegionTargetHttpProxies.SetUrlMap. See the method - description for details. + RegionTargetHttpProxies.SetUrlMap. See + the method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field diff --git a/google/cloud/compute_v1/services/region_target_http_proxies/transports/rest.py b/google/cloud/compute_v1/services/region_target_http_proxies/transports/rest.py index fb649d0e0..4ef59af32 100644 --- a/google/cloud/compute_v1/services/region_target_http_proxies/transports/rest.py +++ b/google/cloud/compute_v1/services/region_target_http_proxies/transports/rest.py @@ -351,7 +351,6 @@ def __call__( The request object. A request message for RegionTargetHttpProxies.Delete. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -453,7 +452,6 @@ def __call__( The request object. A request message for RegionTargetHttpProxies.Get. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -553,7 +551,6 @@ def __call__( The request object. A request message for RegionTargetHttpProxies.Insert. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -664,7 +661,6 @@ def __call__( The request object. A request message for RegionTargetHttpProxies.List. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -751,7 +747,6 @@ def __call__( The request object. A request message for RegionTargetHttpProxies.SetUrlMap. See the method description for details. - 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/compute_v1/services/region_target_https_proxies/client.py b/google/cloud/compute_v1/services/region_target_https_proxies/client.py index b09e46ce5..3248ff446 100644 --- a/google/cloud/compute_v1/services/region_target_https_proxies/client.py +++ b/google/cloud/compute_v1/services/region_target_https_proxies/client.py @@ -441,8 +441,8 @@ def delete_unary( Args: request (Union[google.cloud.compute_v1.types.DeleteRegionTargetHttpsProxyRequest, dict]): The request object. A request message for - RegionTargetHttpsProxies.Delete. See the method - description for details. + RegionTargetHttpsProxies.Delete. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -544,8 +544,8 @@ def delete( Args: request (Union[google.cloud.compute_v1.types.DeleteRegionTargetHttpsProxyRequest, dict]): The request object. A request message for - RegionTargetHttpsProxies.Delete. See the method - description for details. + RegionTargetHttpsProxies.Delete. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -671,8 +671,8 @@ def get( Args: request (Union[google.cloud.compute_v1.types.GetRegionTargetHttpsProxyRequest, dict]): The request object. A request message for - RegionTargetHttpsProxies.Get. See the method description - for details. + RegionTargetHttpsProxies.Get. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -786,8 +786,8 @@ def insert_unary( Args: request (Union[google.cloud.compute_v1.types.InsertRegionTargetHttpsProxyRequest, dict]): The request object. A request message for - RegionTargetHttpsProxies.Insert. See the method - description for details. + RegionTargetHttpsProxies.Insert. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -888,8 +888,8 @@ def insert( Args: request (Union[google.cloud.compute_v1.types.InsertRegionTargetHttpsProxyRequest, dict]): The request object. A request message for - RegionTargetHttpsProxies.Insert. See the method - description for details. + RegionTargetHttpsProxies.Insert. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1014,8 +1014,8 @@ def list( Args: request (Union[google.cloud.compute_v1.types.ListRegionTargetHttpsProxiesRequest, dict]): The request object. A request message for - RegionTargetHttpsProxies.List. See the method - description for details. + RegionTargetHttpsProxies.List. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1123,8 +1123,8 @@ def patch_unary( Args: request (Union[google.cloud.compute_v1.types.PatchRegionTargetHttpsProxyRequest, dict]): The request object. A request message for - RegionTargetHttpsProxies.Patch. See the method - description for details. + RegionTargetHttpsProxies.Patch. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1237,8 +1237,8 @@ def patch( Args: request (Union[google.cloud.compute_v1.types.PatchRegionTargetHttpsProxyRequest, dict]): The request object. A request message for - RegionTargetHttpsProxies.Patch. See the method - description for details. + RegionTargetHttpsProxies.Patch. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1375,8 +1375,8 @@ def set_ssl_certificates_unary( Args: request (Union[google.cloud.compute_v1.types.SetSslCertificatesRegionTargetHttpsProxyRequest, dict]): The request object. A request message for - RegionTargetHttpsProxies.SetSslCertificates. See the - method description for details. + RegionTargetHttpsProxies.SetSslCertificates. + See the method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1502,8 +1502,8 @@ def set_ssl_certificates( Args: request (Union[google.cloud.compute_v1.types.SetSslCertificatesRegionTargetHttpsProxyRequest, dict]): The request object. A request message for - RegionTargetHttpsProxies.SetSslCertificates. See the - method description for details. + RegionTargetHttpsProxies.SetSslCertificates. + See the method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1652,8 +1652,8 @@ def set_url_map_unary( Args: request (Union[google.cloud.compute_v1.types.SetUrlMapRegionTargetHttpsProxyRequest, dict]): The request object. A request message for - RegionTargetHttpsProxies.SetUrlMap. See the method - description for details. + RegionTargetHttpsProxies.SetUrlMap. See + the method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1765,8 +1765,8 @@ def set_url_map( Args: request (Union[google.cloud.compute_v1.types.SetUrlMapRegionTargetHttpsProxyRequest, dict]): The request object. A request message for - RegionTargetHttpsProxies.SetUrlMap. See the method - description for details. + RegionTargetHttpsProxies.SetUrlMap. See + the method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field diff --git a/google/cloud/compute_v1/services/region_target_https_proxies/transports/rest.py b/google/cloud/compute_v1/services/region_target_https_proxies/transports/rest.py index d29bfabfe..d212759cd 100644 --- a/google/cloud/compute_v1/services/region_target_https_proxies/transports/rest.py +++ b/google/cloud/compute_v1/services/region_target_https_proxies/transports/rest.py @@ -414,7 +414,6 @@ def __call__( The request object. A request message for RegionTargetHttpsProxies.Delete. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -516,7 +515,6 @@ def __call__( The request object. A request message for RegionTargetHttpsProxies.Get. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -615,7 +613,6 @@ def __call__( The request object. A request message for RegionTargetHttpsProxies.Insert. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -726,7 +723,6 @@ def __call__( The request object. A request message for RegionTargetHttpsProxies.List. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -815,7 +811,6 @@ def __call__( The request object. A request message for RegionTargetHttpsProxies.Patch. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -926,7 +921,6 @@ def __call__( The request object. A request message for RegionTargetHttpsProxies.SetSslCertificates. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1041,7 +1035,6 @@ def __call__( The request object. A request message for RegionTargetHttpsProxies.SetUrlMap. See the method description for details. - 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/compute_v1/services/region_target_tcp_proxies/client.py b/google/cloud/compute_v1/services/region_target_tcp_proxies/client.py index 28c5852b1..9223beacb 100644 --- a/google/cloud/compute_v1/services/region_target_tcp_proxies/client.py +++ b/google/cloud/compute_v1/services/region_target_tcp_proxies/client.py @@ -441,8 +441,8 @@ def delete_unary( Args: request (Union[google.cloud.compute_v1.types.DeleteRegionTargetTcpProxyRequest, dict]): The request object. A request message for - RegionTargetTcpProxies.Delete. See the method - description for details. + RegionTargetTcpProxies.Delete. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -544,8 +544,8 @@ def delete( Args: request (Union[google.cloud.compute_v1.types.DeleteRegionTargetTcpProxyRequest, dict]): The request object. A request message for - RegionTargetTcpProxies.Delete. See the method - description for details. + RegionTargetTcpProxies.Delete. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -670,8 +670,8 @@ def get( Args: request (Union[google.cloud.compute_v1.types.GetRegionTargetTcpProxyRequest, dict]): The request object. A request message for - RegionTargetTcpProxies.Get. See the method description - for details. + RegionTargetTcpProxies.Get. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -781,8 +781,8 @@ def insert_unary( Args: request (Union[google.cloud.compute_v1.types.InsertRegionTargetTcpProxyRequest, dict]): The request object. A request message for - RegionTargetTcpProxies.Insert. See the method - description for details. + RegionTargetTcpProxies.Insert. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -883,8 +883,8 @@ def insert( Args: request (Union[google.cloud.compute_v1.types.InsertRegionTargetTcpProxyRequest, dict]): The request object. A request message for - RegionTargetTcpProxies.Insert. See the method - description for details. + RegionTargetTcpProxies.Insert. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1008,8 +1008,8 @@ def list( Args: request (Union[google.cloud.compute_v1.types.ListRegionTargetTcpProxiesRequest, dict]): The request object. A request message for - RegionTargetTcpProxies.List. See the method description - for details. + RegionTargetTcpProxies.List. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field diff --git a/google/cloud/compute_v1/services/region_target_tcp_proxies/transports/rest.py b/google/cloud/compute_v1/services/region_target_tcp_proxies/transports/rest.py index 8c13988cb..981931da5 100644 --- a/google/cloud/compute_v1/services/region_target_tcp_proxies/transports/rest.py +++ b/google/cloud/compute_v1/services/region_target_tcp_proxies/transports/rest.py @@ -320,7 +320,6 @@ def __call__( The request object. A request message for RegionTargetTcpProxies.Delete. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -422,7 +421,6 @@ def __call__( The request object. A request message for RegionTargetTcpProxies.Get. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -517,7 +515,6 @@ def __call__( The request object. A request message for RegionTargetTcpProxies.Insert. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -628,7 +625,6 @@ def __call__( The request object. A request message for RegionTargetTcpProxies.List. See the method description for details. - 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/compute_v1/services/region_url_maps/client.py b/google/cloud/compute_v1/services/region_url_maps/client.py index 494a16845..8bacc226f 100644 --- a/google/cloud/compute_v1/services/region_url_maps/client.py +++ b/google/cloud/compute_v1/services/region_url_maps/client.py @@ -437,8 +437,8 @@ def delete_unary( Args: request (Union[google.cloud.compute_v1.types.DeleteRegionUrlMapRequest, dict]): The request object. A request message for - RegionUrlMaps.Delete. See the method description for - details. + RegionUrlMaps.Delete. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -538,8 +538,8 @@ def delete( Args: request (Union[google.cloud.compute_v1.types.DeleteRegionUrlMapRequest, dict]): The request object. A request message for - RegionUrlMaps.Delete. See the method description for - details. + RegionUrlMaps.Delete. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -664,8 +664,8 @@ def get( Args: request (Union[google.cloud.compute_v1.types.GetRegionUrlMapRequest, dict]): The request object. A request message for - RegionUrlMaps.Get. See the method description for - details. + RegionUrlMaps.Get. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -785,8 +785,8 @@ def insert_unary( Args: request (Union[google.cloud.compute_v1.types.InsertRegionUrlMapRequest, dict]): The request object. A request message for - RegionUrlMaps.Insert. See the method description for - details. + RegionUrlMaps.Insert. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -884,8 +884,8 @@ def insert( Args: request (Union[google.cloud.compute_v1.types.InsertRegionUrlMapRequest, dict]): The request object. A request message for - RegionUrlMaps.Insert. See the method description for - details. + RegionUrlMaps.Insert. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1007,8 +1007,8 @@ def list( Args: request (Union[google.cloud.compute_v1.types.ListRegionUrlMapsRequest, dict]): The request object. A request message for - RegionUrlMaps.List. See the method description for - details. + RegionUrlMaps.List. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1113,8 +1113,8 @@ def patch_unary( Args: request (Union[google.cloud.compute_v1.types.PatchRegionUrlMapRequest, dict]): The request object. A request message for - RegionUrlMaps.Patch. See the method description for - details. + RegionUrlMaps.Patch. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1223,8 +1223,8 @@ def patch( Args: request (Union[google.cloud.compute_v1.types.PatchRegionUrlMapRequest, dict]): The request object. A request message for - RegionUrlMaps.Patch. See the method description for - details. + RegionUrlMaps.Patch. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1356,8 +1356,8 @@ def update_unary( Args: request (Union[google.cloud.compute_v1.types.UpdateRegionUrlMapRequest, dict]): The request object. A request message for - RegionUrlMaps.Update. See the method description for - details. + RegionUrlMaps.Update. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1466,8 +1466,8 @@ def update( Args: request (Union[google.cloud.compute_v1.types.UpdateRegionUrlMapRequest, dict]): The request object. A request message for - RegionUrlMaps.Update. See the method description for - details. + RegionUrlMaps.Update. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1604,8 +1604,8 @@ def validate( Args: request (Union[google.cloud.compute_v1.types.ValidateRegionUrlMapRequest, dict]): The request object. A request message for - RegionUrlMaps.Validate. See the method description for - details. + RegionUrlMaps.Validate. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field diff --git a/google/cloud/compute_v1/services/region_url_maps/transports/rest.py b/google/cloud/compute_v1/services/region_url_maps/transports/rest.py index fbcae4413..5b3c83252 100644 --- a/google/cloud/compute_v1/services/region_url_maps/transports/rest.py +++ b/google/cloud/compute_v1/services/region_url_maps/transports/rest.py @@ -407,7 +407,6 @@ def __call__( The request object. A request message for RegionUrlMaps.Delete. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -509,7 +508,6 @@ def __call__( The request object. A request message for RegionUrlMaps.Get. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -617,7 +615,6 @@ def __call__( The request object. A request message for RegionUrlMaps.Insert. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -728,7 +725,6 @@ def __call__( The request object. A request message for RegionUrlMaps.List. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -815,7 +811,6 @@ def __call__( The request object. A request message for RegionUrlMaps.Patch. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -926,7 +921,6 @@ def __call__( The request object. A request message for RegionUrlMaps.Update. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1037,7 +1031,6 @@ def __call__( The request object. A request message for RegionUrlMaps.Validate. See the method description for details. - 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/compute_v1/services/regions/transports/rest.py b/google/cloud/compute_v1/services/regions/transports/rest.py index 95d13b50b..063d19b16 100644 --- a/google/cloud/compute_v1/services/regions/transports/rest.py +++ b/google/cloud/compute_v1/services/regions/transports/rest.py @@ -255,7 +255,6 @@ def __call__( request (~.compute.GetRegionRequest): The request object. A request message for Regions.Get. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -345,7 +344,6 @@ def __call__( request (~.compute.ListRegionsRequest): The request object. A request message for Regions.List. See the method description for details. - 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/compute_v1/services/reservations/client.py b/google/cloud/compute_v1/services/reservations/client.py index 0e47f5196..250143134 100644 --- a/google/cloud/compute_v1/services/reservations/client.py +++ b/google/cloud/compute_v1/services/reservations/client.py @@ -437,8 +437,8 @@ def aggregated_list( Args: request (Union[google.cloud.compute_v1.types.AggregatedListReservationsRequest, dict]): The request object. A request message for - Reservations.AggregatedList. See the method description - for details. + Reservations.AggregatedList. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -525,8 +525,8 @@ def delete_unary( Args: request (Union[google.cloud.compute_v1.types.DeleteReservationRequest, dict]): The request object. A request message for - Reservations.Delete. See the method description for - details. + Reservations.Delete. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -622,8 +622,8 @@ def delete( Args: request (Union[google.cloud.compute_v1.types.DeleteReservationRequest, dict]): The request object. A request message for - Reservations.Delete. See the method description for - details. + Reservations.Delete. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -745,8 +745,8 @@ def get( Args: request (Union[google.cloud.compute_v1.types.GetReservationRequest, dict]): The request object. A request message for - Reservations.Get. See the method description for - details. + Reservations.Get. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -847,8 +847,8 @@ def get_iam_policy( Args: request (Union[google.cloud.compute_v1.types.GetIamPolicyReservationRequest, dict]): The request object. A request message for - Reservations.GetIamPolicy. See the method description - for details. + Reservations.GetIamPolicy. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -987,8 +987,8 @@ def insert_unary( Args: request (Union[google.cloud.compute_v1.types.InsertReservationRequest, dict]): The request object. A request message for - Reservations.Insert. See the method description for - details. + Reservations.Insert. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1084,8 +1084,8 @@ def insert( Args: request (Union[google.cloud.compute_v1.types.InsertReservationRequest, dict]): The request object. A request message for - Reservations.Insert. See the method description for - details. + Reservations.Insert. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1205,8 +1205,8 @@ def list( Args: request (Union[google.cloud.compute_v1.types.ListReservationsRequest, dict]): The request object. A request message for - Reservations.List. See the method description for - details. + Reservations.List. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1309,8 +1309,8 @@ def resize_unary( Args: request (Union[google.cloud.compute_v1.types.ResizeReservationRequest, dict]): The request object. A request message for - Reservations.Resize. See the method description for - details. + Reservations.Resize. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1422,8 +1422,8 @@ def resize( Args: request (Union[google.cloud.compute_v1.types.ResizeReservationRequest, dict]): The request object. A request message for - Reservations.Resize. See the method description for - details. + Reservations.Resize. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1557,8 +1557,8 @@ def set_iam_policy( Args: request (Union[google.cloud.compute_v1.types.SetIamPolicyReservationRequest, dict]): The request object. A request message for - Reservations.SetIamPolicy. See the method description - for details. + Reservations.SetIamPolicy. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1713,8 +1713,8 @@ def test_iam_permissions( Args: request (Union[google.cloud.compute_v1.types.TestIamPermissionsReservationRequest, dict]): The request object. A request message for - Reservations.TestIamPermissions. See the method - description for details. + Reservations.TestIamPermissions. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1824,8 +1824,8 @@ def update_unary( Args: request (Union[google.cloud.compute_v1.types.UpdateReservationRequest, dict]): The request object. A request message for - Reservations.Update. See the method description for - details. + Reservations.Update. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1929,8 +1929,8 @@ def update( Args: request (Union[google.cloud.compute_v1.types.UpdateReservationRequest, dict]): The request object. A request message for - Reservations.Update. See the method description for - details. + Reservations.Update. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field diff --git a/google/cloud/compute_v1/services/reservations/transports/rest.py b/google/cloud/compute_v1/services/reservations/transports/rest.py index 8c73b75e4..2e294a288 100644 --- a/google/cloud/compute_v1/services/reservations/transports/rest.py +++ b/google/cloud/compute_v1/services/reservations/transports/rest.py @@ -496,7 +496,6 @@ def __call__( The request object. A request message for Reservations.AggregatedList. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -583,7 +582,6 @@ def __call__( The request object. A request message for Reservations.Delete. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -685,7 +683,6 @@ def __call__( The request object. A request message for Reservations.Get. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -778,7 +775,6 @@ def __call__( The request object. A request message for Reservations.GetIamPolicy. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -906,7 +902,6 @@ def __call__( The request object. A request message for Reservations.Insert. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1017,7 +1012,6 @@ def __call__( The request object. A request message for Reservations.List. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1104,7 +1098,6 @@ def __call__( The request object. A request message for Reservations.Resize. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1215,7 +1208,6 @@ def __call__( The request object. A request message for Reservations.SetIamPolicy. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1352,7 +1344,6 @@ def __call__( The request object. A request message for Reservations.TestIamPermissions. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1450,7 +1441,6 @@ def __call__( The request object. A request message for Reservations.Update. See the method description for details. - 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/compute_v1/services/resource_policies/client.py b/google/cloud/compute_v1/services/resource_policies/client.py index abc985dba..c40e3e70c 100644 --- a/google/cloud/compute_v1/services/resource_policies/client.py +++ b/google/cloud/compute_v1/services/resource_policies/client.py @@ -439,8 +439,8 @@ def aggregated_list( Args: request (Union[google.cloud.compute_v1.types.AggregatedListResourcePoliciesRequest, dict]): The request object. A request message for - ResourcePolicies.AggregatedList. See the method - description for details. + ResourcePolicies.AggregatedList. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -527,8 +527,8 @@ def delete_unary( Args: request (Union[google.cloud.compute_v1.types.DeleteResourcePolicyRequest, dict]): The request object. A request message for - ResourcePolicies.Delete. See the method description for - details. + ResourcePolicies.Delete. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -626,8 +626,8 @@ def delete( Args: request (Union[google.cloud.compute_v1.types.DeleteResourcePolicyRequest, dict]): The request object. A request message for - ResourcePolicies.Delete. See the method description for - details. + ResourcePolicies.Delete. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -751,8 +751,8 @@ def get( Args: request (Union[google.cloud.compute_v1.types.GetResourcePolicyRequest, dict]): The request object. A request message for - ResourcePolicies.Get. See the method description for - details. + ResourcePolicies.Get. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -857,8 +857,8 @@ def get_iam_policy( Args: request (Union[google.cloud.compute_v1.types.GetIamPolicyResourcePolicyRequest, dict]): The request object. A request message for - ResourcePolicies.GetIamPolicy. See the method - description for details. + ResourcePolicies.GetIamPolicy. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -996,8 +996,8 @@ def insert_unary( Args: request (Union[google.cloud.compute_v1.types.InsertResourcePolicyRequest, dict]): The request object. A request message for - ResourcePolicies.Insert. See the method description for - details. + ResourcePolicies.Insert. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1092,8 +1092,8 @@ def insert( Args: request (Union[google.cloud.compute_v1.types.InsertResourcePolicyRequest, dict]): The request object. A request message for - ResourcePolicies.Insert. See the method description for - details. + ResourcePolicies.Insert. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1214,8 +1214,8 @@ def list( Args: request (Union[google.cloud.compute_v1.types.ListResourcePoliciesRequest, dict]): The request object. A request message for - ResourcePolicies.List. See the method description for - details. + ResourcePolicies.List. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1319,8 +1319,8 @@ def set_iam_policy( Args: request (Union[google.cloud.compute_v1.types.SetIamPolicyResourcePolicyRequest, dict]): The request object. A request message for - ResourcePolicies.SetIamPolicy. See the method - description for details. + ResourcePolicies.SetIamPolicy. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1475,8 +1475,8 @@ def test_iam_permissions( Args: request (Union[google.cloud.compute_v1.types.TestIamPermissionsResourcePolicyRequest, dict]): The request object. A request message for - ResourcePolicies.TestIamPermissions. See the method - description for details. + ResourcePolicies.TestIamPermissions. See + the method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field diff --git a/google/cloud/compute_v1/services/resource_policies/transports/rest.py b/google/cloud/compute_v1/services/resource_policies/transports/rest.py index 615f65920..f3e8119ac 100644 --- a/google/cloud/compute_v1/services/resource_policies/transports/rest.py +++ b/google/cloud/compute_v1/services/resource_policies/transports/rest.py @@ -444,7 +444,6 @@ def __call__( The request object. A request message for ResourcePolicies.AggregatedList. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -531,7 +530,6 @@ def __call__( The request object. A request message for ResourcePolicies.Delete. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -633,7 +631,6 @@ def __call__( The request object. A request message for ResourcePolicies.Get. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -726,7 +723,6 @@ def __call__( The request object. A request message for ResourcePolicies.GetIamPolicy. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -854,7 +850,6 @@ def __call__( The request object. A request message for ResourcePolicies.Insert. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -965,7 +960,6 @@ def __call__( The request object. A request message for ResourcePolicies.List. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1052,7 +1046,6 @@ def __call__( The request object. A request message for ResourcePolicies.SetIamPolicy. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1189,7 +1182,6 @@ def __call__( The request object. A request message for ResourcePolicies.TestIamPermissions. See the method description for details. - 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/compute_v1/services/routers/client.py b/google/cloud/compute_v1/services/routers/client.py index eb084d1aa..e5882f00a 100644 --- a/google/cloud/compute_v1/services/routers/client.py +++ b/google/cloud/compute_v1/services/routers/client.py @@ -435,8 +435,8 @@ def aggregated_list( Args: request (Union[google.cloud.compute_v1.types.AggregatedListRoutersRequest, dict]): The request object. A request message for - Routers.AggregatedList. See the method description for - details. + Routers.AggregatedList. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -522,8 +522,8 @@ def delete_unary( Args: request (Union[google.cloud.compute_v1.types.DeleteRouterRequest, dict]): - The request object. A request message for - Routers.Delete. See the method description for details. + The request object. A request message for Routers.Delete. + See the method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -620,8 +620,8 @@ def delete( Args: request (Union[google.cloud.compute_v1.types.DeleteRouterRequest, dict]): - The request object. A request message for - Routers.Delete. See the method description for details. + The request object. A request message for Routers.Delete. + See the method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -844,8 +844,8 @@ def get_nat_mapping_info( Args: request (Union[google.cloud.compute_v1.types.GetNatMappingInfoRoutersRequest, dict]): The request object. A request message for - Routers.GetNatMappingInfo. See the method description - for details. + Routers.GetNatMappingInfo. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -957,8 +957,8 @@ def get_router_status( Args: request (Union[google.cloud.compute_v1.types.GetRouterStatusRouterRequest, dict]): The request object. A request message for - Routers.GetRouterStatus. See the method description for - details. + Routers.GetRouterStatus. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1052,8 +1052,8 @@ def insert_unary( Args: request (Union[google.cloud.compute_v1.types.InsertRouterRequest, dict]): - The request object. A request message for - Routers.Insert. See the method description for details. + The request object. A request message for Routers.Insert. + See the method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1148,8 +1148,8 @@ def insert( Args: request (Union[google.cloud.compute_v1.types.InsertRouterRequest, dict]): - The request object. A request message for - Routers.Insert. See the method description for details. + The request object. A request message for Routers.Insert. + See the method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1610,7 +1610,8 @@ def preview( Args: request (Union[google.cloud.compute_v1.types.PreviewRouterRequest, dict]): The request object. A request message for - Routers.Preview. See the method description for details. + Routers.Preview. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1716,8 +1717,8 @@ def update_unary( Args: request (Union[google.cloud.compute_v1.types.UpdateRouterRequest, dict]): - The request object. A request message for - Routers.Update. See the method description for details. + The request object. A request message for Routers.Update. + See the method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1827,8 +1828,8 @@ def update( Args: request (Union[google.cloud.compute_v1.types.UpdateRouterRequest, dict]): - The request object. A request message for - Routers.Update. See the method description for details. + The request object. A request message for Routers.Update. + See the method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field diff --git a/google/cloud/compute_v1/services/routers/transports/rest.py b/google/cloud/compute_v1/services/routers/transports/rest.py index 06c170188..2fc86a39c 100644 --- a/google/cloud/compute_v1/services/routers/transports/rest.py +++ b/google/cloud/compute_v1/services/routers/transports/rest.py @@ -486,7 +486,6 @@ def __call__( The request object. A request message for Routers.AggregatedList. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -572,7 +571,6 @@ def __call__( request (~.compute.DeleteRouterRequest): The request object. A request message for Routers.Delete. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -673,7 +671,6 @@ def __call__( request (~.compute.GetRouterRequest): The request object. A request message for Routers.Get. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -763,7 +760,6 @@ def __call__( The request object. A request message for Routers.GetNatMappingInfo. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -854,7 +850,6 @@ def __call__( The request object. A request message for Routers.GetRouterStatus. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -942,7 +937,6 @@ def __call__( request (~.compute.InsertRouterRequest): The request object. A request message for Routers.Insert. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1052,7 +1046,6 @@ def __call__( request (~.compute.ListRoutersRequest): The request object. A request message for Routers.List. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1138,7 +1131,6 @@ def __call__( request (~.compute.PatchRouterRequest): The request object. A request message for Routers.Patch. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1249,7 +1241,6 @@ def __call__( The request object. A request message for Routers.Preview. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1344,7 +1335,6 @@ def __call__( request (~.compute.UpdateRouterRequest): The request object. A request message for Routers.Update. See the method description for details. - 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/compute_v1/services/routes/client.py b/google/cloud/compute_v1/services/routes/client.py index 0d506aeba..22d314363 100644 --- a/google/cloud/compute_v1/services/routes/client.py +++ b/google/cloud/compute_v1/services/routes/client.py @@ -633,8 +633,8 @@ def get( Args: request (Union[google.cloud.compute_v1.types.GetRouteRequest, dict]): - The request object. A request message for Routes.Get. - See the method description for details. + The request object. A request message for Routes.Get. See + the method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field diff --git a/google/cloud/compute_v1/services/routes/transports/rest.py b/google/cloud/compute_v1/services/routes/transports/rest.py index 1cca34a25..847a5d074 100644 --- a/google/cloud/compute_v1/services/routes/transports/rest.py +++ b/google/cloud/compute_v1/services/routes/transports/rest.py @@ -309,7 +309,6 @@ def __call__( request (~.compute.DeleteRouteRequest): The request object. A request message for Routes.Delete. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -410,7 +409,6 @@ def __call__( request (~.compute.GetRouteRequest): The request object. A request message for Routes.Get. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -502,7 +500,6 @@ def __call__( request (~.compute.InsertRouteRequest): The request object. A request message for Routes.Insert. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -612,7 +609,6 @@ def __call__( request (~.compute.ListRoutesRequest): The request object. A request message for Routes.List. See the method description for details. - 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/compute_v1/services/security_policies/client.py b/google/cloud/compute_v1/services/security_policies/client.py index bc0c71c0a..d961902fe 100644 --- a/google/cloud/compute_v1/services/security_policies/client.py +++ b/google/cloud/compute_v1/services/security_policies/client.py @@ -439,8 +439,8 @@ def add_rule_unary( Args: request (Union[google.cloud.compute_v1.types.AddRuleSecurityPolicyRequest, dict]): The request object. A request message for - SecurityPolicies.AddRule. See the method description for - details. + SecurityPolicies.AddRule. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -539,8 +539,8 @@ def add_rule( Args: request (Union[google.cloud.compute_v1.types.AddRuleSecurityPolicyRequest, dict]): The request object. A request message for - SecurityPolicies.AddRule. See the method description for - details. + SecurityPolicies.AddRule. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -664,8 +664,8 @@ def aggregated_list( Args: request (Union[google.cloud.compute_v1.types.AggregatedListSecurityPoliciesRequest, dict]): The request object. A request message for - SecurityPolicies.AggregatedList. See the method - description for details. + SecurityPolicies.AggregatedList. See the + method description for details. project (str): Name of the project scoping this request. @@ -752,8 +752,8 @@ def delete_unary( Args: request (Union[google.cloud.compute_v1.types.DeleteSecurityPolicyRequest, dict]): The request object. A request message for - SecurityPolicies.Delete. See the method description for - details. + SecurityPolicies.Delete. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -842,8 +842,8 @@ def delete( Args: request (Union[google.cloud.compute_v1.types.DeleteSecurityPolicyRequest, dict]): The request object. A request message for - SecurityPolicies.Delete. See the method description for - details. + SecurityPolicies.Delete. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -957,8 +957,8 @@ def get( Args: request (Union[google.cloud.compute_v1.types.GetSecurityPolicyRequest, dict]): The request object. A request message for - SecurityPolicies.Get. See the method description for - details. + SecurityPolicies.Get. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1049,8 +1049,8 @@ def get_rule( Args: request (Union[google.cloud.compute_v1.types.GetRuleSecurityPolicyRequest, dict]): The request object. A request message for - SecurityPolicies.GetRule. See the method description for - details. + SecurityPolicies.GetRule. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1142,8 +1142,8 @@ def insert_unary( Args: request (Union[google.cloud.compute_v1.types.InsertSecurityPolicyRequest, dict]): The request object. A request message for - SecurityPolicies.Insert. See the method description for - details. + SecurityPolicies.Insert. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1226,8 +1226,8 @@ def insert( Args: request (Union[google.cloud.compute_v1.types.InsertSecurityPolicyRequest, dict]): The request object. A request message for - SecurityPolicies.Insert. See the method description for - details. + SecurityPolicies.Insert. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1333,8 +1333,8 @@ def list( Args: request (Union[google.cloud.compute_v1.types.ListSecurityPoliciesRequest, dict]): The request object. A request message for - SecurityPolicies.List. See the method description for - details. + SecurityPolicies.List. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1421,8 +1421,8 @@ def list_preconfigured_expression_sets( Args: request (Union[google.cloud.compute_v1.types.ListPreconfiguredExpressionSetsSecurityPoliciesRequest, dict]): The request object. A request message for - SecurityPolicies.ListPreconfiguredExpressionSets. See - the method description for details. + SecurityPolicies.ListPreconfiguredExpressionSets. + See the method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1507,8 +1507,8 @@ def patch_unary( Args: request (Union[google.cloud.compute_v1.types.PatchSecurityPolicyRequest, dict]): The request object. A request message for - SecurityPolicies.Patch. See the method description for - details. + SecurityPolicies.Patch. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1610,8 +1610,8 @@ def patch( Args: request (Union[google.cloud.compute_v1.types.PatchSecurityPolicyRequest, dict]): The request object. A request message for - SecurityPolicies.Patch. See the method description for - details. + SecurityPolicies.Patch. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1732,8 +1732,8 @@ def patch_rule_unary( Args: request (Union[google.cloud.compute_v1.types.PatchRuleSecurityPolicyRequest, dict]): The request object. A request message for - SecurityPolicies.PatchRule. See the method description - for details. + SecurityPolicies.PatchRule. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1832,8 +1832,8 @@ def patch_rule( Args: request (Union[google.cloud.compute_v1.types.PatchRuleSecurityPolicyRequest, dict]): The request object. A request message for - SecurityPolicies.PatchRule. See the method description - for details. + SecurityPolicies.PatchRule. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1955,8 +1955,8 @@ def remove_rule_unary( Args: request (Union[google.cloud.compute_v1.types.RemoveRuleSecurityPolicyRequest, dict]): The request object. A request message for - SecurityPolicies.RemoveRule. See the method description - for details. + SecurityPolicies.RemoveRule. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -2045,8 +2045,8 @@ def remove_rule( Args: request (Union[google.cloud.compute_v1.types.RemoveRuleSecurityPolicyRequest, dict]): The request object. A request message for - SecurityPolicies.RemoveRule. See the method description - for details. + SecurityPolicies.RemoveRule. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -2163,8 +2163,8 @@ def set_labels_unary( Args: request (Union[google.cloud.compute_v1.types.SetLabelsSecurityPolicyRequest, dict]): The request object. A request message for - SecurityPolicies.SetLabels. See the method description - for details. + SecurityPolicies.SetLabels. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -2268,8 +2268,8 @@ def set_labels( Args: request (Union[google.cloud.compute_v1.types.SetLabelsSecurityPolicyRequest, dict]): The request object. A request message for - SecurityPolicies.SetLabels. See the method description - for details. + SecurityPolicies.SetLabels. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field diff --git a/google/cloud/compute_v1/services/security_policies/transports/rest.py b/google/cloud/compute_v1/services/security_policies/transports/rest.py index a17edeb02..c94c4defb 100644 --- a/google/cloud/compute_v1/services/security_policies/transports/rest.py +++ b/google/cloud/compute_v1/services/security_policies/transports/rest.py @@ -563,7 +563,6 @@ def __call__( The request object. A request message for SecurityPolicies.AddRule. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -674,7 +673,6 @@ def __call__( The request object. A request message for SecurityPolicies.AggregatedList. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -761,7 +759,6 @@ def __call__( The request object. A request message for SecurityPolicies.Delete. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -863,7 +860,6 @@ def __call__( The request object. A request message for SecurityPolicies.Get. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -956,7 +952,6 @@ def __call__( The request object. A request message for SecurityPolicies.GetRule. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1047,7 +1042,6 @@ def __call__( The request object. A request message for SecurityPolicies.Insert. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1158,7 +1152,6 @@ def __call__( The request object. A request message for SecurityPolicies.List. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1246,7 +1239,6 @@ def __call__( The request object. A request message for SecurityPolicies.ListPreconfiguredExpressionSets. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1344,7 +1336,6 @@ def __call__( The request object. A request message for SecurityPolicies.Patch. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1455,7 +1446,6 @@ def __call__( The request object. A request message for SecurityPolicies.PatchRule. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1566,7 +1556,6 @@ def __call__( The request object. A request message for SecurityPolicies.RemoveRule. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1668,7 +1657,6 @@ def __call__( The request object. A request message for SecurityPolicies.SetLabels. See the method description for details. - 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/compute_v1/services/service_attachments/client.py b/google/cloud/compute_v1/services/service_attachments/client.py index b43c7ed03..df98175ac 100644 --- a/google/cloud/compute_v1/services/service_attachments/client.py +++ b/google/cloud/compute_v1/services/service_attachments/client.py @@ -441,8 +441,8 @@ def aggregated_list( Args: request (Union[google.cloud.compute_v1.types.AggregatedListServiceAttachmentsRequest, dict]): The request object. A request message for - ServiceAttachments.AggregatedList. See the method - description for details. + ServiceAttachments.AggregatedList. See + the method description for details. project (str): Name of the project scoping this request. @@ -533,8 +533,8 @@ def delete_unary( Args: request (Union[google.cloud.compute_v1.types.DeleteServiceAttachmentRequest, dict]): The request object. A request message for - ServiceAttachments.Delete. See the method description - for details. + ServiceAttachments.Delete. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -633,8 +633,8 @@ def delete( Args: request (Union[google.cloud.compute_v1.types.DeleteServiceAttachmentRequest, dict]): The request object. A request message for - ServiceAttachments.Delete. See the method description - for details. + ServiceAttachments.Delete. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -758,8 +758,8 @@ def get( Args: request (Union[google.cloud.compute_v1.types.GetServiceAttachmentRequest, dict]): The request object. A request message for - ServiceAttachments.Get. See the method description for - details. + ServiceAttachments.Get. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -867,8 +867,8 @@ def get_iam_policy( Args: request (Union[google.cloud.compute_v1.types.GetIamPolicyServiceAttachmentRequest, dict]): The request object. A request message for - ServiceAttachments.GetIamPolicy. See the method - description for details. + ServiceAttachments.GetIamPolicy. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1008,8 +1008,8 @@ def insert_unary( Args: request (Union[google.cloud.compute_v1.types.InsertServiceAttachmentRequest, dict]): The request object. A request message for - ServiceAttachments.Insert. See the method description - for details. + ServiceAttachments.Insert. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1106,8 +1106,8 @@ def insert( Args: request (Union[google.cloud.compute_v1.types.InsertServiceAttachmentRequest, dict]): The request object. A request message for - ServiceAttachments.Insert. See the method description - for details. + ServiceAttachments.Insert. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1227,8 +1227,8 @@ def list( Args: request (Union[google.cloud.compute_v1.types.ListServiceAttachmentsRequest, dict]): The request object. A request message for - ServiceAttachments.List. See the method description for - details. + ServiceAttachments.List. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1330,8 +1330,8 @@ def patch_unary( Args: request (Union[google.cloud.compute_v1.types.PatchServiceAttachmentRequest, dict]): The request object. A request message for - ServiceAttachments.Patch. See the method description for - details. + ServiceAttachments.Patch. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1446,8 +1446,8 @@ def patch( Args: request (Union[google.cloud.compute_v1.types.PatchServiceAttachmentRequest, dict]): The request object. A request message for - ServiceAttachments.Patch. See the method description for - details. + ServiceAttachments.Patch. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1589,8 +1589,8 @@ def set_iam_policy( Args: request (Union[google.cloud.compute_v1.types.SetIamPolicyServiceAttachmentRequest, dict]): The request object. A request message for - ServiceAttachments.SetIamPolicy. See the method - description for details. + ServiceAttachments.SetIamPolicy. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1745,8 +1745,8 @@ def test_iam_permissions( Args: request (Union[google.cloud.compute_v1.types.TestIamPermissionsServiceAttachmentRequest, dict]): The request object. A request message for - ServiceAttachments.TestIamPermissions. See the method - description for details. + ServiceAttachments.TestIamPermissions. + See the method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field diff --git a/google/cloud/compute_v1/services/service_attachments/transports/rest.py b/google/cloud/compute_v1/services/service_attachments/transports/rest.py index 5aa628977..3ce16852d 100644 --- a/google/cloud/compute_v1/services/service_attachments/transports/rest.py +++ b/google/cloud/compute_v1/services/service_attachments/transports/rest.py @@ -475,7 +475,6 @@ def __call__( The request object. A request message for ServiceAttachments.AggregatedList. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -564,7 +563,6 @@ def __call__( The request object. A request message for ServiceAttachments.Delete. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -666,7 +664,6 @@ def __call__( The request object. A request message for ServiceAttachments.Get. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -762,7 +759,6 @@ def __call__( The request object. A request message for ServiceAttachments.GetIamPolicy. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -890,7 +886,6 @@ def __call__( The request object. A request message for ServiceAttachments.Insert. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1001,7 +996,6 @@ def __call__( The request object. A request message for ServiceAttachments.List. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1088,7 +1082,6 @@ def __call__( The request object. A request message for ServiceAttachments.Patch. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1199,7 +1192,6 @@ def __call__( The request object. A request message for ServiceAttachments.SetIamPolicy. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1336,7 +1328,6 @@ def __call__( The request object. A request message for ServiceAttachments.TestIamPermissions. See the method description for details. - 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/compute_v1/services/snapshots/client.py b/google/cloud/compute_v1/services/snapshots/client.py index 05571a12f..9248f3661 100644 --- a/google/cloud/compute_v1/services/snapshots/client.py +++ b/google/cloud/compute_v1/services/snapshots/client.py @@ -442,8 +442,8 @@ def delete_unary( Args: request (Union[google.cloud.compute_v1.types.DeleteSnapshotRequest, dict]): The request object. A request message for - Snapshots.Delete. See the method description for - details. + Snapshots.Delete. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -538,8 +538,8 @@ def delete( Args: request (Union[google.cloud.compute_v1.types.DeleteSnapshotRequest, dict]): The request object. A request message for - Snapshots.Delete. See the method description for - details. + Snapshots.Delete. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -745,8 +745,8 @@ def get_iam_policy( Args: request (Union[google.cloud.compute_v1.types.GetIamPolicySnapshotRequest, dict]): The request object. A request message for - Snapshots.GetIamPolicy. See the method description for - details. + Snapshots.GetIamPolicy. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -878,8 +878,8 @@ def insert_unary( Args: request (Union[google.cloud.compute_v1.types.InsertSnapshotRequest, dict]): The request object. A request message for - Snapshots.Insert. See the method description for - details. + Snapshots.Insert. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -966,8 +966,8 @@ def insert( Args: request (Union[google.cloud.compute_v1.types.InsertSnapshotRequest, dict]): The request object. A request message for - Snapshots.Insert. See the method description for - details. + Snapshots.Insert. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1072,8 +1072,8 @@ def list( Args: request (Union[google.cloud.compute_v1.types.ListSnapshotsRequest, dict]): - The request object. A request message for - Snapshots.List. See the method description for details. + The request object. A request message for Snapshots.List. + See the method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1164,8 +1164,8 @@ def set_iam_policy( Args: request (Union[google.cloud.compute_v1.types.SetIamPolicySnapshotRequest, dict]): The request object. A request message for - Snapshots.SetIamPolicy. See the method description for - details. + Snapshots.SetIamPolicy. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1307,8 +1307,8 @@ def set_labels_unary( Args: request (Union[google.cloud.compute_v1.types.SetLabelsSnapshotRequest, dict]): The request object. A request message for - Snapshots.SetLabels. See the method description for - details. + Snapshots.SetLabels. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1412,8 +1412,8 @@ def set_labels( Args: request (Union[google.cloud.compute_v1.types.SetLabelsSnapshotRequest, dict]): The request object. A request message for - Snapshots.SetLabels. See the method description for - details. + Snapshots.SetLabels. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1543,8 +1543,8 @@ def test_iam_permissions( Args: request (Union[google.cloud.compute_v1.types.TestIamPermissionsSnapshotRequest, dict]): The request object. A request message for - Snapshots.TestIamPermissions. See the method description - for details. + Snapshots.TestIamPermissions. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field diff --git a/google/cloud/compute_v1/services/snapshots/transports/rest.py b/google/cloud/compute_v1/services/snapshots/transports/rest.py index f220459be..a2356f036 100644 --- a/google/cloud/compute_v1/services/snapshots/transports/rest.py +++ b/google/cloud/compute_v1/services/snapshots/transports/rest.py @@ -432,7 +432,6 @@ def __call__( The request object. A request message for Snapshots.Delete. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -533,7 +532,6 @@ def __call__( request (~.compute.GetSnapshotRequest): The request object. A request message for Snapshots.Get. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -625,7 +623,6 @@ def __call__( The request object. A request message for Snapshots.GetIamPolicy. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -753,7 +750,6 @@ def __call__( The request object. A request message for Snapshots.Insert. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -863,7 +859,6 @@ def __call__( request (~.compute.ListSnapshotsRequest): The request object. A request message for Snapshots.List. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -952,7 +947,6 @@ def __call__( The request object. A request message for Snapshots.SetIamPolicy. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1089,7 +1083,6 @@ def __call__( The request object. A request message for Snapshots.SetLabels. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1200,7 +1193,6 @@ def __call__( The request object. A request message for Snapshots.TestIamPermissions. See the method description for details. - 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/compute_v1/services/ssl_certificates/client.py b/google/cloud/compute_v1/services/ssl_certificates/client.py index 6cef0b86d..8bc10d0a0 100644 --- a/google/cloud/compute_v1/services/ssl_certificates/client.py +++ b/google/cloud/compute_v1/services/ssl_certificates/client.py @@ -440,8 +440,8 @@ def aggregated_list( Args: request (Union[google.cloud.compute_v1.types.AggregatedListSslCertificatesRequest, dict]): The request object. A request message for - SslCertificates.AggregatedList. See the method - description for details. + SslCertificates.AggregatedList. See the + method description for details. project (str): Name of the project scoping this request. @@ -528,8 +528,8 @@ def delete_unary( Args: request (Union[google.cloud.compute_v1.types.DeleteSslCertificateRequest, dict]): The request object. A request message for - SslCertificates.Delete. See the method description for - details. + SslCertificates.Delete. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -618,8 +618,8 @@ def delete( Args: request (Union[google.cloud.compute_v1.types.DeleteSslCertificateRequest, dict]): The request object. A request message for - SslCertificates.Delete. See the method description for - details. + SslCertificates.Delete. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -732,8 +732,8 @@ def get( Args: request (Union[google.cloud.compute_v1.types.GetSslCertificateRequest, dict]): The request object. A request message for - SslCertificates.Get. See the method description for - details. + SslCertificates.Get. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -837,8 +837,8 @@ def insert_unary( Args: request (Union[google.cloud.compute_v1.types.InsertSslCertificateRequest, dict]): The request object. A request message for - SslCertificates.Insert. See the method description for - details. + SslCertificates.Insert. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -921,8 +921,8 @@ def insert( Args: request (Union[google.cloud.compute_v1.types.InsertSslCertificateRequest, dict]): The request object. A request message for - SslCertificates.Insert. See the method description for - details. + SslCertificates.Insert. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1028,8 +1028,8 @@ def list( Args: request (Union[google.cloud.compute_v1.types.ListSslCertificatesRequest, dict]): The request object. A request message for - SslCertificates.List. See the method description for - details. + SslCertificates.List. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field diff --git a/google/cloud/compute_v1/services/ssl_certificates/transports/rest.py b/google/cloud/compute_v1/services/ssl_certificates/transports/rest.py index 6f895f697..66ef8b608 100644 --- a/google/cloud/compute_v1/services/ssl_certificates/transports/rest.py +++ b/google/cloud/compute_v1/services/ssl_certificates/transports/rest.py @@ -351,7 +351,6 @@ def __call__( The request object. A request message for SslCertificates.AggregatedList. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -438,7 +437,6 @@ def __call__( The request object. A request message for SslCertificates.Delete. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -540,7 +538,6 @@ def __call__( The request object. A request message for SslCertificates.Get. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -643,7 +640,6 @@ def __call__( The request object. A request message for SslCertificates.Insert. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -754,7 +750,6 @@ def __call__( The request object. A request message for SslCertificates.List. See the method description for details. - 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/compute_v1/services/ssl_policies/client.py b/google/cloud/compute_v1/services/ssl_policies/client.py index f20169a1b..bda9410dc 100644 --- a/google/cloud/compute_v1/services/ssl_policies/client.py +++ b/google/cloud/compute_v1/services/ssl_policies/client.py @@ -436,8 +436,8 @@ def aggregated_list( Args: request (Union[google.cloud.compute_v1.types.AggregatedListSslPoliciesRequest, dict]): The request object. A request message for - SslPolicies.AggregatedList. See the method description - for details. + SslPolicies.AggregatedList. See the + method description for details. project (str): Name of the project scoping this request. @@ -526,8 +526,8 @@ def delete_unary( Args: request (Union[google.cloud.compute_v1.types.DeleteSslPolicyRequest, dict]): The request object. A request message for - SslPolicies.Delete. See the method description for - details. + SslPolicies.Delete. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -619,8 +619,8 @@ def delete( Args: request (Union[google.cloud.compute_v1.types.DeleteSslPolicyRequest, dict]): The request object. A request message for - SslPolicies.Delete. See the method description for - details. + SslPolicies.Delete. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -735,7 +735,8 @@ def get( Args: request (Union[google.cloud.compute_v1.types.GetSslPolicyRequest, dict]): The request object. A request message for - SslPolicies.Get. See the method description for details. + SslPolicies.Get. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -829,8 +830,8 @@ def insert_unary( Args: request (Union[google.cloud.compute_v1.types.InsertSslPolicyRequest, dict]): The request object. A request message for - SslPolicies.Insert. See the method description for - details. + SslPolicies.Insert. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -912,8 +913,8 @@ def insert( Args: request (Union[google.cloud.compute_v1.types.InsertSslPolicyRequest, dict]): The request object. A request message for - SslPolicies.Insert. See the method description for - details. + SslPolicies.Insert. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1019,8 +1020,8 @@ def list( Args: request (Union[google.cloud.compute_v1.types.ListSslPoliciesRequest, dict]): The request object. A request message for - SslPolicies.List. See the method description for - details. + SslPolicies.List. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1107,8 +1108,8 @@ def list_available_features( Args: request (Union[google.cloud.compute_v1.types.ListAvailableFeaturesSslPoliciesRequest, dict]): The request object. A request message for - SslPolicies.ListAvailableFeatures. See the method - description for details. + SslPolicies.ListAvailableFeatures. See + the method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1183,8 +1184,8 @@ def patch_unary( Args: request (Union[google.cloud.compute_v1.types.PatchSslPolicyRequest, dict]): The request object. A request message for - SslPolicies.Patch. See the method description for - details. + SslPolicies.Patch. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1283,8 +1284,8 @@ def patch( Args: request (Union[google.cloud.compute_v1.types.PatchSslPolicyRequest, dict]): The request object. A request message for - SslPolicies.Patch. See the method description for - details. + SslPolicies.Patch. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field diff --git a/google/cloud/compute_v1/services/ssl_policies/transports/rest.py b/google/cloud/compute_v1/services/ssl_policies/transports/rest.py index d29764ab7..d84ec9885 100644 --- a/google/cloud/compute_v1/services/ssl_policies/transports/rest.py +++ b/google/cloud/compute_v1/services/ssl_policies/transports/rest.py @@ -409,7 +409,6 @@ def __call__( The request object. A request message for SslPolicies.AggregatedList. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -496,7 +495,6 @@ def __call__( The request object. A request message for SslPolicies.Delete. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -598,7 +596,6 @@ def __call__( The request object. A request message for SslPolicies.Get. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -691,7 +688,6 @@ def __call__( The request object. A request message for SslPolicies.Insert. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -802,7 +798,6 @@ def __call__( The request object. A request message for SslPolicies.List. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -889,7 +884,6 @@ def __call__( The request object. A request message for SslPolicies.ListAvailableFeatures. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -978,7 +972,6 @@ def __call__( The request object. A request message for SslPolicies.Patch. See the method description for details. - 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/compute_v1/services/subnetworks/client.py b/google/cloud/compute_v1/services/subnetworks/client.py index e1ce42e34..fc9addc90 100644 --- a/google/cloud/compute_v1/services/subnetworks/client.py +++ b/google/cloud/compute_v1/services/subnetworks/client.py @@ -435,8 +435,8 @@ def aggregated_list( Args: request (Union[google.cloud.compute_v1.types.AggregatedListSubnetworksRequest, dict]): The request object. A request message for - Subnetworks.AggregatedList. See the method description - for details. + Subnetworks.AggregatedList. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -522,8 +522,8 @@ def delete_unary( Args: request (Union[google.cloud.compute_v1.types.DeleteSubnetworkRequest, dict]): The request object. A request message for - Subnetworks.Delete. See the method description for - details. + Subnetworks.Delete. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -623,8 +623,8 @@ def delete( Args: request (Union[google.cloud.compute_v1.types.DeleteSubnetworkRequest, dict]): The request object. A request message for - Subnetworks.Delete. See the method description for - details. + Subnetworks.Delete. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -755,8 +755,8 @@ def expand_ip_cidr_range_unary( Args: request (Union[google.cloud.compute_v1.types.ExpandIpCidrRangeSubnetworkRequest, dict]): The request object. A request message for - Subnetworks.ExpandIpCidrRange. See the method - description for details. + Subnetworks.ExpandIpCidrRange. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -878,8 +878,8 @@ def expand_ip_cidr_range( Args: request (Union[google.cloud.compute_v1.types.ExpandIpCidrRangeSubnetworkRequest, dict]): The request object. A request message for - Subnetworks.ExpandIpCidrRange. See the method - description for details. + Subnetworks.ExpandIpCidrRange. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1020,7 +1020,8 @@ def get( Args: request (Union[google.cloud.compute_v1.types.GetSubnetworkRequest, dict]): The request object. A request message for - Subnetworks.Get. See the method description for details. + Subnetworks.Get. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1126,8 +1127,8 @@ def get_iam_policy( Args: request (Union[google.cloud.compute_v1.types.GetIamPolicySubnetworkRequest, dict]): The request object. A request message for - Subnetworks.GetIamPolicy. See the method description for - details. + Subnetworks.GetIamPolicy. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1266,8 +1267,8 @@ def insert_unary( Args: request (Union[google.cloud.compute_v1.types.InsertSubnetworkRequest, dict]): The request object. A request message for - Subnetworks.Insert. See the method description for - details. + Subnetworks.Insert. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1365,8 +1366,8 @@ def insert( Args: request (Union[google.cloud.compute_v1.types.InsertSubnetworkRequest, dict]): The request object. A request message for - Subnetworks.Insert. See the method description for - details. + Subnetworks.Insert. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1488,8 +1489,8 @@ def list( Args: request (Union[google.cloud.compute_v1.types.ListSubnetworksRequest, dict]): The request object. A request message for - Subnetworks.List. See the method description for - details. + Subnetworks.List. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1590,8 +1591,8 @@ def list_usable( Args: request (Union[google.cloud.compute_v1.types.ListUsableSubnetworksRequest, dict]): The request object. A request message for - Subnetworks.ListUsable. See the method description for - details. + Subnetworks.ListUsable. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1682,8 +1683,8 @@ def patch_unary( Args: request (Union[google.cloud.compute_v1.types.PatchSubnetworkRequest, dict]): The request object. A request message for - Subnetworks.Patch. See the method description for - details. + Subnetworks.Patch. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1795,8 +1796,8 @@ def patch( Args: request (Union[google.cloud.compute_v1.types.PatchSubnetworkRequest, dict]): The request object. A request message for - Subnetworks.Patch. See the method description for - details. + Subnetworks.Patch. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1932,8 +1933,8 @@ def set_iam_policy( Args: request (Union[google.cloud.compute_v1.types.SetIamPolicySubnetworkRequest, dict]): The request object. A request message for - Subnetworks.SetIamPolicy. See the method description for - details. + Subnetworks.SetIamPolicy. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -2089,8 +2090,8 @@ def set_private_ip_google_access_unary( Args: request (Union[google.cloud.compute_v1.types.SetPrivateIpGoogleAccessSubnetworkRequest, dict]): The request object. A request message for - Subnetworks.SetPrivateIpGoogleAccess. See the method - description for details. + Subnetworks.SetPrivateIpGoogleAccess. + See the method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -2213,8 +2214,8 @@ def set_private_ip_google_access( Args: request (Union[google.cloud.compute_v1.types.SetPrivateIpGoogleAccessSubnetworkRequest, dict]): The request object. A request message for - Subnetworks.SetPrivateIpGoogleAccess. See the method - description for details. + Subnetworks.SetPrivateIpGoogleAccess. + See the method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -2361,8 +2362,8 @@ def test_iam_permissions( Args: request (Union[google.cloud.compute_v1.types.TestIamPermissionsSubnetworkRequest, dict]): The request object. A request message for - Subnetworks.TestIamPermissions. See the method - description for details. + Subnetworks.TestIamPermissions. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field diff --git a/google/cloud/compute_v1/services/subnetworks/transports/rest.py b/google/cloud/compute_v1/services/subnetworks/transports/rest.py index df4e12147..eb236774c 100644 --- a/google/cloud/compute_v1/services/subnetworks/transports/rest.py +++ b/google/cloud/compute_v1/services/subnetworks/transports/rest.py @@ -560,7 +560,6 @@ def __call__( The request object. A request message for Subnetworks.AggregatedList. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -647,7 +646,6 @@ def __call__( The request object. A request message for Subnetworks.Delete. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -749,7 +747,6 @@ def __call__( The request object. A request message for Subnetworks.ExpandIpCidrRange. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -862,7 +859,6 @@ def __call__( The request object. A request message for Subnetworks.Get. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -956,7 +952,6 @@ def __call__( The request object. A request message for Subnetworks.GetIamPolicy. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1084,7 +1079,6 @@ def __call__( The request object. A request message for Subnetworks.Insert. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1195,7 +1189,6 @@ def __call__( The request object. A request message for Subnetworks.List. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1284,7 +1277,6 @@ def __call__( The request object. A request message for Subnetworks.ListUsable. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1371,7 +1363,6 @@ def __call__( The request object. A request message for Subnetworks.Patch. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1482,7 +1473,6 @@ def __call__( The request object. A request message for Subnetworks.SetIamPolicy. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1620,7 +1610,6 @@ def __call__( The request object. A request message for Subnetworks.SetPrivateIpGoogleAccess. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1733,7 +1722,6 @@ def __call__( The request object. A request message for Subnetworks.TestIamPermissions. See the method description for details. - 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/compute_v1/services/target_grpc_proxies/client.py b/google/cloud/compute_v1/services/target_grpc_proxies/client.py index 4ded778e8..0861947ca 100644 --- a/google/cloud/compute_v1/services/target_grpc_proxies/client.py +++ b/google/cloud/compute_v1/services/target_grpc_proxies/client.py @@ -439,8 +439,8 @@ def delete_unary( Args: request (Union[google.cloud.compute_v1.types.DeleteTargetGrpcProxyRequest, dict]): The request object. A request message for - TargetGrpcProxies.Delete. See the method description for - details. + TargetGrpcProxies.Delete. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -530,8 +530,8 @@ def delete( Args: request (Union[google.cloud.compute_v1.types.DeleteTargetGrpcProxyRequest, dict]): The request object. A request message for - TargetGrpcProxies.Delete. See the method description for - details. + TargetGrpcProxies.Delete. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -645,8 +645,8 @@ def get( Args: request (Union[google.cloud.compute_v1.types.GetTargetGrpcProxyRequest, dict]): The request object. A request message for - TargetGrpcProxies.Get. See the method description for - details. + TargetGrpcProxies.Get. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -742,8 +742,8 @@ def insert_unary( Args: request (Union[google.cloud.compute_v1.types.InsertTargetGrpcProxyRequest, dict]): The request object. A request message for - TargetGrpcProxies.Insert. See the method description for - details. + TargetGrpcProxies.Insert. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -827,8 +827,8 @@ def insert( Args: request (Union[google.cloud.compute_v1.types.InsertTargetGrpcProxyRequest, dict]): The request object. A request message for - TargetGrpcProxies.Insert. See the method description for - details. + TargetGrpcProxies.Insert. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -934,8 +934,8 @@ def list( Args: request (Union[google.cloud.compute_v1.types.ListTargetGrpcProxiesRequest, dict]): The request object. A request message for - TargetGrpcProxies.List. See the method description for - details. + TargetGrpcProxies.List. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1024,8 +1024,8 @@ def patch_unary( Args: request (Union[google.cloud.compute_v1.types.PatchTargetGrpcProxyRequest, dict]): The request object. A request message for - TargetGrpcProxies.Patch. See the method description for - details. + TargetGrpcProxies.Patch. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1127,8 +1127,8 @@ def patch( Args: request (Union[google.cloud.compute_v1.types.PatchTargetGrpcProxyRequest, dict]): The request object. A request message for - TargetGrpcProxies.Patch. See the method description for - details. + TargetGrpcProxies.Patch. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field diff --git a/google/cloud/compute_v1/services/target_grpc_proxies/transports/rest.py b/google/cloud/compute_v1/services/target_grpc_proxies/transports/rest.py index 78fb61827..838e4dfc4 100644 --- a/google/cloud/compute_v1/services/target_grpc_proxies/transports/rest.py +++ b/google/cloud/compute_v1/services/target_grpc_proxies/transports/rest.py @@ -349,7 +349,6 @@ def __call__( The request object. A request message for TargetGrpcProxies.Delete. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -451,7 +450,6 @@ def __call__( The request object. A request message for TargetGrpcProxies.Get. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -545,7 +543,6 @@ def __call__( The request object. A request message for TargetGrpcProxies.Insert. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -656,7 +653,6 @@ def __call__( The request object. A request message for TargetGrpcProxies.List. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -743,7 +739,6 @@ def __call__( The request object. A request message for TargetGrpcProxies.Patch. See the method description for details. - 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/compute_v1/services/target_http_proxies/client.py b/google/cloud/compute_v1/services/target_http_proxies/client.py index f5bb45d3b..a3ea8f5fa 100644 --- a/google/cloud/compute_v1/services/target_http_proxies/client.py +++ b/google/cloud/compute_v1/services/target_http_proxies/client.py @@ -440,8 +440,8 @@ def aggregated_list( Args: request (Union[google.cloud.compute_v1.types.AggregatedListTargetHttpProxiesRequest, dict]): The request object. A request message for - TargetHttpProxies.AggregatedList. See the method - description for details. + TargetHttpProxies.AggregatedList. See + the method description for details. project (str): Name of the project scoping this request. @@ -528,8 +528,8 @@ def delete_unary( Args: request (Union[google.cloud.compute_v1.types.DeleteTargetHttpProxyRequest, dict]): The request object. A request message for - TargetHttpProxies.Delete. See the method description for - details. + TargetHttpProxies.Delete. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -618,8 +618,8 @@ def delete( Args: request (Union[google.cloud.compute_v1.types.DeleteTargetHttpProxyRequest, dict]): The request object. A request message for - TargetHttpProxies.Delete. See the method description for - details. + TargetHttpProxies.Delete. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -732,8 +732,8 @@ def get( Args: request (Union[google.cloud.compute_v1.types.GetTargetHttpProxyRequest, dict]): The request object. A request message for - TargetHttpProxies.Get. See the method description for - details. + TargetHttpProxies.Get. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -834,8 +834,8 @@ def insert_unary( Args: request (Union[google.cloud.compute_v1.types.InsertTargetHttpProxyRequest, dict]): The request object. A request message for - TargetHttpProxies.Insert. See the method description for - details. + TargetHttpProxies.Insert. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -918,8 +918,8 @@ def insert( Args: request (Union[google.cloud.compute_v1.types.InsertTargetHttpProxyRequest, dict]): The request object. A request message for - TargetHttpProxies.Insert. See the method description for - details. + TargetHttpProxies.Insert. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1025,8 +1025,8 @@ def list( Args: request (Union[google.cloud.compute_v1.types.ListTargetHttpProxiesRequest, dict]): The request object. A request message for - TargetHttpProxies.List. See the method description for - details. + TargetHttpProxies.List. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1116,8 +1116,8 @@ def patch_unary( Args: request (Union[google.cloud.compute_v1.types.PatchTargetHttpProxyRequest, dict]): The request object. A request message for - TargetHttpProxies.Patch. See the method description for - details. + TargetHttpProxies.Patch. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1219,8 +1219,8 @@ def patch( Args: request (Union[google.cloud.compute_v1.types.PatchTargetHttpProxyRequest, dict]): The request object. A request message for - TargetHttpProxies.Patch. See the method description for - details. + TargetHttpProxies.Patch. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1343,8 +1343,8 @@ def set_url_map_unary( Args: request (Union[google.cloud.compute_v1.types.SetUrlMapTargetHttpProxyRequest, dict]): The request object. A request message for - TargetHttpProxies.SetUrlMap. See the method description - for details. + TargetHttpProxies.SetUrlMap. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1443,8 +1443,8 @@ def set_url_map( Args: request (Union[google.cloud.compute_v1.types.SetUrlMapTargetHttpProxyRequest, dict]): The request object. A request message for - TargetHttpProxies.SetUrlMap. See the method description - for details. + TargetHttpProxies.SetUrlMap. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field diff --git a/google/cloud/compute_v1/services/target_http_proxies/transports/rest.py b/google/cloud/compute_v1/services/target_http_proxies/transports/rest.py index 1d7c7a51b..46743c562 100644 --- a/google/cloud/compute_v1/services/target_http_proxies/transports/rest.py +++ b/google/cloud/compute_v1/services/target_http_proxies/transports/rest.py @@ -411,7 +411,6 @@ def __call__( The request object. A request message for TargetHttpProxies.AggregatedList. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -498,7 +497,6 @@ def __call__( The request object. A request message for TargetHttpProxies.Delete. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -600,7 +598,6 @@ def __call__( The request object. A request message for TargetHttpProxies.Get. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -700,7 +697,6 @@ def __call__( The request object. A request message for TargetHttpProxies.Insert. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -811,7 +807,6 @@ def __call__( The request object. A request message for TargetHttpProxies.List. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -898,7 +893,6 @@ def __call__( The request object. A request message for TargetHttpProxies.Patch. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1009,7 +1003,6 @@ def __call__( The request object. A request message for TargetHttpProxies.SetUrlMap. See the method description for details. - 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/compute_v1/services/target_https_proxies/client.py b/google/cloud/compute_v1/services/target_https_proxies/client.py index 41b675dc0..7116bcbb6 100644 --- a/google/cloud/compute_v1/services/target_https_proxies/client.py +++ b/google/cloud/compute_v1/services/target_https_proxies/client.py @@ -440,8 +440,8 @@ def aggregated_list( Args: request (Union[google.cloud.compute_v1.types.AggregatedListTargetHttpsProxiesRequest, dict]): The request object. A request message for - TargetHttpsProxies.AggregatedList. See the method - description for details. + TargetHttpsProxies.AggregatedList. See + the method description for details. project (str): Name of the project scoping this request. @@ -528,8 +528,8 @@ def delete_unary( Args: request (Union[google.cloud.compute_v1.types.DeleteTargetHttpsProxyRequest, dict]): The request object. A request message for - TargetHttpsProxies.Delete. See the method description - for details. + TargetHttpsProxies.Delete. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -618,8 +618,8 @@ def delete( Args: request (Union[google.cloud.compute_v1.types.DeleteTargetHttpsProxyRequest, dict]): The request object. A request message for - TargetHttpsProxies.Delete. See the method description - for details. + TargetHttpsProxies.Delete. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -732,8 +732,8 @@ def get( Args: request (Union[google.cloud.compute_v1.types.GetTargetHttpsProxyRequest, dict]): The request object. A request message for - TargetHttpsProxies.Get. See the method description for - details. + TargetHttpsProxies.Get. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -833,8 +833,8 @@ def insert_unary( Args: request (Union[google.cloud.compute_v1.types.InsertTargetHttpsProxyRequest, dict]): The request object. A request message for - TargetHttpsProxies.Insert. See the method description - for details. + TargetHttpsProxies.Insert. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -917,8 +917,8 @@ def insert( Args: request (Union[google.cloud.compute_v1.types.InsertTargetHttpsProxyRequest, dict]): The request object. A request message for - TargetHttpsProxies.Insert. See the method description - for details. + TargetHttpsProxies.Insert. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1024,8 +1024,8 @@ def list( Args: request (Union[google.cloud.compute_v1.types.ListTargetHttpsProxiesRequest, dict]): The request object. A request message for - TargetHttpsProxies.List. See the method description for - details. + TargetHttpsProxies.List. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1116,8 +1116,8 @@ def patch_unary( Args: request (Union[google.cloud.compute_v1.types.PatchTargetHttpsProxyRequest, dict]): The request object. A request message for - TargetHttpsProxies.Patch. See the method description for - details. + TargetHttpsProxies.Patch. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1219,8 +1219,8 @@ def patch( Args: request (Union[google.cloud.compute_v1.types.PatchTargetHttpsProxyRequest, dict]): The request object. A request message for - TargetHttpsProxies.Patch. See the method description for - details. + TargetHttpsProxies.Patch. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1347,8 +1347,8 @@ def set_certificate_map_unary( Args: request (Union[google.cloud.compute_v1.types.SetCertificateMapTargetHttpsProxyRequest, dict]): The request object. A request message for - TargetHttpsProxies.SetCertificateMap. See the method - description for details. + TargetHttpsProxies.SetCertificateMap. + See the method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1459,8 +1459,8 @@ def set_certificate_map( Args: request (Union[google.cloud.compute_v1.types.SetCertificateMapTargetHttpsProxyRequest, dict]): The request object. A request message for - TargetHttpsProxies.SetCertificateMap. See the method - description for details. + TargetHttpsProxies.SetCertificateMap. + See the method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1595,8 +1595,8 @@ def set_quic_override_unary( Args: request (Union[google.cloud.compute_v1.types.SetQuicOverrideTargetHttpsProxyRequest, dict]): The request object. A request message for - TargetHttpsProxies.SetQuicOverride. See the method - description for details. + TargetHttpsProxies.SetQuicOverride. See + the method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1706,8 +1706,8 @@ def set_quic_override( Args: request (Union[google.cloud.compute_v1.types.SetQuicOverrideTargetHttpsProxyRequest, dict]): The request object. A request message for - TargetHttpsProxies.SetQuicOverride. See the method - description for details. + TargetHttpsProxies.SetQuicOverride. See + the method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1841,8 +1841,8 @@ def set_ssl_certificates_unary( Args: request (Union[google.cloud.compute_v1.types.SetSslCertificatesTargetHttpsProxyRequest, dict]): The request object. A request message for - TargetHttpsProxies.SetSslCertificates. See the method - description for details. + TargetHttpsProxies.SetSslCertificates. + See the method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1951,8 +1951,8 @@ def set_ssl_certificates( Args: request (Union[google.cloud.compute_v1.types.SetSslCertificatesTargetHttpsProxyRequest, dict]): The request object. A request message for - TargetHttpsProxies.SetSslCertificates. See the method - description for details. + TargetHttpsProxies.SetSslCertificates. + See the method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -2087,8 +2087,8 @@ def set_ssl_policy_unary( Args: request (Union[google.cloud.compute_v1.types.SetSslPolicyTargetHttpsProxyRequest, dict]): The request object. A request message for - TargetHttpsProxies.SetSslPolicy. See the method - description for details. + TargetHttpsProxies.SetSslPolicy. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -2195,8 +2195,8 @@ def set_ssl_policy( Args: request (Union[google.cloud.compute_v1.types.SetSslPolicyTargetHttpsProxyRequest, dict]): The request object. A request message for - TargetHttpsProxies.SetSslPolicy. See the method - description for details. + TargetHttpsProxies.SetSslPolicy. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -2321,8 +2321,8 @@ def set_url_map_unary( Args: request (Union[google.cloud.compute_v1.types.SetUrlMapTargetHttpsProxyRequest, dict]): The request object. A request message for - TargetHttpsProxies.SetUrlMap. See the method description - for details. + TargetHttpsProxies.SetUrlMap. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -2421,8 +2421,8 @@ def set_url_map( Args: request (Union[google.cloud.compute_v1.types.SetUrlMapTargetHttpsProxyRequest, dict]): The request object. A request message for - TargetHttpsProxies.SetUrlMap. See the method description - for details. + TargetHttpsProxies.SetUrlMap. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field diff --git a/google/cloud/compute_v1/services/target_https_proxies/transports/rest.py b/google/cloud/compute_v1/services/target_https_proxies/transports/rest.py index 33bb88dfe..31ab56710 100644 --- a/google/cloud/compute_v1/services/target_https_proxies/transports/rest.py +++ b/google/cloud/compute_v1/services/target_https_proxies/transports/rest.py @@ -537,7 +537,6 @@ def __call__( The request object. A request message for TargetHttpsProxies.AggregatedList. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -624,7 +623,6 @@ def __call__( The request object. A request message for TargetHttpsProxies.Delete. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -726,7 +724,6 @@ def __call__( The request object. A request message for TargetHttpsProxies.Get. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -825,7 +822,6 @@ def __call__( The request object. A request message for TargetHttpsProxies.Insert. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -936,7 +932,6 @@ def __call__( The request object. A request message for TargetHttpsProxies.List. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1025,7 +1020,6 @@ def __call__( The request object. A request message for TargetHttpsProxies.Patch. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1136,7 +1130,6 @@ def __call__( The request object. A request message for TargetHttpsProxies.SetCertificateMap. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1249,7 +1242,6 @@ def __call__( The request object. A request message for TargetHttpsProxies.SetQuicOverride. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1362,7 +1354,6 @@ def __call__( The request object. A request message for TargetHttpsProxies.SetSslCertificates. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1475,7 +1466,6 @@ def __call__( The request object. A request message for TargetHttpsProxies.SetSslPolicy. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1586,7 +1576,6 @@ def __call__( The request object. A request message for TargetHttpsProxies.SetUrlMap. See the method description for details. - 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/compute_v1/services/target_instances/client.py b/google/cloud/compute_v1/services/target_instances/client.py index ede22d086..335e556ab 100644 --- a/google/cloud/compute_v1/services/target_instances/client.py +++ b/google/cloud/compute_v1/services/target_instances/client.py @@ -439,8 +439,8 @@ def aggregated_list( Args: request (Union[google.cloud.compute_v1.types.AggregatedListTargetInstancesRequest, dict]): The request object. A request message for - TargetInstances.AggregatedList. See the method - description for details. + TargetInstances.AggregatedList. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -526,8 +526,8 @@ def delete_unary( Args: request (Union[google.cloud.compute_v1.types.DeleteTargetInstanceRequest, dict]): The request object. A request message for - TargetInstances.Delete. See the method description for - details. + TargetInstances.Delete. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -627,8 +627,8 @@ def delete( Args: request (Union[google.cloud.compute_v1.types.DeleteTargetInstanceRequest, dict]): The request object. A request message for - TargetInstances.Delete. See the method description for - details. + TargetInstances.Delete. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -753,8 +753,8 @@ def get( Args: request (Union[google.cloud.compute_v1.types.GetTargetInstanceRequest, dict]): The request object. A request message for - TargetInstances.Get. See the method description for - details. + TargetInstances.Get. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -861,8 +861,8 @@ def insert_unary( Args: request (Union[google.cloud.compute_v1.types.InsertTargetInstanceRequest, dict]): The request object. A request message for - TargetInstances.Insert. See the method description for - details. + TargetInstances.Insert. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -960,8 +960,8 @@ def insert( Args: request (Union[google.cloud.compute_v1.types.InsertTargetInstanceRequest, dict]): The request object. A request message for - TargetInstances.Insert. See the method description for - details. + TargetInstances.Insert. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1083,8 +1083,8 @@ def list( Args: request (Union[google.cloud.compute_v1.types.ListTargetInstancesRequest, dict]): The request object. A request message for - TargetInstances.List. See the method description for - details. + TargetInstances.List. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field diff --git a/google/cloud/compute_v1/services/target_instances/transports/rest.py b/google/cloud/compute_v1/services/target_instances/transports/rest.py index 6ed53b32f..5a254ce7c 100644 --- a/google/cloud/compute_v1/services/target_instances/transports/rest.py +++ b/google/cloud/compute_v1/services/target_instances/transports/rest.py @@ -351,7 +351,6 @@ def __call__( The request object. A request message for TargetInstances.AggregatedList. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -438,7 +437,6 @@ def __call__( The request object. A request message for TargetInstances.Delete. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -540,7 +538,6 @@ def __call__( The request object. A request message for TargetInstances.Get. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -635,7 +632,6 @@ def __call__( The request object. A request message for TargetInstances.Insert. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -746,7 +742,6 @@ def __call__( The request object. A request message for TargetInstances.List. See the method description for details. - 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/compute_v1/services/target_pools/client.py b/google/cloud/compute_v1/services/target_pools/client.py index 12fb016b6..b0a15f430 100644 --- a/google/cloud/compute_v1/services/target_pools/client.py +++ b/google/cloud/compute_v1/services/target_pools/client.py @@ -440,8 +440,8 @@ def add_health_check_unary( Args: request (Union[google.cloud.compute_v1.types.AddHealthCheckTargetPoolRequest, dict]): The request object. A request message for - TargetPools.AddHealthCheck. See the method description - for details. + TargetPools.AddHealthCheck. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -560,8 +560,8 @@ def add_health_check( Args: request (Union[google.cloud.compute_v1.types.AddHealthCheckTargetPoolRequest, dict]): The request object. A request message for - TargetPools.AddHealthCheck. See the method description - for details. + TargetPools.AddHealthCheck. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -705,8 +705,8 @@ def add_instance_unary( Args: request (Union[google.cloud.compute_v1.types.AddInstanceTargetPoolRequest, dict]): The request object. A request message for - TargetPools.AddInstance. See the method description for - details. + TargetPools.AddInstance. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -820,8 +820,8 @@ def add_instance( Args: request (Union[google.cloud.compute_v1.types.AddInstanceTargetPoolRequest, dict]): The request object. A request message for - TargetPools.AddInstance. See the method description for - details. + TargetPools.AddInstance. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -955,8 +955,8 @@ def aggregated_list( Args: request (Union[google.cloud.compute_v1.types.AggregatedListTargetPoolsRequest, dict]): The request object. A request message for - TargetPools.AggregatedList. See the method description - for details. + TargetPools.AggregatedList. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1042,8 +1042,8 @@ def delete_unary( Args: request (Union[google.cloud.compute_v1.types.DeleteTargetPoolRequest, dict]): The request object. A request message for - TargetPools.Delete. See the method description for - details. + TargetPools.Delete. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1143,8 +1143,8 @@ def delete( Args: request (Union[google.cloud.compute_v1.types.DeleteTargetPoolRequest, dict]): The request object. A request message for - TargetPools.Delete. See the method description for - details. + TargetPools.Delete. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1269,7 +1269,8 @@ def get( Args: request (Union[google.cloud.compute_v1.types.GetTargetPoolRequest, dict]): The request object. A request message for - TargetPools.Get. See the method description for details. + TargetPools.Get. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1378,8 +1379,8 @@ def get_health( Args: request (Union[google.cloud.compute_v1.types.GetHealthTargetPoolRequest, dict]): The request object. A request message for - TargetPools.GetHealth. See the method description for - details. + TargetPools.GetHealth. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1487,8 +1488,8 @@ def insert_unary( Args: request (Union[google.cloud.compute_v1.types.InsertTargetPoolRequest, dict]): The request object. A request message for - TargetPools.Insert. See the method description for - details. + TargetPools.Insert. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1586,8 +1587,8 @@ def insert( Args: request (Union[google.cloud.compute_v1.types.InsertTargetPoolRequest, dict]): The request object. A request message for - TargetPools.Insert. See the method description for - details. + TargetPools.Insert. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1709,8 +1710,8 @@ def list( Args: request (Union[google.cloud.compute_v1.types.ListTargetPoolsRequest, dict]): The request object. A request message for - TargetPools.List. See the method description for - details. + TargetPools.List. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1817,8 +1818,8 @@ def remove_health_check_unary( Args: request (Union[google.cloud.compute_v1.types.RemoveHealthCheckTargetPoolRequest, dict]): The request object. A request message for - TargetPools.RemoveHealthCheck. See the method - description for details. + TargetPools.RemoveHealthCheck. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1937,8 +1938,8 @@ def remove_health_check( Args: request (Union[google.cloud.compute_v1.types.RemoveHealthCheckTargetPoolRequest, dict]): The request object. A request message for - TargetPools.RemoveHealthCheck. See the method - description for details. + TargetPools.RemoveHealthCheck. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -2080,8 +2081,8 @@ def remove_instance_unary( Args: request (Union[google.cloud.compute_v1.types.RemoveInstanceTargetPoolRequest, dict]): The request object. A request message for - TargetPools.RemoveInstance. See the method description - for details. + TargetPools.RemoveInstance. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -2200,8 +2201,8 @@ def remove_instance( Args: request (Union[google.cloud.compute_v1.types.RemoveInstanceTargetPoolRequest, dict]): The request object. A request message for - TargetPools.RemoveInstance. See the method description - for details. + TargetPools.RemoveInstance. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -2343,8 +2344,8 @@ def set_backup_unary( Args: request (Union[google.cloud.compute_v1.types.SetBackupTargetPoolRequest, dict]): The request object. A request message for - TargetPools.SetBackup. See the method description for - details. + TargetPools.SetBackup. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -2454,8 +2455,8 @@ def set_backup( Args: request (Union[google.cloud.compute_v1.types.SetBackupTargetPoolRequest, dict]): The request object. A request message for - TargetPools.SetBackup. See the method description for - details. + TargetPools.SetBackup. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field diff --git a/google/cloud/compute_v1/services/target_pools/transports/rest.py b/google/cloud/compute_v1/services/target_pools/transports/rest.py index f64add30e..50f5f35af 100644 --- a/google/cloud/compute_v1/services/target_pools/transports/rest.py +++ b/google/cloud/compute_v1/services/target_pools/transports/rest.py @@ -525,7 +525,6 @@ def __call__( The request object. A request message for TargetPools.AddHealthCheck. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -638,7 +637,6 @@ def __call__( The request object. A request message for TargetPools.AddInstance. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -749,7 +747,6 @@ def __call__( The request object. A request message for TargetPools.AggregatedList. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -836,7 +833,6 @@ def __call__( The request object. A request message for TargetPools.Delete. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -938,7 +934,6 @@ def __call__( The request object. A request message for TargetPools.Get. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1033,7 +1028,6 @@ def __call__( The request object. A request message for TargetPools.GetHealth. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1129,7 +1123,6 @@ def __call__( The request object. A request message for TargetPools.Insert. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1240,7 +1233,6 @@ def __call__( The request object. A request message for TargetPools.List. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1329,7 +1321,6 @@ def __call__( The request object. A request message for TargetPools.RemoveHealthCheck. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1442,7 +1433,6 @@ def __call__( The request object. A request message for TargetPools.RemoveInstance. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1553,7 +1543,6 @@ def __call__( The request object. A request message for TargetPools.SetBackup. See the method description for details. - 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/compute_v1/services/target_ssl_proxies/client.py b/google/cloud/compute_v1/services/target_ssl_proxies/client.py index c5e3d2b18..b95bc8905 100644 --- a/google/cloud/compute_v1/services/target_ssl_proxies/client.py +++ b/google/cloud/compute_v1/services/target_ssl_proxies/client.py @@ -438,8 +438,8 @@ def delete_unary( Args: request (Union[google.cloud.compute_v1.types.DeleteTargetSslProxyRequest, dict]): The request object. A request message for - TargetSslProxies.Delete. See the method description for - details. + TargetSslProxies.Delete. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -528,8 +528,8 @@ def delete( Args: request (Union[google.cloud.compute_v1.types.DeleteTargetSslProxyRequest, dict]): The request object. A request message for - TargetSslProxies.Delete. See the method description for - details. + TargetSslProxies.Delete. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -642,8 +642,8 @@ def get( Args: request (Union[google.cloud.compute_v1.types.GetTargetSslProxyRequest, dict]): The request object. A request message for - TargetSslProxies.Get. See the method description for - details. + TargetSslProxies.Get. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -739,8 +739,8 @@ def insert_unary( Args: request (Union[google.cloud.compute_v1.types.InsertTargetSslProxyRequest, dict]): The request object. A request message for - TargetSslProxies.Insert. See the method description for - details. + TargetSslProxies.Insert. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -823,8 +823,8 @@ def insert( Args: request (Union[google.cloud.compute_v1.types.InsertTargetSslProxyRequest, dict]): The request object. A request message for - TargetSslProxies.Insert. See the method description for - details. + TargetSslProxies.Insert. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -930,8 +930,8 @@ def list( Args: request (Union[google.cloud.compute_v1.types.ListTargetSslProxiesRequest, dict]): The request object. A request message for - TargetSslProxies.List. See the method description for - details. + TargetSslProxies.List. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1023,8 +1023,8 @@ def set_backend_service_unary( Args: request (Union[google.cloud.compute_v1.types.SetBackendServiceTargetSslProxyRequest, dict]): The request object. A request message for - TargetSslProxies.SetBackendService. See the method - description for details. + TargetSslProxies.SetBackendService. See + the method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1134,8 +1134,8 @@ def set_backend_service( Args: request (Union[google.cloud.compute_v1.types.SetBackendServiceTargetSslProxyRequest, dict]): The request object. A request message for - TargetSslProxies.SetBackendService. See the method - description for details. + TargetSslProxies.SetBackendService. See + the method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1269,8 +1269,8 @@ def set_certificate_map_unary( Args: request (Union[google.cloud.compute_v1.types.SetCertificateMapTargetSslProxyRequest, dict]): The request object. A request message for - TargetSslProxies.SetCertificateMap. See the method - description for details. + TargetSslProxies.SetCertificateMap. See + the method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1381,8 +1381,8 @@ def set_certificate_map( Args: request (Union[google.cloud.compute_v1.types.SetCertificateMapTargetSslProxyRequest, dict]): The request object. A request message for - TargetSslProxies.SetCertificateMap. See the method - description for details. + TargetSslProxies.SetCertificateMap. See + the method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1517,8 +1517,8 @@ def set_proxy_header_unary( Args: request (Union[google.cloud.compute_v1.types.SetProxyHeaderTargetSslProxyRequest, dict]): The request object. A request message for - TargetSslProxies.SetProxyHeader. See the method - description for details. + TargetSslProxies.SetProxyHeader. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1627,8 +1627,8 @@ def set_proxy_header( Args: request (Union[google.cloud.compute_v1.types.SetProxyHeaderTargetSslProxyRequest, dict]): The request object. A request message for - TargetSslProxies.SetProxyHeader. See the method - description for details. + TargetSslProxies.SetProxyHeader. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1761,8 +1761,8 @@ def set_ssl_certificates_unary( Args: request (Union[google.cloud.compute_v1.types.SetSslCertificatesTargetSslProxyRequest, dict]): The request object. A request message for - TargetSslProxies.SetSslCertificates. See the method - description for details. + TargetSslProxies.SetSslCertificates. See + the method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1872,8 +1872,8 @@ def set_ssl_certificates( Args: request (Union[google.cloud.compute_v1.types.SetSslCertificatesTargetSslProxyRequest, dict]): The request object. A request message for - TargetSslProxies.SetSslCertificates. See the method - description for details. + TargetSslProxies.SetSslCertificates. See + the method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -2009,8 +2009,8 @@ def set_ssl_policy_unary( Args: request (Union[google.cloud.compute_v1.types.SetSslPolicyTargetSslProxyRequest, dict]): The request object. A request message for - TargetSslProxies.SetSslPolicy. See the method - description for details. + TargetSslProxies.SetSslPolicy. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -2117,8 +2117,8 @@ def set_ssl_policy( Args: request (Union[google.cloud.compute_v1.types.SetSslPolicyTargetSslProxyRequest, dict]): The request object. A request message for - TargetSslProxies.SetSslPolicy. See the method - description for details. + TargetSslProxies.SetSslPolicy. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field diff --git a/google/cloud/compute_v1/services/target_ssl_proxies/transports/rest.py b/google/cloud/compute_v1/services/target_ssl_proxies/transports/rest.py index 0c46dd208..2a9895cea 100644 --- a/google/cloud/compute_v1/services/target_ssl_proxies/transports/rest.py +++ b/google/cloud/compute_v1/services/target_ssl_proxies/transports/rest.py @@ -477,7 +477,6 @@ def __call__( The request object. A request message for TargetSslProxies.Delete. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -579,7 +578,6 @@ def __call__( The request object. A request message for TargetSslProxies.Get. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -674,7 +672,6 @@ def __call__( The request object. A request message for TargetSslProxies.Insert. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -785,7 +782,6 @@ def __call__( The request object. A request message for TargetSslProxies.List. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -874,7 +870,6 @@ def __call__( The request object. A request message for TargetSslProxies.SetBackendService. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -987,7 +982,6 @@ def __call__( The request object. A request message for TargetSslProxies.SetCertificateMap. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1100,7 +1094,6 @@ def __call__( The request object. A request message for TargetSslProxies.SetProxyHeader. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1213,7 +1206,6 @@ def __call__( The request object. A request message for TargetSslProxies.SetSslCertificates. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1326,7 +1318,6 @@ def __call__( The request object. A request message for TargetSslProxies.SetSslPolicy. See the method description for details. - 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/compute_v1/services/target_tcp_proxies/client.py b/google/cloud/compute_v1/services/target_tcp_proxies/client.py index 00f30f9e4..2d32cff8f 100644 --- a/google/cloud/compute_v1/services/target_tcp_proxies/client.py +++ b/google/cloud/compute_v1/services/target_tcp_proxies/client.py @@ -440,8 +440,8 @@ def aggregated_list( Args: request (Union[google.cloud.compute_v1.types.AggregatedListTargetTcpProxiesRequest, dict]): The request object. A request message for - TargetTcpProxies.AggregatedList. See the method - description for details. + TargetTcpProxies.AggregatedList. See the + method description for details. project (str): Name of the project scoping this request. @@ -528,8 +528,8 @@ def delete_unary( Args: request (Union[google.cloud.compute_v1.types.DeleteTargetTcpProxyRequest, dict]): The request object. A request message for - TargetTcpProxies.Delete. See the method description for - details. + TargetTcpProxies.Delete. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -618,8 +618,8 @@ def delete( Args: request (Union[google.cloud.compute_v1.types.DeleteTargetTcpProxyRequest, dict]): The request object. A request message for - TargetTcpProxies.Delete. See the method description for - details. + TargetTcpProxies.Delete. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -732,8 +732,8 @@ def get( Args: request (Union[google.cloud.compute_v1.types.GetTargetTcpProxyRequest, dict]): The request object. A request message for - TargetTcpProxies.Get. See the method description for - details. + TargetTcpProxies.Get. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -829,8 +829,8 @@ def insert_unary( Args: request (Union[google.cloud.compute_v1.types.InsertTargetTcpProxyRequest, dict]): The request object. A request message for - TargetTcpProxies.Insert. See the method description for - details. + TargetTcpProxies.Insert. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -913,8 +913,8 @@ def insert( Args: request (Union[google.cloud.compute_v1.types.InsertTargetTcpProxyRequest, dict]): The request object. A request message for - TargetTcpProxies.Insert. See the method description for - details. + TargetTcpProxies.Insert. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1020,8 +1020,8 @@ def list( Args: request (Union[google.cloud.compute_v1.types.ListTargetTcpProxiesRequest, dict]): The request object. A request message for - TargetTcpProxies.List. See the method description for - details. + TargetTcpProxies.List. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1113,8 +1113,8 @@ def set_backend_service_unary( Args: request (Union[google.cloud.compute_v1.types.SetBackendServiceTargetTcpProxyRequest, dict]): The request object. A request message for - TargetTcpProxies.SetBackendService. See the method - description for details. + TargetTcpProxies.SetBackendService. See + the method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1224,8 +1224,8 @@ def set_backend_service( Args: request (Union[google.cloud.compute_v1.types.SetBackendServiceTargetTcpProxyRequest, dict]): The request object. A request message for - TargetTcpProxies.SetBackendService. See the method - description for details. + TargetTcpProxies.SetBackendService. See + the method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1359,8 +1359,8 @@ def set_proxy_header_unary( Args: request (Union[google.cloud.compute_v1.types.SetProxyHeaderTargetTcpProxyRequest, dict]): The request object. A request message for - TargetTcpProxies.SetProxyHeader. See the method - description for details. + TargetTcpProxies.SetProxyHeader. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1469,8 +1469,8 @@ def set_proxy_header( Args: request (Union[google.cloud.compute_v1.types.SetProxyHeaderTargetTcpProxyRequest, dict]): The request object. A request message for - TargetTcpProxies.SetProxyHeader. See the method - description for details. + TargetTcpProxies.SetProxyHeader. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field diff --git a/google/cloud/compute_v1/services/target_tcp_proxies/transports/rest.py b/google/cloud/compute_v1/services/target_tcp_proxies/transports/rest.py index 201d7ba19..fc3644c4c 100644 --- a/google/cloud/compute_v1/services/target_tcp_proxies/transports/rest.py +++ b/google/cloud/compute_v1/services/target_tcp_proxies/transports/rest.py @@ -415,7 +415,6 @@ def __call__( The request object. A request message for TargetTcpProxies.AggregatedList. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -502,7 +501,6 @@ def __call__( The request object. A request message for TargetTcpProxies.Delete. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -604,7 +602,6 @@ def __call__( The request object. A request message for TargetTcpProxies.Get. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -699,7 +696,6 @@ def __call__( The request object. A request message for TargetTcpProxies.Insert. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -810,7 +806,6 @@ def __call__( The request object. A request message for TargetTcpProxies.List. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -899,7 +894,6 @@ def __call__( The request object. A request message for TargetTcpProxies.SetBackendService. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1012,7 +1006,6 @@ def __call__( The request object. A request message for TargetTcpProxies.SetProxyHeader. See the method description for details. - 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/compute_v1/services/target_vpn_gateways/client.py b/google/cloud/compute_v1/services/target_vpn_gateways/client.py index 960c807bb..102c393be 100644 --- a/google/cloud/compute_v1/services/target_vpn_gateways/client.py +++ b/google/cloud/compute_v1/services/target_vpn_gateways/client.py @@ -439,8 +439,8 @@ def aggregated_list( Args: request (Union[google.cloud.compute_v1.types.AggregatedListTargetVpnGatewaysRequest, dict]): The request object. A request message for - TargetVpnGateways.AggregatedList. See the method - description for details. + TargetVpnGateways.AggregatedList. See + the method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -526,8 +526,8 @@ def delete_unary( Args: request (Union[google.cloud.compute_v1.types.DeleteTargetVpnGatewayRequest, dict]): The request object. A request message for - TargetVpnGateways.Delete. See the method description for - details. + TargetVpnGateways.Delete. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -625,8 +625,8 @@ def delete( Args: request (Union[google.cloud.compute_v1.types.DeleteTargetVpnGatewayRequest, dict]): The request object. A request message for - TargetVpnGateways.Delete. See the method description for - details. + TargetVpnGateways.Delete. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -749,8 +749,8 @@ def get( Args: request (Union[google.cloud.compute_v1.types.GetTargetVpnGatewayRequest, dict]): The request object. A request message for - TargetVpnGateways.Get. See the method description for - details. + TargetVpnGateways.Get. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -852,8 +852,8 @@ def insert_unary( Args: request (Union[google.cloud.compute_v1.types.InsertTargetVpnGatewayRequest, dict]): The request object. A request message for - TargetVpnGateways.Insert. See the method description for - details. + TargetVpnGateways.Insert. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -949,8 +949,8 @@ def insert( Args: request (Union[google.cloud.compute_v1.types.InsertTargetVpnGatewayRequest, dict]): The request object. A request message for - TargetVpnGateways.Insert. See the method description for - details. + TargetVpnGateways.Insert. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1070,8 +1070,8 @@ def list( Args: request (Union[google.cloud.compute_v1.types.ListTargetVpnGatewaysRequest, dict]): The request object. A request message for - TargetVpnGateways.List. See the method description for - details. + TargetVpnGateways.List. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1175,8 +1175,8 @@ def set_labels_unary( Args: request (Union[google.cloud.compute_v1.types.SetLabelsTargetVpnGatewayRequest, dict]): The request object. A request message for - TargetVpnGateways.SetLabels. See the method description - for details. + TargetVpnGateways.SetLabels. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1289,8 +1289,8 @@ def set_labels( Args: request (Union[google.cloud.compute_v1.types.SetLabelsTargetVpnGatewayRequest, dict]): The request object. A request message for - TargetVpnGateways.SetLabels. See the method description - for details. + TargetVpnGateways.SetLabels. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field diff --git a/google/cloud/compute_v1/services/target_vpn_gateways/transports/rest.py b/google/cloud/compute_v1/services/target_vpn_gateways/transports/rest.py index 4879aa4fd..3a206356e 100644 --- a/google/cloud/compute_v1/services/target_vpn_gateways/transports/rest.py +++ b/google/cloud/compute_v1/services/target_vpn_gateways/transports/rest.py @@ -382,7 +382,6 @@ def __call__( The request object. A request message for TargetVpnGateways.AggregatedList. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -469,7 +468,6 @@ def __call__( The request object. A request message for TargetVpnGateways.Delete. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -571,7 +569,6 @@ def __call__( The request object. A request message for TargetVpnGateways.Get. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -663,7 +660,6 @@ def __call__( The request object. A request message for TargetVpnGateways.Insert. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -774,7 +770,6 @@ def __call__( The request object. A request message for TargetVpnGateways.List. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -863,7 +858,6 @@ def __call__( The request object. A request message for TargetVpnGateways.SetLabels. See the method description for details. - 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/compute_v1/services/url_maps/client.py b/google/cloud/compute_v1/services/url_maps/client.py index 00be935ae..a396aac90 100644 --- a/google/cloud/compute_v1/services/url_maps/client.py +++ b/google/cloud/compute_v1/services/url_maps/client.py @@ -436,8 +436,8 @@ def aggregated_list( Args: request (Union[google.cloud.compute_v1.types.AggregatedListUrlMapsRequest, dict]): The request object. A request message for - UrlMaps.AggregatedList. See the method description for - details. + UrlMaps.AggregatedList. See the method + description for details. project (str): Name of the project scoping this request. @@ -523,8 +523,8 @@ def delete_unary( Args: request (Union[google.cloud.compute_v1.types.DeleteUrlMapRequest, dict]): - The request object. A request message for - UrlMaps.Delete. See the method description for details. + The request object. A request message for UrlMaps.Delete. + See the method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -612,8 +612,8 @@ def delete( Args: request (Union[google.cloud.compute_v1.types.DeleteUrlMapRequest, dict]): - The request object. A request message for - UrlMaps.Delete. See the method description for details. + The request object. A request message for UrlMaps.Delete. + See the method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -834,8 +834,8 @@ def insert_unary( Args: request (Union[google.cloud.compute_v1.types.InsertUrlMapRequest, dict]): - The request object. A request message for - UrlMaps.Insert. See the method description for details. + The request object. A request message for UrlMaps.Insert. + See the method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -917,8 +917,8 @@ def insert( Args: request (Union[google.cloud.compute_v1.types.InsertUrlMapRequest, dict]): - The request object. A request message for - UrlMaps.Insert. See the method description for details. + The request object. A request message for UrlMaps.Insert. + See the method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1030,8 +1030,8 @@ def invalidate_cache_unary( Args: request (Union[google.cloud.compute_v1.types.InvalidateCacheUrlMapRequest, dict]): The request object. A request message for - UrlMaps.InvalidateCache. See the method description for - details. + UrlMaps.InvalidateCache. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1135,8 +1135,8 @@ def invalidate_cache( Args: request (Union[google.cloud.compute_v1.types.InvalidateCacheUrlMapRequest, dict]): The request object. A request message for - UrlMaps.InvalidateCache. See the method description for - details. + UrlMaps.InvalidateCache. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1565,8 +1565,8 @@ def update_unary( Args: request (Union[google.cloud.compute_v1.types.UpdateUrlMapRequest, dict]): - The request object. A request message for - UrlMaps.Update. See the method description for details. + The request object. A request message for UrlMaps.Update. + See the method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1663,8 +1663,8 @@ def update( Args: request (Union[google.cloud.compute_v1.types.UpdateUrlMapRequest, dict]): - The request object. A request message for - UrlMaps.Update. See the method description for details. + The request object. A request message for UrlMaps.Update. + See the method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1789,8 +1789,8 @@ def validate( Args: request (Union[google.cloud.compute_v1.types.ValidateUrlMapRequest, dict]): The request object. A request message for - UrlMaps.Validate. See the method description for - details. + UrlMaps.Validate. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field diff --git a/google/cloud/compute_v1/services/url_maps/transports/rest.py b/google/cloud/compute_v1/services/url_maps/transports/rest.py index 8658be61f..ecac7fc83 100644 --- a/google/cloud/compute_v1/services/url_maps/transports/rest.py +++ b/google/cloud/compute_v1/services/url_maps/transports/rest.py @@ -455,7 +455,6 @@ def __call__( The request object. A request message for UrlMaps.AggregatedList. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -541,7 +540,6 @@ def __call__( request (~.compute.DeleteUrlMapRequest): The request object. A request message for UrlMaps.Delete. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -642,7 +640,6 @@ def __call__( request (~.compute.GetUrlMapRequest): The request object. A request message for UrlMaps.Get. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -749,7 +746,6 @@ def __call__( request (~.compute.InsertUrlMapRequest): The request object. A request message for UrlMaps.Insert. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -860,7 +856,6 @@ def __call__( The request object. A request message for UrlMaps.InvalidateCache. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -972,7 +967,6 @@ def __call__( request (~.compute.ListUrlMapsRequest): The request object. A request message for UrlMaps.List. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1058,7 +1052,6 @@ def __call__( request (~.compute.PatchUrlMapRequest): The request object. A request message for UrlMaps.Patch. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1168,7 +1161,6 @@ def __call__( request (~.compute.UpdateUrlMapRequest): The request object. A request message for UrlMaps.Update. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1279,7 +1271,6 @@ def __call__( The request object. A request message for UrlMaps.Validate. See the method description for details. - 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/compute_v1/services/vpn_gateways/client.py b/google/cloud/compute_v1/services/vpn_gateways/client.py index 5c229e8d5..1763bb47c 100644 --- a/google/cloud/compute_v1/services/vpn_gateways/client.py +++ b/google/cloud/compute_v1/services/vpn_gateways/client.py @@ -435,8 +435,8 @@ def aggregated_list( Args: request (Union[google.cloud.compute_v1.types.AggregatedListVpnGatewaysRequest, dict]): The request object. A request message for - VpnGateways.AggregatedList. See the method description - for details. + VpnGateways.AggregatedList. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -522,8 +522,8 @@ def delete_unary( Args: request (Union[google.cloud.compute_v1.types.DeleteVpnGatewayRequest, dict]): The request object. A request message for - VpnGateways.Delete. See the method description for - details. + VpnGateways.Delete. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -619,8 +619,8 @@ def delete( Args: request (Union[google.cloud.compute_v1.types.DeleteVpnGatewayRequest, dict]): The request object. A request message for - VpnGateways.Delete. See the method description for - details. + VpnGateways.Delete. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -741,7 +741,8 @@ def get( Args: request (Union[google.cloud.compute_v1.types.GetVpnGatewayRequest, dict]): The request object. A request message for - VpnGateways.Get. See the method description for details. + VpnGateways.Get. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -844,8 +845,8 @@ def get_status( Args: request (Union[google.cloud.compute_v1.types.GetStatusVpnGatewayRequest, dict]): The request object. A request message for - VpnGateways.GetStatus. See the method description for - details. + VpnGateways.GetStatus. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -940,8 +941,8 @@ def insert_unary( Args: request (Union[google.cloud.compute_v1.types.InsertVpnGatewayRequest, dict]): The request object. A request message for - VpnGateways.Insert. See the method description for - details. + VpnGateways.Insert. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1037,8 +1038,8 @@ def insert( Args: request (Union[google.cloud.compute_v1.types.InsertVpnGatewayRequest, dict]): The request object. A request message for - VpnGateways.Insert. See the method description for - details. + VpnGateways.Insert. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1158,8 +1159,8 @@ def list( Args: request (Union[google.cloud.compute_v1.types.ListVpnGatewaysRequest, dict]): The request object. A request message for - VpnGateways.List. See the method description for - details. + VpnGateways.List. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1263,8 +1264,8 @@ def set_labels_unary( Args: request (Union[google.cloud.compute_v1.types.SetLabelsVpnGatewayRequest, dict]): The request object. A request message for - VpnGateways.SetLabels. See the method description for - details. + VpnGateways.SetLabels. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1377,8 +1378,8 @@ def set_labels( Args: request (Union[google.cloud.compute_v1.types.SetLabelsVpnGatewayRequest, dict]): The request object. A request message for - VpnGateways.SetLabels. See the method description for - details. + VpnGateways.SetLabels. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1518,8 +1519,8 @@ def test_iam_permissions( Args: request (Union[google.cloud.compute_v1.types.TestIamPermissionsVpnGatewayRequest, dict]): The request object. A request message for - VpnGateways.TestIamPermissions. See the method - description for details. + VpnGateways.TestIamPermissions. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field diff --git a/google/cloud/compute_v1/services/vpn_gateways/transports/rest.py b/google/cloud/compute_v1/services/vpn_gateways/transports/rest.py index 8af35b7f1..a2c7e0aed 100644 --- a/google/cloud/compute_v1/services/vpn_gateways/transports/rest.py +++ b/google/cloud/compute_v1/services/vpn_gateways/transports/rest.py @@ -438,7 +438,6 @@ def __call__( The request object. A request message for VpnGateways.AggregatedList. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -525,7 +524,6 @@ def __call__( The request object. A request message for VpnGateways.Delete. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -627,7 +625,6 @@ def __call__( The request object. A request message for VpnGateways.Get. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -723,7 +720,6 @@ def __call__( The request object. A request message for VpnGateways.GetStatus. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -810,7 +806,6 @@ def __call__( The request object. A request message for VpnGateways.Insert. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -921,7 +916,6 @@ def __call__( The request object. A request message for VpnGateways.List. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1010,7 +1004,6 @@ def __call__( The request object. A request message for VpnGateways.SetLabels. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1121,7 +1114,6 @@ def __call__( The request object. A request message for VpnGateways.TestIamPermissions. See the method description for details. - 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/compute_v1/services/vpn_tunnels/client.py b/google/cloud/compute_v1/services/vpn_tunnels/client.py index d365fd53f..06042f28e 100644 --- a/google/cloud/compute_v1/services/vpn_tunnels/client.py +++ b/google/cloud/compute_v1/services/vpn_tunnels/client.py @@ -435,8 +435,8 @@ def aggregated_list( Args: request (Union[google.cloud.compute_v1.types.AggregatedListVpnTunnelsRequest, dict]): The request object. A request message for - VpnTunnels.AggregatedList. See the method description - for details. + VpnTunnels.AggregatedList. See the + method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -522,8 +522,8 @@ def delete_unary( Args: request (Union[google.cloud.compute_v1.types.DeleteVpnTunnelRequest, dict]): The request object. A request message for - VpnTunnels.Delete. See the method description for - details. + VpnTunnels.Delete. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -621,8 +621,8 @@ def delete( Args: request (Union[google.cloud.compute_v1.types.DeleteVpnTunnelRequest, dict]): The request object. A request message for - VpnTunnels.Delete. See the method description for - details. + VpnTunnels.Delete. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -744,8 +744,8 @@ def get( Args: request (Union[google.cloud.compute_v1.types.GetVpnTunnelRequest, dict]): - The request object. A request message for - VpnTunnels.Get. See the method description for details. + The request object. A request message for VpnTunnels.Get. + See the method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -845,8 +845,8 @@ def insert_unary( Args: request (Union[google.cloud.compute_v1.types.InsertVpnTunnelRequest, dict]): The request object. A request message for - VpnTunnels.Insert. See the method description for - details. + VpnTunnels.Insert. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -942,8 +942,8 @@ def insert( Args: request (Union[google.cloud.compute_v1.types.InsertVpnTunnelRequest, dict]): The request object. A request message for - VpnTunnels.Insert. See the method description for - details. + VpnTunnels.Insert. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1063,7 +1063,8 @@ def list( Args: request (Union[google.cloud.compute_v1.types.ListVpnTunnelsRequest, dict]): The request object. A request message for - VpnTunnels.List. See the method description for details. + VpnTunnels.List. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1167,8 +1168,8 @@ def set_labels_unary( Args: request (Union[google.cloud.compute_v1.types.SetLabelsVpnTunnelRequest, dict]): The request object. A request message for - VpnTunnels.SetLabels. See the method description for - details. + VpnTunnels.SetLabels. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -1281,8 +1282,8 @@ def set_labels( Args: request (Union[google.cloud.compute_v1.types.SetLabelsVpnTunnelRequest, dict]): The request object. A request message for - VpnTunnels.SetLabels. See the method description for - details. + VpnTunnels.SetLabels. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field diff --git a/google/cloud/compute_v1/services/vpn_tunnels/transports/rest.py b/google/cloud/compute_v1/services/vpn_tunnels/transports/rest.py index 592453843..172ab1af3 100644 --- a/google/cloud/compute_v1/services/vpn_tunnels/transports/rest.py +++ b/google/cloud/compute_v1/services/vpn_tunnels/transports/rest.py @@ -376,7 +376,6 @@ def __call__( The request object. A request message for VpnTunnels.AggregatedList. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -463,7 +462,6 @@ def __call__( The request object. A request message for VpnTunnels.Delete. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -564,7 +562,6 @@ def __call__( request (~.compute.GetVpnTunnelRequest): The request object. A request message for VpnTunnels.Get. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -654,7 +651,6 @@ def __call__( The request object. A request message for VpnTunnels.Insert. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -765,7 +761,6 @@ def __call__( The request object. A request message for VpnTunnels.List. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -854,7 +849,6 @@ def __call__( The request object. A request message for VpnTunnels.SetLabels. See the method description for details. - 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/compute_v1/services/zone_operations/client.py b/google/cloud/compute_v1/services/zone_operations/client.py index cabacf602..2bd182b96 100644 --- a/google/cloud/compute_v1/services/zone_operations/client.py +++ b/google/cloud/compute_v1/services/zone_operations/client.py @@ -437,8 +437,8 @@ def delete( Args: request (Union[google.cloud.compute_v1.types.DeleteZoneOperationRequest, dict]): The request object. A request message for - ZoneOperations.Delete. See the method description for - details. + ZoneOperations.Delete. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -538,8 +538,8 @@ def get( Args: request (Union[google.cloud.compute_v1.types.GetZoneOperationRequest, dict]): The request object. A request message for - ZoneOperations.Get. See the method description for - details. + ZoneOperations.Get. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -650,8 +650,8 @@ def list( Args: request (Union[google.cloud.compute_v1.types.ListZoneOperationsRequest, dict]): The request object. A request message for - ZoneOperations.List. See the method description for - details. + ZoneOperations.List. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field @@ -762,8 +762,8 @@ def wait( Args: request (Union[google.cloud.compute_v1.types.WaitZoneOperationRequest, dict]): The request object. A request message for - ZoneOperations.Wait. See the method description for - details. + ZoneOperations.Wait. See the method + description for details. project (str): Project ID for this request. This corresponds to the ``project`` field diff --git a/google/cloud/compute_v1/services/zone_operations/transports/rest.py b/google/cloud/compute_v1/services/zone_operations/transports/rest.py index 02c58a971..1060129dd 100644 --- a/google/cloud/compute_v1/services/zone_operations/transports/rest.py +++ b/google/cloud/compute_v1/services/zone_operations/transports/rest.py @@ -320,7 +320,6 @@ def __call__( The request object. A request message for ZoneOperations.Delete. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -410,7 +409,6 @@ def __call__( The request object. A request message for ZoneOperations.Get. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -512,7 +510,6 @@ def __call__( The request object. A request message for ZoneOperations.List. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -601,7 +598,6 @@ def __call__( The request object. A request message for ZoneOperations.Wait. See the method description for details. - 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/compute_v1/services/zones/client.py b/google/cloud/compute_v1/services/zones/client.py index c1e61ddbe..6041f976a 100644 --- a/google/cloud/compute_v1/services/zones/client.py +++ b/google/cloud/compute_v1/services/zones/client.py @@ -523,8 +523,8 @@ def list( Args: request (Union[google.cloud.compute_v1.types.ListZonesRequest, dict]): - The request object. A request message for Zones.List. - See the method description for details. + The request object. A request message for Zones.List. See + the method description for details. project (str): Project ID for this request. This corresponds to the ``project`` field diff --git a/google/cloud/compute_v1/services/zones/transports/rest.py b/google/cloud/compute_v1/services/zones/transports/rest.py index 0811fdf05..1c86c066b 100644 --- a/google/cloud/compute_v1/services/zones/transports/rest.py +++ b/google/cloud/compute_v1/services/zones/transports/rest.py @@ -255,7 +255,6 @@ def __call__( request (~.compute.GetZoneRequest): The request object. A request message for Zones.Get. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -347,7 +346,6 @@ def __call__( request (~.compute.ListZonesRequest): The request object. A request message for Zones.List. See the method description for details. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. From 4c44d1930bce2e9599c7f86f55b94c7125c79a19 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Mon, 27 Mar 2023 11:55:26 -0400 Subject: [PATCH 7/7] chore(main): release 1.11.0 (#401) Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> --- .release-please-manifest.json | 2 +- CHANGELOG.md | 13 +++++++++++++ google/cloud/compute/gapic_version.py | 2 +- google/cloud/compute_v1/gapic_version.py | 2 +- 4 files changed, 16 insertions(+), 3 deletions(-) diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 211ac9a50..cf198b9b3 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "1.10.1" + ".": "1.11.0" } diff --git a/CHANGELOG.md b/CHANGELOG.md index ab032a1ff..a0431275c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,18 @@ # Changelog +## [1.11.0](https://github.com/googleapis/python-compute/compare/v1.10.1...v1.11.0) (2023-03-23) + + +### Features + +* Update Compute Engine API to revision 20230307 ([#770](https://github.com/googleapis/python-compute/issues/770)) ([#400](https://github.com/googleapis/python-compute/issues/400)) ([13bc576](https://github.com/googleapis/python-compute/commit/13bc5765120e72708beb2d9eb0c80ce56754cf18)) +* Update Compute Engine API to revision 20230307 ([#786](https://github.com/googleapis/python-compute/issues/786)) ([#403](https://github.com/googleapis/python-compute/issues/403)) ([acc70b8](https://github.com/googleapis/python-compute/commit/acc70b87f28251cd5cee1b585cb82b4185c9d6ea)) + + +### Documentation + +* Fix formatting of request arg in docstring ([#404](https://github.com/googleapis/python-compute/issues/404)) ([e9b13a0](https://github.com/googleapis/python-compute/commit/e9b13a03b34332c6ab0aa9f204b39b90ddbeaed0)) + ## [1.10.1](https://github.com/googleapis/python-compute/compare/v1.10.0...v1.10.1) (2023-02-23) diff --git a/google/cloud/compute/gapic_version.py b/google/cloud/compute/gapic_version.py index 6f9b28f95..98fb3f585 100644 --- a/google/cloud/compute/gapic_version.py +++ b/google/cloud/compute/gapic_version.py @@ -13,4 +13,4 @@ # See the License for the specific language governing permissions and # limitations under the License. # -__version__ = "1.10.1" # {x-release-please-version} +__version__ = "1.11.0" # {x-release-please-version} diff --git a/google/cloud/compute_v1/gapic_version.py b/google/cloud/compute_v1/gapic_version.py index 6f9b28f95..98fb3f585 100644 --- a/google/cloud/compute_v1/gapic_version.py +++ b/google/cloud/compute_v1/gapic_version.py @@ -13,4 +13,4 @@ # See the License for the specific language governing permissions and # limitations under the License. # -__version__ = "1.10.1" # {x-release-please-version} +__version__ = "1.11.0" # {x-release-please-version}