ObjectStorageLocation¶
-
class
oci.usage_api.models.
ObjectStorageLocation
(**kwargs)¶ Bases:
oci.usage_api.models.result_location.ResultLocation
The object storage location where usage or cost CSVs will be uploaded.
Attributes
LOCATION_TYPE_OBJECT_STORAGE
str(object=’’) -> str bucket_name
[Required] Gets the bucket_name of this ObjectStorageLocation. location_type
[Required] Gets the location_type of this ResultLocation. namespace
[Required] Gets the namespace of this ObjectStorageLocation. region
[Required] Gets the region of this ObjectStorageLocation. Methods
__init__
(**kwargs)Initializes a new ObjectStorageLocation object with values from keyword arguments. get_subtype
(object_dictionary)Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype. -
LOCATION_TYPE_OBJECT_STORAGE
= 'OBJECT_STORAGE'¶
-
__init__
(**kwargs)¶ Initializes a new ObjectStorageLocation object with values from keyword arguments. The default value of the
location_type
attribute of this class isOBJECT_STORAGE
and it should not be changed. The following keyword arguments are supported (corresponding to the getters/setters of this class):Parameters: - location_type (str) – The value to assign to the location_type property of this ObjectStorageLocation. Allowed values for this property are: “OBJECT_STORAGE”
- region (str) – The value to assign to the region property of this ObjectStorageLocation.
- namespace (str) – The value to assign to the namespace property of this ObjectStorageLocation.
- bucket_name (str) – The value to assign to the bucket_name property of this ObjectStorageLocation.
-
bucket_name
¶ [Required] Gets the bucket_name of this ObjectStorageLocation. The bucket name where usage or cost CSVs will be uploaded.
Returns: The bucket_name of this ObjectStorageLocation. Return type: str
-
static
get_subtype
(object_dictionary)¶ Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype.
-
location_type
¶ [Required] Gets the location_type of this ResultLocation. Defines the type of location where the usage or cost CSVs will be stored.
Allowed values for this property are: “OBJECT_STORAGE”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
Returns: The location_type of this ResultLocation. Return type: str
-
namespace
¶ [Required] Gets the namespace of this ObjectStorageLocation. The namespace needed to determine the object storage bucket.
Returns: The namespace of this ObjectStorageLocation. Return type: str
-
region
¶ [Required] Gets the region of this ObjectStorageLocation. The destination Object Store Region specified by the customer.
Returns: The region of this ObjectStorageLocation. Return type: str
-