Skip to content

Commit 184c2f3

Browse files
feat: [google-cloud-compute-v1beta] Update Compute Engine v1beta API to revision 20250708 (#1072) (#14109)
- [ ] Regenerate this pull request now. Source-Link: googleapis/googleapis@016414f Source-Link: googleapis/googleapis-gen@259de81 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWNvbXB1dGUtdjFiZXRhLy5Pd2xCb3QueWFtbCIsImgiOiIyNTlkZTgxM2UwNWU3NTJkNzkwOTI5NjZiNWY4MTY5NDViZmNkZGNhIn0= --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent 723ac5d commit 184c2f3

File tree

6 files changed

+129
-3
lines changed

6 files changed

+129
-3
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1477,6 +1477,8 @@
14771477
ReservationAggregatedList,
14781478
ReservationBlock,
14791479
ReservationBlockPhysicalTopology,
1480+
ReservationBlockPhysicalTopologyInstance,
1481+
ReservationBlockPhysicalTopologyInstancePhysicalHostTopology,
14801482
ReservationBlocksGetResponse,
14811483
ReservationBlocksListResponse,
14821484
ReservationList,
@@ -3442,6 +3444,8 @@
34423444
"ReservationAggregatedList",
34433445
"ReservationBlock",
34443446
"ReservationBlockPhysicalTopology",
3447+
"ReservationBlockPhysicalTopologyInstance",
3448+
"ReservationBlockPhysicalTopologyInstancePhysicalHostTopology",
34453449
"ReservationBlocksClient",
34463450
"ReservationBlocksGetResponse",
34473451
"ReservationBlocksListResponse",

packages/google-cloud-compute-v1beta/google/cloud/compute_v1beta/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__ = "0.1.3" # {x-release-please-version}
16+
__version__ = "0.0.0" # {x-release-please-version}

packages/google-cloud-compute-v1beta/google/cloud/compute_v1beta/types/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1349,6 +1349,8 @@
13491349
ReservationAggregatedList,
13501350
ReservationBlock,
13511351
ReservationBlockPhysicalTopology,
1352+
ReservationBlockPhysicalTopologyInstance,
1353+
ReservationBlockPhysicalTopologyInstancePhysicalHostTopology,
13521354
ReservationBlocksGetResponse,
13531355
ReservationBlocksListResponse,
13541356
ReservationList,
@@ -3228,6 +3230,8 @@
32283230
"ReservationAggregatedList",
32293231
"ReservationBlock",
32303232
"ReservationBlockPhysicalTopology",
3233+
"ReservationBlockPhysicalTopologyInstance",
3234+
"ReservationBlockPhysicalTopologyInstancePhysicalHostTopology",
32313235
"ReservationBlocksGetResponse",
32323236
"ReservationBlocksListResponse",
32333237
"ReservationList",

packages/google-cloud-compute-v1beta/google/cloud/compute_v1beta/types/compute.py

Lines changed: 116 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1359,6 +1359,8 @@
13591359
"ReservationAggregatedList",
13601360
"ReservationBlock",
13611361
"ReservationBlockPhysicalTopology",
1362+
"ReservationBlockPhysicalTopologyInstance",
1363+
"ReservationBlockPhysicalTopologyInstancePhysicalHostTopology",
13621364
"ReservationBlocksGetResponse",
13631365
"ReservationBlocksListResponse",
13641366
"ReservationList",
@@ -40044,6 +40046,9 @@ class GetReservationBlockRequest(proto.Message):
4004440046
r"""A request message for ReservationBlocks.Get. See the method
4004540047
description for details.
4004640048

40049+
40050+
.. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields
40051+
4004740052
Attributes:
4004840053
project (str):
4004940054
Project ID for this request.
@@ -40053,11 +40058,38 @@ class GetReservationBlockRequest(proto.Message):
4005340058
reservation_block (str):
4005440059
The name of the reservation block. Name
4005540060
should conform to RFC1035 or be a resource ID.
40061+
view (str):
40062+
View of the Block.
40063+
Check the View enum for the list of possible
40064+
values.
40065+
40066+
This field is a member of `oneof`_ ``_view``.
4005640067
zone (str):
4005740068
Name of the zone for this request. Zone name
4005840069
should conform to RFC1035.
4005940070
"""
4006040071

40072+
class View(proto.Enum):
40073+
r"""View of the Block.
40074+
40075+
Values:
40076+
UNDEFINED_VIEW (0):
40077+
A value indicating that the enum field is not
40078+
set.
40079+
BASIC (62970894):
40080+
This view includes basic information about
40081+
the reservation block
40082+
BLOCK_VIEW_UNSPECIFIED (275070479):
40083+
The default / unset value. The API will
40084+
default to the BASIC view.
40085+
FULL (2169487):
40086+
Includes detailed topology view.
40087+
"""
40088+
UNDEFINED_VIEW = 0
40089+
BASIC = 62970894
40090+
BLOCK_VIEW_UNSPECIFIED = 275070479
40091+
FULL = 2169487
40092+
4006140093
project: str = proto.Field(
4006240094
proto.STRING,
4006340095
number=227560217,
@@ -40070,6 +40102,11 @@ class GetReservationBlockRequest(proto.Message):
4007040102
proto.STRING,
4007140103
number=532832858,
4007240104
)
40105+
view: str = proto.Field(
40106+
proto.STRING,
40107+
number=3619493,
40108+
optional=True,
40109+
)
4007340110
zone: str = proto.Field(
4007440111
proto.STRING,
4007540112
number=3744684,
@@ -102773,6 +102810,9 @@ class ReservationBlockPhysicalTopology(proto.Message):
102773102810
The cluster name of the reservation block.
102774102811

102775102812
This field is a member of `oneof`_ ``_cluster``.
102813+
instances (MutableSequence[google.cloud.compute_v1beta.types.ReservationBlockPhysicalTopologyInstance]):
102814+
The detailed instances information for a
102815+
given Block
102776102816
"""
102777102817

102778102818
block: str = proto.Field(
@@ -102785,6 +102825,82 @@ class ReservationBlockPhysicalTopology(proto.Message):
102785102825
number=335221242,
102786102826
optional=True,
102787102827
)
102828+
instances: MutableSequence[
102829+
"ReservationBlockPhysicalTopologyInstance"
102830+
] = proto.RepeatedField(
102831+
proto.MESSAGE,
102832+
number=29097598,
102833+
message="ReservationBlockPhysicalTopologyInstance",
102834+
)
102835+
102836+
102837+
class ReservationBlockPhysicalTopologyInstance(proto.Message):
102838+
r"""The instances information for a given Block
102839+
102840+
.. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields
102841+
102842+
Attributes:
102843+
instance_id (int):
102844+
The InstanceId of the instance
102845+
102846+
This field is a member of `oneof`_ ``_instance_id``.
102847+
physical_host_topology (google.cloud.compute_v1beta.types.ReservationBlockPhysicalTopologyInstancePhysicalHostTopology):
102848+
The PhysicalHostTopology of instances within
102849+
a Block resource.
102850+
102851+
This field is a member of `oneof`_ ``_physical_host_topology``.
102852+
project_id (int):
102853+
Project where the instance lives
102854+
102855+
This field is a member of `oneof`_ ``_project_id``.
102856+
"""
102857+
102858+
instance_id: int = proto.Field(
102859+
proto.UINT64,
102860+
number=45488389,
102861+
optional=True,
102862+
)
102863+
physical_host_topology: "ReservationBlockPhysicalTopologyInstancePhysicalHostTopology" = proto.Field(
102864+
proto.MESSAGE,
102865+
number=390842814,
102866+
optional=True,
102867+
message="ReservationBlockPhysicalTopologyInstancePhysicalHostTopology",
102868+
)
102869+
project_id: int = proto.Field(
102870+
proto.UINT64,
102871+
number=177513473,
102872+
optional=True,
102873+
)
102874+
102875+
102876+
class ReservationBlockPhysicalTopologyInstancePhysicalHostTopology(proto.Message):
102877+
r"""The PhysicalHostTopology of the instance within a Block
102878+
resource.
102879+
102880+
102881+
.. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields
102882+
102883+
Attributes:
102884+
host (str):
102885+
Host hash for a given instance
102886+
102887+
This field is a member of `oneof`_ ``_host``.
102888+
sub_block (str):
102889+
Sub block hash for a given instance
102890+
102891+
This field is a member of `oneof`_ ``_sub_block``.
102892+
"""
102893+
102894+
host: str = proto.Field(
102895+
proto.STRING,
102896+
number=3208616,
102897+
optional=True,
102898+
)
102899+
sub_block: str = proto.Field(
102900+
proto.STRING,
102901+
number=478033358,
102902+
optional=True,
102903+
)
102788102904

102789102905

102790102906
class ReservationBlocksGetResponse(proto.Message):

packages/google-cloud-compute-v1beta/samples/generated_samples/snippet_metadata_google.cloud.compute.v1beta.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-v1beta",
11-
"version": "0.1.3"
11+
"version": "0.1.0"
1212
},
1313
"snippets": [
1414
{

packages/google-cloud-compute-v1beta/tests/unit/gapic/compute_v1beta/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)