403Webshell
Server IP : 103.119.228.120  /  Your IP : 3.142.250.86
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/local/ssl/local/ssl/local/ssl/lib/mysqlsh/lib/python3.9/site-packages/oci/core/models/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : /usr/local/ssl/local/ssl/local/ssl/lib/mysqlsh/lib/python3.9/site-packages/oci/core/models/shape.py
# 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: 20160918


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 Shape(object):
    """
    A compute instance shape that can be used in :func:`launch_instance`.
    For more information, see `Overview of the Compute Service`__ and
    `Compute Shapes`__.

    __ https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm
    __ https://docs.cloud.oracle.com/iaas/Content/Compute/References/computeshapes.htm
    """

    #: A constant which can be used with the baseline_ocpu_utilizations property of a Shape.
    #: This constant has a value of "BASELINE_1_8"
    BASELINE_OCPU_UTILIZATIONS_BASELINE_1_8 = "BASELINE_1_8"

    #: A constant which can be used with the baseline_ocpu_utilizations property of a Shape.
    #: This constant has a value of "BASELINE_1_2"
    BASELINE_OCPU_UTILIZATIONS_BASELINE_1_2 = "BASELINE_1_2"

    #: A constant which can be used with the baseline_ocpu_utilizations property of a Shape.
    #: This constant has a value of "BASELINE_1_1"
    BASELINE_OCPU_UTILIZATIONS_BASELINE_1_1 = "BASELINE_1_1"

    #: A constant which can be used with the billing_type property of a Shape.
    #: This constant has a value of "ALWAYS_FREE"
    BILLING_TYPE_ALWAYS_FREE = "ALWAYS_FREE"

    #: A constant which can be used with the billing_type property of a Shape.
    #: This constant has a value of "LIMITED_FREE"
    BILLING_TYPE_LIMITED_FREE = "LIMITED_FREE"

    #: A constant which can be used with the billing_type property of a Shape.
    #: This constant has a value of "PAID"
    BILLING_TYPE_PAID = "PAID"

    def __init__(self, **kwargs):
        """
        Initializes a new Shape object with values from keyword arguments.
        The following keyword arguments are supported (corresponding to the getters/setters of this class):

        :param baseline_ocpu_utilizations:
            The value to assign to the baseline_ocpu_utilizations property of this Shape.
            Allowed values for items in this list are: "BASELINE_1_8", "BASELINE_1_2", "BASELINE_1_1", 'UNKNOWN_ENUM_VALUE'.
            Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
        :type baseline_ocpu_utilizations: list[str]

        :param min_total_baseline_ocpus_required:
            The value to assign to the min_total_baseline_ocpus_required property of this Shape.
        :type min_total_baseline_ocpus_required: float

        :param shape:
            The value to assign to the shape property of this Shape.
        :type shape: str

        :param processor_description:
            The value to assign to the processor_description property of this Shape.
        :type processor_description: str

        :param ocpus:
            The value to assign to the ocpus property of this Shape.
        :type ocpus: float

        :param memory_in_gbs:
            The value to assign to the memory_in_gbs property of this Shape.
        :type memory_in_gbs: float

        :param network_ports:
            The value to assign to the network_ports property of this Shape.
        :type network_ports: int

        :param networking_bandwidth_in_gbps:
            The value to assign to the networking_bandwidth_in_gbps property of this Shape.
        :type networking_bandwidth_in_gbps: float

        :param max_vnic_attachments:
            The value to assign to the max_vnic_attachments property of this Shape.
        :type max_vnic_attachments: int

        :param gpus:
            The value to assign to the gpus property of this Shape.
        :type gpus: int

        :param gpu_description:
            The value to assign to the gpu_description property of this Shape.
        :type gpu_description: str

        :param local_disks:
            The value to assign to the local_disks property of this Shape.
        :type local_disks: int

        :param local_disks_total_size_in_gbs:
            The value to assign to the local_disks_total_size_in_gbs property of this Shape.
        :type local_disks_total_size_in_gbs: float

        :param local_disk_description:
            The value to assign to the local_disk_description property of this Shape.
        :type local_disk_description: str

        :param rdma_ports:
            The value to assign to the rdma_ports property of this Shape.
        :type rdma_ports: int

        :param rdma_bandwidth_in_gbps:
            The value to assign to the rdma_bandwidth_in_gbps property of this Shape.
        :type rdma_bandwidth_in_gbps: int

        :param is_live_migration_supported:
            The value to assign to the is_live_migration_supported property of this Shape.
        :type is_live_migration_supported: bool

        :param ocpu_options:
            The value to assign to the ocpu_options property of this Shape.
        :type ocpu_options: oci.core.models.ShapeOcpuOptions

        :param memory_options:
            The value to assign to the memory_options property of this Shape.
        :type memory_options: oci.core.models.ShapeMemoryOptions

        :param networking_bandwidth_options:
            The value to assign to the networking_bandwidth_options property of this Shape.
        :type networking_bandwidth_options: oci.core.models.ShapeNetworkingBandwidthOptions

        :param max_vnic_attachment_options:
            The value to assign to the max_vnic_attachment_options property of this Shape.
        :type max_vnic_attachment_options: oci.core.models.ShapeMaxVnicAttachmentOptions

        :param platform_config_options:
            The value to assign to the platform_config_options property of this Shape.
        :type platform_config_options: oci.core.models.ShapePlatformConfigOptions

        :param is_billed_for_stopped_instance:
            The value to assign to the is_billed_for_stopped_instance property of this Shape.
        :type is_billed_for_stopped_instance: bool

        :param billing_type:
            The value to assign to the billing_type property of this Shape.
            Allowed values for this property are: "ALWAYS_FREE", "LIMITED_FREE", "PAID", 'UNKNOWN_ENUM_VALUE'.
            Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
        :type billing_type: str

        :param quota_names:
            The value to assign to the quota_names property of this Shape.
        :type quota_names: list[str]

        :param is_subcore:
            The value to assign to the is_subcore property of this Shape.
        :type is_subcore: bool

        :param is_flexible:
            The value to assign to the is_flexible property of this Shape.
        :type is_flexible: bool

        :param resize_compatible_shapes:
            The value to assign to the resize_compatible_shapes property of this Shape.
        :type resize_compatible_shapes: list[str]

        :param recommended_alternatives:
            The value to assign to the recommended_alternatives property of this Shape.
        :type recommended_alternatives: list[oci.core.models.ShapeAlternativeObject]

        """
        self.swagger_types = {
            'baseline_ocpu_utilizations': 'list[str]',
            'min_total_baseline_ocpus_required': 'float',
            'shape': 'str',
            'processor_description': 'str',
            'ocpus': 'float',
            'memory_in_gbs': 'float',
            'network_ports': 'int',
            'networking_bandwidth_in_gbps': 'float',
            'max_vnic_attachments': 'int',
            'gpus': 'int',
            'gpu_description': 'str',
            'local_disks': 'int',
            'local_disks_total_size_in_gbs': 'float',
            'local_disk_description': 'str',
            'rdma_ports': 'int',
            'rdma_bandwidth_in_gbps': 'int',
            'is_live_migration_supported': 'bool',
            'ocpu_options': 'ShapeOcpuOptions',
            'memory_options': 'ShapeMemoryOptions',
            'networking_bandwidth_options': 'ShapeNetworkingBandwidthOptions',
            'max_vnic_attachment_options': 'ShapeMaxVnicAttachmentOptions',
            'platform_config_options': 'ShapePlatformConfigOptions',
            'is_billed_for_stopped_instance': 'bool',
            'billing_type': 'str',
            'quota_names': 'list[str]',
            'is_subcore': 'bool',
            'is_flexible': 'bool',
            'resize_compatible_shapes': 'list[str]',
            'recommended_alternatives': 'list[ShapeAlternativeObject]'
        }

        self.attribute_map = {
            'baseline_ocpu_utilizations': 'baselineOcpuUtilizations',
            'min_total_baseline_ocpus_required': 'minTotalBaselineOcpusRequired',
            'shape': 'shape',
            'processor_description': 'processorDescription',
            'ocpus': 'ocpus',
            'memory_in_gbs': 'memoryInGBs',
            'network_ports': 'networkPorts',
            'networking_bandwidth_in_gbps': 'networkingBandwidthInGbps',
            'max_vnic_attachments': 'maxVnicAttachments',
            'gpus': 'gpus',
            'gpu_description': 'gpuDescription',
            'local_disks': 'localDisks',
            'local_disks_total_size_in_gbs': 'localDisksTotalSizeInGBs',
            'local_disk_description': 'localDiskDescription',
            'rdma_ports': 'rdmaPorts',
            'rdma_bandwidth_in_gbps': 'rdmaBandwidthInGbps',
            'is_live_migration_supported': 'isLiveMigrationSupported',
            'ocpu_options': 'ocpuOptions',
            'memory_options': 'memoryOptions',
            'networking_bandwidth_options': 'networkingBandwidthOptions',
            'max_vnic_attachment_options': 'maxVnicAttachmentOptions',
            'platform_config_options': 'platformConfigOptions',
            'is_billed_for_stopped_instance': 'isBilledForStoppedInstance',
            'billing_type': 'billingType',
            'quota_names': 'quotaNames',
            'is_subcore': 'isSubcore',
            'is_flexible': 'isFlexible',
            'resize_compatible_shapes': 'resizeCompatibleShapes',
            'recommended_alternatives': 'recommendedAlternatives'
        }

        self._baseline_ocpu_utilizations = None
        self._min_total_baseline_ocpus_required = None
        self._shape = None
        self._processor_description = None
        self._ocpus = None
        self._memory_in_gbs = None
        self._network_ports = None
        self._networking_bandwidth_in_gbps = None
        self._max_vnic_attachments = None
        self._gpus = None
        self._gpu_description = None
        self._local_disks = None
        self._local_disks_total_size_in_gbs = None
        self._local_disk_description = None
        self._rdma_ports = None
        self._rdma_bandwidth_in_gbps = None
        self._is_live_migration_supported = None
        self._ocpu_options = None
        self._memory_options = None
        self._networking_bandwidth_options = None
        self._max_vnic_attachment_options = None
        self._platform_config_options = None
        self._is_billed_for_stopped_instance = None
        self._billing_type = None
        self._quota_names = None
        self._is_subcore = None
        self._is_flexible = None
        self._resize_compatible_shapes = None
        self._recommended_alternatives = None

    @property
    def baseline_ocpu_utilizations(self):
        """
        Gets the baseline_ocpu_utilizations of this Shape.
        For a subcore burstable VM, the supported baseline OCPU utilization for instances that use this shape.

        Allowed values for items in this list are: "BASELINE_1_8", "BASELINE_1_2", "BASELINE_1_1", 'UNKNOWN_ENUM_VALUE'.
        Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.


        :return: The baseline_ocpu_utilizations of this Shape.
        :rtype: list[str]
        """
        return self._baseline_ocpu_utilizations

    @baseline_ocpu_utilizations.setter
    def baseline_ocpu_utilizations(self, baseline_ocpu_utilizations):
        """
        Sets the baseline_ocpu_utilizations of this Shape.
        For a subcore burstable VM, the supported baseline OCPU utilization for instances that use this shape.


        :param baseline_ocpu_utilizations: The baseline_ocpu_utilizations of this Shape.
        :type: list[str]
        """
        allowed_values = ["BASELINE_1_8", "BASELINE_1_2", "BASELINE_1_1"]
        if baseline_ocpu_utilizations:
            baseline_ocpu_utilizations[:] = ['UNKNOWN_ENUM_VALUE' if not value_allowed_none_or_none_sentinel(x, allowed_values) else x for x in baseline_ocpu_utilizations]
        self._baseline_ocpu_utilizations = baseline_ocpu_utilizations

    @property
    def min_total_baseline_ocpus_required(self):
        """
        Gets the min_total_baseline_ocpus_required of this Shape.
        For a subcore burstable VM, the minimum total baseline OCPUs required. The total baseline OCPUs is equal to
        baselineOcpuUtilization chosen multiplied by the number of OCPUs chosen.


        :return: The min_total_baseline_ocpus_required of this Shape.
        :rtype: float
        """
        return self._min_total_baseline_ocpus_required

    @min_total_baseline_ocpus_required.setter
    def min_total_baseline_ocpus_required(self, min_total_baseline_ocpus_required):
        """
        Sets the min_total_baseline_ocpus_required of this Shape.
        For a subcore burstable VM, the minimum total baseline OCPUs required. The total baseline OCPUs is equal to
        baselineOcpuUtilization chosen multiplied by the number of OCPUs chosen.


        :param min_total_baseline_ocpus_required: The min_total_baseline_ocpus_required of this Shape.
        :type: float
        """
        self._min_total_baseline_ocpus_required = min_total_baseline_ocpus_required

    @property
    def shape(self):
        """
        **[Required]** Gets the shape of this Shape.
        The name of the shape. You can enumerate all available shapes by calling
        :func:`list_shapes`.


        :return: The shape of this Shape.
        :rtype: str
        """
        return self._shape

    @shape.setter
    def shape(self, shape):
        """
        Sets the shape of this Shape.
        The name of the shape. You can enumerate all available shapes by calling
        :func:`list_shapes`.


        :param shape: The shape of this Shape.
        :type: str
        """
        self._shape = shape

    @property
    def processor_description(self):
        """
        Gets the processor_description of this Shape.
        A short description of the shape's processor (CPU).


        :return: The processor_description of this Shape.
        :rtype: str
        """
        return self._processor_description

    @processor_description.setter
    def processor_description(self, processor_description):
        """
        Sets the processor_description of this Shape.
        A short description of the shape's processor (CPU).


        :param processor_description: The processor_description of this Shape.
        :type: str
        """
        self._processor_description = processor_description

    @property
    def ocpus(self):
        """
        Gets the ocpus of this Shape.
        The default number of OCPUs available for this shape.


        :return: The ocpus of this Shape.
        :rtype: float
        """
        return self._ocpus

    @ocpus.setter
    def ocpus(self, ocpus):
        """
        Sets the ocpus of this Shape.
        The default number of OCPUs available for this shape.


        :param ocpus: The ocpus of this Shape.
        :type: float
        """
        self._ocpus = ocpus

    @property
    def memory_in_gbs(self):
        """
        Gets the memory_in_gbs of this Shape.
        The default amount of memory available for this shape, in gigabytes.


        :return: The memory_in_gbs of this Shape.
        :rtype: float
        """
        return self._memory_in_gbs

    @memory_in_gbs.setter
    def memory_in_gbs(self, memory_in_gbs):
        """
        Sets the memory_in_gbs of this Shape.
        The default amount of memory available for this shape, in gigabytes.


        :param memory_in_gbs: The memory_in_gbs of this Shape.
        :type: float
        """
        self._memory_in_gbs = memory_in_gbs

    @property
    def network_ports(self):
        """
        Gets the network_ports of this Shape.
        The number of physical network interface card (NIC) ports available for this shape.


        :return: The network_ports of this Shape.
        :rtype: int
        """
        return self._network_ports

    @network_ports.setter
    def network_ports(self, network_ports):
        """
        Sets the network_ports of this Shape.
        The number of physical network interface card (NIC) ports available for this shape.


        :param network_ports: The network_ports of this Shape.
        :type: int
        """
        self._network_ports = network_ports

    @property
    def networking_bandwidth_in_gbps(self):
        """
        Gets the networking_bandwidth_in_gbps of this Shape.
        The networking bandwidth available for this shape, in gigabits per second.


        :return: The networking_bandwidth_in_gbps of this Shape.
        :rtype: float
        """
        return self._networking_bandwidth_in_gbps

    @networking_bandwidth_in_gbps.setter
    def networking_bandwidth_in_gbps(self, networking_bandwidth_in_gbps):
        """
        Sets the networking_bandwidth_in_gbps of this Shape.
        The networking bandwidth available for this shape, in gigabits per second.


        :param networking_bandwidth_in_gbps: The networking_bandwidth_in_gbps of this Shape.
        :type: float
        """
        self._networking_bandwidth_in_gbps = networking_bandwidth_in_gbps

    @property
    def max_vnic_attachments(self):
        """
        Gets the max_vnic_attachments of this Shape.
        The maximum number of VNIC attachments available for this shape.


        :return: The max_vnic_attachments of this Shape.
        :rtype: int
        """
        return self._max_vnic_attachments

    @max_vnic_attachments.setter
    def max_vnic_attachments(self, max_vnic_attachments):
        """
        Sets the max_vnic_attachments of this Shape.
        The maximum number of VNIC attachments available for this shape.


        :param max_vnic_attachments: The max_vnic_attachments of this Shape.
        :type: int
        """
        self._max_vnic_attachments = max_vnic_attachments

    @property
    def gpus(self):
        """
        Gets the gpus of this Shape.
        The number of GPUs available for this shape.


        :return: The gpus of this Shape.
        :rtype: int
        """
        return self._gpus

    @gpus.setter
    def gpus(self, gpus):
        """
        Sets the gpus of this Shape.
        The number of GPUs available for this shape.


        :param gpus: The gpus of this Shape.
        :type: int
        """
        self._gpus = gpus

    @property
    def gpu_description(self):
        """
        Gets the gpu_description of this Shape.
        A short description of the graphics processing unit (GPU) available for this shape.

        If the shape does not have any GPUs, this field is `null`.


        :return: The gpu_description of this Shape.
        :rtype: str
        """
        return self._gpu_description

    @gpu_description.setter
    def gpu_description(self, gpu_description):
        """
        Sets the gpu_description of this Shape.
        A short description of the graphics processing unit (GPU) available for this shape.

        If the shape does not have any GPUs, this field is `null`.


        :param gpu_description: The gpu_description of this Shape.
        :type: str
        """
        self._gpu_description = gpu_description

    @property
    def local_disks(self):
        """
        Gets the local_disks of this Shape.
        The number of local disks available for this shape.


        :return: The local_disks of this Shape.
        :rtype: int
        """
        return self._local_disks

    @local_disks.setter
    def local_disks(self, local_disks):
        """
        Sets the local_disks of this Shape.
        The number of local disks available for this shape.


        :param local_disks: The local_disks of this Shape.
        :type: int
        """
        self._local_disks = local_disks

    @property
    def local_disks_total_size_in_gbs(self):
        """
        Gets the local_disks_total_size_in_gbs of this Shape.
        The aggregate size of the local disks available for this shape, in gigabytes.

        If the shape does not have any local disks, this field is `null`.


        :return: The local_disks_total_size_in_gbs of this Shape.
        :rtype: float
        """
        return self._local_disks_total_size_in_gbs

    @local_disks_total_size_in_gbs.setter
    def local_disks_total_size_in_gbs(self, local_disks_total_size_in_gbs):
        """
        Sets the local_disks_total_size_in_gbs of this Shape.
        The aggregate size of the local disks available for this shape, in gigabytes.

        If the shape does not have any local disks, this field is `null`.


        :param local_disks_total_size_in_gbs: The local_disks_total_size_in_gbs of this Shape.
        :type: float
        """
        self._local_disks_total_size_in_gbs = local_disks_total_size_in_gbs

    @property
    def local_disk_description(self):
        """
        Gets the local_disk_description of this Shape.
        A short description of the local disks available for this shape.

        If the shape does not have any local disks, this field is `null`.


        :return: The local_disk_description of this Shape.
        :rtype: str
        """
        return self._local_disk_description

    @local_disk_description.setter
    def local_disk_description(self, local_disk_description):
        """
        Sets the local_disk_description of this Shape.
        A short description of the local disks available for this shape.

        If the shape does not have any local disks, this field is `null`.


        :param local_disk_description: The local_disk_description of this Shape.
        :type: str
        """
        self._local_disk_description = local_disk_description

    @property
    def rdma_ports(self):
        """
        Gets the rdma_ports of this Shape.
        The number of networking ports available for the remote direct memory access (RDMA) network between nodes in
        a high performance computing (HPC) cluster network. If the shape does not support cluster networks, this
        value is `0`.


        :return: The rdma_ports of this Shape.
        :rtype: int
        """
        return self._rdma_ports

    @rdma_ports.setter
    def rdma_ports(self, rdma_ports):
        """
        Sets the rdma_ports of this Shape.
        The number of networking ports available for the remote direct memory access (RDMA) network between nodes in
        a high performance computing (HPC) cluster network. If the shape does not support cluster networks, this
        value is `0`.


        :param rdma_ports: The rdma_ports of this Shape.
        :type: int
        """
        self._rdma_ports = rdma_ports

    @property
    def rdma_bandwidth_in_gbps(self):
        """
        Gets the rdma_bandwidth_in_gbps of this Shape.
        The networking bandwidth available for the remote direct memory access (RDMA) network for this shape, in
        gigabits per second.


        :return: The rdma_bandwidth_in_gbps of this Shape.
        :rtype: int
        """
        return self._rdma_bandwidth_in_gbps

    @rdma_bandwidth_in_gbps.setter
    def rdma_bandwidth_in_gbps(self, rdma_bandwidth_in_gbps):
        """
        Sets the rdma_bandwidth_in_gbps of this Shape.
        The networking bandwidth available for the remote direct memory access (RDMA) network for this shape, in
        gigabits per second.


        :param rdma_bandwidth_in_gbps: The rdma_bandwidth_in_gbps of this Shape.
        :type: int
        """
        self._rdma_bandwidth_in_gbps = rdma_bandwidth_in_gbps

    @property
    def is_live_migration_supported(self):
        """
        Gets the is_live_migration_supported of this Shape.
        Whether live migration is supported for this shape.


        :return: The is_live_migration_supported of this Shape.
        :rtype: bool
        """
        return self._is_live_migration_supported

    @is_live_migration_supported.setter
    def is_live_migration_supported(self, is_live_migration_supported):
        """
        Sets the is_live_migration_supported of this Shape.
        Whether live migration is supported for this shape.


        :param is_live_migration_supported: The is_live_migration_supported of this Shape.
        :type: bool
        """
        self._is_live_migration_supported = is_live_migration_supported

    @property
    def ocpu_options(self):
        """
        Gets the ocpu_options of this Shape.

        :return: The ocpu_options of this Shape.
        :rtype: oci.core.models.ShapeOcpuOptions
        """
        return self._ocpu_options

    @ocpu_options.setter
    def ocpu_options(self, ocpu_options):
        """
        Sets the ocpu_options of this Shape.

        :param ocpu_options: The ocpu_options of this Shape.
        :type: oci.core.models.ShapeOcpuOptions
        """
        self._ocpu_options = ocpu_options

    @property
    def memory_options(self):
        """
        Gets the memory_options of this Shape.

        :return: The memory_options of this Shape.
        :rtype: oci.core.models.ShapeMemoryOptions
        """
        return self._memory_options

    @memory_options.setter
    def memory_options(self, memory_options):
        """
        Sets the memory_options of this Shape.

        :param memory_options: The memory_options of this Shape.
        :type: oci.core.models.ShapeMemoryOptions
        """
        self._memory_options = memory_options

    @property
    def networking_bandwidth_options(self):
        """
        Gets the networking_bandwidth_options of this Shape.

        :return: The networking_bandwidth_options of this Shape.
        :rtype: oci.core.models.ShapeNetworkingBandwidthOptions
        """
        return self._networking_bandwidth_options

    @networking_bandwidth_options.setter
    def networking_bandwidth_options(self, networking_bandwidth_options):
        """
        Sets the networking_bandwidth_options of this Shape.

        :param networking_bandwidth_options: The networking_bandwidth_options of this Shape.
        :type: oci.core.models.ShapeNetworkingBandwidthOptions
        """
        self._networking_bandwidth_options = networking_bandwidth_options

    @property
    def max_vnic_attachment_options(self):
        """
        Gets the max_vnic_attachment_options of this Shape.

        :return: The max_vnic_attachment_options of this Shape.
        :rtype: oci.core.models.ShapeMaxVnicAttachmentOptions
        """
        return self._max_vnic_attachment_options

    @max_vnic_attachment_options.setter
    def max_vnic_attachment_options(self, max_vnic_attachment_options):
        """
        Sets the max_vnic_attachment_options of this Shape.

        :param max_vnic_attachment_options: The max_vnic_attachment_options of this Shape.
        :type: oci.core.models.ShapeMaxVnicAttachmentOptions
        """
        self._max_vnic_attachment_options = max_vnic_attachment_options

    @property
    def platform_config_options(self):
        """
        Gets the platform_config_options of this Shape.

        :return: The platform_config_options of this Shape.
        :rtype: oci.core.models.ShapePlatformConfigOptions
        """
        return self._platform_config_options

    @platform_config_options.setter
    def platform_config_options(self, platform_config_options):
        """
        Sets the platform_config_options of this Shape.

        :param platform_config_options: The platform_config_options of this Shape.
        :type: oci.core.models.ShapePlatformConfigOptions
        """
        self._platform_config_options = platform_config_options

    @property
    def is_billed_for_stopped_instance(self):
        """
        Gets the is_billed_for_stopped_instance of this Shape.
        Whether billing continues when the instances that use this shape are in the stopped state.


        :return: The is_billed_for_stopped_instance of this Shape.
        :rtype: bool
        """
        return self._is_billed_for_stopped_instance

    @is_billed_for_stopped_instance.setter
    def is_billed_for_stopped_instance(self, is_billed_for_stopped_instance):
        """
        Sets the is_billed_for_stopped_instance of this Shape.
        Whether billing continues when the instances that use this shape are in the stopped state.


        :param is_billed_for_stopped_instance: The is_billed_for_stopped_instance of this Shape.
        :type: bool
        """
        self._is_billed_for_stopped_instance = is_billed_for_stopped_instance

    @property
    def billing_type(self):
        """
        Gets the billing_type of this Shape.
        How instances that use this shape are charged.

        Allowed values for this property are: "ALWAYS_FREE", "LIMITED_FREE", "PAID", 'UNKNOWN_ENUM_VALUE'.
        Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.


        :return: The billing_type of this Shape.
        :rtype: str
        """
        return self._billing_type

    @billing_type.setter
    def billing_type(self, billing_type):
        """
        Sets the billing_type of this Shape.
        How instances that use this shape are charged.


        :param billing_type: The billing_type of this Shape.
        :type: str
        """
        allowed_values = ["ALWAYS_FREE", "LIMITED_FREE", "PAID"]
        if not value_allowed_none_or_none_sentinel(billing_type, allowed_values):
            billing_type = 'UNKNOWN_ENUM_VALUE'
        self._billing_type = billing_type

    @property
    def quota_names(self):
        """
        Gets the quota_names of this Shape.
        The list of of compartment quotas for the shape.


        :return: The quota_names of this Shape.
        :rtype: list[str]
        """
        return self._quota_names

    @quota_names.setter
    def quota_names(self, quota_names):
        """
        Sets the quota_names of this Shape.
        The list of of compartment quotas for the shape.


        :param quota_names: The quota_names of this Shape.
        :type: list[str]
        """
        self._quota_names = quota_names

    @property
    def is_subcore(self):
        """
        Gets the is_subcore of this Shape.
        Whether the shape supports creating subcore or burstable instances. A `burstable instance`__
        is a virtual machine (VM) instance that provides a baseline level of CPU performance with the ability to burst to a higher level to support occasional
        spikes in usage.

        __ https://docs.cloud.oracle.com/iaas/Content/Compute/References/burstable-instances.htm


        :return: The is_subcore of this Shape.
        :rtype: bool
        """
        return self._is_subcore

    @is_subcore.setter
    def is_subcore(self, is_subcore):
        """
        Sets the is_subcore of this Shape.
        Whether the shape supports creating subcore or burstable instances. A `burstable instance`__
        is a virtual machine (VM) instance that provides a baseline level of CPU performance with the ability to burst to a higher level to support occasional
        spikes in usage.

        __ https://docs.cloud.oracle.com/iaas/Content/Compute/References/burstable-instances.htm


        :param is_subcore: The is_subcore of this Shape.
        :type: bool
        """
        self._is_subcore = is_subcore

    @property
    def is_flexible(self):
        """
        Gets the is_flexible of this Shape.
        Whether the shape supports creating flexible instances. A `flexible shape`__
        is a shape that lets you customize the number of OCPUs and the amount of memory when launching or resizing your instance.

        __ https://docs.cloud.oracle.com/iaas/Content/Compute/References/computeshapes.htm#flexible


        :return: The is_flexible of this Shape.
        :rtype: bool
        """
        return self._is_flexible

    @is_flexible.setter
    def is_flexible(self, is_flexible):
        """
        Sets the is_flexible of this Shape.
        Whether the shape supports creating flexible instances. A `flexible shape`__
        is a shape that lets you customize the number of OCPUs and the amount of memory when launching or resizing your instance.

        __ https://docs.cloud.oracle.com/iaas/Content/Compute/References/computeshapes.htm#flexible


        :param is_flexible: The is_flexible of this Shape.
        :type: bool
        """
        self._is_flexible = is_flexible

    @property
    def resize_compatible_shapes(self):
        """
        Gets the resize_compatible_shapes of this Shape.
        The list of compatible shapes that this shape can be changed to. For more information,
        see `Changing the Shape of an Instance`__.

        __ https://docs.cloud.oracle.com/iaas/Content/Compute/Tasks/resizinginstances.htm


        :return: The resize_compatible_shapes of this Shape.
        :rtype: list[str]
        """
        return self._resize_compatible_shapes

    @resize_compatible_shapes.setter
    def resize_compatible_shapes(self, resize_compatible_shapes):
        """
        Sets the resize_compatible_shapes of this Shape.
        The list of compatible shapes that this shape can be changed to. For more information,
        see `Changing the Shape of an Instance`__.

        __ https://docs.cloud.oracle.com/iaas/Content/Compute/Tasks/resizinginstances.htm


        :param resize_compatible_shapes: The resize_compatible_shapes of this Shape.
        :type: list[str]
        """
        self._resize_compatible_shapes = resize_compatible_shapes

    @property
    def recommended_alternatives(self):
        """
        Gets the recommended_alternatives of this Shape.
        The list of shapes and shape details (if applicable) that Oracle recommends that you use as an alternative to the current shape.


        :return: The recommended_alternatives of this Shape.
        :rtype: list[oci.core.models.ShapeAlternativeObject]
        """
        return self._recommended_alternatives

    @recommended_alternatives.setter
    def recommended_alternatives(self, recommended_alternatives):
        """
        Sets the recommended_alternatives of this Shape.
        The list of shapes and shape details (if applicable) that Oracle recommends that you use as an alternative to the current shape.


        :param recommended_alternatives: The recommended_alternatives of this Shape.
        :type: list[oci.core.models.ShapeAlternativeObject]
        """
        self._recommended_alternatives = recommended_alternatives

    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

Youez - 2016 - github.com/yon3zu
LinuXploit