Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit d1ce4d3

Browse filesBrowse files
authored
chore: librarian generate pull request: 20260225T153855Z (#15610)
PR created by the Librarian CLI to generate Cloud Client Libraries code from protos. BEGIN_COMMIT BEGIN_NESTED_COMMIT feat: Update Compute Engine v1 API to revision 20260106 (#1148) PiperOrigin-RevId: Library-IDs: google-cloud-compute Source-link: [googleapis/googleapis@d1e59aa2](googleapis/googleapis@d1e59aa2) END_NESTED_COMMIT END_COMMIT This pull request is generated with proto changes between [googleapis/googleapis@cfe62b3c](googleapis/googleapis@cfe62b3) (exclusive) and [googleapis/googleapis@d1e59aa2](googleapis/googleapis@d1e59aa) (inclusive). Librarian Version: v0.7.0 Language Image: us-central1-docker.pkg.dev/cloud-sdk-librarian-prod/images-prod/python-librarian-generator@sha256:160860d189ff1c2f7515638478823712fa5b243e27ccc33a2728669fa1e2ed0c
1 parent e46a4d8 commit d1ce4d3
Copy full SHA for d1ce4d3

7 files changed

+111-2Lines changed: 111 additions & 2 deletions

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎.librarian/state.yaml‎

Copy file name to clipboardExpand all lines: .librarian/state.yaml
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1063,7 +1063,7 @@ libraries:
10631063
tag_format: '{id}-v{version}'
10641064
- id: google-cloud-compute
10651065
version: 1.43.0
1066-
last_generated_commit: cfe62b3c5ceb9f81879c61480f26707980534462
1066+
last_generated_commit: 69bf99a9d0910fa86c3c5867ea357aa004dfcc55
10671067
apis:
10681068
- path: google/cloud/compute/v1
10691069
service_config: compute_v1.yaml
Collapse file

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

Copy file name to clipboardExpand all lines: packages/google-cloud-compute/google/cloud/compute/__init__.py
+4Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -972,6 +972,8 @@
972972
InstanceAggregatedList,
973973
InstanceConsumptionData,
974974
InstanceConsumptionInfo,
975+
InstanceFlexibilityPolicy,
976+
InstanceFlexibilityPolicyInstanceSelection,
975977
InstanceGroup,
976978
InstanceGroupAggregatedList,
977979
InstanceGroupList,
@@ -2880,6 +2882,8 @@
28802882
"InstanceAggregatedList",
28812883
"InstanceConsumptionData",
28822884
"InstanceConsumptionInfo",
2885+
"InstanceFlexibilityPolicy",
2886+
"InstanceFlexibilityPolicyInstanceSelection",
28832887
"InstanceGroup",
28842888
"InstanceGroupAggregatedList",
28852889
"InstanceGroupList",
Collapse file

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

Copy file name to clipboardExpand all lines: packages/google-cloud-compute/google/cloud/compute_v1/__init__.py
+4Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -849,6 +849,8 @@
849849
InstanceAggregatedList,
850850
InstanceConsumptionData,
851851
InstanceConsumptionInfo,
852+
InstanceFlexibilityPolicy,
853+
InstanceFlexibilityPolicyInstanceSelection,
852854
InstanceGroup,
853855
InstanceGroupAggregatedList,
854856
InstanceGroupList,
@@ -2765,6 +2767,8 @@ def _get_version(dependency_name):
27652767
"InstanceAggregatedList",
27662768
"InstanceConsumptionData",
27672769
"InstanceConsumptionInfo",
2770+
"InstanceFlexibilityPolicy",
2771+
"InstanceFlexibilityPolicyInstanceSelection",
27682772
"InstanceGroup",
27692773
"InstanceGroupAggregatedList",
27702774
"InstanceGroupList",
Collapse file

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

Copy file name to clipboardExpand all lines: packages/google-cloud-compute/google/cloud/compute_v1/types/__init__.py
+4Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -718,6 +718,8 @@
718718
InstanceAggregatedList,
719719
InstanceConsumptionData,
720720
InstanceConsumptionInfo,
721+
InstanceFlexibilityPolicy,
722+
InstanceFlexibilityPolicyInstanceSelection,
721723
InstanceGroup,
722724
InstanceGroupAggregatedList,
723725
InstanceGroupList,
@@ -2517,6 +2519,8 @@
25172519
"InstanceAggregatedList",
25182520
"InstanceConsumptionData",
25192521
"InstanceConsumptionInfo",
2522+
"InstanceFlexibilityPolicy",
2523+
"InstanceFlexibilityPolicyInstanceSelection",
25202524
"InstanceGroup",
25212525
"InstanceGroupAggregatedList",
25222526
"InstanceGroupList",
Collapse file

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

Copy file name to clipboardExpand all lines: packages/google-cloud-compute/google/cloud/compute_v1/types/compute.py
+96-1Lines changed: 96 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -727,6 +727,8 @@
727727
"InstanceAggregatedList",
728728
"InstanceConsumptionData",
729729
"InstanceConsumptionInfo",
730+
"InstanceFlexibilityPolicy",
731+
"InstanceFlexibilityPolicyInstanceSelection",
730732
"InstanceGroup",
731733
"InstanceGroupAggregatedList",
732734
"InstanceGroupList",
@@ -22069,6 +22071,11 @@ class BulkInsertInstanceResource(proto.Message):
2206922071
The maximum number of instances to create.
2207022072

2207122073
This field is a member of `oneof`_ ``_count``.
22074+
instance_flexibility_policy (google.cloud.compute_v1.types.InstanceFlexibilityPolicy):
22075+
A flexible specification of machine type of
22076+
instances to create.
22077+
22078+
This field is a member of `oneof`_ ``_instance_flexibility_policy``.
2207222079
instance_properties (google.cloud.compute_v1.types.InstanceProperties):
2207322080
The instance properties defining the VM
2207422081
instances to be created. Required if
@@ -22139,6 +22146,12 @@ class BulkInsertInstanceResource(proto.Message):
2213922146
number=94851343,
2214022147
optional=True,
2214122148
)
22149+
instance_flexibility_policy: "InstanceFlexibilityPolicy" = proto.Field(
22150+
proto.MESSAGE,
22151+
number=26937090,
22152+
optional=True,
22153+
message="InstanceFlexibilityPolicy",
22154+
)
2214222155
instance_properties: "InstanceProperties" = proto.Field(
2214322156
proto.MESSAGE,
2214422157
number=215355165,
@@ -53515,6 +53528,83 @@ class InstanceConsumptionInfo(proto.Message):
5351553528
)
5351653529

5351753530

53531+
class InstanceFlexibilityPolicy(proto.Message):
53532+
r"""A flexible specification of machine types for instances to
53533+
create.
53534+
53535+
Attributes:
53536+
instance_selections (MutableMapping[str, google.cloud.compute_v1.types.InstanceFlexibilityPolicyInstanceSelection]):
53537+
Specification of alternative, flexible
53538+
instance subsets. One of them will be selected
53539+
to create the instances based on various
53540+
criteria, like:
53541+
53542+
- ranks,
53543+
- location policy,
53544+
- current capacity,
53545+
- available reservations (you can specify
53546+
affinity in InstanceProperties),
53547+
- SWAN/GOOSE limitations.
53548+
Key is an arbitrary, unique RFC1035 string that
53549+
identifies the instance selection.
53550+
"""
53551+
53552+
instance_selections: MutableMapping[
53553+
str, "InstanceFlexibilityPolicyInstanceSelection"
53554+
] = proto.MapField(
53555+
proto.STRING,
53556+
proto.MESSAGE,
53557+
number=22954577,
53558+
message="InstanceFlexibilityPolicyInstanceSelection",
53559+
)
53560+
53561+
53562+
class InstanceFlexibilityPolicyInstanceSelection(proto.Message):
53563+
r"""Specification of machine type to use. Every position inside this
53564+
message is an alternative. The count specified in the shape
53565+
flexibility must not exceed the number of entries in
53566+
per_instance_properties or the capacity of the name_pattern, if
53567+
used.
53568+
53569+
53570+
.. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields
53571+
53572+
Attributes:
53573+
disks (MutableSequence[google.cloud.compute_v1.types.AttachedDisk]):
53574+
Disks to be attached to the instances created
53575+
from in this selection. They override the disks
53576+
specified in the instance properties.
53577+
machine_types (MutableSequence[str]):
53578+
Alternative machine types to use for instances that are
53579+
created from these properties. This field only accepts a
53580+
machine type names, for example ``n2-standard-4`` and not
53581+
URLs or partial URLs.
53582+
rank (int):
53583+
Rank when prioritizing the shape
53584+
flexibilities. The instance selections with rank
53585+
are considered first, in the ascending order of
53586+
the rank.
53587+
If not set, defaults to 0.
53588+
53589+
This field is a member of `oneof`_ ``_rank``.
53590+
"""
53591+
53592+
disks: MutableSequence["AttachedDisk"] = proto.RepeatedField(
53593+
proto.MESSAGE,
53594+
number=95594102,
53595+
message="AttachedDisk",
53596+
)
53597+
machine_types: MutableSequence[str] = proto.RepeatedField(
53598+
proto.STRING,
53599+
number=79720065,
53600+
)
53601+
rank: int = proto.Field(
53602+
proto.INT64,
53603+
number=3492908,
53604+
optional=True,
53605+
)
53606+
53607+
5351853608
class InstanceGroup(proto.Message):
5351953609
r"""Represents an Instance Group resource.
5352053610

@@ -58161,7 +58251,7 @@ class Behavior(proto.Enum):
5816158251
SILENT_DATA_CORRUPTION (111360678):
5816258252
No description available.
5816358253
UNRECOVERABLE_GPU_ERROR (363710747):
58164-
No description available.
58254+
Unrecoverable GPU error identified by an XID
5816558255
"""
5816658256

5816758257
UNDEFINED_BEHAVIOR = 0
@@ -59794,6 +59884,7 @@ class InterconnectAttachment(proto.Message):
5979459884
- BPS_20G: 20 Gbit/s
5979559885
- BPS_50G: 50 Gbit/s
5979659886
- BPS_100G: 100 Gbit/s
59887+
- BPS_400G: 400 Gbit/s
5979759888

5979859889
Check the Bandwidth enum for the list of possible values.
5979959890

@@ -60238,6 +60329,7 @@ class Bandwidth(proto.Enum):
6023860329
- BPS_20G: 20 Gbit/s
6023960330
- BPS_50G: 50 Gbit/s
6024060331
- BPS_100G: 100 Gbit/s
60332+
- BPS_400G: 400 Gbit/s
6024160333

6024260334
Values:
6024360335
UNDEFINED_BANDWIDTH (0):
@@ -60259,6 +60351,8 @@ class Bandwidth(proto.Enum):
6025960351
2 Gbit/s
6026060352
BPS_300M (49607540):
6026160353
300 Mbit/s
60354+
BPS_400G (49637325):
60355+
400 Gbit/s
6026260356
BPS_400M (49637331):
6026360357
400 Mbit/s
6026460358
BPS_500M (49667122):
@@ -60280,6 +60374,7 @@ class Bandwidth(proto.Enum):
6028060374
BPS_20G = 278693967
6028160375
BPS_2G = 355358479
6028260376
BPS_300M = 49607540
60377+
BPS_400G = 49637325
6028360378
BPS_400M = 49637331
6028460379
BPS_500M = 49667122
6028560380
BPS_50G = 278696850
Collapse file

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

Copy file name to clipboardExpand all lines: packages/google-cloud-compute/tests/unit/gapic/compute_v1/test_instances.py
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22402,6 +22402,7 @@ def test_bulk_insert_rest_call_success(request_type):
2240222402
request_init = {"project": "sample1", "zone": "sample2"}
2240322403
request_init["bulk_insert_instance_resource_resource"] = {
2240422404
"count": 553,
22405+
"instance_flexibility_policy": {"instance_selections": {}},
2240522406
"instance_properties": {
2240622407
"advanced_machine_features": {
2240722408
"enable_nested_virtualization": True,
Collapse file

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

Copy file name to clipboardExpand all lines: packages/google-cloud-compute/tests/unit/gapic/compute_v1/test_region_instances.py
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1693,6 +1693,7 @@ def test_bulk_insert_rest_call_success(request_type):
16931693
request_init = {"project": "sample1", "region": "sample2"}
16941694
request_init["bulk_insert_instance_resource_resource"] = {
16951695
"count": 553,
1696+
"instance_flexibility_policy": {"instance_selections": {}},
16961697
"instance_properties": {
16971698
"advanced_machine_features": {
16981699
"enable_nested_virtualization": True,

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.