File manager - Edit - /usr/lib/mysqlsh/lib/python3.9/site-packages/oci/gdp/models/bucket_details_definition.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: 20230301 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 BucketDetailsDefinition(object): """ Information about a particular bucket. """ #: A constant which can be used with the bucket_type property of a BucketDetailsDefinition. #: This constant has a value of "SOURCE" BUCKET_TYPE_SOURCE = "SOURCE" #: A constant which can be used with the bucket_type property of a BucketDetailsDefinition. #: This constant has a value of "TRANSFER" BUCKET_TYPE_TRANSFER = "TRANSFER" #: A constant which can be used with the bucket_type property of a BucketDetailsDefinition. #: This constant has a value of "REJECT" BUCKET_TYPE_REJECT = "REJECT" #: A constant which can be used with the bucket_type property of a BucketDetailsDefinition. #: This constant has a value of "DESTINATION" BUCKET_TYPE_DESTINATION = "DESTINATION" def __init__(self, **kwargs): """ Initializes a new BucketDetailsDefinition object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class): :param bucket_type: The value to assign to the bucket_type property of this BucketDetailsDefinition. Allowed values for this property are: "SOURCE", "TRANSFER", "REJECT", "DESTINATION", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type bucket_type: str :param namespace: The value to assign to the namespace property of this BucketDetailsDefinition. :type namespace: str :param name: The value to assign to the name property of this BucketDetailsDefinition. :type name: str :param id: The value to assign to the id property of this BucketDetailsDefinition. :type id: str """ self.swagger_types = { 'bucket_type': 'str', 'namespace': 'str', 'name': 'str', 'id': 'str' } self.attribute_map = { 'bucket_type': 'bucketType', 'namespace': 'namespace', 'name': 'name', 'id': 'id' } self._bucket_type = None self._namespace = None self._name = None self._id = None @property def bucket_type(self): """ **[Required]** Gets the bucket_type of this BucketDetailsDefinition. Type of bucket. SENDER pipelines can be SOURCE, TRANSFER, REJECT, or FAILED. RECEIVER pipelines have a DESTINATION bucket. Allowed values for this property are: "SOURCE", "TRANSFER", "REJECT", "DESTINATION", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :return: The bucket_type of this BucketDetailsDefinition. :rtype: str """ return self._bucket_type @bucket_type.setter def bucket_type(self, bucket_type): """ Sets the bucket_type of this BucketDetailsDefinition. Type of bucket. SENDER pipelines can be SOURCE, TRANSFER, REJECT, or FAILED. RECEIVER pipelines have a DESTINATION bucket. :param bucket_type: The bucket_type of this BucketDetailsDefinition. :type: str """ allowed_values = ["SOURCE", "TRANSFER", "REJECT", "DESTINATION"] if not value_allowed_none_or_none_sentinel(bucket_type, allowed_values): bucket_type = 'UNKNOWN_ENUM_VALUE' self._bucket_type = bucket_type @property def namespace(self): """ **[Required]** Gets the namespace of this BucketDetailsDefinition. Namespace of the bucket. :return: The namespace of this BucketDetailsDefinition. :rtype: str """ return self._namespace @namespace.setter def namespace(self, namespace): """ Sets the namespace of this BucketDetailsDefinition. Namespace of the bucket. :param namespace: The namespace of this BucketDetailsDefinition. :type: str """ self._namespace = namespace @property def name(self): """ **[Required]** Gets the name of this BucketDetailsDefinition. Name of the bucket. :return: The name of this BucketDetailsDefinition. :rtype: str """ return self._name @name.setter def name(self, name): """ Sets the name of this BucketDetailsDefinition. Name of the bucket. :param name: The name of this BucketDetailsDefinition. :type: str """ self._name = name @property def id(self): """ **[Required]** Gets the id of this BucketDetailsDefinition. OCID of the bucket. :return: The id of this BucketDetailsDefinition. :rtype: str """ return self._id @id.setter def id(self, id): """ Sets the id of this BucketDetailsDefinition. OCID of the bucket. :param id: The id of this BucketDetailsDefinition. :type: str """ self._id = id 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