File manager - Edit - /usr/lib/mysqlsh/lib/python3.9/site-packages/oci/marketplace_publisher/models/image_shape_compatibility.py
Back
# coding: utf-8 # Copyright (c) 2016, 2026, 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: 20241201 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 ImageShapeCompatibility(object): """ Shape configuration details """ def __init__(self, **kwargs): """ Initializes a new ImageShapeCompatibility object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class): :param shape: The value to assign to the shape property of this ImageShapeCompatibility. :type shape: str :param memory_constraints: The value to assign to the memory_constraints property of this ImageShapeCompatibility. :type memory_constraints: oci.marketplace_publisher.models.ImageMemoryConstraints :param ocpu_constraints: The value to assign to the ocpu_constraints property of this ImageShapeCompatibility. :type ocpu_constraints: oci.marketplace_publisher.models.ImageOcpuConstraints """ self.swagger_types = { 'shape': 'str', 'memory_constraints': 'ImageMemoryConstraints', 'ocpu_constraints': 'ImageOcpuConstraints' } self.attribute_map = { 'shape': 'shape', 'memory_constraints': 'memoryConstraints', 'ocpu_constraints': 'ocpuConstraints' } self._shape = None self._memory_constraints = None self._ocpu_constraints = None @property def shape(self): """ **[Required]** Gets the shape of this ImageShapeCompatibility. Name of the shape. :return: The shape of this ImageShapeCompatibility. :rtype: str """ return self._shape @shape.setter def shape(self, shape): """ Sets the shape of this ImageShapeCompatibility. Name of the shape. :param shape: The shape of this ImageShapeCompatibility. :type: str """ self._shape = shape @property def memory_constraints(self): """ Gets the memory_constraints of this ImageShapeCompatibility. :return: The memory_constraints of this ImageShapeCompatibility. :rtype: oci.marketplace_publisher.models.ImageMemoryConstraints """ return self._memory_constraints @memory_constraints.setter def memory_constraints(self, memory_constraints): """ Sets the memory_constraints of this ImageShapeCompatibility. :param memory_constraints: The memory_constraints of this ImageShapeCompatibility. :type: oci.marketplace_publisher.models.ImageMemoryConstraints """ self._memory_constraints = memory_constraints @property def ocpu_constraints(self): """ Gets the ocpu_constraints of this ImageShapeCompatibility. :return: The ocpu_constraints of this ImageShapeCompatibility. :rtype: oci.marketplace_publisher.models.ImageOcpuConstraints """ return self._ocpu_constraints @ocpu_constraints.setter def ocpu_constraints(self, ocpu_constraints): """ Sets the ocpu_constraints of this ImageShapeCompatibility. :param ocpu_constraints: The ocpu_constraints of this ImageShapeCompatibility. :type: oci.marketplace_publisher.models.ImageOcpuConstraints """ self._ocpu_constraints = ocpu_constraints 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
| ver. 1.4 |
Github
|
.
| PHP 8.2.32 | Generation time: 0.06 |
proxy
|
phpinfo
|
Settings