Class R2Bucket
- Namespace
- Cloudflare.NET.Accounts.Models
- Assembly
- Cloudflare.NET.dll
Represents an R2 bucket returned by the Cloudflare API.
public record R2Bucket : IEquatable<R2Bucket>
- Inheritance
-
R2Bucket
- Implements
- Inherited Members
Constructors
R2Bucket(string, DateTime, R2LocationHint?, R2Jurisdiction?, R2StorageClass?)
Represents an R2 bucket returned by the Cloudflare API.
public R2Bucket(string Name, DateTime CreationDate, R2LocationHint? Location, R2Jurisdiction? Jurisdiction, R2StorageClass? StorageClass)
Parameters
NamestringThe name of the created bucket.
CreationDateDateTimeThe date and time the bucket was created.
LocationR2LocationHint?The location hint for the bucket indicating geographic placement.
JurisdictionR2Jurisdiction?The jurisdiction of the bucket guaranteeing data residency.
StorageClassR2StorageClass?The default storage class for new objects in the bucket.
Properties
CreationDate
The date and time the bucket was created.
[JsonPropertyName("creation_date")]
public DateTime CreationDate { get; init; }
Property Value
Jurisdiction
The jurisdiction of the bucket guaranteeing data residency.
[JsonPropertyName("jurisdiction")]
public R2Jurisdiction? Jurisdiction { get; init; }
Property Value
Location
The location hint for the bucket indicating geographic placement.
[JsonPropertyName("location")]
public R2LocationHint? Location { get; init; }
Property Value
Name
The name of the created bucket.
[JsonPropertyName("name")]
public string Name { get; init; }
Property Value
StorageClass
The default storage class for new objects in the bucket.
[JsonPropertyName("storage_class")]
public R2StorageClass? StorageClass { get; init; }