Class DiskSettingsAccessLocation (0.11.0)

DiskSettingsAccessLocation(mapping=None, *, ignore_unknown_fields=False, **kwargs)

AccessLocation is only used for regional snapshot. It contains which regions are allowed to create a regional snapshot from disks located in the given region/zone. It includes key-value pairs designed to store the following structure. The keys should match their corresponding values, which must be provided: access_location: { locations { us-central1 { region: "us-central1" }, asia-west2 { region: "asia-west2" } } }

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

Attributes

Name Description
locations MutableMapping[str, google.cloud.compute_v1beta.types.DiskSettingsAccessLocationAccessLocationPreference]
List of regions that can create a regional snapshot from the current region
policy str
Policy of which location is allowed to access snapshot. Check the Policy enum for the list of possible values. This field is a member of oneof_ _policy.

Classes

LocationsEntry

LocationsEntry(mapping=None, *, ignore_unknown_fields=False, **kwargs)

The abstract base class for a message.

Parameters
Name Description
kwargs dict

Keys and values corresponding to the fields of the message.

mapping Union[dict, .Message]

A dictionary or message to be used to determine the values for this message.

ignore_unknown_fields Optional(bool)

If True, do not raise errors for unknown fields. Only applied if mapping is a mapping type or there are keyword parameters.

Policy

Policy(value)

Policy of which location is allowed to access snapshot.