Skip to content

Commit bce9e50

Browse files
feat: [google-cloud-compute-v1beta] Update Compute Engine v1beta API to revision 20250810 (#1090) (#14325)
- [ ] Regenerate this pull request now. Source-Link: googleapis/googleapis@3764670 Source-Link: googleapis/googleapis-gen@690f0c3 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWNvbXB1dGUtdjFiZXRhLy5Pd2xCb3QueWFtbCIsImgiOiI2OTBmMGMzOWE1ODExNjlmMTI4YmM0NjIwOWJkOTA0ZDJiZGM5ZGNmIn0= --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent 573dbdf commit bce9e50

4 files changed

Lines changed: 178 additions & 23 deletions

File tree

packages/google-cloud-compute-v1beta/google/cloud/compute_v1beta/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1528,6 +1528,7 @@
15281528
ResourcePolicyWeeklyCycleDayOfWeek,
15291529
ResourcePolicyWorkloadPolicy,
15301530
ResourceStatus,
1531+
ResourceStatusEffectiveInstanceMetadata,
15311532
ResourceStatusPhysicalHostTopology,
15321533
ResourceStatusScheduling,
15331534
ResourceStatusShutdownDetails,
@@ -3510,6 +3511,7 @@
35103511
"ResourcePolicyWeeklyCycleDayOfWeek",
35113512
"ResourcePolicyWorkloadPolicy",
35123513
"ResourceStatus",
3514+
"ResourceStatusEffectiveInstanceMetadata",
35133515
"ResourceStatusPhysicalHostTopology",
35143516
"ResourceStatusScheduling",
35153517
"ResourceStatusShutdownDetails",

packages/google-cloud-compute-v1beta/google/cloud/compute_v1beta/types/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1400,6 +1400,7 @@
14001400
ResourcePolicyWeeklyCycleDayOfWeek,
14011401
ResourcePolicyWorkloadPolicy,
14021402
ResourceStatus,
1403+
ResourceStatusEffectiveInstanceMetadata,
14031404
ResourceStatusPhysicalHostTopology,
14041405
ResourceStatusScheduling,
14051406
ResourceStatusShutdownDetails,
@@ -3292,6 +3293,7 @@
32923293
"ResourcePolicyWeeklyCycleDayOfWeek",
32933294
"ResourcePolicyWorkloadPolicy",
32943295
"ResourceStatus",
3296+
"ResourceStatusEffectiveInstanceMetadata",
32953297
"ResourceStatusPhysicalHostTopology",
32963298
"ResourceStatusScheduling",
32973299
"ResourceStatusShutdownDetails",

packages/google-cloud-compute-v1beta/google/cloud/compute_v1beta/types/compute.py

Lines changed: 154 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1410,6 +1410,7 @@
14101410
"ResourcePolicyWeeklyCycleDayOfWeek",
14111411
"ResourcePolicyWorkloadPolicy",
14121412
"ResourceStatus",
1413+
"ResourceStatusEffectiveInstanceMetadata",
14131414
"ResourceStatusPhysicalHostTopology",
14141415
"ResourceStatusScheduling",
14151416
"ResourceStatusShutdownDetails",
@@ -17151,6 +17152,13 @@ class LocalityLbPolicy(proto.Enum):
1715117152
This is a simple policy in which each healthy
1715217153
backend is selected in round robin order. This
1715317154
is the default.
17155+
WEIGHTED_GCP_RENDEZVOUS (82501640):
17156+
Per-instance weighted Load Balancing via
17157+
health check reported weights. In internal
17158+
passthrough network load balancing, it is
17159+
weighted rendezvous hashing. This option is only
17160+
supported in internal passthrough network load
17161+
balancing.
1715417162
WEIGHTED_MAGLEV (254930962):
1715517163
Per-instance weighted Load Balancing via health check
1715617164
reported weights. If set, the Backend Service must configure
@@ -17181,6 +17189,7 @@ class LocalityLbPolicy(proto.Enum):
1718117189
RANDOM = 262527171
1718217190
RING_HASH = 432795069
1718317191
ROUND_ROBIN = 153895801
17192+
WEIGHTED_GCP_RENDEZVOUS = 82501640
1718417193
WEIGHTED_MAGLEV = 254930962
1718517194
WEIGHTED_ROUND_ROBIN = 5584977
1718617195

@@ -18947,6 +18956,13 @@ class Name(proto.Enum):
1894718956
This is a simple policy in which each healthy
1894818957
backend is selected in round robin order. This
1894918958
is the default.
18959+
WEIGHTED_GCP_RENDEZVOUS (82501640):
18960+
Per-instance weighted Load Balancing via
18961+
health check reported weights. In internal
18962+
passthrough network load balancing, it is
18963+
weighted rendezvous hashing. This option is only
18964+
supported in internal passthrough network load
18965+
balancing.
1895018966
WEIGHTED_MAGLEV (254930962):
1895118967
Per-instance weighted Load Balancing via health check
1895218968
reported weights. If set, the Backend Service must configure
@@ -18977,6 +18993,7 @@ class Name(proto.Enum):
1897718993
RANDOM = 262527171
1897818994
RING_HASH = 432795069
1897918995
ROUND_ROBIN = 153895801
18996+
WEIGHTED_GCP_RENDEZVOUS = 82501640
1898018997
WEIGHTED_MAGLEV = 254930962
1898118998
WEIGHTED_ROUND_ROBIN = 5584977
1898218999

@@ -105893,6 +105910,14 @@ class ResourceStatus(proto.Message):
105893105910
.. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields
105894105911

105895105912
Attributes:
105913+
effective_instance_metadata (google.cloud.compute_v1beta.types.ResourceStatusEffectiveInstanceMetadata):
105914+
[Output Only] Effective metadata is a field that
105915+
consolidates project, zonal instance settings, and
105916+
instance-level predefined metadata keys to provide the
105917+
overridden value for those metadata keys at the instance
105918+
level.
105919+
105920+
This field is a member of `oneof`_ ``_effective_instance_metadata``.
105896105921
physical_host (str):
105897105922
[Output Only] The precise location of your instance within
105898105923
the zone's data center, including the block, sub-block, and
@@ -105919,6 +105944,14 @@ class ResourceStatus(proto.Message):
105919105944
This field is a member of `oneof`_ ``_upcoming_maintenance``.
105920105945
"""
105921105946

105947+
effective_instance_metadata: "ResourceStatusEffectiveInstanceMetadata" = (
105948+
proto.Field(
105949+
proto.MESSAGE,
105950+
number=55052033,
105951+
optional=True,
105952+
message="ResourceStatusEffectiveInstanceMetadata",
105953+
)
105954+
)
105922105955
physical_host: str = proto.Field(
105923105956
proto.STRING,
105924105957
number=464370704,
@@ -105950,6 +105983,95 @@ class ResourceStatus(proto.Message):
105950105983
)
105951105984

105952105985

105986+
class ResourceStatusEffectiveInstanceMetadata(proto.Message):
105987+
r"""Effective values of predefined metadata keys for an instance.
105988+
105989+
.. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields
105990+
105991+
Attributes:
105992+
block_project_ssh_keys_metadata_value (bool):
105993+
Effective block-project-ssh-keys value at
105994+
Instance level.
105995+
105996+
This field is a member of `oneof`_ ``_block_project_ssh_keys_metadata_value``.
105997+
enable_guest_attributes_metadata_value (bool):
105998+
Effective enable-guest-attributes value at
105999+
Instance level.
106000+
106001+
This field is a member of `oneof`_ ``_enable_guest_attributes_metadata_value``.
106002+
enable_os_inventory_metadata_value (bool):
106003+
Effective enable-os-inventory value at
106004+
Instance level.
106005+
106006+
This field is a member of `oneof`_ ``_enable_os_inventory_metadata_value``.
106007+
enable_osconfig_metadata_value (bool):
106008+
Effective enable-osconfig value at Instance
106009+
level.
106010+
106011+
This field is a member of `oneof`_ ``_enable_osconfig_metadata_value``.
106012+
enable_oslogin_metadata_value (bool):
106013+
Effective enable-oslogin value at Instance
106014+
level.
106015+
106016+
This field is a member of `oneof`_ ``_enable_oslogin_metadata_value``.
106017+
serial_port_enable_metadata_value (bool):
106018+
Effective serial-port-enable value at
106019+
Instance level.
106020+
106021+
This field is a member of `oneof`_ ``_serial_port_enable_metadata_value``.
106022+
serial_port_logging_enable_metadata_value (bool):
106023+
Effective serial-port-logging-enable value at
106024+
Instance level.
106025+
106026+
This field is a member of `oneof`_ ``_serial_port_logging_enable_metadata_value``.
106027+
vm_dns_setting_metadata_value (str):
106028+
Effective VM DNS setting at Instance level.
106029+
106030+
This field is a member of `oneof`_ ``_vm_dns_setting_metadata_value``.
106031+
"""
106032+
106033+
block_project_ssh_keys_metadata_value: bool = proto.Field(
106034+
proto.BOOL,
106035+
number=338623101,
106036+
optional=True,
106037+
)
106038+
enable_guest_attributes_metadata_value: bool = proto.Field(
106039+
proto.BOOL,
106040+
number=420155878,
106041+
optional=True,
106042+
)
106043+
enable_os_inventory_metadata_value: bool = proto.Field(
106044+
proto.BOOL,
106045+
number=371752675,
106046+
optional=True,
106047+
)
106048+
enable_osconfig_metadata_value: bool = proto.Field(
106049+
proto.BOOL,
106050+
number=502966494,
106051+
optional=True,
106052+
)
106053+
enable_oslogin_metadata_value: bool = proto.Field(
106054+
proto.BOOL,
106055+
number=216603159,
106056+
optional=True,
106057+
)
106058+
serial_port_enable_metadata_value: bool = proto.Field(
106059+
proto.BOOL,
106060+
number=430536330,
106061+
optional=True,
106062+
)
106063+
serial_port_logging_enable_metadata_value: bool = proto.Field(
106064+
proto.BOOL,
106065+
number=311813290,
106066+
optional=True,
106067+
)
106068+
vm_dns_setting_metadata_value: str = proto.Field(
106069+
proto.STRING,
106070+
number=411127950,
106071+
optional=True,
106072+
)
106073+
106074+
105953106075
class ResourceStatusPhysicalHostTopology(proto.Message):
105954106076
r"""Represents the physical host topology of the host on which
105955106077
the VM is running.
@@ -111083,18 +111205,18 @@ class SecurityPolicy(proto.Message):
111083111205
requests targeting backend services (including Cloud
111084111206
CDN-enabled) as well as backend buckets (Cloud Storage).
111085111207
They filter requests before the request is served from
111086-
Google's cache. - CLOUD_ARMOR_INTERNAL_SERVICE: Cloud Armor
111087-
internal service policies can be configured to filter HTTP
111088-
requests targeting services managed by Traffic Director in a
111089-
service mesh. They filter requests before the request is
111090-
served from the application. - CLOUD_ARMOR_NETWORK: Cloud
111091-
Armor network policies can be configured to filter packets
111092-
targeting network load balancing resources such as backend
111093-
services, target pools, target instances, and instances with
111094-
external IPs. They filter requests before the request is
111095-
served from the application. This field can be set only at
111096-
resource creation time. Check the Type enum for the list of
111097-
possible values.
111208+
Google's cache. - CLOUD_ARMOR_INTERNAL_SERVICE (preview
111209+
only): Cloud Armor internal service policies can be
111210+
configured to filter HTTP requests targeting services
111211+
managed by Traffic Director in a service mesh. They filter
111212+
requests before the request is served from the application.
111213+
- CLOUD_ARMOR_NETWORK: Cloud Armor network policies can be
111214+
configured to filter packets targeting network load
111215+
balancing resources such as backend services, target pools,
111216+
target instances, and instances with external IPs. They
111217+
filter requests before the request is served from the
111218+
application. This field can be set only at resource creation
111219+
time. Check the Type enum for the list of possible values.
111098111220

