Skip to content
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
Original file line number Diff line number Diff line change
Expand Up @@ -1492,6 +1492,7 @@
ResourcePolicyWeeklyCycleDayOfWeek,
ResourcePolicyWorkloadPolicy,
ResourceStatus,
ResourceStatusEffectiveInstanceMetadata,
ResourceStatusPhysicalHostTopology,
ResourceStatusScheduling,
ResumeInstanceRequest,
Expand Down Expand Up @@ -3253,6 +3254,7 @@
"ResourcePolicyWeeklyCycleDayOfWeek",
"ResourcePolicyWorkloadPolicy",
"ResourceStatus",
"ResourceStatusEffectiveInstanceMetadata",
"ResourceStatusPhysicalHostTopology",
"ResourceStatusScheduling",
"ResumeInstanceRequest",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1366,6 +1366,7 @@
ResourcePolicyWeeklyCycleDayOfWeek,
ResourcePolicyWorkloadPolicy,
ResourceStatus,
ResourceStatusEffectiveInstanceMetadata,
ResourceStatusPhysicalHostTopology,
ResourceStatusScheduling,
ResumeInstanceRequest,
Expand Down Expand Up @@ -3103,6 +3104,7 @@
"ResourcePolicyWeeklyCycleDayOfWeek",
"ResourcePolicyWorkloadPolicy",
"ResourceStatus",
"ResourceStatusEffectiveInstanceMetadata",
"ResourceStatusPhysicalHostTopology",
"ResourceStatusScheduling",
"ResumeInstanceRequest",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1252,6 +1252,7 @@
ResourcePolicyWeeklyCycleDayOfWeek,
ResourcePolicyWorkloadPolicy,
ResourceStatus,
ResourceStatusEffectiveInstanceMetadata,
ResourceStatusPhysicalHostTopology,
ResourceStatusScheduling,
ResumeInstanceRequest,
Expand Down Expand Up @@ -2910,6 +2911,7 @@
"ResourcePolicyWeeklyCycleDayOfWeek",
"ResourcePolicyWorkloadPolicy",
"ResourceStatus",
"ResourceStatusEffectiveInstanceMetadata",
"ResourceStatusPhysicalHostTopology",
"ResourceStatusScheduling",
"ResumeInstanceRequest",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1261,6 +1261,7 @@
"ResourcePolicyWeeklyCycleDayOfWeek",
"ResourcePolicyWorkloadPolicy",
"ResourceStatus",
"ResourceStatusEffectiveInstanceMetadata",
"ResourceStatusPhysicalHostTopology",
"ResourceStatusScheduling",
"ResumeInstanceRequest",
Expand Down Expand Up @@ -16040,6 +16041,13 @@ class LocalityLbPolicy(proto.Enum):
This is a simple policy in which each healthy
backend is selected in round robin order. This
is the default.
WEIGHTED_GCP_RENDEZVOUS (82501640):
Per-instance weighted Load Balancing via
health check reported weights. In internal
passthrough network load balancing, it is
weighted rendezvous hashing. This option is only
supported in internal passthrough network load
balancing.
WEIGHTED_MAGLEV (254930962):
Per-instance weighted Load Balancing via health check
reported weights. If set, the Backend Service must configure
Expand Down Expand Up @@ -16070,6 +16078,7 @@ class LocalityLbPolicy(proto.Enum):
RANDOM = 262527171
RING_HASH = 432795069
ROUND_ROBIN = 153895801
WEIGHTED_GCP_RENDEZVOUS = 82501640
WEIGHTED_MAGLEV = 254930962
WEIGHTED_ROUND_ROBIN = 5584977

Expand Down Expand Up @@ -17778,6 +17787,13 @@ class Name(proto.Enum):
This is a simple policy in which each healthy
backend is selected in round robin order. This
is the default.
WEIGHTED_GCP_RENDEZVOUS (82501640):
Per-instance weighted Load Balancing via
health check reported weights. In internal
passthrough network load balancing, it is
weighted rendezvous hashing. This option is only
supported in internal passthrough network load
balancing.
WEIGHTED_MAGLEV (254930962):
Per-instance weighted Load Balancing via health check
reported weights. If set, the Backend Service must configure
Expand Down Expand Up @@ -17808,6 +17824,7 @@ class Name(proto.Enum):
RANDOM = 262527171
RING_HASH = 432795069
ROUND_ROBIN = 153895801
WEIGHTED_GCP_RENDEZVOUS = 82501640
WEIGHTED_MAGLEV = 254930962
WEIGHTED_ROUND_ROBIN = 5584977

Expand Down Expand Up @@ -95298,6 +95315,14 @@ class ResourceStatus(proto.Message):
.. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields

Attributes:
effective_instance_metadata (google.cloud.compute_v1.types.ResourceStatusEffectiveInstanceMetadata):
[Output Only] Effective metadata is a field that
consolidates project, zonal instance settings, and
instance-level predefined metadata keys to provide the
overridden value for those metadata keys at the instance
level.

