Skip to content
This repository has been archived by the owner on Dec 31, 2023. It is now read-only.

feat: Update Compute Engine API to revision 20230701 #421

Merged
merged 2 commits into from
Jul 10, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions google/cloud/compute/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -788,6 +788,7 @@
InstanceGroupManagerActionsSummary,
InstanceGroupManagerAggregatedList,
InstanceGroupManagerAutoHealingPolicy,
InstanceGroupManagerInstanceLifecyclePolicy,
InstanceGroupManagerList,
InstanceGroupManagersAbandonInstancesRequest,
InstanceGroupManagersApplyUpdatesRequest,
Expand Down Expand Up @@ -2243,6 +2244,7 @@
"InstanceGroupManagerActionsSummary",
"InstanceGroupManagerAggregatedList",
"InstanceGroupManagerAutoHealingPolicy",
"InstanceGroupManagerInstanceLifecyclePolicy",
"InstanceGroupManagerList",
"InstanceGroupManagersAbandonInstancesRequest",
"InstanceGroupManagersApplyUpdatesRequest",
Expand Down
2 changes: 2 additions & 0 deletions google/cloud/compute_v1/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -682,6 +682,7 @@
InstanceGroupManagerActionsSummary,
InstanceGroupManagerAggregatedList,
InstanceGroupManagerAutoHealingPolicy,
InstanceGroupManagerInstanceLifecyclePolicy,
InstanceGroupManagerList,
InstanceGroupManagersAbandonInstancesRequest,
InstanceGroupManagersApplyUpdatesRequest,
Expand Down Expand Up @@ -2067,6 +2068,7 @@
"InstanceGroupManagerActionsSummary",
"InstanceGroupManagerAggregatedList",
"InstanceGroupManagerAutoHealingPolicy",
"InstanceGroupManagerInstanceLifecyclePolicy",
"InstanceGroupManagerList",
"InstanceGroupManagerStatus",
"InstanceGroupManagerStatusStateful",
Expand Down
8 changes: 8 additions & 0 deletions google/cloud/compute_v1/services/projects/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -2098,6 +2098,10 @@ def move_instance_unary(
method might cause unexpected behavior. For more information,
see the `known
issue </compute/docs/troubleshooting/known-issues#moving_vms_or_disks_using_the_moveinstance_api_or_the_causes_unexpected_behavior>`__.
[Deprecated] This method is deprecated. See `moving instance
across
zones </compute/docs/instances/moving-instance-across-zones>`__
instead.

.. code-block:: python

Expand Down Expand Up @@ -2211,6 +2215,10 @@ def move_instance(
method might cause unexpected behavior. For more information,
see the `known
issue </compute/docs/troubleshooting/known-issues#moving_vms_or_disks_using_the_moveinstance_api_or_the_causes_unexpected_behavior>`__.
[Deprecated] This method is deprecated. See `moving instance
across
zones </compute/docs/instances/moving-instance-across-zones>`__
instead.

.. code-block:: python

Expand Down
2 changes: 2 additions & 0 deletions google/cloud/compute_v1/types/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -583,6 +583,7 @@
InstanceGroupManagerActionsSummary,
InstanceGroupManagerAggregatedList,
InstanceGroupManagerAutoHealingPolicy,
InstanceGroupManagerInstanceLifecyclePolicy,
InstanceGroupManagerList,
InstanceGroupManagersAbandonInstancesRequest,
InstanceGroupManagersApplyUpdatesRequest,
Expand Down Expand Up @@ -1948,6 +1949,7 @@
"InstanceGroupManagerActionsSummary",
"InstanceGroupManagerAggregatedList",
"InstanceGroupManagerAutoHealingPolicy",
"InstanceGroupManagerInstanceLifecyclePolicy",
"InstanceGroupManagerList",
"InstanceGroupManagersAbandonInstancesRequest",
"InstanceGroupManagersApplyUpdatesRequest",
Expand Down
317 changes: 250 additions & 67 deletions google/cloud/compute_v1/types/compute.py

Large diffs are not rendered by default.

24 changes: 24 additions & 0 deletions tests/unit/gapic/compute_v1/test_instance_group_managers.py
Original file line number Diff line number Diff line change
Expand Up @@ -5511,6 +5511,9 @@ def test_insert_rest(request_type):
"fingerprint": "fingerprint_value",
"id": 205,
"instance_group": "instance_group_value",
"instance_lifecycle_policy": {
"force_update_on_repair": "force_update_on_repair_value"
},
"instance_template": "instance_template_value",
"kind": "kind_value",
"list_managed_instances_results": "list_managed_instances_results_value",
Expand Down Expand Up @@ -5810,6 +5813,9 @@ def test_insert_rest_bad_request(
"fingerprint": "fingerprint_value",
"id": 205,
"instance_group": "instance_group_value",
"instance_lifecycle_policy": {
"force_update_on_repair": "force_update_on_repair_value"
},
"instance_template": "instance_template_value",
"kind": "kind_value",
"list_managed_instances_results": "list_managed_instances_results_value",
Expand Down Expand Up @@ -5983,6 +5989,9 @@ def test_insert_unary_rest(request_type):
"fingerprint": "fingerprint_value",
"id": 205,
"instance_group": "instance_group_value",
"instance_lifecycle_policy": {
"force_update_on_repair": "force_update_on_repair_value"
},
"instance_template": "instance_template_value",
"kind": "kind_value",
"list_managed_instances_results": "list_managed_instances_results_value",
Expand Down Expand Up @@ -6260,6 +6269,9 @@ def test_insert_unary_rest_bad_request(
"fingerprint": "fingerprint_value",
"id": 205,
"instance_group": "instance_group_value",
"instance_lifecycle_policy": {
"force_update_on_repair": "force_update_on_repair_value"
},
"instance_template": "instance_template_value",
"kind": "kind_value",
"list_managed_instances_results": "list_managed_instances_results_value",
Expand Down Expand Up @@ -7969,6 +7981,9 @@ def test_patch_rest(request_type):
"fingerprint": "fingerprint_value",
"id": 205,
"instance_group": "instance_group_value",
"instance_lifecycle_policy": {
"force_update_on_repair": "force_update_on_repair_value"
},
"instance_template": "instance_template_value",
"kind": "kind_value",
"list_managed_instances_results": "list_managed_instances_results_value",
Expand Down Expand Up @@ -8277,6 +8292,9 @@ def test_patch_rest_bad_request(
"fingerprint": "fingerprint_value",
"id": 205,
"instance_group": "instance_group_value",
"instance_lifecycle_policy": {
"force_update_on_repair": "force_update_on_repair_value"
},
"instance_template": "instance_template_value",
"kind": "kind_value",
"list_managed_instances_results": "list_managed_instances_results_value",
Expand Down Expand Up @@ -8460,6 +8478,9 @@ def test_patch_unary_rest(request_type):
"fingerprint": "fingerprint_value",
"id": 205,
"instance_group": "instance_group_value",
"instance_lifecycle_policy": {
"force_update_on_repair": "force_update_on_repair_value"
},
"instance_template": "instance_template_value",
"kind": "kind_value",
"list_managed_instances_results": "list_managed_instances_results_value",
Expand Down Expand Up @@ -8746,6 +8767,9 @@ def test_patch_unary_rest_bad_request(
"fingerprint": "fingerprint_value",
"id": 205,
"instance_group": "instance_group_value",
"instance_lifecycle_policy": {
"force_update_on_repair": "force_update_on_repair_value"
},
"instance_template": "instance_template_value",
"kind": "kind_value",
"list_managed_instances_results": "list_managed_instances_results_value",
Expand Down
24 changes: 24 additions & 0 deletions tests/unit/gapic/compute_v1/test_region_instance_group_managers.py
Original file line number Diff line number Diff line change
Expand Up @@ -5160,6 +5160,9 @@ def test_insert_rest(request_type):
"fingerprint": "fingerprint_value",
"id": 205,
"instance_group": "instance_group_value",
"instance_lifecycle_policy": {
"force_update_on_repair": "force_update_on_repair_value"
},
"instance_template": "instance_template_value",
"kind": "kind_value",
"list_managed_instances_results": "list_managed_instances_results_value",
Expand Down Expand Up @@ -5460,6 +5463,9 @@ def test_insert_rest_bad_request(
"fingerprint": "fingerprint_value",
"id": 205,
"instance_group": "instance_group_value",
"instance_lifecycle_policy": {
"force_update_on_repair": "force_update_on_repair_value"
},
"instance_template": "instance_template_value",
"kind": "kind_value",
"list_managed_instances_results": "list_managed_instances_results_value",
Expand Down Expand Up @@ -5633,6 +5639,9 @@ def test_insert_unary_rest(request_type):
"fingerprint": "fingerprint_value",
"id": 205,
"instance_group": "instance_group_value",
"instance_lifecycle_policy": {
"force_update_on_repair": "force_update_on_repair_value"
},
"instance_template": "instance_template_value",
"kind": "kind_value",
"list_managed_instances_results": "list_managed_instances_results_value",
Expand Down Expand Up @@ -5911,6 +5920,9 @@ def test_insert_unary_rest_bad_request(
"fingerprint": "fingerprint_value",
"id": 205,
"instance_group": "instance_group_value",
"instance_lifecycle_policy": {
"force_update_on_repair": "force_update_on_repair_value"
},
"instance_template": "instance_template_value",
"kind": "kind_value",
"list_managed_instances_results": "list_managed_instances_results_value",
Expand Down Expand Up @@ -7631,6 +7643,9 @@ def test_patch_rest(request_type):
"fingerprint": "fingerprint_value",
"id": 205,
"instance_group": "instance_group_value",
"instance_lifecycle_policy": {
"force_update_on_repair": "force_update_on_repair_value"
},
"instance_template": "instance_template_value",
"kind": "kind_value",
"list_managed_instances_results": "list_managed_instances_results_value",
Expand Down Expand Up @@ -7939,6 +7954,9 @@ def test_patch_rest_bad_request(
"fingerprint": "fingerprint_value",
"id": 205,
"instance_group": "instance_group_value",
"instance_lifecycle_policy": {
"force_update_on_repair": "force_update_on_repair_value"
},
"instance_template": "instance_template_value",
"kind": "kind_value",
"list_managed_instances_results": "list_managed_instances_results_value",
Expand Down Expand Up @@ -8122,6 +8140,9 @@ def test_patch_unary_rest(request_type):
"fingerprint": "fingerprint_value",
"id": 205,
"instance_group": "instance_group_value",
"instance_lifecycle_policy": {
"force_update_on_repair": "force_update_on_repair_value"
},
"instance_template": "instance_template_value",
"kind": "kind_value",
"list_managed_instances_results": "list_managed_instances_results_value",
Expand Down Expand Up @@ -8408,6 +8429,9 @@ def test_patch_unary_rest_bad_request(
"fingerprint": "fingerprint_value",
"id": 205,
"instance_group": "instance_group_value",
"instance_lifecycle_policy": {
"force_update_on_repair": "force_update_on_repair_value"
},
"instance_template": "instance_template_value",
"kind": "kind_value",
"list_managed_instances_results": "list_managed_instances_results_value",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1280,6 +1280,7 @@ def test_get_rest(request_type):
creation_timestamp="creation_timestamp_value",
description="description_value",
fingerprint="fingerprint_value",
http_keep_alive_timeout_sec=2868,
id=205,
kind="kind_value",
name="name_value",
Expand All @@ -1304,6 +1305,7 @@ def test_get_rest(request_type):
assert response.creation_timestamp == "creation_timestamp_value"
assert response.description == "description_value"
assert response.fingerprint == "fingerprint_value"
assert response.http_keep_alive_timeout_sec == 2868
assert response.id == 205
assert response.kind == "kind_value"
assert response.name == "name_value"
Expand Down Expand Up @@ -1588,6 +1590,7 @@ def test_insert_rest(request_type):
"creation_timestamp": "creation_timestamp_value",
"description": "description_value",
"fingerprint": "fingerprint_value",
"http_keep_alive_timeout_sec": 2868,
"id": 205,
"kind": "kind_value",
"name": "name_value",
Expand Down Expand Up @@ -1833,6 +1836,7 @@ def test_insert_rest_bad_request(
"creation_timestamp": "creation_timestamp_value",
"description": "description_value",
"fingerprint": "fingerprint_value",
"http_keep_alive_timeout_sec": 2868,
"id": 205,
"kind": "kind_value",
"name": "name_value",
Expand Down Expand Up @@ -1944,6 +1948,7 @@ def test_insert_unary_rest(request_type):
"creation_timestamp": "creation_timestamp_value",
"description": "description_value",
"fingerprint": "fingerprint_value",
"http_keep_alive_timeout_sec": 2868,
"id": 205,
"kind": "kind_value",
"name": "name_value",
Expand Down Expand Up @@ -2167,6 +2172,7 @@ def test_insert_unary_rest_bad_request(
"creation_timestamp": "creation_timestamp_value",
"description": "description_value",
"fingerprint": "fingerprint_value",
"http_keep_alive_timeout_sec": 2868,
"id": 205,
"kind": "kind_value",
"name": "name_value",
Expand Down
10 changes: 10 additions & 0 deletions tests/unit/gapic/compute_v1/test_region_target_https_proxies.py
Original file line number Diff line number Diff line change
Expand Up @@ -1286,6 +1286,7 @@ def test_get_rest(request_type):
creation_timestamp="creation_timestamp_value",
description="description_value",
fingerprint="fingerprint_value",
http_keep_alive_timeout_sec=2868,
id=205,
kind="kind_value",
name="name_value",
Expand Down Expand Up @@ -1316,6 +1317,7 @@ def test_get_rest(request_type):
assert response.creation_timestamp == "creation_timestamp_value"
assert response.description == "description_value"
assert response.fingerprint == "fingerprint_value"
assert response.http_keep_alive_timeout_sec == 2868
assert response.id == 205
assert response.kind == "kind_value"
assert response.name == "name_value"
Expand Down Expand Up @@ -1608,6 +1610,7 @@ def test_insert_rest(request_type):
"creation_timestamp": "creation_timestamp_value",
"description": "description_value",
"fingerprint": "fingerprint_value",
"http_keep_alive_timeout_sec": 2868,
"id": 205,
"kind": "kind_value",
"name": "name_value",
Expand Down Expand Up @@ -1859,6 +1862,7 @@ def test_insert_rest_bad_request(
"creation_timestamp": "creation_timestamp_value",
"description": "description_value",
"fingerprint": "fingerprint_value",
"http_keep_alive_timeout_sec": 2868,
"id": 205,
"kind": "kind_value",
"name": "name_value",
Expand Down Expand Up @@ -1976,6 +1980,7 @@ def test_insert_unary_rest(request_type):
"creation_timestamp": "creation_timestamp_value",
"description": "description_value",
"fingerprint": "fingerprint_value",
"http_keep_alive_timeout_sec": 2868,
"id": 205,
"kind": "kind_value",
"name": "name_value",
Expand Down Expand Up @@ -2205,6 +2210,7 @@ def test_insert_unary_rest_bad_request(
"creation_timestamp": "creation_timestamp_value",
"description": "description_value",
"fingerprint": "fingerprint_value",
"http_keep_alive_timeout_sec": 2868,
"id": 205,
"kind": "kind_value",
"name": "name_value",
Expand Down Expand Up @@ -2687,6 +2693,7 @@ def test_patch_rest(request_type):
"creation_timestamp": "creation_timestamp_value",
"description": "description_value",
"fingerprint": "fingerprint_value",
"http_keep_alive_timeout_sec": 2868,
"id": 205,
"kind": "kind_value",
"name": "name_value",
Expand Down Expand Up @@ -2947,6 +2954,7 @@ def test_patch_rest_bad_request(
"creation_timestamp": "creation_timestamp_value",
"description": "description_value",
"fingerprint": "fingerprint_value",
"http_keep_alive_timeout_sec": 2868,
"id": 205,
"kind": "kind_value",
"name": "name_value",
Expand Down Expand Up @@ -3074,6 +3082,7 @@ def test_patch_unary_rest(request_type):
"creation_timestamp": "creation_timestamp_value",
"description": "description_value",
"fingerprint": "fingerprint_value",
"http_keep_alive_timeout_sec": 2868,
"id": 205,
"kind": "kind_value",
"name": "name_value",
Expand Down Expand Up @@ -3312,6 +3321,7 @@ def test_patch_unary_rest_bad_request(
"creation_timestamp": "creation_timestamp_value",
"description": "description_value",
"fingerprint": "fingerprint_value",
"http_keep_alive_timeout_sec": 2868,
"id": 205,
"kind": "kind_value",
"name": "name_value",
Expand Down
Loading