111099111221
This field is a member of `oneof`_ ``_type``.
111100111222
user_defined_fields (MutableSequence[google.cloud.compute_v1beta.types.SecurityPolicyUserDefinedField]):
@@ -111117,12 +111239,12 @@ class Type(proto.Enum):
111117111239
configured to filter incoming HTTP requests targeting backend
111118111240
services (including Cloud CDN-enabled) as well as backend buckets
111119111241
(Cloud Storage). They filter requests before the request is served
111120-
from Google's cache. - CLOUD_ARMOR_INTERNAL_SERVICE: Cloud Armor
111121-
internal service policies can be configured to filter HTTP requests
111122-
targeting services managed by Traffic Director in a service mesh.
111123-
They filter requests before the request is served from the
111124-
application. - CLOUD_ARMOR_NETWORK: Cloud Armor network policies can
111125-
be configured to filter packets targeting network load balancing
111242+
from Google's cache. - CLOUD_ARMOR_INTERNAL_SERVICE (preview only):
111243+
Cloud Armor internal service policies can be configured to filter
111244+
HTTP requests targeting services managed by Traffic Director in a
111245+
service mesh. They filter requests before the request is served from
111246+
the application. - CLOUD_ARMOR_NETWORK: Cloud Armor network policies
111247+
can be configured to filter packets targeting network load balancing
111126111248
resources such as backend services, target pools, target instances,
111127111249
and instances with external IPs. They filter requests before the
111128111250
request is served from the application. This field can be set only
@@ -111933,7 +112055,11 @@ class SecurityPolicyRule(proto.Message):
111933112055
CLOUD_ARMOR. - throttle: limit client traffic to the
111934112056
configured threshold. Configure parameters for this action
111935112057
in rateLimitOptions. Requires rate_limit_options to be set
111936-
for this.
112058+
for this. - fairshare (preview only): when traffic reaches
112059+
the threshold limit, requests from the clients matching this
112060+
rule begin to be rate-limited using the Fair Share
112061+
algorithm. This action is only allowed in security policies
112062+
of type ``CLOUD_ARMOR_INTERNAL_SERVICE``.
111937112063