This field is a member of `oneof`_ ``_effective_instance_metadata``.
physical_host (str):
[Output Only] The precise location of your instance within
the zone's data center, including the block, sub-block, and
Expand All @@ -95320,6 +95345,14 @@ class ResourceStatus(proto.Message):
This field is a member of `oneof`_ ``_upcoming_maintenance``.
"""

effective_instance_metadata: "ResourceStatusEffectiveInstanceMetadata" = (
proto.Field(
proto.MESSAGE,
number=55052033,
optional=True,
message="ResourceStatusEffectiveInstanceMetadata",
)
)
physical_host: str = proto.Field(
proto.STRING,
number=464370704,
Expand All @@ -95345,6 +95378,95 @@ class ResourceStatus(proto.Message):
)


class ResourceStatusEffectiveInstanceMetadata(proto.Message):
r"""Effective values of predefined metadata keys for an instance.

.. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields

Attributes:
block_project_ssh_keys_metadata_value (bool):
Effective block-project-ssh-keys value at
Instance level.

This field is a member of `oneof`_ ``_block_project_ssh_keys_metadata_value``.
enable_guest_attributes_metadata_value (bool):
Effective enable-guest-attributes value at
Instance level.

This field is a member of `oneof`_ ``_enable_guest_attributes_metadata_value``.
enable_os_inventory_metadata_value (bool):
Effective enable-os-inventory value at
Instance level.

This field is a member of `oneof`_ ``_enable_os_inventory_metadata_value``.
enable_osconfig_metadata_value (bool):
Effective enable-osconfig value at Instance
level.

This field is a member of `oneof`_ ``_enable_osconfig_metadata_value``.
enable_oslogin_metadata_value (bool):
Effective enable-oslogin value at Instance
level.

This field is a member of `oneof`_ ``_enable_oslogin_metadata_value``.
serial_port_enable_metadata_value (bool):
Effective serial-port-enable value at
Instance level.

This field is a member of `oneof`_ ``_serial_port_enable_metadata_value``.
serial_port_logging_enable_metadata_value (bool):
Effective serial-port-logging-enable value at
Instance level.

This field is a member of `oneof`_ ``_serial_port_logging_enable_metadata_value``.
vm_dns_setting_metadata_value (str):
Effective VM DNS setting at Instance level.

This field is a member of `oneof`_ ``_vm_dns_setting_metadata_value``.
"""

block_project_ssh_keys_metadata_value: bool = proto.Field(
proto.BOOL,
number=338623101,
optional=True,
)
enable_guest_attributes_metadata_value: bool = proto.Field(
proto.BOOL,
number=420155878,
optional=True,
)
enable_os_inventory_metadata_value: bool = proto.Field(
proto.BOOL,
number=371752675,
optional=True,
)
enable_osconfig_metadata_value: bool = proto.Field(
proto.BOOL,
number=502966494,
optional=True,
)
enable_oslogin_metadata_value: bool = proto.Field(
proto.BOOL,
number=216603159,
optional=True,
)
serial_port_enable_metadata_value: bool = proto.Field(
proto.BOOL,
number=430536330,
optional=True,
)
serial_port_logging_enable_metadata_value: bool = proto.Field(
proto.BOOL,
number=311813290,
optional=True,
)
vm_dns_setting_metadata_value: str = proto.Field(
proto.STRING,
number=411127950,
optional=True,
)


class ResourceStatusPhysicalHostTopology(proto.Message):
r"""Represents the physical host topology of the host on which
the VM is running.
Expand Down Expand Up @@ -100117,18 +100239,18 @@ class SecurityPolicy(proto.Message):
requests targeting backend services (including Cloud
CDN-enabled) as well as backend buckets (Cloud Storage).
They filter requests before the request is served from
Google's cache. - CLOUD_ARMOR_INTERNAL_SERVICE: Cloud Armor
internal service policies can be configured to filter HTTP
requests targeting services managed by Traffic Director in a
service mesh. They filter requests before the request is
served from the application. - CLOUD_ARMOR_NETWORK: Cloud
Armor network policies can be configured to filter packets
targeting network load balancing resources such as backend
services, target pools, target instances, and instances with
external IPs. They filter requests before the request is
served from the application. This field can be set only at
resource creation time. Check the Type enum for the list of
possible values.
Google's cache. - CLOUD_ARMOR_INTERNAL_SERVICE (preview
only): Cloud Armor internal service policies can be
configured to filter HTTP requests targeting services
managed by Traffic Director in a service mesh. They filter
requests before the request is served from the application.
- CLOUD_ARMOR_NETWORK: Cloud Armor network policies can be
configured to filter packets targeting network load
balancing resources such as backend services, target pools,
target instances, and instances with external IPs. They
filter requests before the request is served from the
application. This field can be set only at resource creation
time. Check the Type enum for the list of possible values.

