GeezerVison is showing github.com — chore: librarian generate pull request: 20260225T153855Z (#15610) · googleapis/google-cloud-python@d1ce4d3
File treeExpand file treeCollapse file tree Open diff view settings packages/google-cloud-compute tests/unit/gapic/compute_v1
Expand file treeCollapse file tree Open diff view settings Collapse file Copy file name to clipboardExpand all lines: .librarian/state.yaml +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -1063,7 +1063,7 @@ libraries: | 1063 | 1063 | tag_format: '{id}-v{version}' | 1064 | 1064 | - id: google-cloud-compute | 1065 | 1065 | version: 1.43.0 | 1066 | | - last_generated_commit: cfe62b3c5ceb9f81879c61480f26707980534462 | | 1066 | + last_generated_commit: 69bf99a9d0910fa86c3c5867ea357aa004dfcc55 | 1067 | 1067 | apis: | 1068 | 1068 | - path: google/cloud/compute/v1 | 1069 | 1069 | service_config: compute_v1.yaml | |
Collapse file 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 number | Diff line number | Diff line change |
|---|
| 972 | 972 | InstanceAggregatedList, | 973 | 973 | InstanceConsumptionData, | 974 | 974 | InstanceConsumptionInfo, | | 975 | + InstanceFlexibilityPolicy, | | 976 | + InstanceFlexibilityPolicyInstanceSelection, | 975 | 977 | InstanceGroup, | 976 | 978 | InstanceGroupAggregatedList, | 977 | 979 | InstanceGroupList, | | 2880 | 2882 | "InstanceAggregatedList", | 2881 | 2883 | "InstanceConsumptionData", | 2882 | 2884 | "InstanceConsumptionInfo", | | 2885 | + "InstanceFlexibilityPolicy", | | 2886 | + "InstanceFlexibilityPolicyInstanceSelection", | 2883 | 2887 | "InstanceGroup", | 2884 | 2888 | "InstanceGroupAggregatedList", | 2885 | 2889 | "InstanceGroupList", | |
Collapse file 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 number | Diff line number | Diff line change |
|---|
| 849 | 849 | InstanceAggregatedList, | 850 | 850 | InstanceConsumptionData, | 851 | 851 | InstanceConsumptionInfo, | | 852 | + InstanceFlexibilityPolicy, | | 853 | + InstanceFlexibilityPolicyInstanceSelection, | 852 | 854 | InstanceGroup, | 853 | 855 | InstanceGroupAggregatedList, | 854 | 856 | InstanceGroupList, | @@ -2765,6 +2767,8 @@ def _get_version(dependency_name): | 2765 | 2767 | "InstanceAggregatedList", | 2766 | 2768 | "InstanceConsumptionData", | 2767 | 2769 | "InstanceConsumptionInfo", | | 2770 | + "InstanceFlexibilityPolicy", | | 2771 | + "InstanceFlexibilityPolicyInstanceSelection", | 2768 | 2772 | "InstanceGroup", | 2769 | 2773 | "InstanceGroupAggregatedList", | 2770 | 2774 | "InstanceGroupList", | |
Collapse file 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 number | Diff line number | Diff line change |
|---|
| 718 | 718 | InstanceAggregatedList, | 719 | 719 | InstanceConsumptionData, | 720 | 720 | InstanceConsumptionInfo, | | 721 | + InstanceFlexibilityPolicy, | | 722 | + InstanceFlexibilityPolicyInstanceSelection, | 721 | 723 | InstanceGroup, | 722 | 724 | InstanceGroupAggregatedList, | 723 | 725 | InstanceGroupList, | | 2517 | 2519 | "InstanceAggregatedList", | 2518 | 2520 | "InstanceConsumptionData", | 2519 | 2521 | "InstanceConsumptionInfo", | | 2522 | + "InstanceFlexibilityPolicy", | | 2523 | + "InstanceFlexibilityPolicyInstanceSelection", | 2520 | 2524 | "InstanceGroup", | 2521 | 2525 | "InstanceGroupAggregatedList", | 2522 | 2526 | "InstanceGroupList", | |
Collapse file 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 number | Diff line number | Diff line change |
|---|
| 727 | 727 | "InstanceAggregatedList", | 728 | 728 | "InstanceConsumptionData", | 729 | 729 | "InstanceConsumptionInfo", | | 730 | + "InstanceFlexibilityPolicy", | | 731 | + "InstanceFlexibilityPolicyInstanceSelection", | 730 | 732 | "InstanceGroup", | 731 | 733 | "InstanceGroupAggregatedList", | 732 | 734 | "InstanceGroupList", | @@ -22069,6 +22071,11 @@ class BulkInsertInstanceResource(proto.Message): | 22069 | 22071 | The maximum number of instances to create. | 22070 | 22072 |
| 22071 | 22073 | 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``. | 22072 | 22079 | instance_properties (google.cloud.compute_v1.types.InstanceProperties): | 22073 | 22080 | The instance properties defining the VM | 22074 | 22081 | instances to be created. Required if | @@ -22139,6 +22146,12 @@ class BulkInsertInstanceResource(proto.Message): | 22139 | 22146 | number=94851343, | 22140 | 22147 | optional=True, | 22141 | 22148 | ) | | 22149 | + instance_flexibility_policy: "InstanceFlexibilityPolicy" = proto.Field( | | 22150 | + proto.MESSAGE, | | 22151 | + number=26937090, | | 22152 | + optional=True, | | 22153 | + message="InstanceFlexibilityPolicy", | | 22154 | + ) | 22142 | 22155 | instance_properties: "InstanceProperties" = proto.Field( | 22143 | 22156 | proto.MESSAGE, | 22144 | 22157 | number=215355165, | @@ -53515,6 +53528,83 @@ class InstanceConsumptionInfo(proto.Message): | 53515 | 53528 | ) | 53516 | 53529 |
| 53517 | 53530 |
| | 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 | + | 53518 | 53608 | class InstanceGroup(proto.Message): | 53519 | 53609 | r"""Represents an Instance Group resource. | 53520 | 53610 |
| @@ -58161,7 +58251,7 @@ class Behavior(proto.Enum): | 58161 | 58251 | SILENT_DATA_CORRUPTION (111360678): | 58162 | 58252 | No description available. | 58163 | 58253 | UNRECOVERABLE_GPU_ERROR (363710747): | 58164 | | - No description available. | | 58254 | + Unrecoverable GPU error identified by an XID | 58165 | 58255 | """ | 58166 | 58256 |
| 58167 | 58257 | UNDEFINED_BEHAVIOR = 0 | @@ -59794,6 +59884,7 @@ class InterconnectAttachment(proto.Message): | 59794 | 59884 | - BPS_20G: 20 Gbit/s | 59795 | 59885 | - BPS_50G: 50 Gbit/s | 59796 | 59886 | - BPS_100G: 100 Gbit/s | | 59887 | + - BPS_400G: 400 Gbit/s | 59797 | 59888 |
| 59798 | 59889 | Check the Bandwidth enum for the list of possible values. | 59799 | 59890 |
| @@ -60238,6 +60329,7 @@ class Bandwidth(proto.Enum): | 60238 | 60329 | - BPS_20G: 20 Gbit/s | 60239 | 60330 | - BPS_50G: 50 Gbit/s | 60240 | 60331 | - BPS_100G: 100 Gbit/s | | 60332 | + - BPS_400G: 400 Gbit/s | 60241 | 60333 |
| 60242 | 60334 | Values: | 60243 | 60335 | UNDEFINED_BANDWIDTH (0): | @@ -60259,6 +60351,8 @@ class Bandwidth(proto.Enum): | 60259 | 60351 | 2 Gbit/s | 60260 | 60352 | BPS_300M (49607540): | 60261 | 60353 | 300 Mbit/s | | 60354 | + BPS_400G (49637325): | | 60355 | + 400 Gbit/s | 60262 | 60356 | BPS_400M (49637331): | 60263 | 60357 | 400 Mbit/s | 60264 | 60358 | BPS_500M (49667122): | @@ -60280,6 +60374,7 @@ class Bandwidth(proto.Enum): | 60280 | 60374 | BPS_20G = 278693967 | 60281 | 60375 | BPS_2G = 355358479 | 60282 | 60376 | BPS_300M = 49607540 | | 60377 | + BPS_400G = 49637325 | 60283 | 60378 | BPS_400M = 49637331 | 60284 | 60379 | BPS_500M = 49667122 | 60285 | 60380 | BPS_50G = 278696850 | |
Collapse file 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 number | Diff line number | Diff line change |
|---|
@@ -22402,6 +22402,7 @@ def test_bulk_insert_rest_call_success(request_type): | 22402 | 22402 | request_init = {"project": "sample1", "zone": "sample2"} | 22403 | 22403 | request_init["bulk_insert_instance_resource_resource"] = { | 22404 | 22404 | "count": 553, | | 22405 | + "instance_flexibility_policy": {"instance_selections": {}}, | 22405 | 22406 | "instance_properties": { | 22406 | 22407 | "advanced_machine_features": { | 22407 | 22408 | "enable_nested_virtualization": True, | |
Collapse file 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 number | Diff line number | Diff line change |
|---|
@@ -1693,6 +1693,7 @@ def test_bulk_insert_rest_call_success(request_type): | 1693 | 1693 | request_init = {"project": "sample1", "region": "sample2"} | 1694 | 1694 | request_init["bulk_insert_instance_resource_resource"] = { | 1695 | 1695 | "count": 553, | | 1696 | + "instance_flexibility_policy": {"instance_selections": {}}, | 1696 | 1697 | "instance_properties": { | 1697 | 1698 | "advanced_machine_features": { | 1698 | 1699 | "enable_nested_virtualization": True, | |
|