111938112064
This field is a member of `oneof`_ ``_action``.
111939112065
description (str):
@@ -112028,7 +112154,8 @@ class SecurityPolicyRule(proto.Message):
112028112154
This field is a member of `oneof`_ ``_priority``.
112029112155
rate_limit_options (google.cloud.compute_v1beta.types.SecurityPolicyRuleRateLimitOptions):
112030112156
Must be specified if the action is "rate_based_ban" or
112031-
"throttle". Cannot be specified for any other actions.
112157+
"throttle" or "fairshare". Cannot be specified for any other
112158+
actions.
112032112159

112033112160
This field is a member of `oneof`_ ``_rate_limit_options``.
112034112161
redirect_options (google.cloud.compute_v1beta.types.SecurityPolicyRuleRedirectOptions):
@@ -112747,8 +112874,10 @@ class SecurityPolicyRuleRateLimitOptions(proto.Message):
112747112874
the key type defaults to IP. - TLS_JA4_FINGERPRINT: JA4
112748112875
TLS/SSL fingerprint if the client connects using HTTPS,
112749112876
HTTP/2 or HTTP/3. If not available, the key type defaults to
112750-
ALL. Check the EnforceOnKey enum for the list of possible
112751-
values.
112877+
ALL. For "fairshare" action, this value is limited to ALL
112878+
i.e. a single rate limit threshold is enforced for all the
112879+
requests matching the rule. Check the EnforceOnKey enum for
112880+
the list of possible values.
112752112881

