UpdateAssetDetails¶
- class oci.cloud_migrations.models.UpdateAssetDetails(**kwargs)¶
Bases:
objectThe information of asset to be updated.
Attributes:
A constant which can be used with the asset_type property of a UpdateAssetDetails.
A constant which can be used with the asset_type property of a UpdateAssetDetails.
A constant which can be used with the asset_type property of a UpdateAssetDetails.
A constant which can be used with the asset_type property of a UpdateAssetDetails.
Gets the asset_source_ids of this UpdateAssetDetails.
[Required] Gets the asset_type of this UpdateAssetDetails.
Gets the defined_tags of this UpdateAssetDetails.
Gets the display_name of this UpdateAssetDetails.
Gets the freeform_tags of this UpdateAssetDetails.
Methods:
__init__(**kwargs)Initializes a new UpdateAssetDetails 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.
- ASSET_TYPE_AWS_EBS = 'AWS_EBS'¶
A constant which can be used with the asset_type property of a UpdateAssetDetails. This constant has a value of “AWS_EBS”
- ASSET_TYPE_AWS_EC2 = 'AWS_EC2'¶
A constant which can be used with the asset_type property of a UpdateAssetDetails. This constant has a value of “AWS_EC2”
- ASSET_TYPE_VM = 'VM'¶
A constant which can be used with the asset_type property of a UpdateAssetDetails. This constant has a value of “VM”
- ASSET_TYPE_VMWARE_VM = 'VMWARE_VM'¶
A constant which can be used with the asset_type property of a UpdateAssetDetails. This constant has a value of “VMWARE_VM”
- __init__(**kwargs)¶
Initializes a new UpdateAssetDetails 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
display_name (str) – The value to assign to the display_name property of this UpdateAssetDetails.
asset_type (str) – The value to assign to the asset_type property of this UpdateAssetDetails. Allowed values for this property are: “VMWARE_VM”, “VM”, “AWS_EC2”, “AWS_EBS”
asset_source_ids (list[str]) – The value to assign to the asset_source_ids property of this UpdateAssetDetails.
freeform_tags (dict(str, str)) – The value to assign to the freeform_tags property of this UpdateAssetDetails.
defined_tags (dict(str, dict(str, object))) – The value to assign to the defined_tags property of this UpdateAssetDetails.
- property asset_source_ids¶
Gets the asset_source_ids of this UpdateAssetDetails. List of asset source OCID.
- Returns
The asset_source_ids of this UpdateAssetDetails.
- Return type
list[str]
- property asset_type¶
[Required] Gets the asset_type of this UpdateAssetDetails. Asset type
Allowed values for this property are: “VMWARE_VM”, “VM”, “AWS_EC2”, “AWS_EBS”
- Returns
The asset_type of this UpdateAssetDetails.
- Return type
str
- property defined_tags¶
Gets the defined_tags of this UpdateAssetDetails. Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {“foo-namespace”: {“bar-key”: “value”}}
- Returns
The defined_tags of this UpdateAssetDetails.
- Return type
dict(str, dict(str, object))
- property display_name¶
Gets the display_name of this UpdateAssetDetails. Asset display name.
- Returns
The display_name of this UpdateAssetDetails.
- Return type
str
- property freeform_tags¶
Gets the freeform_tags of this UpdateAssetDetails. Simple key-value pair that is applied without any predefined name, type or scope. It exists only for cross-compatibility. Example: {“bar-key”: “value”}
- Returns
The freeform_tags of this UpdateAssetDetails.
- Return type
dict(str, 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.