ObjectStorageLocation¶
- class oci.usage_api.models.ObjectStorageLocation(**kwargs)¶
Bases:
ResultLocationThe object storage location where usage or cost CSVs will be uploaded.
Attributes:
A constant which can be used with the location_type property of a ResultLocation.
[Required] Gets the bucket_name of this ObjectStorageLocation.
[Required] Gets the location_type of this ResultLocation.
[Required] Gets the namespace of this ObjectStorageLocation.
[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'¶
A constant which can be used with the location_type property of a ResultLocation. This constant has a value of “OBJECT_STORAGE”
- __init__(**kwargs)¶
Initializes a new ObjectStorageLocation object with values from keyword arguments. The default value of the
location_typeattribute of this class isOBJECT_STORAGEand 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.
- property 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.
- property 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
- property 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
- property 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