File: //proc/self/root/lib/mysqlsh/lib/python3.8/site-packages/oci/object_storage/models/list_objects.py
# coding: utf-8
# Copyright (c) 2016, 2025, 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 ListObjects(object):
"""
To use any of the API operations, you must be authorized in an IAM policy. If you are not authorized,
talk to an administrator. If you are an administrator who needs to write policies to give users access, see
`Getting Started with Policies`__.
__ https://docs.cloud.oracle.com/Content/Identity/Concepts/policygetstarted.htm
"""
def __init__(self, **kwargs):
"""
Initializes a new ListObjects object with values from keyword arguments.
The following keyword arguments are supported (corresponding to the getters/setters of this class):
:param objects:
The value to assign to the objects property of this ListObjects.
:type objects: list[oci.object_storage.models.ObjectSummary]
:param prefixes:
The value to assign to the prefixes property of this ListObjects.
:type prefixes: list[str]
:param next_start_with:
The value to assign to the next_start_with property of this ListObjects.
:type next_start_with: str
"""
self.swagger_types = {
'objects': 'list[ObjectSummary]',
'prefixes': 'list[str]',
'next_start_with': 'str'
}
self.attribute_map = {
'objects': 'objects',
'prefixes': 'prefixes',
'next_start_with': 'nextStartWith'
}
self._objects = None
self._prefixes = None
self._next_start_with = None
@property
def objects(self):
"""
**[Required]** Gets the objects of this ListObjects.
An array of object summaries.
:return: The objects of this ListObjects.
:rtype: list[oci.object_storage.models.ObjectSummary]
"""
return self._objects
@objects.setter
def objects(self, objects):
"""
Sets the objects of this ListObjects.
An array of object summaries.
:param objects: The objects of this ListObjects.
:type: list[oci.object_storage.models.ObjectSummary]
"""
self._objects = objects
@property
def prefixes(self):
"""
Gets the prefixes of this ListObjects.
Prefixes that are common to the results returned by the request if the request specified a delimiter.
:return: The prefixes of this ListObjects.
:rtype: list[str]
"""
return self._prefixes
@prefixes.setter
def prefixes(self, prefixes):
"""
Sets the prefixes of this ListObjects.
Prefixes that are common to the results returned by the request if the request specified a delimiter.
:param prefixes: The prefixes of this ListObjects.
:type: list[str]
"""
self._prefixes = prefixes
@property
def next_start_with(self):
"""
Gets the next_start_with of this ListObjects.
The name of the object to use in the `start` parameter to obtain the next page of
a truncated ListObjects response. Avoid entering confidential information.
Example: test/object1.log
:return: The next_start_with of this ListObjects.
:rtype: str
"""
return self._next_start_with
@next_start_with.setter
def next_start_with(self, next_start_with):
"""
Sets the next_start_with of this ListObjects.
The name of the object to use in the `start` parameter to obtain the next page of
a truncated ListObjects response. Avoid entering confidential information.
Example: test/object1.log
:param next_start_with: The next_start_with of this ListObjects.
:type: str
"""
self._next_start_with = next_start_with
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