112753112882
This field is a member of `oneof`_ ``_enforce_on_key``.
112754112883
enforce_on_key_configs (MutableSequence[google.cloud.compute_v1beta.types.SecurityPolicyRuleRateLimitOptionsEnforceOnKeyConfig]):
@@ -112821,7 +112950,9 @@ class EnforceOnKey(proto.Enum):
112821112950
configuration or an IP address cannot be resolved from it, the key
112822112951
type defaults to IP. - TLS_JA4_FINGERPRINT: JA4 TLS/SSL fingerprint
112823112952
if the client connects using HTTPS, HTTP/2 or HTTP/3. If not
112824-
available, the key type defaults to ALL.
112953+
available, the key type defaults to ALL. For "fairshare" action,
112954+
this value is limited to ALL i.e. a single rate limit threshold is
112955+
enforced for all the requests matching the rule.
112825112956

112826112957
Values:
112827112958
UNDEFINED_ENFORCE_ON_KEY (0):

packages/google-cloud-compute-v1beta/tests/unit/gapic/compute_v1beta/test_instances.py

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26484,6 +26484,16 @@ def test_insert_rest_call_success(request_type):
2648426484
},
2648526485
"resource_policies": ["resource_policies_value1", "resource_policies_value2"],
2648626486
"resource_status": {
26487+
"effective_instance_metadata": {
26488+
"block_project_ssh_keys_metadata_value": True,
26489+
"enable_guest_attributes_metadata_value": True,
26490+
"enable_os_inventory_metadata_value": True,
26491+
"enable_osconfig_metadata_value": True,
26492+
"enable_oslogin_metadata_value": True,
26493+
"serial_port_enable_metadata_value": True,
26494+
"serial_port_logging_enable_metadata_value": True,
26495+
"vm_dns_setting_metadata_value": "vm_dns_setting_metadata_value_value",
26496+
},
2648726497
"physical_host": "physical_host_value",
2648826498
"physical_host_topology": {
2648926499
"block": "block_value",
@@ -33381,6 +33391,16 @@ def test_update_rest_call_success(request_type):
3338133391
},
3338233392
"resource_policies": ["resource_policies_value1", "resource_policies_value2"],
3338333393
"resource_status": {
33394+
"effective_instance_metadata": {
33395+
"block_project_ssh_keys_metadata_value": True,
33396+
"enable_guest_attributes_metadata_value": True,
33397+
"enable_os_inventory_metadata_value": True,
33398+
"enable_osconfig_metadata_value": True,
33399+
"enable_oslogin_metadata_value": True,
33400+
"serial_port_enable_metadata_value": True,
33401+
"serial_port_logging_enable_metadata_value": True,
33402+
"vm_dns_setting_metadata_value": "vm_dns_setting_metadata_value_value",
33403+
},
3338433404
"physical_host": "physical_host_value",
3338533405
"physical_host_topology": {
3338633406
"block": "block_value",

0 commit comments

Comments
 (0)