Skip to content

Commit 723ac5d

Browse files
feat: [google-cloud-compute] Update Compute Engine v1 API to revision 20250708 (#1073) (#14107)
- [ ] Regenerate this pull request now. Source-Link: googleapis/googleapis@2ef62ea Source-Link: googleapis/googleapis-gen@35d446a Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWNvbXB1dGUvLk93bEJvdC55YW1sIiwiaCI6IjM1ZDQ0NmFiNWVlNzcxMjBiZmQ4ZDk4NDk4ZDI4ODgzYWRkMTdhNTAifQ== --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent 10d3aa9 commit 723ac5d

File tree

8 files changed

+134
-4
lines changed

8 files changed

+134
-4
lines changed

packages/google-cloud-compute/google/cloud/compute/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1436,6 +1436,8 @@
14361436
ReservationAggregatedList,
14371437
ReservationBlock,
14381438
ReservationBlockPhysicalTopology,
1439+
ReservationBlockPhysicalTopologyInstance,
1440+
ReservationBlockPhysicalTopologyInstancePhysicalHostTopology,
14391441
ReservationBlocksGetResponse,
14401442
ReservationBlocksListResponse,
14411443
ReservationList,
@@ -3180,6 +3182,8 @@
31803182
"ReservationAggregatedList",
31813183
"ReservationBlock",
31823184
"ReservationBlockPhysicalTopology",
3185+
"ReservationBlockPhysicalTopologyInstance",
3186+
"ReservationBlockPhysicalTopologyInstancePhysicalHostTopology",
31833187
"ReservationBlocksGetResponse",
31843188
"ReservationBlocksListResponse",
31853189
"ReservationList",

packages/google-cloud-compute/google/cloud/compute/gapic_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515
#
16-
__version__ = "1.32.0" # {x-release-please-version}
16+
__version__ = "0.0.0" # {x-release-please-version}

packages/google-cloud-compute/google/cloud/compute_v1/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1310,6 +1310,8 @@
13101310
ReservationAggregatedList,
13111311
ReservationBlock,
13121312
ReservationBlockPhysicalTopology,
1313+
ReservationBlockPhysicalTopologyInstance,
1314+
ReservationBlockPhysicalTopologyInstancePhysicalHostTopology,
13131315
ReservationBlocksGetResponse,
13141316
ReservationBlocksListResponse,
13151317
ReservationList,
@@ -3026,6 +3028,8 @@
30263028
"ReservationAggregatedList",
30273029
"ReservationBlock",
30283030
"ReservationBlockPhysicalTopology",
3031+
"ReservationBlockPhysicalTopologyInstance",
3032+
"ReservationBlockPhysicalTopologyInstancePhysicalHostTopology",
30293033
"ReservationBlocksClient",
30303034
"ReservationBlocksGetResponse",
30313035
"ReservationBlocksListResponse",

packages/google-cloud-compute/google/cloud/compute_v1/gapic_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515
#
16-
__version__ = "1.32.0" # {x-release-please-version}
16+
__version__ = "0.0.0" # {x-release-please-version}

packages/google-cloud-compute/google/cloud/compute_v1/types/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1196,6 +1196,8 @@
11961196
ReservationAggregatedList,
11971197
ReservationBlock,
11981198
ReservationBlockPhysicalTopology,
1199+
ReservationBlockPhysicalTopologyInstance,
1200+
ReservationBlockPhysicalTopologyInstancePhysicalHostTopology,
11991201
ReservationBlocksGetResponse,
12001202
ReservationBlocksListResponse,
12011203
ReservationList,
@@ -2837,6 +2839,8 @@
28372839
"ReservationAggregatedList",
28382840
"ReservationBlock",
28392841
"ReservationBlockPhysicalTopology",
2842+
"ReservationBlockPhysicalTopologyInstance",
2843+
"ReservationBlockPhysicalTopologyInstancePhysicalHostTopology",
28402844
"ReservationBlocksGetResponse",
28412845
"ReservationBlocksListResponse",
28422846
"ReservationList",

packages/google-cloud-compute/google/cloud/compute_v1/types/compute.py

Lines changed: 116 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1205,6 +1205,8 @@
12051205
"ReservationAggregatedList",
12061206
"ReservationBlock",
12071207
"ReservationBlockPhysicalTopology",
1208+
"ReservationBlockPhysicalTopologyInstance",
1209+
"ReservationBlockPhysicalTopologyInstancePhysicalHostTopology",
12081210
"ReservationBlocksGetResponse",
12091211
"ReservationBlocksListResponse",
12101212
"ReservationList",
@@ -35120,6 +35122,9 @@ class GetReservationBlockRequest(proto.Message):
3512035122
r"""A request message for ReservationBlocks.Get. See the method
3512135123
description for details.
3512235124

35125+
35126+
.. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields
35127+
3512335128
Attributes:
3512435129
project (str):
3512535130
Project ID for this request.
@@ -35129,11 +35134,38 @@ class GetReservationBlockRequest(proto.Message):
3512935134
reservation_block (str):
3513035135
The name of the reservation block. Name
3513135136
should conform to RFC1035 or be a resource ID.
35137+
view (str):
35138+
View of the Block.
35139+
Check the View enum for the list of possible
35140+
values.
35141+
35142+
This field is a member of `oneof`_ ``_view``.
3513235143
zone (str):
3513335144
Name of the zone for this request. Zone name
3513435145
should conform to RFC1035.
3513535146
"""
3513635147

35148+
class View(proto.Enum):
35149+
r"""View of the Block.
35150+
35151+
Values:
35152+
UNDEFINED_VIEW (0):
35153+
A value indicating that the enum field is not
35154+
set.
35155+
BASIC (62970894):
35156+
This view includes basic information about
35157+
the reservation block
35158+
BLOCK_VIEW_UNSPECIFIED (275070479):
35159+
The default / unset value. The API will
35160+
default to the BASIC view.
35161+
FULL (2169487):
35162+
Includes detailed topology view.
35163+
"""
35164+
UNDEFINED_VIEW = 0
35165+
BASIC = 62970894
35166+
BLOCK_VIEW_UNSPECIFIED = 275070479
35167+
FULL = 2169487
35168+
3513735169
project: str = proto.Field(
3513835170
proto.STRING,
3513935171
number=227560217,
@@ -35146,6 +35178,11 @@ class GetReservationBlockRequest(proto.Message):
3514635178
proto.STRING,
3514735179
number=532832858,
3514835180
)
35181+
view: str = proto.Field(
35182+
proto.STRING,
35183+
number=3619493,
35184+
optional=True,
35185+
)
3514935186
zone: str = proto.Field(
3515035187
proto.STRING,
3515135188
number=3744684,
@@ -92041,6 +92078,9 @@ class ReservationBlockPhysicalTopology(proto.Message):
9204192078
The cluster name of the reservation block.
9204292079

9204392080
This field is a member of `oneof`_ ``_cluster``.
92081+
instances (MutableSequence[google.cloud.compute_v1.types.ReservationBlockPhysicalTopologyInstance]):
92082+
The detailed instances information for a
92083+
given Block
9204492084
"""
9204592085

9204692086
block: str = proto.Field(
@@ -92053,6 +92093,82 @@ class ReservationBlockPhysicalTopology(proto.Message):
9205392093
number=335221242,
9205492094
optional=True,
9205592095
)
92096+
instances: MutableSequence[
92097+
"ReservationBlockPhysicalTopologyInstance"
92098+
] = proto.RepeatedField(
92099+
proto.MESSAGE,
92100+
number=29097598,
92101+
message="ReservationBlockPhysicalTopologyInstance",
92102+
)
92103+
92104+
92105+
class ReservationBlockPhysicalTopologyInstance(proto.Message):
92106+
r"""The instances information for a given Block
92107+
92108+
.. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields
92109+
92110+
Attributes:
92111+
instance_id (int):
92112+
The InstanceId of the instance
92113+
92114+
This field is a member of `oneof`_ ``_instance_id``.
92115+
physical_host_topology (google.cloud.compute_v1.types.ReservationBlockPhysicalTopologyInstancePhysicalHostTopology):
92116+
The PhysicalHostTopology of instances within
92117+
a Block resource.
92118+
92119+
This field is a member of `oneof`_ ``_physical_host_topology``.
92120+
project_id (int):
92121+
Project where the instance lives
92122+
92123+
This field is a member of `oneof`_ ``_project_id``.
92124+
"""
92125+
92126+
instance_id: int = proto.Field(
92127+
proto.UINT64,
92128+
number=45488389,
92129+
optional=True,
92130+
)
92131+
physical_host_topology: "ReservationBlockPhysicalTopologyInstancePhysicalHostTopology" = proto.Field(
92132+
proto.MESSAGE,
92133+
number=390842814,
92134+
optional=True,
92135+
message="ReservationBlockPhysicalTopologyInstancePhysicalHostTopology",
92136+
)
92137+
project_id: int = proto.Field(
92138+
proto.UINT64,
92139+
number=177513473,
92140+
optional=True,
92141+
)
92142+
92143+
92144+
class ReservationBlockPhysicalTopologyInstancePhysicalHostTopology(proto.Message):
92145+
r"""The PhysicalHostTopology of the instance within a Block
92146+
resource.
92147+
92148+
92149+
.. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields
92150+
92151+
Attributes:
92152+
host (str):
92153+
Host hash for a given instance
92154+
92155+
This field is a member of `oneof`_ ``_host``.
92156+
sub_block (str):
92157+
Sub block hash for a given instance
92158+
92159+
This field is a member of `oneof`_ ``_sub_block``.
92160+
"""
92161+
92162+
host: str = proto.Field(
92163+
proto.STRING,
92164+
number=3208616,
92165+
optional=True,
92166+
)
92167+
sub_block: str = proto.Field(
92168+
proto.STRING,
92169+
number=478033358,
92170+
optional=True,
92171+
)
9205692172

9205792173

9205892174
class ReservationBlocksGetResponse(proto.Message):

packages/google-cloud-compute/samples/generated_samples/snippet_metadata_google.cloud.compute.v1.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
],
99
"language": "PYTHON",
1010
"name": "google-cloud-compute",
11-
"version": "1.32.0"
11+
"version": "0.1.0"
1212
},
1313
"snippets": [
1414
{

packages/google-cloud-compute/tests/unit/gapic/compute_v1/test_reservation_blocks.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1047,6 +1047,8 @@ def test_get_rest_required_fields(request_type=compute.GetReservationBlockReques
10471047
unset_fields = transport_class(
10481048
credentials=ga_credentials.AnonymousCredentials()
10491049
).get._get_unset_required_fields(jsonified_request)
1050+
# Check that path parameters and body parameters are not mixing in.
1051+
assert not set(unset_fields) - set(("view",))
10501052
jsonified_request.update(unset_fields)
10511053

10521054
# verify required fields with non-default values are left alone
@@ -1108,7 +1110,7 @@ def test_get_rest_unset_required_fields():
11081110

11091111
unset_fields = transport.get._get_unset_required_fields({})
11101112
assert set(unset_fields) == (
1111-
set(())
1113+
set(("view",))
11121114
& set(
11131115
(
11141116
"project",

0 commit comments

Comments
 (0)