ImportInventoryViaAssetsDetails

class oci.cloud_bridge.models.ImportInventoryViaAssetsDetails(**kwargs)

Bases: oci.cloud_bridge.models.import_inventory_details.ImportInventoryDetails

Details for importing assets from a file.

Attributes

ASSET_TYPE_AWS_EBS A constant which can be used with the asset_type property of a ImportInventoryViaAssetsDetails.
ASSET_TYPE_AWS_EC2 A constant which can be used with the asset_type property of a ImportInventoryViaAssetsDetails.
ASSET_TYPE_VM A constant which can be used with the asset_type property of a ImportInventoryViaAssetsDetails.
ASSET_TYPE_VMWARE_VM A constant which can be used with the asset_type property of a ImportInventoryViaAssetsDetails.
RESOURCE_TYPE_ASSET str(object=’’) -> str
asset_type [Required] Gets the asset_type of this ImportInventoryViaAssetsDetails.
compartment_id [Required] Gets the compartment_id of this ImportInventoryDetails.
data [Required] Gets the data of this ImportInventoryViaAssetsDetails.
defined_tags Gets the defined_tags of this ImportInventoryDetails.
freeform_tags Gets the freeform_tags of this ImportInventoryDetails.
resource_type Gets the resource_type of this ImportInventoryDetails.

Methods

__init__(**kwargs) Initializes a new ImportInventoryViaAssetsDetails 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 ImportInventoryViaAssetsDetails. 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 ImportInventoryViaAssetsDetails. 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 ImportInventoryViaAssetsDetails. 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 ImportInventoryViaAssetsDetails. This constant has a value of “VMWARE_VM”

RESOURCE_TYPE_ASSET = 'ASSET'
__init__(**kwargs)

Initializes a new ImportInventoryViaAssetsDetails object with values from keyword arguments. The default value of the resource_type attribute of this class is ASSET and it should not be changed. The following keyword arguments are supported (corresponding to the getters/setters of this class):

Parameters:
  • compartment_id (str) – The value to assign to the compartment_id property of this ImportInventoryViaAssetsDetails.
  • resource_type (str) – The value to assign to the resource_type property of this ImportInventoryViaAssetsDetails. Allowed values for this property are: “ASSET”
  • freeform_tags (dict(str, str)) – The value to assign to the freeform_tags property of this ImportInventoryViaAssetsDetails.
  • defined_tags (dict(str, dict(str, object))) – The value to assign to the defined_tags property of this ImportInventoryViaAssetsDetails.
  • data (str) – The value to assign to the data property of this ImportInventoryViaAssetsDetails.
  • asset_type (str) – The value to assign to the asset_type property of this ImportInventoryViaAssetsDetails. Allowed values for this property are: “VMWARE_VM”, “VM”, “AWS_EC2”, “AWS_EBS”
asset_type

[Required] Gets the asset_type of this ImportInventoryViaAssetsDetails. The type of asset.

Allowed values for this property are: “VMWARE_VM”, “VM”, “AWS_EC2”, “AWS_EBS”

Returns:The asset_type of this ImportInventoryViaAssetsDetails.
Return type:str
compartment_id

[Required] Gets the compartment_id of this ImportInventoryDetails. The OCID of the compartmentId that resources import.

Returns:The compartment_id of this ImportInventoryDetails.
Return type:str
data

[Required] Gets the data of this ImportInventoryViaAssetsDetails. The file body to be sent in the request.

Returns:The data of this ImportInventoryViaAssetsDetails.
Return type:str
defined_tags

Gets the defined_tags of this ImportInventoryDetails. The defined tags associated with this resource, if any. Each key is predefined and scoped to namespaces. For more information, see Resource Tags. Example: {“Operations”: {“CostCenter”: “42”}}

Returns:The defined_tags of this ImportInventoryDetails.
Return type:dict(str, dict(str, object))
freeform_tags

Gets the freeform_tags of this ImportInventoryDetails. The freeform tags associated with this resource, if any. Each tag is a simple key-value pair with no predefined name, type, or namespace/scope. For more information, see Resource Tags. Example: {“Department”: “Finance”}

Returns:The freeform_tags of this ImportInventoryDetails.
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.

resource_type

Gets the resource_type of this ImportInventoryDetails. Import inventory resource type.

Allowed values for this property are: “ASSET”

Returns:The resource_type of this ImportInventoryDetails.
Return type:str