diff --git a/packages/google-cloud-compute/google/cloud/compute/__init__.py b/packages/google-cloud-compute/google/cloud/compute/__init__.py index 58a15c6a1624..dc64346689ad 100644 --- a/packages/google-cloud-compute/google/cloud/compute/__init__.py +++ b/packages/google-cloud-compute/google/cloud/compute/__init__.py @@ -339,6 +339,7 @@ AllocationAggregateReservationReservedResourceInfoAccelerator, AllocationReservationSharingPolicy, AllocationResourceStatus, + AllocationResourceStatusHealthInfo, AllocationResourceStatusSpecificSKUAllocation, AllocationSpecificSKUAllocationAllocatedInstancePropertiesReservedDisk, AllocationSpecificSKUAllocationReservedInstanceProperties, @@ -1435,6 +1436,7 @@ ReservationAffinity, ReservationAggregatedList, ReservationBlock, + ReservationBlockHealthInfo, ReservationBlockPhysicalTopology, ReservationBlockPhysicalTopologyInstance, ReservationBlockPhysicalTopologyInstancePhysicalHostTopology, @@ -1446,6 +1448,7 @@ ReservationsResizeRequest, ReservationsScopedList, ReservationSubBlock, + ReservationSubBlockHealthInfo, ReservationSubBlockPhysicalTopology, ReservationSubBlocksGetResponse, ReservationSubBlocksListResponse, @@ -2085,6 +2088,7 @@ "AllocationAggregateReservationReservedResourceInfoAccelerator", "AllocationReservationSharingPolicy", "AllocationResourceStatus", + "AllocationResourceStatusHealthInfo", "AllocationResourceStatusSpecificSKUAllocation", "AllocationSpecificSKUAllocationAllocatedInstancePropertiesReservedDisk", "AllocationSpecificSKUAllocationReservedInstanceProperties", @@ -3181,6 +3185,7 @@ "ReservationAffinity", "ReservationAggregatedList", "ReservationBlock", + "ReservationBlockHealthInfo", "ReservationBlockPhysicalTopology", "ReservationBlockPhysicalTopologyInstance", "ReservationBlockPhysicalTopologyInstancePhysicalHostTopology", @@ -3192,6 +3197,7 @@ "ReservationsResizeRequest", "ReservationsScopedList", "ReservationSubBlock", + "ReservationSubBlockHealthInfo", "ReservationSubBlockPhysicalTopology", "ReservationSubBlocksGetResponse", "ReservationSubBlocksListResponse", diff --git a/packages/google-cloud-compute/google/cloud/compute/gapic_version.py b/packages/google-cloud-compute/google/cloud/compute/gapic_version.py index 3e06fd2c5009..20a9cd975b02 100644 --- a/packages/google-cloud-compute/google/cloud/compute/gapic_version.py +++ b/packages/google-cloud-compute/google/cloud/compute/gapic_version.py @@ -13,4 +13,4 @@ # See the License for the specific language governing permissions and # limitations under the License. # -__version__ = "1.33.0" # {x-release-please-version} +__version__ = "0.0.0" # {x-release-please-version} diff --git a/packages/google-cloud-compute/google/cloud/compute_v1/__init__.py b/packages/google-cloud-compute/google/cloud/compute_v1/__init__.py index 0656b64b4aa7..547c58f66e48 100644 --- a/packages/google-cloud-compute/google/cloud/compute_v1/__init__.py +++ b/packages/google-cloud-compute/google/cloud/compute_v1/__init__.py @@ -213,6 +213,7 @@ AllocationAggregateReservationReservedResourceInfoAccelerator, AllocationReservationSharingPolicy, AllocationResourceStatus, + AllocationResourceStatusHealthInfo, AllocationResourceStatusSpecificSKUAllocation, AllocationSpecificSKUAllocationAllocatedInstancePropertiesReservedDisk, AllocationSpecificSKUAllocationReservedInstanceProperties, @@ -1309,6 +1310,7 @@ ReservationAffinity, ReservationAggregatedList, ReservationBlock, + ReservationBlockHealthInfo, ReservationBlockPhysicalTopology, ReservationBlockPhysicalTopologyInstance, ReservationBlockPhysicalTopologyInstancePhysicalHostTopology, @@ -1320,6 +1322,7 @@ ReservationsResizeRequest, ReservationsScopedList, ReservationSubBlock, + ReservationSubBlockHealthInfo, ReservationSubBlockPhysicalTopology, ReservationSubBlocksGetResponse, ReservationSubBlocksListResponse, @@ -1859,6 +1862,7 @@ "AllocationAggregateReservationReservedResourceInfoAccelerator", "AllocationReservationSharingPolicy", "AllocationResourceStatus", + "AllocationResourceStatusHealthInfo", "AllocationResourceStatusSpecificSKUAllocation", "AllocationSpecificSKUAllocationAllocatedInstancePropertiesReservedDisk", "AllocationSpecificSKUAllocationReservedInstanceProperties", @@ -3027,6 +3031,7 @@ "ReservationAffinity", "ReservationAggregatedList", "ReservationBlock", + "ReservationBlockHealthInfo", "ReservationBlockPhysicalTopology", "ReservationBlockPhysicalTopologyInstance", "ReservationBlockPhysicalTopologyInstancePhysicalHostTopology", @@ -3035,6 +3040,7 @@ "ReservationBlocksListResponse", "ReservationList", "ReservationSubBlock", + "ReservationSubBlockHealthInfo", "ReservationSubBlockPhysicalTopology", "ReservationSubBlocksClient", "ReservationSubBlocksGetResponse", diff --git a/packages/google-cloud-compute/google/cloud/compute_v1/gapic_version.py b/packages/google-cloud-compute/google/cloud/compute_v1/gapic_version.py index 3e06fd2c5009..20a9cd975b02 100644 --- a/packages/google-cloud-compute/google/cloud/compute_v1/gapic_version.py +++ b/packages/google-cloud-compute/google/cloud/compute_v1/gapic_version.py @@ -13,4 +13,4 @@ # See the License for the specific language governing permissions and # limitations under the License. # -__version__ = "1.33.0" # {x-release-please-version} +__version__ = "0.0.0" # {x-release-please-version} diff --git a/packages/google-cloud-compute/google/cloud/compute_v1/types/__init__.py b/packages/google-cloud-compute/google/cloud/compute_v1/types/__init__.py index 1ef651bf7016..57a859026875 100644 --- a/packages/google-cloud-compute/google/cloud/compute_v1/types/__init__.py +++ b/packages/google-cloud-compute/google/cloud/compute_v1/types/__init__.py @@ -99,6 +99,7 @@ AllocationAggregateReservationReservedResourceInfoAccelerator, AllocationReservationSharingPolicy, AllocationResourceStatus, + AllocationResourceStatusHealthInfo, AllocationResourceStatusSpecificSKUAllocation, AllocationSpecificSKUAllocationAllocatedInstancePropertiesReservedDisk, AllocationSpecificSKUAllocationReservedInstanceProperties, @@ -1195,6 +1196,7 @@ ReservationAffinity, ReservationAggregatedList, ReservationBlock, + ReservationBlockHealthInfo, ReservationBlockPhysicalTopology, ReservationBlockPhysicalTopologyInstance, ReservationBlockPhysicalTopologyInstancePhysicalHostTopology, @@ -1206,6 +1208,7 @@ ReservationsResizeRequest, ReservationsScopedList, ReservationSubBlock, + ReservationSubBlockHealthInfo, ReservationSubBlockPhysicalTopology, ReservationSubBlocksGetResponse, ReservationSubBlocksListResponse, @@ -1742,6 +1745,7 @@ "AllocationAggregateReservationReservedResourceInfoAccelerator", "AllocationReservationSharingPolicy", "AllocationResourceStatus", + "AllocationResourceStatusHealthInfo", "AllocationResourceStatusSpecificSKUAllocation", "AllocationSpecificSKUAllocationAllocatedInstancePropertiesReservedDisk", "AllocationSpecificSKUAllocationReservedInstanceProperties", @@ -2838,6 +2842,7 @@ "ReservationAffinity", "ReservationAggregatedList", "ReservationBlock", + "ReservationBlockHealthInfo", "ReservationBlockPhysicalTopology", "ReservationBlockPhysicalTopologyInstance", "ReservationBlockPhysicalTopologyInstancePhysicalHostTopology", @@ -2849,6 +2854,7 @@ "ReservationsResizeRequest", "ReservationsScopedList", "ReservationSubBlock", + "ReservationSubBlockHealthInfo", "ReservationSubBlockPhysicalTopology", "ReservationSubBlocksGetResponse", "ReservationSubBlocksListResponse", diff --git a/packages/google-cloud-compute/google/cloud/compute_v1/types/compute.py b/packages/google-cloud-compute/google/cloud/compute_v1/types/compute.py index 88611ff423a4..fc38edde58ca 100644 --- a/packages/google-cloud-compute/google/cloud/compute_v1/types/compute.py +++ b/packages/google-cloud-compute/google/cloud/compute_v1/types/compute.py @@ -109,6 +109,7 @@ "AllocationAggregateReservationReservedResourceInfoAccelerator", "AllocationReservationSharingPolicy", "AllocationResourceStatus", + "AllocationResourceStatusHealthInfo", "AllocationResourceStatusSpecificSKUAllocation", "AllocationSpecificSKUAllocationAllocatedInstancePropertiesReservedDisk", "AllocationSpecificSKUAllocationReservedInstanceProperties", @@ -1204,6 +1205,7 @@ "ReservationAffinity", "ReservationAggregatedList", "ReservationBlock", + "ReservationBlockHealthInfo", "ReservationBlockPhysicalTopology", "ReservationBlockPhysicalTopologyInstance", "ReservationBlockPhysicalTopologyInstancePhysicalHostTopology", @@ -1211,6 +1213,7 @@ "ReservationBlocksListResponse", "ReservationList", "ReservationSubBlock", + "ReservationSubBlockHealthInfo", "ReservationSubBlockPhysicalTopology", "ReservationSubBlocksGetResponse", "ReservationSubBlocksListResponse", @@ -11576,6 +11579,10 @@ class AllocationResourceStatus(proto.Message): .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields Attributes: + health_info (google.cloud.compute_v1.types.AllocationResourceStatusHealthInfo): + [Output only] Health information for the reservation. + + This field is a member of `oneof`_ ``_health_info``. reservation_block_count (int): The number of reservation blocks associated with this reservation. @@ -11591,6 +11598,12 @@ class AllocationResourceStatus(proto.Message): This field is a member of `oneof`_ ``_specific_sku_allocation``. """ + health_info: "AllocationResourceStatusHealthInfo" = proto.Field( + proto.MESSAGE, + number=235287729, + optional=True, + message="AllocationResourceStatusHealthInfo", + ) reservation_block_count: int = proto.Field( proto.INT32, number=161835754, @@ -11612,6 +11625,67 @@ class AllocationResourceStatus(proto.Message): ) +class AllocationResourceStatusHealthInfo(proto.Message): + r"""Health information for the reservation. + + .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields + + Attributes: + degraded_block_count (int): + The number of reservation blocks that are + degraded. + + This field is a member of `oneof`_ ``_degraded_block_count``. + health_status (str): + The health status of the reservation. + Check the HealthStatus enum for the list of + possible values. + + This field is a member of `oneof`_ ``_health_status``. + healthy_block_count (int): + The number of reservation blocks that are + healthy. + + This field is a member of `oneof`_ ``_healthy_block_count``. + """ + + class HealthStatus(proto.Enum): + r"""The health status of the reservation. + + Values: + UNDEFINED_HEALTH_STATUS (0): + A value indicating that the enum field is not + set. + DEGRADED (396890926): + The reservation is degraded. + HEALTHY (439801213): + The reservation is healthy. + HEALTH_STATUS_UNSPECIFIED (482246925): + The health status of the reservation is + unspecified. + """ + UNDEFINED_HEALTH_STATUS = 0 + DEGRADED = 396890926 + HEALTHY = 439801213 + HEALTH_STATUS_UNSPECIFIED = 482246925 + + degraded_block_count: int = proto.Field( + proto.INT32, + number=514082636, + optional=True, + ) + health_status: str = proto.Field( + proto.STRING, + number=380545845, + optional=True, + ) + healthy_block_count: int = proto.Field( + proto.INT32, + number=223625019, + optional=True, + ) + + class AllocationResourceStatusSpecificSKUAllocation(proto.Message): r"""Contains Properties set for the reservation. @@ -91524,6 +91598,12 @@ class Reservation(proto.Message): [Output Only] Reserved for future use. This field is a member of `oneof`_ ``_satisfies_pzs``. + scheduling_type (str): + The type of maintenance for the reservation. + Check the SchedulingType enum for the list of + possible values. + + This field is a member of `oneof`_ ``_scheduling_type``. self_link (str): [Output Only] Server-defined fully-qualified URL for this resource. @@ -91585,6 +91665,28 @@ class DeploymentType(proto.Enum): DENSE = 64932607 DEPLOYMENT_TYPE_UNSPECIFIED = 234847180 + class SchedulingType(proto.Enum): + r"""The type of maintenance for the reservation. + + Values: + UNDEFINED_SCHEDULING_TYPE (0): + A value indicating that the enum field is not + set. + GROUPED (474540862): + Maintenance on all reserved instances in the + reservation is synchronized. + GROUP_MAINTENANCE_TYPE_UNSPECIFIED (447183678): + Unknown maintenance type. + INDEPENDENT (127011674): + Maintenance is not synchronized for this + reservation. Instead, each instance has its own + maintenance window. + """ + UNDEFINED_SCHEDULING_TYPE = 0 + GROUPED = 474540862 + GROUP_MAINTENANCE_TYPE_UNSPECIFIED = 447183678 + INDEPENDENT = 127011674 + class Status(proto.Enum): r"""[Output Only] The status of the reservation. - CREATING: Reservation resources are being allocated. - READY: Reservation resources have @@ -91698,6 +91800,11 @@ class Status(proto.Enum): number=480964267, optional=True, ) + scheduling_type: str = proto.Field( + proto.STRING, + number=199835397, + optional=True, + ) self_link: str = proto.Field( proto.STRING, number=456214797, @@ -91901,6 +92008,10 @@ class ReservationBlock(proto.Message): [Output Only] Creation timestamp in RFC3339 text format. This field is a member of `oneof`_ ``_creation_timestamp``. + health_info (google.cloud.compute_v1.types.ReservationBlockHealthInfo): + [Output Only] Health information for the reservation block. + + This field is a member of `oneof`_ ``_health_info``. id (int): [Output Only] The unique identifier for the resource. This identifier is defined by the server. @@ -91999,6 +92110,12 @@ class Status(proto.Enum): number=30525366, optional=True, ) + health_info: "ReservationBlockHealthInfo" = proto.Field( + proto.MESSAGE, + number=235287729, + optional=True, + message="ReservationBlockHealthInfo", + ) id: int = proto.Field( proto.UINT64, number=3355, @@ -92063,6 +92180,65 @@ class Status(proto.Enum): ) +class ReservationBlockHealthInfo(proto.Message): + r"""Health information for the reservation block. + + .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields + + Attributes: + degraded_sub_block_count (int): + The number of subBlocks that are degraded. + + This field is a member of `oneof`_ ``_degraded_sub_block_count``. + health_status (str): + The health status of the reservation block. + Check the HealthStatus enum for the list of + possible values. + + This field is a member of `oneof`_ ``_health_status``. + healthy_sub_block_count (int): + The number of subBlocks that are healthy. + + This field is a member of `oneof`_ ``_healthy_sub_block_count``. + """ + + class HealthStatus(proto.Enum): + r"""The health status of the reservation block. + + Values: + UNDEFINED_HEALTH_STATUS (0): + A value indicating that the enum field is not + set. + DEGRADED (396890926): + The reservation block is degraded. + HEALTHY (439801213): + The reservation block is healthy. + HEALTH_STATUS_UNSPECIFIED (482246925): + The health status of the reservation block is + unspecified. + """ + UNDEFINED_HEALTH_STATUS = 0 + DEGRADED = 396890926 + HEALTHY = 439801213 + HEALTH_STATUS_UNSPECIFIED = 482246925 + + degraded_sub_block_count: int = proto.Field( + proto.INT32, + number=458044493, + optional=True, + ) + health_status: str = proto.Field( + proto.STRING, + number=380545845, + optional=True, + ) + healthy_sub_block_count: int = proto.Field( + proto.INT32, + number=5348540, + optional=True, + ) + + class ReservationBlockPhysicalTopology(proto.Message): r""" @@ -92355,6 +92531,11 @@ class ReservationSubBlock(proto.Message): [Output Only] Creation timestamp in RFC3339 text format. This field is a member of `oneof`_ ``_creation_timestamp``. + health_info (google.cloud.compute_v1.types.ReservationSubBlockHealthInfo): + [Output Only] Health information for the reservation + subBlock. + + This field is a member of `oneof`_ ``_health_info``. id (int): [Output Only] The unique identifier for the resource. This identifier is defined by the server. @@ -92444,6 +92625,12 @@ class Status(proto.Enum): number=30525366, optional=True, ) + health_info: "ReservationSubBlockHealthInfo" = proto.Field( + proto.MESSAGE, + number=235287729, + optional=True, + message="ReservationSubBlockHealthInfo", + ) id: int = proto.Field( proto.UINT64, number=3355, @@ -92498,6 +92685,87 @@ class Status(proto.Enum): ) +class ReservationSubBlockHealthInfo(proto.Message): + r"""Health information for the reservation subBlock. + + .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields + + Attributes: + degraded_host_count (int): + The number of degraded hosts in the + reservation subBlock. + + This field is a member of `oneof`_ ``_degraded_host_count``. + degraded_infra_count (int): + The number of degraded infrastructure (e.g NV + link domain) in the reservation subblock. + + This field is a member of `oneof`_ ``_degraded_infra_count``. + health_status (str): + The health status of the reservation + subBlock. Check the HealthStatus enum for the + list of possible values. + + This field is a member of `oneof`_ ``_health_status``. + healthy_host_count (int): + The number of healthy hosts in the + reservation subBlock. + + This field is a member of `oneof`_ ``_healthy_host_count``. + healthy_infra_count (int): + The number of healthy infrastructure (e.g NV + link domain) in the reservation subblock. + + This field is a member of `oneof`_ ``_healthy_infra_count``. + """ + + class HealthStatus(proto.Enum): + r"""The health status of the reservation subBlock. + + Values: + UNDEFINED_HEALTH_STATUS (0): + A value indicating that the enum field is not + set. + DEGRADED (396890926): + The reservation subBlock is degraded. + HEALTHY (439801213): + The reservation subBlock is healthy. + HEALTH_STATUS_UNSPECIFIED (482246925): + The health status of the reservation subBlock + is unspecified. + """ + UNDEFINED_HEALTH_STATUS = 0 + DEGRADED = 396890926 + HEALTHY = 439801213 + HEALTH_STATUS_UNSPECIFIED = 482246925 + + degraded_host_count: int = proto.Field( + proto.INT32, + number=535025001, + optional=True, + ) + degraded_infra_count: int = proto.Field( + proto.INT32, + number=138638927, + optional=True, + ) + health_status: str = proto.Field( + proto.STRING, + number=380545845, + optional=True, + ) + healthy_host_count: int = proto.Field( + proto.INT32, + number=40739738, + optional=True, + ) + healthy_infra_count: int = proto.Field( + proto.INT32, + number=385052222, + optional=True, + ) + + class ReservationSubBlockPhysicalTopology(proto.Message): r""" @@ -116830,6 +117098,15 @@ class UpcomingMaintenance(proto.Message): RFC3339 text format. This field is a member of `oneof`_ ``_latest_window_start_time``. + maintenance_on_shutdown (bool): + Indicates whether the UpcomingMaintenance + will be triggered on VM shutdown. + + This field is a member of `oneof`_ ``_maintenance_on_shutdown``. + maintenance_reasons (MutableSequence[str]): + The reasons for the maintenance. Only valid + for vms. Check the MaintenanceReasons enum for + the list of possible values. maintenance_status (str): Check the MaintenanceStatus enum for the list of possible values. @@ -116855,6 +117132,50 @@ class UpcomingMaintenance(proto.Message): This field is a member of `oneof`_ ``_window_start_time``. """ + class MaintenanceReasons(proto.Enum): + r""" + + Values: + UNDEFINED_MAINTENANCE_REASONS (0): + A value indicating that the enum field is not + set. + FAILURE_DISK (8573778): + Maintenance due to disk errors. + FAILURE_GPU (467876919): + Maintenance due to GPU errors. + FAILURE_GPU_TEMPERATURE (24926540): + Maintenance due to high GPU temperature. + FAILURE_GPU_XID (51956587): + Maintenance due to GPU xid failure. + FAILURE_INFRA (270541467): + Maintenance due to infrastructure errors. + FAILURE_INTERFACE (390068356): + Maintenance due to interface errors. + FAILURE_MEMORY (440132982): + Maintenance due to memory errors. + FAILURE_NETWORK (42811449): + Maintenance due to network errors. + FAILURE_NVLINK (484426295): + Maintenance due to NVLink failure. + INFRASTRUCTURE_RELOCATION (359845636): + Maintenance due to infrastructure relocation. + MAINTENANCE_REASON_UNKNOWN (50570235): + Unknown maintenance reason. Do not use this + value. + """ + UNDEFINED_MAINTENANCE_REASONS = 0 + FAILURE_DISK = 8573778 + FAILURE_GPU = 467876919 + FAILURE_GPU_TEMPERATURE = 24926540 + FAILURE_GPU_XID = 51956587 + FAILURE_INFRA = 270541467 + FAILURE_INTERFACE = 390068356 + FAILURE_MEMORY = 440132982 + FAILURE_NETWORK = 42811449 + FAILURE_NVLINK = 484426295 + INFRASTRUCTURE_RELOCATION = 359845636 + MAINTENANCE_REASON_UNKNOWN = 50570235 + class MaintenanceStatus(proto.Enum): r""" @@ -116906,6 +117227,15 @@ class Type(proto.Enum): number=128032129, optional=True, ) + maintenance_on_shutdown: bool = proto.Field( + proto.BOOL, + number=231055754, + optional=True, + ) + maintenance_reasons: MutableSequence[str] = proto.RepeatedField( + proto.STRING, + number=140283267, + ) maintenance_status: str = proto.Field( proto.STRING, number=81645214, diff --git a/packages/google-cloud-compute/samples/generated_samples/snippet_metadata_google.cloud.compute.v1.json b/packages/google-cloud-compute/samples/generated_samples/snippet_metadata_google.cloud.compute.v1.json index 010879326d59..a832a5038a95 100644 --- a/packages/google-cloud-compute/samples/generated_samples/snippet_metadata_google.cloud.compute.v1.json +++ b/packages/google-cloud-compute/samples/generated_samples/snippet_metadata_google.cloud.compute.v1.json @@ -8,7 +8,7 @@ ], "language": "PYTHON", "name": "google-cloud-compute", - "version": "1.33.0" + "version": "0.1.0" }, "snippets": [ { diff --git a/packages/google-cloud-compute/tests/unit/gapic/compute_v1/test_instances.py b/packages/google-cloud-compute/tests/unit/gapic/compute_v1/test_instances.py index 35ee034bb5ec..83f892933435 100644 --- a/packages/google-cloud-compute/tests/unit/gapic/compute_v1/test_instances.py +++ b/packages/google-cloud-compute/tests/unit/gapic/compute_v1/test_instances.py @@ -23027,6 +23027,11 @@ def test_insert_rest_call_success(request_type): "upcoming_maintenance": { "can_reschedule": True, "latest_window_start_time": "latest_window_start_time_value", + "maintenance_on_shutdown": True, + "maintenance_reasons": [ + "maintenance_reasons_value1", + "maintenance_reasons_value2", + ], "maintenance_status": "maintenance_status_value", "type_": "type__value", "window_end_time": "window_end_time_value", @@ -29300,6 +29305,11 @@ def test_update_rest_call_success(request_type): "upcoming_maintenance": { "can_reschedule": True, "latest_window_start_time": "latest_window_start_time_value", + "maintenance_on_shutdown": True, + "maintenance_reasons": [ + "maintenance_reasons_value1", + "maintenance_reasons_value2", + ], "maintenance_status": "maintenance_status_value", "type_": "type__value", "window_end_time": "window_end_time_value", diff --git a/packages/google-cloud-compute/tests/unit/gapic/compute_v1/test_region_commitments.py b/packages/google-cloud-compute/tests/unit/gapic/compute_v1/test_region_commitments.py index 2937e2855d3e..6a8ab3dfce0c 100644 --- a/packages/google-cloud-compute/tests/unit/gapic/compute_v1/test_region_commitments.py +++ b/packages/google-cloud-compute/tests/unit/gapic/compute_v1/test_region_commitments.py @@ -3057,6 +3057,11 @@ def test_insert_rest_call_success(request_type): }, "resource_policies": {}, "resource_status": { + "health_info": { + "degraded_block_count": 2082, + "health_status": "health_status_value", + "healthy_block_count": 2017, + }, "reservation_block_count": 2468, "reservation_maintenance": { "instance_maintenance_ongoing_count": 3599, @@ -3069,6 +3074,11 @@ def test_insert_rest_call_success(request_type): "upcoming_group_maintenance": { "can_reschedule": True, "latest_window_start_time": "latest_window_start_time_value", + "maintenance_on_shutdown": True, + "maintenance_reasons": [ + "maintenance_reasons_value1", + "maintenance_reasons_value2", + ], "maintenance_status": "maintenance_status_value", "type_": "type__value", "window_end_time": "window_end_time_value", @@ -3081,6 +3091,7 @@ def test_insert_rest_call_success(request_type): }, }, "satisfies_pzs": True, + "scheduling_type": "scheduling_type_value", "self_link": "self_link_value", "share_settings": {"project_map": {}, "share_type": "share_type_value"}, "specific_reservation": { @@ -3551,6 +3562,11 @@ def test_update_rest_call_success(request_type): }, "resource_policies": {}, "resource_status": { + "health_info": { + "degraded_block_count": 2082, + "health_status": "health_status_value", + "healthy_block_count": 2017, + }, "reservation_block_count": 2468, "reservation_maintenance": { "instance_maintenance_ongoing_count": 3599, @@ -3563,6 +3579,11 @@ def test_update_rest_call_success(request_type): "upcoming_group_maintenance": { "can_reschedule": True, "latest_window_start_time": "latest_window_start_time_value", + "maintenance_on_shutdown": True, + "maintenance_reasons": [ + "maintenance_reasons_value1", + "maintenance_reasons_value2", + ], "maintenance_status": "maintenance_status_value", "type_": "type__value", "window_end_time": "window_end_time_value", @@ -3575,6 +3596,7 @@ def test_update_rest_call_success(request_type): }, }, "satisfies_pzs": True, + "scheduling_type": "scheduling_type_value", "self_link": "self_link_value", "share_settings": {"project_map": {}, "share_type": "share_type_value"}, "specific_reservation": { diff --git a/packages/google-cloud-compute/tests/unit/gapic/compute_v1/test_reservations.py b/packages/google-cloud-compute/tests/unit/gapic/compute_v1/test_reservations.py index 9836112fe0ca..c1d46144fbef 100644 --- a/packages/google-cloud-compute/tests/unit/gapic/compute_v1/test_reservations.py +++ b/packages/google-cloud-compute/tests/unit/gapic/compute_v1/test_reservations.py @@ -4972,6 +4972,7 @@ def test_get_rest_call_success(request_type): linked_commitments=["linked_commitments_value"], name="name_value", satisfies_pzs=True, + scheduling_type="scheduling_type_value", self_link="self_link_value", specific_reservation_required=True, status="status_value", @@ -5003,6 +5004,7 @@ def test_get_rest_call_success(request_type): assert response.linked_commitments == ["linked_commitments_value"] assert response.name == "name_value" assert response.satisfies_pzs is True + assert response.scheduling_type == "scheduling_type_value" assert response.self_link == "self_link_value" assert response.specific_reservation_required is True assert response.status == "status_value" @@ -5270,6 +5272,11 @@ def test_insert_rest_call_success(request_type): }, "resource_policies": {}, "resource_status": { + "health_info": { + "degraded_block_count": 2082, + "health_status": "health_status_value", + "healthy_block_count": 2017, + }, "reservation_block_count": 2468, "reservation_maintenance": { "instance_maintenance_ongoing_count": 3599, @@ -5282,6 +5289,11 @@ def test_insert_rest_call_success(request_type): "upcoming_group_maintenance": { "can_reschedule": True, "latest_window_start_time": "latest_window_start_time_value", + "maintenance_on_shutdown": True, + "maintenance_reasons": [ + "maintenance_reasons_value1", + "maintenance_reasons_value2", + ], "maintenance_status": "maintenance_status_value", "type_": "type__value", "window_end_time": "window_end_time_value", @@ -5294,6 +5306,7 @@ def test_insert_rest_call_success(request_type): }, }, "satisfies_pzs": True, + "scheduling_type": "scheduling_type_value", "self_link": "self_link_value", "share_settings": {"project_map": {}, "share_type": "share_type_value"}, "specific_reservation": { @@ -6672,6 +6685,11 @@ def test_update_rest_call_success(request_type): }, "resource_policies": {}, "resource_status": { + "health_info": { + "degraded_block_count": 2082, + "health_status": "health_status_value", + "healthy_block_count": 2017, + }, "reservation_block_count": 2468, "reservation_maintenance": { "instance_maintenance_ongoing_count": 3599, @@ -6684,6 +6702,11 @@ def test_update_rest_call_success(request_type): "upcoming_group_maintenance": { "can_reschedule": True, "latest_window_start_time": "latest_window_start_time_value", + "maintenance_on_shutdown": True, + "maintenance_reasons": [ + "maintenance_reasons_value1", + "maintenance_reasons_value2", + ], "maintenance_status": "maintenance_status_value", "type_": "type__value", "window_end_time": "window_end_time_value", @@ -6696,6 +6719,7 @@ def test_update_rest_call_success(request_type): }, }, "satisfies_pzs": True, + "scheduling_type": "scheduling_type_value", "self_link": "self_link_value", "share_settings": {"project_map": {}, "share_type": "share_type_value"}, "specific_reservation": {