class documentation
class ImageSpec(pb_classes.Message): (source)
Constructor: ImageSpec(initial_message, description, image_family, version, ...)
Undocumented
| Class | __ |
Undocumented |
| Class | __ |
Undocumented |
| Class | __ |
Undocumented |
| Class | __ |
Undocumented |
| Class | |
Undocumented |
| Class | |
Undocumented |
| Method | __dir__ |
Undocumented |
| Method | __init__ |
Create a wrapper around a protobuf message instance. |
| Method | cpu |
Undocumented |
| Method | description |
Undocumented |
| Method | image |
Undocumented |
| Method | image |
Undocumented |
| Method | recommended |
Undocumented |
| Method | source |
Undocumented |
| Method | unsupported |
Undocumented |
| Method | version |
Undocumented |
| Constant | __PB2 |
Undocumented |
| Constant | __PY |
Undocumented |
| Class Variable | __mask |
Undocumented |
| Property | cpu |
CPU architecture supported by the image |
| Property | description |
Supported until 01/01/26. The field is empty. |
| Property | image |
Undocumented |
| Property | image |
human readable name for image family |
| Property | recommended |
list of platforms where this image is recommended to use |
| Property | source |
Undocumented |
| Property | source |
ID of the disk to create the image from |
| Property | unsupported |
list of platforms where this image is not supported with explanation |
| Property | version |
part of identifier into the image family |
| Property | _description |
Undocumented |
Inherited from Message:
| Class Method | get |
Return the protobuf descriptor for this message class. |
| Class Method | is |
Return True if the field contains credentials. |
| Class Method | is |
Return True if the field is marked as sensitive. |
| Method | __repr__ |
Return a human-readable representation of the message, sanitizing sensitive fields. |
| Method | check |
Check explicit presence for a field in the protobuf message. |
| Method | get |
Build a reset mask for a full update of this message. |
| Method | get |
Return the tracked reset mask. |
| Method | is |
Return True if a field equals its default value. |
| Method | set |
Replace the tracked reset mask. |
| Method | which |
Return the set field name for a given oneof. |
| Instance Variable | __PB2 |
Protobuf message class associated with this wrapper. |
| Instance Variable | __pb2 |
Underlying protobuf message instance. |
| Method | _clear |
Clear a field and record it in the reset mask. |
| Method | _get |
Return a field value with optional wrapping and presence handling. |
| Method | _set |
Set a field value and update the reset mask. |
| Class Variable | __credentials |
Undocumented |
| Class Variable | __default |
Undocumented |
| Class Variable | __sensitive |
Undocumented |
| Instance Variable | __recorded |
Mask tracking fields cleared or set to default. |
def __init__(self, initial_message:
message_1.Message | None = None, *, description: builtins.str | None | unset.UnsetType = unset.Unset, image_family: builtins.str | None | unset.UnsetType = unset.Unset, version: builtins.str | None | unset.UnsetType = unset.Unset, source_disk_id: builtins.str | None | unset.UnsetType = unset.Unset, cpu_architecture: ImageSpec.CPUArchitecture | image_pb2.ImageSpec.CPUArchitecture | None | unset.UnsetType = unset.Unset, image_family_human_readable: builtins.str | None | unset.UnsetType = unset.Unset, recommended_platforms: abc.Iterable[ builtins.str] | None | unset.UnsetType = unset.Unset, unsupported_platforms: abc.Mapping[ builtins.str, builtins.str] | None | unset.UnsetType = unset.Unset):
(source)
¶
Create a wrapper around a protobuf message instance.
| Raises | |
AttributeError | If the wrapper is missing required class metadata. |
@cpu_architecture.setter
def cpu_architecture(self, value:
def cpu_architecture(self, value:
ImageSpec.CPUArchitecture | image_pb2.ImageSpec.CPUArchitecture | None):
(source)
¶
Undocumented
@image_family_human_readable.setter
def image_family_human_readable(self, value:
def image_family_human_readable(self, value:
builtins.str | None):
(source)
¶
Undocumented
@recommended_platforms.setter
def recommended_platforms(self, value:
def recommended_platforms(self, value:
abc.Iterable[ builtins.str] | None):
(source)
¶
Undocumented
@unsupported_platforms.setter
def unsupported_platforms(self, value:
def unsupported_platforms(self, value:
abc.Mapping[ builtins.str, builtins.str] | None):
(source)
¶
Undocumented
Undocumented
| Value |
|
Undocumented
| Value |
|
@builtins.property
unsupported_platforms:
unsupported_platforms:
abc.MutableMapping[ builtins.str, builtins.str] =
(source)
¶
list of platforms where this image is not supported with explanation