Skip to content

Commit 47981a8

Browse files
feat: [google-cloud-build] Add option to enable nested virtualization if available (#14241)
BEGIN_COMMIT_OVERRIDE feat: Add option to enable nested virtualization if available docs: Update comments for `machine_type` and `disk_size_gb` END_COMMIT_OVERRIDE - [ ] Regenerate this pull request now. docs: Update comments for `machine_type` and `disk_size_gb` PiperOrigin-RevId: 795519165 Source-Link: googleapis/googleapis@185c73c Source-Link: googleapis/googleapis-gen@762fafd Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWJ1aWxkLy5Pd2xCb3QueWFtbCIsImgiOiI3NjJmYWZkZTQ2MTA5MzNiNTQ4NTQ0ODhiZmFmNWY1ZDA4ZDMwNmU1In0= --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com> Co-authored-by: ohmayr <[email protected]>
1 parent a2afff4 commit 47981a8

File tree

7 files changed

+24
-8
lines changed

7 files changed

+24
-8
lines changed

packages/google-cloud-build/google/cloud/devtools/cloudbuild/gapic_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515
#
16-
__version__ = "3.31.3" # {x-release-please-version}
16+
__version__ = "0.0.0" # {x-release-please-version}

packages/google-cloud-build/google/cloud/devtools/cloudbuild_v1/gapic_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515
#
16-
__version__ = "3.31.3" # {x-release-please-version}
16+
__version__ = "0.0.0" # {x-release-please-version}

packages/google-cloud-build/google/cloud/devtools/cloudbuild_v1/types/cloudbuild.py

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4031,18 +4031,27 @@ class WorkerConfig(proto.Message):
40314031
r"""Defines the configuration to be used for creating workers in
40324032
the pool.
40334033
4034+
4035+
.. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields
4036+
40344037
Attributes:
40354038
machine_type (str):
4036-
Machine type of a worker, such as ``e2-medium``. See `Worker
4037-
pool config
4039+
Optional. Machine type of a worker, such as ``e2-medium``.
4040+
See `Worker pool config
40384041
file <https://cloud.google.com/build/docs/private-pools/worker-pool-config-file-schema>`__.
40394042
If left blank, Cloud Build will use a sensible default.
40404043
disk_size_gb (int):
40414044
Size of the disk attached to the worker, in GB. See `Worker
40424045
pool config
40434046
file <https://cloud.google.com/build/docs/private-pools/worker-pool-config-file-schema>`__.
4044-
Specify a value of up to 2000. If ``0`` is specified, Cloud
4047+
Specify a value of up to 4000. If ``0`` is specified, Cloud
40454048
Build will use a standard disk size.
4049+
enable_nested_virtualization (bool):
4050+
Optional. Enable nested virtualization on the
4051+
worker, if supported by the machine type. By
4052+
default, nested virtualization is disabled.
4053+
4054+
This field is a member of `oneof`_ ``_enable_nested_virtualization``.
40464055
"""
40474056

40484057
machine_type: str = proto.Field(
@@ -4053,6 +4062,11 @@ class WorkerConfig(proto.Message):
40534062
proto.INT64,
40544063
number=2,
40554064
)
4065+
enable_nested_virtualization: bool = proto.Field(
4066+
proto.BOOL,
4067+
number=3,
4068+
optional=True,
4069+
)
40564070

40574071
class NetworkConfig(proto.Message):
40584072
r"""Defines the network configuration for the pool.

packages/google-cloud-build/google/cloud/devtools/cloudbuild_v2/gapic_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515
#
16-
__version__ = "3.31.3" # {x-release-please-version}
16+
__version__ = "0.0.0" # {x-release-please-version}

packages/google-cloud-build/samples/generated_samples/snippet_metadata_google.devtools.cloudbuild.v1.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
],
99
"language": "PYTHON",
1010
"name": "google-cloud-build",
11-
"version": "3.31.3"
11+
"version": "0.1.0"
1212
},
1313
"snippets": [
1414
{

packages/google-cloud-build/samples/generated_samples/snippet_metadata_google.devtools.cloudbuild.v2.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
],
99
"language": "PYTHON",
1010
"name": "google-cloud-build",
11-
"version": "3.31.3"
11+
"version": "0.1.0"
1212
},
1313
"snippets": [
1414
{

packages/google-cloud-build/tests/unit/gapic/cloudbuild_v1/test_cloud_build.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15549,6 +15549,7 @@ def test_create_worker_pool_rest_call_success(request_type):
1554915549
"worker_config": {
1555015550
"machine_type": "machine_type_value",
1555115551
"disk_size_gb": 1261,
15552+
"enable_nested_virtualization": True,
1555215553
},
1555315554
"network_config": {
1555415555
"peered_network": "peered_network_value",
@@ -16030,6 +16031,7 @@ def test_update_worker_pool_rest_call_success(request_type):
1603016031
"worker_config": {
1603116032
"machine_type": "machine_type_value",
1603216033
"disk_size_gb": 1261,
16034+
"enable_nested_virtualization": True,
1603316035
},
1603416036
"network_config": {
1603516037
"peered_network": "peered_network_value",

0 commit comments

Comments
 (0)