Server IP : 103.119.228.120 / Your IP : 3.14.134.18 Web Server : Apache System : Linux v8.techscape8.com 3.10.0-1160.119.1.el7.tuxcare.els2.x86_64 #1 SMP Mon Jul 15 12:09:18 UTC 2024 x86_64 User : nobody ( 99) PHP Version : 5.6.40 Disable Function : shell_exec,symlink,system,exec,proc_get_status,proc_nice,proc_terminate,define_syslog_variables,syslog,openlog,closelog,escapeshellcmd,passthru,ocinum cols,ini_alter,leak,listen,chgrp,apache_note,apache_setenv,debugger_on,debugger_off,ftp_exec,dl,dll,myshellexec,proc_open,socket_bind,proc_close,escapeshellarg,parse_ini_filepopen,fpassthru,exec,passthru,escapeshellarg,escapeshellcmd,proc_close,proc_open,ini_alter,popen,show_source,proc_nice,proc_terminate,proc_get_status,proc_close,pfsockopen,leak,apache_child_terminate,posix_kill,posix_mkfifo,posix_setpgid,posix_setsid,posix_setuid,dl,symlink,shell_exec,system,dl,passthru,escapeshellarg,escapeshellcmd,myshellexec,c99_buff_prepare,c99_sess_put,fpassthru,getdisfunc,fx29exec,fx29exec2,is_windows,disp_freespace,fx29sh_getupdate,fx29_buff_prepare,fx29_sess_put,fx29shexit,fx29fsearch,fx29ftpbrutecheck,fx29sh_tools,fx29sh_about,milw0rm,imagez,sh_name,myshellexec,checkproxyhost,dosyayicek,c99_buff_prepare,c99_sess_put,c99getsource,c99sh_getupdate,c99fsearch,c99shexit,view_perms,posix_getpwuid,posix_getgrgid,posix_kill,parse_perms,parsesort,view_perms_color,set_encoder_input,ls_setcheckboxall,ls_reverse_all,rsg_read,rsg_glob,selfURL,dispsecinfo,unix2DosTime,addFile,system,get_users,view_size,DirFiles,DirFilesWide,DirPrintHTMLHeaders,GetFilesTotal,GetTitles,GetTimeTotal,GetMatchesCount,GetFileMatchesCount,GetResultFiles,fs_copy_dir,fs_copy_obj,fs_move_dir,fs_move_obj,fs_rmdir,SearchText,getmicrotime MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /usr/lib/mysqlsh/lib/python3.9/site-packages/oci/cloud_migrations/models/ |
Upload File : |
# coding: utf-8 # Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20220919 from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs class MigrationAsset(object): """ Description of the migration asset. """ #: A constant which can be used with the lifecycle_state property of a MigrationAsset. #: This constant has a value of "CREATING" LIFECYCLE_STATE_CREATING = "CREATING" #: A constant which can be used with the lifecycle_state property of a MigrationAsset. #: This constant has a value of "UPDATING" LIFECYCLE_STATE_UPDATING = "UPDATING" #: A constant which can be used with the lifecycle_state property of a MigrationAsset. #: This constant has a value of "NEEDS_ATTENTION" LIFECYCLE_STATE_NEEDS_ATTENTION = "NEEDS_ATTENTION" #: A constant which can be used with the lifecycle_state property of a MigrationAsset. #: This constant has a value of "ACTIVE" LIFECYCLE_STATE_ACTIVE = "ACTIVE" #: A constant which can be used with the lifecycle_state property of a MigrationAsset. #: This constant has a value of "DELETING" LIFECYCLE_STATE_DELETING = "DELETING" #: A constant which can be used with the lifecycle_state property of a MigrationAsset. #: This constant has a value of "DELETED" LIFECYCLE_STATE_DELETED = "DELETED" #: A constant which can be used with the lifecycle_state property of a MigrationAsset. #: This constant has a value of "FAILED" LIFECYCLE_STATE_FAILED = "FAILED" #: A constant which can be used with the notifications property of a MigrationAsset. #: This constant has a value of "OUT_OF_DATE" NOTIFICATIONS_OUT_OF_DATE = "OUT_OF_DATE" #: A constant which can be used with the notifications property of a MigrationAsset. #: This constant has a value of "SOURCE_REMOVED" NOTIFICATIONS_SOURCE_REMOVED = "SOURCE_REMOVED" def __init__(self, **kwargs): """ Initializes a new MigrationAsset object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class): :param id: The value to assign to the id property of this MigrationAsset. :type id: str :param type: The value to assign to the type property of this MigrationAsset. :type type: str :param display_name: The value to assign to the display_name property of this MigrationAsset. :type display_name: str :param compartment_id: The value to assign to the compartment_id property of this MigrationAsset. :type compartment_id: str :param lifecycle_state: The value to assign to the lifecycle_state property of this MigrationAsset. Allowed values for this property are: "CREATING", "UPDATING", "NEEDS_ATTENTION", "ACTIVE", "DELETING", "DELETED", "FAILED", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type lifecycle_state: str :param lifecycle_details: The value to assign to the lifecycle_details property of this MigrationAsset. :type lifecycle_details: str :param time_created: The value to assign to the time_created property of this MigrationAsset. :type time_created: datetime :param time_updated: The value to assign to the time_updated property of this MigrationAsset. :type time_updated: datetime :param migration_id: The value to assign to the migration_id property of this MigrationAsset. :type migration_id: str :param snapshots: The value to assign to the snapshots property of this MigrationAsset. :type snapshots: dict(str, HydratedVolume) :param parent_snapshot: The value to assign to the parent_snapshot property of this MigrationAsset. :type parent_snapshot: str :param source_asset_data: The value to assign to the source_asset_data property of this MigrationAsset. :type source_asset_data: dict(str, object) :param notifications: The value to assign to the notifications property of this MigrationAsset. Allowed values for items in this list are: "OUT_OF_DATE", "SOURCE_REMOVED", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type notifications: list[str] :param source_asset_id: The value to assign to the source_asset_id property of this MigrationAsset. :type source_asset_id: str :param replication_schedule_id: The value to assign to the replication_schedule_id property of this MigrationAsset. :type replication_schedule_id: str :param availability_domain: The value to assign to the availability_domain property of this MigrationAsset. :type availability_domain: str :param replication_compartment_id: The value to assign to the replication_compartment_id property of this MigrationAsset. :type replication_compartment_id: str :param tenancy_id: The value to assign to the tenancy_id property of this MigrationAsset. :type tenancy_id: str :param snap_shot_bucket_name: The value to assign to the snap_shot_bucket_name property of this MigrationAsset. :type snap_shot_bucket_name: str :param depended_on_by: The value to assign to the depended_on_by property of this MigrationAsset. :type depended_on_by: list[str] :param depends_on: The value to assign to the depends_on property of this MigrationAsset. :type depends_on: list[str] """ self.swagger_types = { 'id': 'str', 'type': 'str', 'display_name': 'str', 'compartment_id': 'str', 'lifecycle_state': 'str', 'lifecycle_details': 'str', 'time_created': 'datetime', 'time_updated': 'datetime', 'migration_id': 'str', 'snapshots': 'dict(str, HydratedVolume)', 'parent_snapshot': 'str', 'source_asset_data': 'dict(str, object)', 'notifications': 'list[str]', 'source_asset_id': 'str', 'replication_schedule_id': 'str', 'availability_domain': 'str', 'replication_compartment_id': 'str', 'tenancy_id': 'str', 'snap_shot_bucket_name': 'str', 'depended_on_by': 'list[str]', 'depends_on': 'list[str]' } self.attribute_map = { 'id': 'id', 'type': 'type', 'display_name': 'displayName', 'compartment_id': 'compartmentId', 'lifecycle_state': 'lifecycleState', 'lifecycle_details': 'lifecycleDetails', 'time_created': 'timeCreated', 'time_updated': 'timeUpdated', 'migration_id': 'migrationId', 'snapshots': 'snapshots', 'parent_snapshot': 'parentSnapshot', 'source_asset_data': 'sourceAssetData', 'notifications': 'notifications', 'source_asset_id': 'sourceAssetId', 'replication_schedule_id': 'replicationScheduleId', 'availability_domain': 'availabilityDomain', 'replication_compartment_id': 'replicationCompartmentId', 'tenancy_id': 'tenancyId', 'snap_shot_bucket_name': 'snapShotBucketName', 'depended_on_by': 'dependedOnBy', 'depends_on': 'dependsOn' } self._id = None self._type = None self._display_name = None self._compartment_id = None self._lifecycle_state = None self._lifecycle_details = None self._time_created = None self._time_updated = None self._migration_id = None self._snapshots = None self._parent_snapshot = None self._source_asset_data = None self._notifications = None self._source_asset_id = None self._replication_schedule_id = None self._availability_domain = None self._replication_compartment_id = None self._tenancy_id = None self._snap_shot_bucket_name = None self._depended_on_by = None self._depends_on = None @property def id(self): """ **[Required]** Gets the id of this MigrationAsset. Asset ID generated by mirgration service. It is used in the mirgration service pipeline. :return: The id of this MigrationAsset. :rtype: str """ return self._id @id.setter def id(self, id): """ Sets the id of this MigrationAsset. Asset ID generated by mirgration service. It is used in the mirgration service pipeline. :param id: The id of this MigrationAsset. :type: str """ self._id = id @property def type(self): """ **[Required]** Gets the type of this MigrationAsset. The type of asset referenced for inventory. :return: The type of this MigrationAsset. :rtype: str """ return self._type @type.setter def type(self, type): """ Sets the type of this MigrationAsset. The type of asset referenced for inventory. :param type: The type of this MigrationAsset. :type: str """ self._type = type @property def display_name(self): """ Gets the display_name of this MigrationAsset. A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. :return: The display_name of this MigrationAsset. :rtype: str """ return self._display_name @display_name.setter def display_name(self, display_name): """ Sets the display_name of this MigrationAsset. A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. :param display_name: The display_name of this MigrationAsset. :type: str """ self._display_name = display_name @property def compartment_id(self): """ Gets the compartment_id of this MigrationAsset. Compartment Identifier :return: The compartment_id of this MigrationAsset. :rtype: str """ return self._compartment_id @compartment_id.setter def compartment_id(self, compartment_id): """ Sets the compartment_id of this MigrationAsset. Compartment Identifier :param compartment_id: The compartment_id of this MigrationAsset. :type: str """ self._compartment_id = compartment_id @property def lifecycle_state(self): """ **[Required]** Gets the lifecycle_state of this MigrationAsset. The current state of the migration asset. Allowed values for this property are: "CREATING", "UPDATING", "NEEDS_ATTENTION", "ACTIVE", "DELETING", "DELETED", "FAILED", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :return: The lifecycle_state of this MigrationAsset. :rtype: str """ return self._lifecycle_state @lifecycle_state.setter def lifecycle_state(self, lifecycle_state): """ Sets the lifecycle_state of this MigrationAsset. The current state of the migration asset. :param lifecycle_state: The lifecycle_state of this MigrationAsset. :type: str """ allowed_values = ["CREATING", "UPDATING", "NEEDS_ATTENTION", "ACTIVE", "DELETING", "DELETED", "FAILED"] if not value_allowed_none_or_none_sentinel(lifecycle_state, allowed_values): lifecycle_state = 'UNKNOWN_ENUM_VALUE' self._lifecycle_state = lifecycle_state @property def lifecycle_details(self): """ Gets the lifecycle_details of this MigrationAsset. A message describing the current state in more detail. For example, it can be used to provide actionable information for a resource in Failed state. :return: The lifecycle_details of this MigrationAsset. :rtype: str """ return self._lifecycle_details @lifecycle_details.setter def lifecycle_details(self, lifecycle_details): """ Sets the lifecycle_details of this MigrationAsset. A message describing the current state in more detail. For example, it can be used to provide actionable information for a resource in Failed state. :param lifecycle_details: The lifecycle_details of this MigrationAsset. :type: str """ self._lifecycle_details = lifecycle_details @property def time_created(self): """ **[Required]** Gets the time_created of this MigrationAsset. The time when the migration asset was created. An RFC3339 formatted datetime string. :return: The time_created of this MigrationAsset. :rtype: datetime """ return self._time_created @time_created.setter def time_created(self, time_created): """ Sets the time_created of this MigrationAsset. The time when the migration asset was created. An RFC3339 formatted datetime string. :param time_created: The time_created of this MigrationAsset. :type: datetime """ self._time_created = time_created @property def time_updated(self): """ Gets the time_updated of this MigrationAsset. The time when the migration asset was updated. An RFC3339 formatted datetime string. :return: The time_updated of this MigrationAsset. :rtype: datetime """ return self._time_updated @time_updated.setter def time_updated(self, time_updated): """ Sets the time_updated of this MigrationAsset. The time when the migration asset was updated. An RFC3339 formatted datetime string. :param time_updated: The time_updated of this MigrationAsset. :type: datetime """ self._time_updated = time_updated @property def migration_id(self): """ **[Required]** Gets the migration_id of this MigrationAsset. OCID of the associated migration. :return: The migration_id of this MigrationAsset. :rtype: str """ return self._migration_id @migration_id.setter def migration_id(self, migration_id): """ Sets the migration_id of this MigrationAsset. OCID of the associated migration. :param migration_id: The migration_id of this MigrationAsset. :type: str """ self._migration_id = migration_id @property def snapshots(self): """ Gets the snapshots of this MigrationAsset. Key-value pair representing disks ID mapped to the OCIDs of replicated or hydration server volume snapshots. Example: `{\"bar-key\": \"value\"}` :return: The snapshots of this MigrationAsset. :rtype: dict(str, HydratedVolume) """ return self._snapshots @snapshots.setter def snapshots(self, snapshots): """ Sets the snapshots of this MigrationAsset. Key-value pair representing disks ID mapped to the OCIDs of replicated or hydration server volume snapshots. Example: `{\"bar-key\": \"value\"}` :param snapshots: The snapshots of this MigrationAsset. :type: dict(str, HydratedVolume) """ self._snapshots = snapshots @property def parent_snapshot(self): """ Gets the parent_snapshot of this MigrationAsset. The parent snapshot of the migration asset to be used by the replication task. :return: The parent_snapshot of this MigrationAsset. :rtype: str """ return self._parent_snapshot @parent_snapshot.setter def parent_snapshot(self, parent_snapshot): """ Sets the parent_snapshot of this MigrationAsset. The parent snapshot of the migration asset to be used by the replication task. :param parent_snapshot: The parent_snapshot of this MigrationAsset. :type: str """ self._parent_snapshot = parent_snapshot @property def source_asset_data(self): """ Gets the source_asset_data of this MigrationAsset. Key-value pair representing asset metadata keys and values scoped to a namespace. Example: `{\"bar-key\": \"value\"}` :return: The source_asset_data of this MigrationAsset. :rtype: dict(str, object) """ return self._source_asset_data @source_asset_data.setter def source_asset_data(self, source_asset_data): """ Sets the source_asset_data of this MigrationAsset. Key-value pair representing asset metadata keys and values scoped to a namespace. Example: `{\"bar-key\": \"value\"}` :param source_asset_data: The source_asset_data of this MigrationAsset. :type: dict(str, object) """ self._source_asset_data = source_asset_data @property def notifications(self): """ Gets the notifications of this MigrationAsset. List of notifications Allowed values for items in this list are: "OUT_OF_DATE", "SOURCE_REMOVED", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :return: The notifications of this MigrationAsset. :rtype: list[str] """ return self._notifications @notifications.setter def notifications(self, notifications): """ Sets the notifications of this MigrationAsset. List of notifications :param notifications: The notifications of this MigrationAsset. :type: list[str] """ allowed_values = ["OUT_OF_DATE", "SOURCE_REMOVED"] if notifications: notifications[:] = ['UNKNOWN_ENUM_VALUE' if not value_allowed_none_or_none_sentinel(x, allowed_values) else x for x in notifications] self._notifications = notifications @property def source_asset_id(self): """ Gets the source_asset_id of this MigrationAsset. OCID that is referenced to an asset for an inventory. :return: The source_asset_id of this MigrationAsset. :rtype: str """ return self._source_asset_id @source_asset_id.setter def source_asset_id(self, source_asset_id): """ Sets the source_asset_id of this MigrationAsset. OCID that is referenced to an asset for an inventory. :param source_asset_id: The source_asset_id of this MigrationAsset. :type: str """ self._source_asset_id = source_asset_id @property def replication_schedule_id(self): """ Gets the replication_schedule_id of this MigrationAsset. Replication schedule identifier :return: The replication_schedule_id of this MigrationAsset. :rtype: str """ return self._replication_schedule_id @replication_schedule_id.setter def replication_schedule_id(self, replication_schedule_id): """ Sets the replication_schedule_id of this MigrationAsset. Replication schedule identifier :param replication_schedule_id: The replication_schedule_id of this MigrationAsset. :type: str """ self._replication_schedule_id = replication_schedule_id @property def availability_domain(self): """ **[Required]** Gets the availability_domain of this MigrationAsset. Availability domain :return: The availability_domain of this MigrationAsset. :rtype: str """ return self._availability_domain @availability_domain.setter def availability_domain(self, availability_domain): """ Sets the availability_domain of this MigrationAsset. Availability domain :param availability_domain: The availability_domain of this MigrationAsset. :type: str """ self._availability_domain = availability_domain @property def replication_compartment_id(self): """ **[Required]** Gets the replication_compartment_id of this MigrationAsset. Replication compartment identifier :return: The replication_compartment_id of this MigrationAsset. :rtype: str """ return self._replication_compartment_id @replication_compartment_id.setter def replication_compartment_id(self, replication_compartment_id): """ Sets the replication_compartment_id of this MigrationAsset. Replication compartment identifier :param replication_compartment_id: The replication_compartment_id of this MigrationAsset. :type: str """ self._replication_compartment_id = replication_compartment_id @property def tenancy_id(self): """ Gets the tenancy_id of this MigrationAsset. Tenancy identifier :return: The tenancy_id of this MigrationAsset. :rtype: str """ return self._tenancy_id @tenancy_id.setter def tenancy_id(self, tenancy_id): """ Sets the tenancy_id of this MigrationAsset. Tenancy identifier :param tenancy_id: The tenancy_id of this MigrationAsset. :type: str """ self._tenancy_id = tenancy_id @property def snap_shot_bucket_name(self): """ **[Required]** Gets the snap_shot_bucket_name of this MigrationAsset. Name of snapshot bucket :return: The snap_shot_bucket_name of this MigrationAsset. :rtype: str """ return self._snap_shot_bucket_name @snap_shot_bucket_name.setter def snap_shot_bucket_name(self, snap_shot_bucket_name): """ Sets the snap_shot_bucket_name of this MigrationAsset. Name of snapshot bucket :param snap_shot_bucket_name: The snap_shot_bucket_name of this MigrationAsset. :type: str """ self._snap_shot_bucket_name = snap_shot_bucket_name @property def depended_on_by(self): """ Gets the depended_on_by of this MigrationAsset. List of migration assets that depend on the asset. :return: The depended_on_by of this MigrationAsset. :rtype: list[str] """ return self._depended_on_by @depended_on_by.setter def depended_on_by(self, depended_on_by): """ Sets the depended_on_by of this MigrationAsset. List of migration assets that depend on the asset. :param depended_on_by: The depended_on_by of this MigrationAsset. :type: list[str] """ self._depended_on_by = depended_on_by @property def depends_on(self): """ Gets the depends_on of this MigrationAsset. List of migration assets that depends on the asset. :return: The depends_on of this MigrationAsset. :rtype: list[str] """ return self._depends_on @depends_on.setter def depends_on(self, depends_on): """ Sets the depends_on of this MigrationAsset. List of migration assets that depends on the asset. :param depends_on: The depends_on of this MigrationAsset. :type: list[str] """ self._depends_on = depends_on def __repr__(self): return formatted_flat_dict(self) def __eq__(self, other): if other is None: return False return self.__dict__ == other.__dict__ def __ne__(self, other): return not self == other