diff --git a/packages/google-cloud-compute-v1beta/google/cloud/compute_v1beta/gapic_version.py b/packages/google-cloud-compute-v1beta/google/cloud/compute_v1beta/gapic_version.py index 9a1da44d2468..20a9cd975b02 100644 --- a/packages/google-cloud-compute-v1beta/google/cloud/compute_v1beta/gapic_version.py +++ b/packages/google-cloud-compute-v1beta/google/cloud/compute_v1beta/gapic_version.py @@ -13,4 +13,4 @@ # See the License for the specific language governing permissions and # limitations under the License. # -__version__ = "0.1.8" # {x-release-please-version} +__version__ = "0.0.0" # {x-release-please-version} diff --git a/packages/google-cloud-compute-v1beta/google/cloud/compute_v1beta/services/projects/client.py b/packages/google-cloud-compute-v1beta/google/cloud/compute_v1beta/services/projects/client.py index 43ed73e2669f..561b1153b474 100644 --- a/packages/google-cloud-compute-v1beta/google/cloud/compute_v1beta/services/projects/client.py +++ b/packages/google-cloud-compute-v1beta/google/cloud/compute_v1beta/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-v1beta/google/cloud/compute_v1beta/types/compute.py b/packages/google-cloud-compute-v1beta/google/cloud/compute_v1beta/types/compute.py index 94e587330a88..06abc481cc2d 100644 --- a/packages/google-cloud-compute-v1beta/google/cloud/compute_v1beta/types/compute.py +++ b/packages/google-cloud-compute-v1beta/google/cloud/compute_v1beta/types/compute.py @@ -61821,6 +61821,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 @@ -62023,6 +62028,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, @@ -93386,6 +93397,11 @@ class PatchOrganizationSecurityPolicyRequest(proto.Message): Name of the security policy to update. security_policy_resource (google.cloud.compute_v1beta.types.SecurityPolicy): The body resource for this request + update_mask (str): + Indicates fields to be cleared as part of + this request. + + This field is a member of `oneof`_ ``_update_mask``. """ request_id: str = proto.Field( @@ -93402,6 +93418,11 @@ class PatchOrganizationSecurityPolicyRequest(proto.Message): number=216159612, message="SecurityPolicy", ) + update_mask: str = proto.Field( + proto.STRING, + number=500079778, + optional=True, + ) class PatchPacketMirroringRequest(proto.Message): @@ -94968,6 +94989,11 @@ class PatchRuleOrganizationSecurityPolicyRequest(proto.Message): Name of the security policy to update. security_policy_rule_resource (google.cloud.compute_v1beta.types.SecurityPolicyRule): The body resource for this request + update_mask (str): + Indicates fields to be cleared as part of + this request. + + This field is a member of `oneof`_ ``_update_mask``. """ priority: int = proto.Field( @@ -94989,6 +95015,11 @@ class PatchRuleOrganizationSecurityPolicyRequest(proto.Message): number=402693443, message="SecurityPolicyRule", ) + update_mask: str = proto.Field( + proto.STRING, + number=500079778, + optional=True, + ) class PatchRuleRegionNetworkFirewallPolicyRequest(proto.Message): diff --git a/packages/google-cloud-compute-v1beta/samples/generated_samples/snippet_metadata_google.cloud.compute.v1beta.json b/packages/google-cloud-compute-v1beta/samples/generated_samples/snippet_metadata_google.cloud.compute.v1beta.json index f76db24852ca..2f1169244dc3 100644 --- a/packages/google-cloud-compute-v1beta/samples/generated_samples/snippet_metadata_google.cloud.compute.v1beta.json +++ b/packages/google-cloud-compute-v1beta/samples/generated_samples/snippet_metadata_google.cloud.compute.v1beta.json @@ -8,7 +8,7 @@ ], "language": "PYTHON", "name": "google-cloud-compute-v1beta", - "version": "0.1.8" + "version": "0.1.0" }, "snippets": [ { diff --git a/packages/google-cloud-compute-v1beta/tests/unit/gapic/compute_v1beta/test_interconnect_locations.py b/packages/google-cloud-compute-v1beta/tests/unit/gapic/compute_v1beta/test_interconnect_locations.py index 31321b11a4d1..3a15f9549caf 100644 --- a/packages/google-cloud-compute-v1beta/tests/unit/gapic/compute_v1beta/test_interconnect_locations.py +++ b/packages/google-cloud-compute-v1beta/tests/unit/gapic/compute_v1beta/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-v1beta/tests/unit/gapic/compute_v1beta/test_organization_security_policies.py b/packages/google-cloud-compute-v1beta/tests/unit/gapic/compute_v1beta/test_organization_security_policies.py index 3a146c4ceb61..ee9fb7cbd296 100644 --- a/packages/google-cloud-compute-v1beta/tests/unit/gapic/compute_v1beta/test_organization_security_policies.py +++ b/packages/google-cloud-compute-v1beta/tests/unit/gapic/compute_v1beta/test_organization_security_policies.py @@ -4180,7 +4180,12 @@ def test_patch_rest_required_fields( credentials=ga_credentials.AnonymousCredentials() ).patch._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",)) + assert not set(unset_fields) - set( + ( + "request_id", + "update_mask", + ) + ) jsonified_request.update(unset_fields) # verify required fields with non-default values are left alone @@ -4237,7 +4242,12 @@ def test_patch_rest_unset_required_fields(): unset_fields = transport.patch._get_unset_required_fields({}) assert set(unset_fields) == ( - set(("requestId",)) + set( + ( + "requestId", + "updateMask", + ) + ) & set( ( "securityPolicy", @@ -4387,7 +4397,12 @@ def test_patch_unary_rest_required_fields( credentials=ga_credentials.AnonymousCredentials() ).patch._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",)) + assert not set(unset_fields) - set( + ( + "request_id", + "update_mask", + ) + ) jsonified_request.update(unset_fields) # verify required fields with non-default values are left alone @@ -4444,7 +4459,12 @@ def test_patch_unary_rest_unset_required_fields(): unset_fields = transport.patch._get_unset_required_fields({}) assert set(unset_fields) == ( - set(("requestId",)) + set( + ( + "requestId", + "updateMask", + ) + ) & set( ( "securityPolicy", @@ -4598,6 +4618,7 @@ def test_patch_rule_rest_required_fields( ( "priority", "request_id", + "update_mask", ) ) jsonified_request.update(unset_fields) @@ -4660,6 +4681,7 @@ def test_patch_rule_rest_unset_required_fields(): ( "priority", "requestId", + "updateMask", ) ) & set( @@ -4807,6 +4829,7 @@ def test_patch_rule_unary_rest_required_fields( ( "priority", "request_id", + "update_mask", ) ) jsonified_request.update(unset_fields) @@ -4869,6 +4892,7 @@ def test_patch_rule_unary_rest_unset_required_fields(): ( "priority", "requestId", + "updateMask", ) ) & set(