This field is a member of `oneof`_ ``_type``.
user_defined_fields (MutableSequence[google.cloud.compute_v1.types.SecurityPolicyUserDefinedField]):
Expand All @@ -100151,12 +100273,12 @@ class Type(proto.Enum):
configured to filter incoming HTTP requests targeting backend
services (including Cloud CDN-enabled) as well as backend buckets
(Cloud Storage). They filter requests before the request is served
from Google's cache. - CLOUD_ARMOR_INTERNAL_SERVICE: Cloud Armor
internal service policies can be configured to filter HTTP requests
targeting services managed by Traffic Director in a service mesh.
They filter requests before the request is served from the
application. - CLOUD_ARMOR_NETWORK: Cloud Armor network policies can
be configured to filter packets targeting network load balancing
from Google's cache. - CLOUD_ARMOR_INTERNAL_SERVICE (preview only):
Cloud Armor internal service policies can be configured to filter
HTTP requests targeting services managed by Traffic Director in a
service mesh. They filter requests before the request is served from
the application. - CLOUD_ARMOR_NETWORK: Cloud Armor network policies
can be configured to filter packets targeting network load balancing
resources such as backend services, target pools, target instances,
and instances with external IPs. They filter requests before the
request is served from the application. This field can be set only
Expand Down Expand Up @@ -100792,7 +100914,11 @@ class SecurityPolicyRule(proto.Message):
CLOUD_ARMOR. - throttle: limit client traffic to the
configured threshold. Configure parameters for this action
in rateLimitOptions. Requires rate_limit_options to be set
for this.
for this. - fairshare (preview only): when traffic reaches
the threshold limit, requests from the clients matching this
rule begin to be rate-limited using the Fair Share
algorithm. This action is only allowed in security policies
of type ``CLOUD_ARMOR_INTERNAL_SERVICE``.

This field is a member of `oneof`_ ``_action``.
description (str):
Expand Down Expand Up @@ -100872,7 +100998,8 @@ class SecurityPolicyRule(proto.Message):
This field is a member of `oneof`_ ``_priority``.
rate_limit_options (google.cloud.compute_v1.types.SecurityPolicyRuleRateLimitOptions):
Must be specified if the action is "rate_based_ban" or
"throttle". Cannot be specified for any other actions.
"throttle" or "fairshare". Cannot be specified for any other
actions.

This field is a member of `oneof`_ ``_rate_limit_options``.
redirect_options (google.cloud.compute_v1.types.SecurityPolicyRuleRedirectOptions):
Expand Down Expand Up @@ -101466,8 +101593,10 @@ class SecurityPolicyRuleRateLimitOptions(proto.Message):
the key type defaults to IP. - TLS_JA4_FINGERPRINT: JA4
TLS/SSL fingerprint if the client connects using HTTPS,
HTTP/2 or HTTP/3. If not available, the key type defaults to
ALL. Check the EnforceOnKey enum for the list of possible
values.
ALL. For "fairshare" action, this value is limited to ALL
i.e. a single rate limit threshold is enforced for all the
requests matching the rule. Check the EnforceOnKey enum for
the list of possible values.

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

Values:
UNDEFINED_ENFORCE_ON_KEY (0):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23016,6 +23016,16 @@ def test_insert_rest_call_success(request_type):
},
"resource_policies": ["resource_policies_value1", "resource_policies_value2"],
"resource_status": {
"effective_instance_metadata": {
"block_project_ssh_keys_metadata_value": True,
"enable_guest_attributes_metadata_value": True,
"enable_os_inventory_metadata_value": True,
"enable_osconfig_metadata_value": True,
"enable_oslogin_metadata_value": True,
"serial_port_enable_metadata_value": True,
"serial_port_logging_enable_metadata_value": True,
"vm_dns_setting_metadata_value": "vm_dns_setting_metadata_value_value",
},
"physical_host": "physical_host_value",
"physical_host_topology": {
"block": "block_value",
Expand Down Expand Up @@ -29294,6 +29304,16 @@ def test_update_rest_call_success(request_type):
},
"resource_policies": ["resource_policies_value1", "resource_policies_value2"],
"resource_status": {
"effective_instance_metadata": {
"block_project_ssh_keys_metadata_value": True,
"enable_guest_attributes_metadata_value": True,
"enable_os_inventory_metadata_value": True,
"enable_osconfig_metadata_value": True,
"enable_oslogin_metadata_value": True,
"serial_port_enable_metadata_value": True,
"serial_port_logging_enable_metadata_value": True,
"vm_dns_setting_metadata_value": "vm_dns_setting_metadata_value_value",
},
"physical_host": "physical_host_value",
"physical_host_topology": {
"block": "block_value",
Expand Down
Loading