\x89PNG\r\n\x1a\n\x00\x00\x00\x0DIHDR\x00\x00\x00\x01\x00 \x00\x00\x01\x08\x06\x00\x00\x00\x1F\x15\xC4\x89\x00\x00\x00 \x0AIDATx\x9Ccb\x00\x00\x00\x06\x00\x03\x1A\x05\x9D\x00\x00 \x00\x00IEND\xAE\x42\x60\x82
| Path : /lib/python3.9/site-packages/oci/database_management/models/ |
|
B-Con CMD Config cPanel C-Rdp D-Log Info Jump Mass Ransom Symlink vHost Zone-H |
| Current File : //lib/python3.9/site-packages/oci/database_management/models/resize_data_file_details.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: 20201101
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 ResizeDataFileDetails(object):
"""
The details required to resize a data file or temp file within the tablespace.
It takes either credentialDetails or databaseCredential. It's recommended to provide databaseCredential
"""
#: A constant which can be used with the file_type property of a ResizeDataFileDetails.
#: This constant has a value of "DATAFILE"
FILE_TYPE_DATAFILE = "DATAFILE"
#: A constant which can be used with the file_type property of a ResizeDataFileDetails.
#: This constant has a value of "TEMPFILE"
FILE_TYPE_TEMPFILE = "TEMPFILE"
def __init__(self, **kwargs):
"""
Initializes a new ResizeDataFileDetails object with values from keyword arguments.
The following keyword arguments are supported (corresponding to the getters/setters of this class):
:param credential_details:
The value to assign to the credential_details property of this ResizeDataFileDetails.
:type credential_details: oci.database_management.models.TablespaceAdminCredentialDetails
:param database_credential:
The value to assign to the database_credential property of this ResizeDataFileDetails.
:type database_credential: oci.database_management.models.DatabaseCredentialDetails
:param file_type:
The value to assign to the file_type property of this ResizeDataFileDetails.
Allowed values for this property are: "DATAFILE", "TEMPFILE"
:type file_type: str
:param data_file:
The value to assign to the data_file property of this ResizeDataFileDetails.
:type data_file: str
:param file_size:
The value to assign to the file_size property of this ResizeDataFileDetails.
:type file_size: oci.database_management.models.TablespaceStorageSize
:param is_auto_extensible:
The value to assign to the is_auto_extensible property of this ResizeDataFileDetails.
:type is_auto_extensible: bool
:param auto_extend_next_size:
The value to assign to the auto_extend_next_size property of this ResizeDataFileDetails.
:type auto_extend_next_size: oci.database_management.models.TablespaceStorageSize
:param auto_extend_max_size:
The value to assign to the auto_extend_max_size property of this ResizeDataFileDetails.
:type auto_extend_max_size: oci.database_management.models.TablespaceStorageSize
:param is_max_size_unlimited:
The value to assign to the is_max_size_unlimited property of this ResizeDataFileDetails.
:type is_max_size_unlimited: bool
"""
self.swagger_types = {
'credential_details': 'TablespaceAdminCredentialDetails',
'database_credential': 'DatabaseCredentialDetails',
'file_type': 'str',
'data_file': 'str',
'file_size': 'TablespaceStorageSize',
'is_auto_extensible': 'bool',
'auto_extend_next_size': 'TablespaceStorageSize',
'auto_extend_max_size': 'TablespaceStorageSize',
'is_max_size_unlimited': 'bool'
}
self.attribute_map = {
'credential_details': 'credentialDetails',
'database_credential': 'databaseCredential',
'file_type': 'fileType',
'data_file': 'dataFile',
'file_size': 'fileSize',
'is_auto_extensible': 'isAutoExtensible',
'auto_extend_next_size': 'autoExtendNextSize',
'auto_extend_max_size': 'autoExtendMaxSize',
'is_max_size_unlimited': 'isMaxSizeUnlimited'
}
self._credential_details = None
self._database_credential = None
self._file_type = None
self._data_file = None
self._file_size = None
self._is_auto_extensible = None
self._auto_extend_next_size = None
self._auto_extend_max_size = None
self._is_max_size_unlimited = None
@property
def credential_details(self):
"""
Gets the credential_details of this ResizeDataFileDetails.
:return: The credential_details of this ResizeDataFileDetails.
:rtype: oci.database_management.models.TablespaceAdminCredentialDetails
"""
return self._credential_details
@credential_details.setter
def credential_details(self, credential_details):
"""
Sets the credential_details of this ResizeDataFileDetails.
:param credential_details: The credential_details of this ResizeDataFileDetails.
:type: oci.database_management.models.TablespaceAdminCredentialDetails
"""
self._credential_details = credential_details
@property
def database_credential(self):
"""
Gets the database_credential of this ResizeDataFileDetails.
:return: The database_credential of this ResizeDataFileDetails.
:rtype: oci.database_management.models.DatabaseCredentialDetails
"""
return self._database_credential
@database_credential.setter
def database_credential(self, database_credential):
"""
Sets the database_credential of this ResizeDataFileDetails.
:param database_credential: The database_credential of this ResizeDataFileDetails.
:type: oci.database_management.models.DatabaseCredentialDetails
"""
self._database_credential = database_credential
@property
def file_type(self):
"""
**[Required]** Gets the file_type of this ResizeDataFileDetails.
Specifies whether the file is a data file or temp file.
Allowed values for this property are: "DATAFILE", "TEMPFILE"
:return: The file_type of this ResizeDataFileDetails.
:rtype: str
"""
return self._file_type
@file_type.setter
def file_type(self, file_type):
"""
Sets the file_type of this ResizeDataFileDetails.
Specifies whether the file is a data file or temp file.
:param file_type: The file_type of this ResizeDataFileDetails.
:type: str
"""
allowed_values = ["DATAFILE", "TEMPFILE"]
if not value_allowed_none_or_none_sentinel(file_type, allowed_values):
raise ValueError(
f"Invalid value for `file_type`, must be None or one of {allowed_values}"
)
self._file_type = file_type
@property
def data_file(self):
"""
**[Required]** Gets the data_file of this ResizeDataFileDetails.
Name of the data file or temp file to be resized.
:return: The data_file of this ResizeDataFileDetails.
:rtype: str
"""
return self._data_file
@data_file.setter
def data_file(self, data_file):
"""
Sets the data_file of this ResizeDataFileDetails.
Name of the data file or temp file to be resized.
:param data_file: The data_file of this ResizeDataFileDetails.
:type: str
"""
self._data_file = data_file
@property
def file_size(self):
"""
Gets the file_size of this ResizeDataFileDetails.
The new size of the data file or temp file.
:return: The file_size of this ResizeDataFileDetails.
:rtype: oci.database_management.models.TablespaceStorageSize
"""
return self._file_size
@file_size.setter
def file_size(self, file_size):
"""
Sets the file_size of this ResizeDataFileDetails.
The new size of the data file or temp file.
:param file_size: The file_size of this ResizeDataFileDetails.
:type: oci.database_management.models.TablespaceStorageSize
"""
self._file_size = file_size
@property
def is_auto_extensible(self):
"""
Gets the is_auto_extensible of this ResizeDataFileDetails.
Specifies whether the data file or temp file can be extended automatically.
:return: The is_auto_extensible of this ResizeDataFileDetails.
:rtype: bool
"""
return self._is_auto_extensible
@is_auto_extensible.setter
def is_auto_extensible(self, is_auto_extensible):
"""
Sets the is_auto_extensible of this ResizeDataFileDetails.
Specifies whether the data file or temp file can be extended automatically.
:param is_auto_extensible: The is_auto_extensible of this ResizeDataFileDetails.
:type: bool
"""
self._is_auto_extensible = is_auto_extensible
@property
def auto_extend_next_size(self):
"""
Gets the auto_extend_next_size of this ResizeDataFileDetails.
The size of the next increment of disk space to be allocated automatically when more extents are required.
:return: The auto_extend_next_size of this ResizeDataFileDetails.
:rtype: oci.database_management.models.TablespaceStorageSize
"""
return self._auto_extend_next_size
@auto_extend_next_size.setter
def auto_extend_next_size(self, auto_extend_next_size):
"""
Sets the auto_extend_next_size of this ResizeDataFileDetails.
The size of the next increment of disk space to be allocated automatically when more extents are required.
:param auto_extend_next_size: The auto_extend_next_size of this ResizeDataFileDetails.
:type: oci.database_management.models.TablespaceStorageSize
"""
self._auto_extend_next_size = auto_extend_next_size
@property
def auto_extend_max_size(self):
"""
Gets the auto_extend_max_size of this ResizeDataFileDetails.
The maximum disk space allowed for automatic extension of the data files or temp files.
:return: The auto_extend_max_size of this ResizeDataFileDetails.
:rtype: oci.database_management.models.TablespaceStorageSize
"""
return self._auto_extend_max_size
@auto_extend_max_size.setter
def auto_extend_max_size(self, auto_extend_max_size):
"""
Sets the auto_extend_max_size of this ResizeDataFileDetails.
The maximum disk space allowed for automatic extension of the data files or temp files.
:param auto_extend_max_size: The auto_extend_max_size of this ResizeDataFileDetails.
:type: oci.database_management.models.TablespaceStorageSize
"""
self._auto_extend_max_size = auto_extend_max_size
@property
def is_max_size_unlimited(self):
"""
Gets the is_max_size_unlimited of this ResizeDataFileDetails.
Specifies whether the disk space of the data file or temp file can be limited.
:return: The is_max_size_unlimited of this ResizeDataFileDetails.
:rtype: bool
"""
return self._is_max_size_unlimited
@is_max_size_unlimited.setter
def is_max_size_unlimited(self, is_max_size_unlimited):
"""
Sets the is_max_size_unlimited of this ResizeDataFileDetails.
Specifies whether the disk space of the data file or temp file can be limited.
:param is_max_size_unlimited: The is_max_size_unlimited of this ResizeDataFileDetails.
:type: bool
"""
self._is_max_size_unlimited = is_max_size_unlimited
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