diff --git a/packages/google-cloud-compute/google/cloud/compute/__init__.py b/packages/google-cloud-compute/google/cloud/compute/__init__.py index 1667f83c457e..aef642c6c51c 100644 --- a/packages/google-cloud-compute/google/cloud/compute/__init__.py +++ b/packages/google-cloud-compute/google/cloud/compute/__init__.py @@ -1751,6 +1751,9 @@ SubnetworksScopedList, SubnetworksScopedWarning, SubnetworksSetPrivateIpGoogleAccessRequest, + SubnetworkUtilizationDetails, + SubnetworkUtilizationDetailsIPV4Utilization, + SubnetworkUtilizationDetailsIPV6Utilization, Subsetting, SuspendInstanceRequest, SuspendInstancesInstanceGroupManagerRequest, @@ -3526,6 +3529,9 @@ "SubnetworksScopedList", "SubnetworksScopedWarning", "SubnetworksSetPrivateIpGoogleAccessRequest", + "SubnetworkUtilizationDetails", + "SubnetworkUtilizationDetailsIPV4Utilization", + "SubnetworkUtilizationDetailsIPV6Utilization", "Subsetting", "SuspendInstanceRequest", "SuspendInstancesInstanceGroupManagerRequest", diff --git a/packages/google-cloud-compute/google/cloud/compute/gapic_version.py b/packages/google-cloud-compute/google/cloud/compute/gapic_version.py index 16acd4e8761c..20a9cd975b02 100644 --- a/packages/google-cloud-compute/google/cloud/compute/gapic_version.py +++ b/packages/google-cloud-compute/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.38.0" # {x-release-please-version} +__version__ = "0.0.0" # {x-release-please-version} diff --git a/packages/google-cloud-compute/google/cloud/compute_v1/__init__.py b/packages/google-cloud-compute/google/cloud/compute_v1/__init__.py index 356c8e33d716..f65cf8b7b202 100644 --- a/packages/google-cloud-compute/google/cloud/compute_v1/__init__.py +++ b/packages/google-cloud-compute/google/cloud/compute_v1/__init__.py @@ -1625,6 +1625,9 @@ SubnetworksScopedList, SubnetworksScopedWarning, SubnetworksSetPrivateIpGoogleAccessRequest, + SubnetworkUtilizationDetails, + SubnetworkUtilizationDetailsIPV4Utilization, + SubnetworkUtilizationDetailsIPV6Utilization, Subsetting, SuspendInstanceRequest, SuspendInstancesInstanceGroupManagerRequest, @@ -3382,6 +3385,9 @@ "SubnetworkLogConfig", "SubnetworkParams", "SubnetworkSecondaryRange", + "SubnetworkUtilizationDetails", + "SubnetworkUtilizationDetailsIPV4Utilization", + "SubnetworkUtilizationDetailsIPV6Utilization", "SubnetworksClient", "SubnetworksExpandIpCidrRangeRequest", "SubnetworksScopedList", diff --git a/packages/google-cloud-compute/google/cloud/compute_v1/gapic_version.py b/packages/google-cloud-compute/google/cloud/compute_v1/gapic_version.py index 16acd4e8761c..20a9cd975b02 100644 --- a/packages/google-cloud-compute/google/cloud/compute_v1/gapic_version.py +++ b/packages/google-cloud-compute/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.38.0" # {x-release-please-version} +__version__ = "0.0.0" # {x-release-please-version} diff --git a/packages/google-cloud-compute/google/cloud/compute_v1/services/projects/client.py b/packages/google-cloud-compute/google/cloud/compute_v1/services/projects/client.py index 47f333c721a9..efd45a36c87d 100644 --- a/packages/google-cloud-compute/google/cloud/compute_v1/services/projects/client.py +++ b/packages/google-cloud-compute/google/cloud/compute_v1/services/projects/client.py @@ -2183,7 +2183,15 @@ def move_disk_unary( timeout: Union[float, object] = gapic_v1.method.DEFAULT, metadata: Sequence[Tuple[str, Union[str, bytes]]] = (), ) -> compute.Operation: - r"""Moves a persistent disk from one zone to another. + r"""Starting September 29, 2025, you can't use the moveDisk API on + new projects. To move a disk to a different region or zone, + follow the steps in `Change the location of a + disk `__. + Projects that already use the moveDisk API can continue usage + until September 29, 2026. Starting November 1, 2025, API + responses will include a warning message in the response body + about the upcoming deprecation. You can skip the message to + continue using the service without interruption. .. code-block:: python @@ -2298,7 +2306,15 @@ def move_disk( timeout: Union[float, object] = gapic_v1.method.DEFAULT, metadata: Sequence[Tuple[str, Union[str, bytes]]] = (), ) -> extended_operation.ExtendedOperation: - r"""Moves a persistent disk from one zone to another. + r"""Starting September 29, 2025, you can't use the moveDisk API on + new projects. To move a disk to a different region or zone, + follow the steps in `Change the location of a + disk `__. + Projects that already use the moveDisk API can continue usage + until September 29, 2026. Starting November 1, 2025, API + responses will include a warning message in the response body + about the upcoming deprecation. You can skip the message to + continue using the service without interruption. .. code-block:: python diff --git a/packages/google-cloud-compute/google/cloud/compute_v1/types/__init__.py b/packages/google-cloud-compute/google/cloud/compute_v1/types/__init__.py index 0a211eb44f15..1fdff31b4056 100644 --- a/packages/google-cloud-compute/google/cloud/compute_v1/types/__init__.py +++ b/packages/google-cloud-compute/google/cloud/compute_v1/types/__init__.py @@ -1511,6 +1511,9 @@ SubnetworksScopedList, SubnetworksScopedWarning, SubnetworksSetPrivateIpGoogleAccessRequest, + SubnetworkUtilizationDetails, + SubnetworkUtilizationDetailsIPV4Utilization, + SubnetworkUtilizationDetailsIPV6Utilization, Subsetting, SuspendInstanceRequest, SuspendInstancesInstanceGroupManagerRequest, @@ -3183,6 +3186,9 @@ "SubnetworksScopedList", "SubnetworksScopedWarning", "SubnetworksSetPrivateIpGoogleAccessRequest", + "SubnetworkUtilizationDetails", + "SubnetworkUtilizationDetailsIPV4Utilization", + "SubnetworkUtilizationDetailsIPV6Utilization", "Subsetting", "SuspendInstanceRequest", "SuspendInstancesInstanceGroupManagerRequest", diff --git a/packages/google-cloud-compute/google/cloud/compute_v1/types/compute.py b/packages/google-cloud-compute/google/cloud/compute_v1/types/compute.py index 75954a61316c..5de12110557a 100644 --- a/packages/google-cloud-compute/google/cloud/compute_v1/types/compute.py +++ b/packages/google-cloud-compute/google/cloud/compute_v1/types/compute.py @@ -1516,6 +1516,9 @@ "SubnetworkLogConfig", "SubnetworkParams", "SubnetworkSecondaryRange", + "SubnetworkUtilizationDetails", + "SubnetworkUtilizationDetailsIPV4Utilization", + "SubnetworkUtilizationDetailsIPV6Utilization", "SubnetworksExpandIpCidrRangeRequest", "SubnetworksScopedList", "SubnetworksScopedWarning", @@ -36251,6 +36254,9 @@ class GetSubnetworkRequest(proto.Message): r"""A request message for Subnetworks.Get. 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. @@ -36258,8 +36264,33 @@ class GetSubnetworkRequest(proto.Message): Name of the region scoping this request. subnetwork (str): Name of the Subnetwork resource to return. + views (str): + Defines the extra views returned back in the subnetwork + resource. Supported values: - WITH_UTILIZATION: Utilization + data is included in the response. Check the Views enum for + the list of possible values. + + This field is a member of `oneof`_ ``_views``. """ + class Views(proto.Enum): + r"""Defines the extra views returned back in the subnetwork resource. + Supported values: - WITH_UTILIZATION: Utilization data is included + in the response. + + Values: + UNDEFINED_VIEWS (0): + A value indicating that the enum field is not + set. + DEFAULT (115302945): + No description available. + WITH_UTILIZATION (504090633): + Utilization data is included in the response. + """ + UNDEFINED_VIEWS = 0 + DEFAULT = 115302945 + WITH_UTILIZATION = 504090633 + project: str = proto.Field( proto.STRING, number=227560217, @@ -36272,6 +36303,11 @@ class GetSubnetworkRequest(proto.Message): proto.STRING, number=307827694, ) + views: str = proto.Field( + proto.STRING, + number=112204398, + optional=True, + ) class GetTargetGrpcProxyRequest(proto.Message): @@ -55309,6 +55345,11 @@ class InterconnectLocation(proto.Message): [Output Only] Server-defined URL for the resource. This field is a member of `oneof`_ ``_self_link``. + single_region_production_critical_peer_locations (MutableSequence[str]): + [Output Only] URLs of the other locations that can pair up + with this location to support Single-Region 99.99% SLA. E.g. + iad-zone1-1 and iad-zone2-5467 are Single-Region 99.99% peer + locations of each other. status (str): [Output Only] The status of this InterconnectLocation, which can take one of the following values: - CLOSED: The @@ -55501,6 +55542,12 @@ class Status(proto.Enum): number=456214797, optional=True, ) + single_region_production_critical_peer_locations: MutableSequence[ + str + ] = proto.RepeatedField( + proto.STRING, + number=439537103, + ) status: str = proto.Field( proto.STRING, number=181260274, @@ -56113,6 +56160,13 @@ class InterconnectRemoteLocation(proto.Message): requestedLinkCount cannot exceed max_lag_size_10_gbps. This field is a member of `oneof`_ ``_max_lag_size10_gbps``. + max_lag_size400_gbps (int): + [Output Only] The maximum number of 400 Gbps ports supported + in a link aggregation group (LAG). When linkType is 400 + Gbps, requestedLinkCount cannot exceed + max_lag_size_400_gbps. + + This field is a member of `oneof`_ ``_max_lag_size400_gbps``. name (str): [Output Only] Name of the resource. @@ -56290,6 +56344,11 @@ class Status(proto.Enum): number=294007573, optional=True, ) + max_lag_size400_gbps: int = proto.Field( + proto.INT32, + number=104941138, + optional=True, + ) name: str = proto.Field( proto.STRING, number=3373707, @@ -70835,8 +70894,33 @@ class ListSubnetworksRequest(proto.Message): resources, with an error code. This field is a member of `oneof`_ ``_return_partial_success``. + views (str): + Defines the extra views returned back in the subnetwork + resource. Supported values: - WITH_UTILIZATION: Utilization + data is included in the response. Check the Views enum for + the list of possible values. + + This field is a member of `oneof`_ ``_views``. """ + class Views(proto.Enum): + r"""Defines the extra views returned back in the subnetwork resource. + Supported values: - WITH_UTILIZATION: Utilization data is included + in the response. + + Values: + UNDEFINED_VIEWS (0): + A value indicating that the enum field is not + set. + DEFAULT (115302945): + No description available. + WITH_UTILIZATION (504090633): + Utilization data is included in the response. + """ + UNDEFINED_VIEWS = 0 + DEFAULT = 115302945 + WITH_UTILIZATION = 504090633 + filter: str = proto.Field( proto.STRING, number=336120696, @@ -70870,6 +70954,11 @@ class ListSubnetworksRequest(proto.Message): number=517198390, optional=True, ) + views: str = proto.Field( + proto.STRING, + number=112204398, + optional=True, + ) class ListTargetGrpcProxiesRequest(proto.Message): @@ -92428,6 +92517,11 @@ class RequestMirrorPolicy(proto.Message): supported as a mirrored backend service. This field is a member of `oneof`_ ``_backend_service``. + mirror_percent (float): + The percentage of requests to be mirrored to + ``backend_service``. + + This field is a member of `oneof`_ ``_mirror_percent``. """ backend_service: str = proto.Field( @@ -92435,6 +92529,11 @@ class RequestMirrorPolicy(proto.Message): number=306946058, optional=True, ) + mirror_percent: float = proto.Field( + proto.DOUBLE, + number=277432261, + optional=True, + ) class RequestRemovePeeringNetworkRequest(proto.Message): @@ -112676,6 +112775,12 @@ class Subnetwork(proto.Message): Output only. [Output Only] The array of internal IPv6 network ranges reserved from the subnetwork's internal IPv6 range for system use. + utilization_details (google.cloud.compute_v1.types.SubnetworkUtilizationDetails): + Output only. [Output Only] The current IP utilization of all + subnetwork ranges. Contains the total number of allocated + and free IPs in each range. + + This field is a member of `oneof`_ ``_utilization_details``. """ class Ipv6AccessType(proto.Enum): @@ -113019,6 +113124,12 @@ class State(proto.Enum): proto.STRING, number=432294995, ) + utilization_details: "SubnetworkUtilizationDetails" = proto.Field( + proto.MESSAGE, + number=125404453, + optional=True, + message="SubnetworkUtilizationDetails", + ) class SubnetworkAggregatedList(proto.Message): @@ -113389,6 +113500,127 @@ class SubnetworkSecondaryRange(proto.Message): ) +class SubnetworkUtilizationDetails(proto.Message): + r"""The current IP utilization of all subnetwork ranges. Contains + the total number of allocated and free IPs in each range. + + + .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields + + Attributes: + external_ipv6_instance_utilization (google.cloud.compute_v1.types.SubnetworkUtilizationDetailsIPV6Utilization): + Utilizations of external IPV6 IP range. + + This field is a member of `oneof`_ ``_external_ipv6_instance_utilization``. + external_ipv6_lb_utilization (google.cloud.compute_v1.types.SubnetworkUtilizationDetailsIPV6Utilization): + Utilizations of external IPV6 IP range for + NetLB. + + This field is a member of `oneof`_ ``_external_ipv6_lb_utilization``. + internal_ipv6_utilization (google.cloud.compute_v1.types.SubnetworkUtilizationDetailsIPV6Utilization): + Utilizations of internal IPV6 IP range. + + This field is a member of `oneof`_ ``_internal_ipv6_utilization``. + ipv4_utilizations (MutableSequence[google.cloud.compute_v1.types.SubnetworkUtilizationDetailsIPV4Utilization]): + Utilizations of all IPV4 IP ranges. For + primary ranges, the range name will be empty. + """ + + external_ipv6_instance_utilization: "SubnetworkUtilizationDetailsIPV6Utilization" = proto.Field( + proto.MESSAGE, + number=419750236, + optional=True, + message="SubnetworkUtilizationDetailsIPV6Utilization", + ) + external_ipv6_lb_utilization: "SubnetworkUtilizationDetailsIPV6Utilization" = ( + proto.Field( + proto.MESSAGE, + number=136563645, + optional=True, + message="SubnetworkUtilizationDetailsIPV6Utilization", + ) + ) + internal_ipv6_utilization: "SubnetworkUtilizationDetailsIPV6Utilization" = ( + proto.Field( + proto.MESSAGE, + number=69707020, + optional=True, + message="SubnetworkUtilizationDetailsIPV6Utilization", + ) + ) + ipv4_utilizations: MutableSequence[ + "SubnetworkUtilizationDetailsIPV4Utilization" + ] = proto.RepeatedField( + proto.MESSAGE, + number=206180011, + message="SubnetworkUtilizationDetailsIPV4Utilization", + ) + + +class SubnetworkUtilizationDetailsIPV4Utilization(proto.Message): + r"""The IPV4 utilization of a single IP range. + + .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields + + Attributes: + range_name (str): + Will be set for secondary range. Empty for + primary IPv4 range. + + This field is a member of `oneof`_ ``_range_name``. + total_allocated_ip (int): + + This field is a member of `oneof`_ ``_total_allocated_ip``. + total_free_ip (int): + + This field is a member of `oneof`_ ``_total_free_ip``. + """ + + range_name: str = proto.Field( + proto.STRING, + number=332216397, + optional=True, + ) + total_allocated_ip: int = proto.Field( + proto.INT64, + number=279055546, + optional=True, + ) + total_free_ip: int = proto.Field( + proto.INT64, + number=105624031, + optional=True, + ) + + +class SubnetworkUtilizationDetailsIPV6Utilization(proto.Message): + r"""The IPV6 utilization of a single IP range. + + .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields + + Attributes: + total_allocated_ip (google.cloud.compute_v1.types.Uint128): + + This field is a member of `oneof`_ ``_total_allocated_ip``. + total_free_ip (google.cloud.compute_v1.types.Uint128): + + This field is a member of `oneof`_ ``_total_free_ip``. + """ + + total_allocated_ip: "Uint128" = proto.Field( + proto.MESSAGE, + number=279055546, + optional=True, + message="Uint128", + ) + total_free_ip: "Uint128" = proto.Field( + proto.MESSAGE, + number=105624031, + optional=True, + message="Uint128", + ) + + class SubnetworksExpandIpCidrRangeRequest(proto.Message): r""" diff --git a/packages/google-cloud-compute/samples/generated_samples/snippet_metadata_google.cloud.compute.v1.json b/packages/google-cloud-compute/samples/generated_samples/snippet_metadata_google.cloud.compute.v1.json index 3b8d5a679a89..3a7a51a04ebd 100644 --- a/packages/google-cloud-compute/samples/generated_samples/snippet_metadata_google.cloud.compute.v1.json +++ b/packages/google-cloud-compute/samples/generated_samples/snippet_metadata_google.cloud.compute.v1.json @@ -8,7 +8,7 @@ ], "language": "PYTHON", "name": "google-cloud-compute", - "version": "1.38.0" + "version": "0.1.0" }, "snippets": [ { diff --git a/packages/google-cloud-compute/tests/unit/gapic/compute_v1/test_interconnect_locations.py b/packages/google-cloud-compute/tests/unit/gapic/compute_v1/test_interconnect_locations.py index 104c4599df8d..380b5a75dd6f 100644 --- a/packages/google-cloud-compute/tests/unit/gapic/compute_v1/test_interconnect_locations.py +++ b/packages/google-cloud-compute/tests/unit/gapic/compute_v1/test_interconnect_locations.py @@ -1579,6 +1579,9 @@ def test_get_rest_call_success(request_type): name="name_value", peeringdb_facility_id="peeringdb_facility_id_value", self_link="self_link_value", + single_region_production_critical_peer_locations=[ + "single_region_production_critical_peer_locations_value" + ], status="status_value", supports_pzs=True, ) @@ -1614,6 +1617,9 @@ def test_get_rest_call_success(request_type): assert response.name == "name_value" assert response.peeringdb_facility_id == "peeringdb_facility_id_value" assert response.self_link == "self_link_value" + assert response.single_region_production_critical_peer_locations == [ + "single_region_production_critical_peer_locations_value" + ] assert response.status == "status_value" assert response.supports_pzs is True diff --git a/packages/google-cloud-compute/tests/unit/gapic/compute_v1/test_interconnect_remote_locations.py b/packages/google-cloud-compute/tests/unit/gapic/compute_v1/test_interconnect_remote_locations.py index 1bb860d2be0c..2df75ffffe6d 100644 --- a/packages/google-cloud-compute/tests/unit/gapic/compute_v1/test_interconnect_remote_locations.py +++ b/packages/google-cloud-compute/tests/unit/gapic/compute_v1/test_interconnect_remote_locations.py @@ -1606,6 +1606,7 @@ def test_get_rest_call_success(request_type): lacp="lacp_value", max_lag_size100_gbps=1935, max_lag_size10_gbps=1887, + max_lag_size400_gbps=1938, name="name_value", peeringdb_facility_id="peeringdb_facility_id_value", remote_service="remote_service_value", @@ -1641,6 +1642,7 @@ def test_get_rest_call_success(request_type): assert response.lacp == "lacp_value" assert response.max_lag_size100_gbps == 1935 assert response.max_lag_size10_gbps == 1887 + assert response.max_lag_size400_gbps == 1938 assert response.name == "name_value" assert response.peeringdb_facility_id == "peeringdb_facility_id_value" assert response.remote_service == "remote_service_value" diff --git a/packages/google-cloud-compute/tests/unit/gapic/compute_v1/test_region_url_maps.py b/packages/google-cloud-compute/tests/unit/gapic/compute_v1/test_region_url_maps.py index cc717f2df094..dd056047b577 100644 --- a/packages/google-cloud-compute/tests/unit/gapic/compute_v1/test_region_url_maps.py +++ b/packages/google-cloud-compute/tests/unit/gapic/compute_v1/test_region_url_maps.py @@ -3781,7 +3781,10 @@ def test_insert_rest_call_success(request_type): }, }, "max_stream_duration": {}, - "request_mirror_policy": {"backend_service": "backend_service_value"}, + "request_mirror_policy": { + "backend_service": "backend_service_value", + "mirror_percent": 0.1515, + }, "retry_policy": { "num_retries": 1197, "per_try_timeout": {}, @@ -4333,7 +4336,10 @@ def test_patch_rest_call_success(request_type): }, }, "max_stream_duration": {}, - "request_mirror_policy": {"backend_service": "backend_service_value"}, + "request_mirror_policy": { + "backend_service": "backend_service_value", + "mirror_percent": 0.1515, + }, "retry_policy": { "num_retries": 1197, "per_try_timeout": {}, @@ -4754,7 +4760,10 @@ def test_update_rest_call_success(request_type): }, }, "max_stream_duration": {}, - "request_mirror_policy": {"backend_service": "backend_service_value"}, + "request_mirror_policy": { + "backend_service": "backend_service_value", + "mirror_percent": 0.1515, + }, "retry_policy": { "num_retries": 1197, "per_try_timeout": {}, @@ -5179,7 +5188,10 @@ def test_validate_rest_call_success(request_type): }, }, "max_stream_duration": {}, - "request_mirror_policy": {"backend_service": "backend_service_value"}, + "request_mirror_policy": { + "backend_service": "backend_service_value", + "mirror_percent": 0.1515, + }, "retry_policy": { "num_retries": 1197, "per_try_timeout": {}, diff --git a/packages/google-cloud-compute/tests/unit/gapic/compute_v1/test_subnetworks.py b/packages/google-cloud-compute/tests/unit/gapic/compute_v1/test_subnetworks.py index 9d236de43da2..9b4be450fc49 100644 --- a/packages/google-cloud-compute/tests/unit/gapic/compute_v1/test_subnetworks.py +++ b/packages/google-cloud-compute/tests/unit/gapic/compute_v1/test_subnetworks.py @@ -2130,6 +2130,8 @@ def test_get_rest_required_fields(request_type=compute.GetSubnetworkRequest): unset_fields = transport_class( credentials=ga_credentials.AnonymousCredentials() ).get._get_unset_required_fields(jsonified_request) + # Check that path parameters and body parameters are not mixing in. + assert not set(unset_fields) - set(("views",)) jsonified_request.update(unset_fields) # verify required fields with non-default values are left alone @@ -2189,7 +2191,7 @@ def test_get_rest_unset_required_fields(): unset_fields = transport.get._get_unset_required_fields({}) assert set(unset_fields) == ( - set(()) + set(("views",)) & set( ( "project", @@ -2952,6 +2954,7 @@ def test_list_rest_required_fields(request_type=compute.ListSubnetworksRequest): "order_by", "page_token", "return_partial_success", + "views", ) ) jsonified_request.update(unset_fields) @@ -3018,6 +3021,7 @@ def test_list_rest_unset_required_fields(): "orderBy", "pageToken", "returnPartialSuccess", + "views", ) ) & set( @@ -5777,6 +5781,21 @@ def test_insert_rest_call_success(request_type): "system_reserved_internal_ipv6_ranges_value1", "system_reserved_internal_ipv6_ranges_value2", ], + "utilization_details": { + "external_ipv6_instance_utilization": { + "total_allocated_ip": {"high": 416, "low": 338}, + "total_free_ip": {}, + }, + "external_ipv6_lb_utilization": {}, + "internal_ipv6_utilization": {}, + "ipv4_utilizations": [ + { + "range_name": "range_name_value", + "total_allocated_ip": 1892, + "total_free_ip": 1373, + } + ], + }, } # The version of a generated dependency at test runtime may differ from the version used during generation. # Delete any fields which are not present in the current runtime dependency @@ -6331,6 +6350,21 @@ def test_patch_rest_call_success(request_type): "system_reserved_internal_ipv6_ranges_value1", "system_reserved_internal_ipv6_ranges_value2", ], + "utilization_details": { + "external_ipv6_instance_utilization": { + "total_allocated_ip": {"high": 416, "low": 338}, + "total_free_ip": {}, + }, + "external_ipv6_lb_utilization": {}, + "internal_ipv6_utilization": {}, + "ipv4_utilizations": [ + { + "range_name": "range_name_value", + "total_allocated_ip": 1892, + "total_free_ip": 1373, + } + ], + }, } # The version of a generated dependency at test runtime may differ from the version used during generation. # Delete any fields which are not present in the current runtime dependency diff --git a/packages/google-cloud-compute/tests/unit/gapic/compute_v1/test_url_maps.py b/packages/google-cloud-compute/tests/unit/gapic/compute_v1/test_url_maps.py index f28823e0191f..3be0afcf503a 100644 --- a/packages/google-cloud-compute/tests/unit/gapic/compute_v1/test_url_maps.py +++ b/packages/google-cloud-compute/tests/unit/gapic/compute_v1/test_url_maps.py @@ -4434,7 +4434,10 @@ def test_insert_rest_call_success(request_type): }, }, "max_stream_duration": {}, - "request_mirror_policy": {"backend_service": "backend_service_value"}, + "request_mirror_policy": { + "backend_service": "backend_service_value", + "mirror_percent": 0.1515, + }, "retry_policy": { "num_retries": 1197, "per_try_timeout": {}, @@ -5225,7 +5228,10 @@ def test_patch_rest_call_success(request_type): }, }, "max_stream_duration": {}, - "request_mirror_policy": {"backend_service": "backend_service_value"}, + "request_mirror_policy": { + "backend_service": "backend_service_value", + "mirror_percent": 0.1515, + }, "retry_policy": { "num_retries": 1197, "per_try_timeout": {}, @@ -5642,7 +5648,10 @@ def test_update_rest_call_success(request_type): }, }, "max_stream_duration": {}, - "request_mirror_policy": {"backend_service": "backend_service_value"}, + "request_mirror_policy": { + "backend_service": "backend_service_value", + "mirror_percent": 0.1515, + }, "retry_policy": { "num_retries": 1197, "per_try_timeout": {}, @@ -6067,7 +6076,10 @@ def test_validate_rest_call_success(request_type): }, }, "max_stream_duration": {}, - "request_mirror_policy": {"backend_service": "backend_service_value"}, + "request_mirror_policy": { + "backend_service": "backend_service_value", + "mirror_percent": 0.1515, + }, "retry_policy": { "num_retries": 1197, "per_try_timeout": {},