ImageCapabilitySchemaDescriptor¶
- class oci.core.models.ImageCapabilitySchemaDescriptor(**kwargs)¶
Bases:
objectImage Capability Schema Descriptor is a type of capability for an image.
Attributes:
A constant which can be used with the source property of a ImageCapabilitySchemaDescriptor.
A constant which can be used with the source property of a ImageCapabilitySchemaDescriptor.
[Required] Gets the descriptor_type of this ImageCapabilitySchemaDescriptor.
[Required] Gets the source of this ImageCapabilitySchemaDescriptor.
Methods:
__init__(**kwargs)Initializes a new ImageCapabilitySchemaDescriptor object with values from keyword arguments.
get_subtype(object_dictionary)Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype.
- SOURCE_GLOBAL = 'GLOBAL'¶
A constant which can be used with the source property of a ImageCapabilitySchemaDescriptor. This constant has a value of “GLOBAL”
- SOURCE_IMAGE = 'IMAGE'¶
A constant which can be used with the source property of a ImageCapabilitySchemaDescriptor. This constant has a value of “IMAGE”
- __init__(**kwargs)¶
Initializes a new ImageCapabilitySchemaDescriptor object with values from keyword arguments. This class has the following subclasses and if you are using this class as input to a service operations then you should favor using a subclass over the base class:
The following keyword arguments are supported (corresponding to the getters/setters of this class):
- Parameters
descriptor_type (str) – The value to assign to the descriptor_type property of this ImageCapabilitySchemaDescriptor.
source (str) – The value to assign to the source property of this ImageCapabilitySchemaDescriptor. Allowed values for this property are: “GLOBAL”, “IMAGE”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
- property descriptor_type¶
[Required] Gets the descriptor_type of this ImageCapabilitySchemaDescriptor. The image capability schema descriptor type for the capability
- Returns
The descriptor_type of this ImageCapabilitySchemaDescriptor.
- Return type
str
- static get_subtype(object_dictionary)¶
Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype.
- property source¶
[Required] Gets the source of this ImageCapabilitySchemaDescriptor. Allowed values for this property are: “GLOBAL”, “IMAGE”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
- Returns
The source of this ImageCapabilitySchemaDescriptor.
- Return type
str