diff --git a/packages/google-cloud-compute-v1beta/google/cloud/compute_v1beta/__init__.py b/packages/google-cloud-compute-v1beta/google/cloud/compute_v1beta/__init__.py index 936746e45a28..100af59ecacb 100644 --- a/packages/google-cloud-compute-v1beta/google/cloud/compute_v1beta/__init__.py +++ b/packages/google-cloud-compute-v1beta/google/cloud/compute_v1beta/__init__.py @@ -233,6 +233,7 @@ AllocationAggregateReservationReservedResourceInfoAccelerator, AllocationReservationSharingPolicy, AllocationResourceStatus, + AllocationResourceStatusHealthInfo, AllocationResourceStatusSpecificSKUAllocation, AllocationSpecificSKUAllocationAllocatedInstancePropertiesReservedDisk, AllocationSpecificSKUAllocationReservedInstanceProperties, @@ -1476,6 +1477,7 @@ ReservationAffinity, ReservationAggregatedList, ReservationBlock, + ReservationBlockHealthInfo, ReservationBlockPhysicalTopology, ReservationBlockPhysicalTopologyInstance, ReservationBlockPhysicalTopologyInstancePhysicalHostTopology, @@ -1487,6 +1489,7 @@ ReservationsResizeRequest, ReservationsScopedList, ReservationSubBlock, + ReservationSubBlockHealthInfo, ReservationSubBlockPhysicalTopology, ReservationSubBlocksGetResponse, ReservationSubBlocksListResponse, @@ -2118,6 +2121,7 @@ "AllocationAggregateReservationReservedResourceInfoAccelerator", "AllocationReservationSharingPolicy", "AllocationResourceStatus", + "AllocationResourceStatusHealthInfo", "AllocationResourceStatusSpecificSKUAllocation", "AllocationSpecificSKUAllocationAllocatedInstancePropertiesReservedDisk", "AllocationSpecificSKUAllocationReservedInstanceProperties", @@ -3443,6 +3447,7 @@ "ReservationAffinity", "ReservationAggregatedList", "ReservationBlock", + "ReservationBlockHealthInfo", "ReservationBlockPhysicalTopology", "ReservationBlockPhysicalTopologyInstance", "ReservationBlockPhysicalTopologyInstancePhysicalHostTopology", @@ -3451,6 +3456,7 @@ "ReservationBlocksListResponse", "ReservationList", "ReservationSubBlock", + "ReservationSubBlockHealthInfo", "ReservationSubBlockPhysicalTopology", "ReservationSubBlocksClient", "ReservationSubBlocksGetResponse", diff --git a/packages/google-cloud-compute-v1beta/google/cloud/compute_v1beta/gapic_version.py b/packages/google-cloud-compute-v1beta/google/cloud/compute_v1beta/gapic_version.py index 3de61f78c443..20a9cd975b02 100644 --- a/packages/google-cloud-compute-v1beta/google/cloud/compute_v1beta/gapic_version.py +++ b/packages/google-cloud-compute-v1beta/google/cloud/compute_v1beta/gapic_version.py @@ -13,4 +13,4 @@ # See the License for the specific language governing permissions and # limitations under the License. # -__version__ = "0.1.4" # {x-release-please-version} +__version__ = "0.0.0" # {x-release-please-version} diff --git a/packages/google-cloud-compute-v1beta/google/cloud/compute_v1beta/types/__init__.py b/packages/google-cloud-compute-v1beta/google/cloud/compute_v1beta/types/__init__.py index 4e2068910abb..3b60f38a3549 100644 --- a/packages/google-cloud-compute-v1beta/google/cloud/compute_v1beta/types/__init__.py +++ b/packages/google-cloud-compute-v1beta/google/cloud/compute_v1beta/types/__init__.py @@ -105,6 +105,7 @@ AllocationAggregateReservationReservedResourceInfoAccelerator, AllocationReservationSharingPolicy, AllocationResourceStatus, + AllocationResourceStatusHealthInfo, AllocationResourceStatusSpecificSKUAllocation, AllocationSpecificSKUAllocationAllocatedInstancePropertiesReservedDisk, AllocationSpecificSKUAllocationReservedInstanceProperties, @@ -1348,6 +1349,7 @@ ReservationAffinity, ReservationAggregatedList, ReservationBlock, + ReservationBlockHealthInfo, ReservationBlockPhysicalTopology, ReservationBlockPhysicalTopologyInstance, ReservationBlockPhysicalTopologyInstancePhysicalHostTopology, @@ -1359,6 +1361,7 @@ ReservationsResizeRequest, ReservationsScopedList, ReservationSubBlock, + ReservationSubBlockHealthInfo, ReservationSubBlockPhysicalTopology, ReservationSubBlocksGetResponse, ReservationSubBlocksListResponse, @@ -1986,6 +1989,7 @@ "AllocationAggregateReservationReservedResourceInfoAccelerator", "AllocationReservationSharingPolicy", "AllocationResourceStatus", + "AllocationResourceStatusHealthInfo", "AllocationResourceStatusSpecificSKUAllocation", "AllocationSpecificSKUAllocationAllocatedInstancePropertiesReservedDisk", "AllocationSpecificSKUAllocationReservedInstanceProperties", @@ -3229,6 +3233,7 @@ "ReservationAffinity", "ReservationAggregatedList", "ReservationBlock", + "ReservationBlockHealthInfo", "ReservationBlockPhysicalTopology", "ReservationBlockPhysicalTopologyInstance", "ReservationBlockPhysicalTopologyInstancePhysicalHostTopology", @@ -3240,6 +3245,7 @@ "ReservationsResizeRequest", "ReservationsScopedList", "ReservationSubBlock", + "ReservationSubBlockHealthInfo", "ReservationSubBlockPhysicalTopology", "ReservationSubBlocksGetResponse", "ReservationSubBlocksListResponse", diff --git a/packages/google-cloud-compute-v1beta/google/cloud/compute_v1beta/types/compute.py b/packages/google-cloud-compute-v1beta/google/cloud/compute_v1beta/types/compute.py index 5080f367fabf..1b8cab2d6b6e 100644 --- a/packages/google-cloud-compute-v1beta/google/cloud/compute_v1beta/types/compute.py +++ b/packages/google-cloud-compute-v1beta/google/cloud/compute_v1beta/types/compute.py @@ -116,6 +116,7 @@ "AllocationAggregateReservationReservedResourceInfoAccelerator", "AllocationReservationSharingPolicy", "AllocationResourceStatus", + "AllocationResourceStatusHealthInfo", "AllocationResourceStatusSpecificSKUAllocation", "AllocationSpecificSKUAllocationAllocatedInstancePropertiesReservedDisk", "AllocationSpecificSKUAllocationReservedInstanceProperties", @@ -1358,6 +1359,7 @@ "ReservationAffinity", "ReservationAggregatedList", "ReservationBlock", + "ReservationBlockHealthInfo", "ReservationBlockPhysicalTopology", "ReservationBlockPhysicalTopologyInstance", "ReservationBlockPhysicalTopologyInstancePhysicalHostTopology", @@ -1365,6 +1367,7 @@ "ReservationBlocksListResponse", "ReservationList", "ReservationSubBlock", + "ReservationSubBlockHealthInfo", "ReservationSubBlockPhysicalTopology", "ReservationSubBlocksGetResponse", "ReservationSubBlocksListResponse", @@ -12355,6 +12358,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_v1beta.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. @@ -12370,6 +12377,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, @@ -12391,6 +12404,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. @@ -102207,6 +102281,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. @@ -102298,6 +102378,28 @@ class ReservationMode(proto.Enum): DEFAULT = 115302945 RESERVATION_MODE_UNSPECIFIED = 233810606 + 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 @@ -102416,6 +102518,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, @@ -102633,6 +102740,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_v1beta.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. @@ -102731,6 +102842,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, @@ -102795,6 +102912,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""" @@ -103087,6 +103263,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_v1beta.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. @@ -103176,6 +103357,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, @@ -103230,6 +103417,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""" @@ -130687,6 +130955,10 @@ class UpcomingMaintenance(proto.Message): 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. @@ -130712,6 +130984,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""" @@ -130768,6 +131084,10 @@ class Type(proto.Enum): 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-v1beta/samples/generated_samples/snippet_metadata_google.cloud.compute.v1beta.json b/packages/google-cloud-compute-v1beta/samples/generated_samples/snippet_metadata_google.cloud.compute.v1beta.json index 4894cb1ef83f..2f1169244dc3 100644 --- a/packages/google-cloud-compute-v1beta/samples/generated_samples/snippet_metadata_google.cloud.compute.v1beta.json +++ b/packages/google-cloud-compute-v1beta/samples/generated_samples/snippet_metadata_google.cloud.compute.v1beta.json @@ -8,7 +8,7 @@ ], "language": "PYTHON", "name": "google-cloud-compute-v1beta", - "version": "0.1.4" + "version": "0.1.0" }, "snippets": [ { diff --git a/packages/google-cloud-compute-v1beta/tests/unit/gapic/compute_v1beta/test_instances.py b/packages/google-cloud-compute-v1beta/tests/unit/gapic/compute_v1beta/test_instances.py index 99e0966c10ae..8afb63603a89 100644 --- a/packages/google-cloud-compute-v1beta/tests/unit/gapic/compute_v1beta/test_instances.py +++ b/packages/google-cloud-compute-v1beta/tests/unit/gapic/compute_v1beta/test_instances.py @@ -26505,6 +26505,10 @@ def test_insert_rest_call_success(request_type): "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", @@ -33398,6 +33402,10 @@ def test_update_rest_call_success(request_type): "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-v1beta/tests/unit/gapic/compute_v1beta/test_region_commitments.py b/packages/google-cloud-compute-v1beta/tests/unit/gapic/compute_v1beta/test_region_commitments.py index f4bd5cccd862..3a3394c4531e 100644 --- a/packages/google-cloud-compute-v1beta/tests/unit/gapic/compute_v1beta/test_region_commitments.py +++ b/packages/google-cloud-compute-v1beta/tests/unit/gapic/compute_v1beta/test_region_commitments.py @@ -3763,6 +3763,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, @@ -3776,6 +3781,10 @@ def test_insert_rest_call_success(request_type): "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", @@ -3788,6 +3797,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": {}, @@ -4473,6 +4483,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, @@ -4486,6 +4501,10 @@ def test_update_rest_call_success(request_type): "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", @@ -4498,6 +4517,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": {}, @@ -4822,6 +4842,11 @@ def test_update_reservations_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, @@ -4835,6 +4860,10 @@ def test_update_reservations_rest_call_success(request_type): "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", @@ -4847,6 +4876,7 @@ def test_update_reservations_rest_call_success(request_type): }, }, "satisfies_pzs": True, + "scheduling_type": "scheduling_type_value", "self_link": "self_link_value", "share_settings": { "project_map": {}, diff --git a/packages/google-cloud-compute-v1beta/tests/unit/gapic/compute_v1beta/test_reservations.py b/packages/google-cloud-compute-v1beta/tests/unit/gapic/compute_v1beta/test_reservations.py index 3410f1dcdd64..53df00f1f65a 100644 --- a/packages/google-cloud-compute-v1beta/tests/unit/gapic/compute_v1beta/test_reservations.py +++ b/packages/google-cloud-compute-v1beta/tests/unit/gapic/compute_v1beta/test_reservations.py @@ -4973,6 +4973,7 @@ def test_get_rest_call_success(request_type): name="name_value", reservation_mode="reservation_mode_value", satisfies_pzs=True, + scheduling_type="scheduling_type_value", self_link="self_link_value", specific_reservation_required=True, status="status_value", @@ -5005,6 +5006,7 @@ def test_get_rest_call_success(request_type): assert response.name == "name_value" assert response.reservation_mode == "reservation_mode_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" @@ -5273,6 +5275,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, @@ -5286,6 +5293,10 @@ def test_insert_rest_call_success(request_type): "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", @@ -5298,6 +5309,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": {}, @@ -6683,6 +6695,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, @@ -6696,6 +6713,10 @@ def test_update_rest_call_success(request_type): "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", @@ -6708,6 +6729,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": {},