Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Original file line number Diff line number Diff line change
Expand Up @@ -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 <https://{$universe.dns_names.final_documentation_domain}/compute/docs/disks/migrate-to-hyperdisk#migrate-to-hd>`__.
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

Expand Down Expand Up @@ -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 <https://{$universe.dns_names.final_documentation_domain}/compute/docs/disks/migrate-to-hyperdisk#migrate-to-hd>`__.
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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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(
Expand All @@ -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):
Expand Down Expand Up @@ -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(
Expand All @@ -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):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
],
"language": "PYTHON",
"name": "google-cloud-compute-v1beta",
"version": "0.1.8"
"version": "0.1.0"
},
"snippets": [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
)
Expand Down Expand Up @@ -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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -4598,6 +4618,7 @@ def test_patch_rule_rest_required_fields(
(
"priority",
"request_id",
"update_mask",
)
)
jsonified_request.update(unset_fields)
Expand Down Expand Up @@ -4660,6 +4681,7 @@ def test_patch_rule_rest_unset_required_fields():
(
"priority",
"requestId",
"updateMask",
)
)
& set(
Expand Down Expand Up @@ -4807,6 +4829,7 @@ def test_patch_rule_unary_rest_required_fields(
(
"priority",
"request_id",
"update_mask",
)
)
jsonified_request.update(unset_fields)
Expand Down Expand Up @@ -4869,6 +4892,7 @@ def test_patch_rule_unary_rest_unset_required_fields():
(
"priority",
"requestId",
"updateMask",
)
)
& set(
Expand Down
Loading