Table of Contents

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

Name string

The name of the created bucket.

CreationDate DateTime

The date and time the bucket was created.

Location R2LocationHint?

The location hint for the bucket indicating geographic placement.

Jurisdiction R2Jurisdiction?

The jurisdiction of the bucket guaranteeing data residency.

StorageClass R2StorageClass?

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

DateTime

Jurisdiction

The jurisdiction of the bucket guaranteeing data residency.

[JsonPropertyName("jurisdiction")]
public R2Jurisdiction? Jurisdiction { get; init; }

Property Value

R2Jurisdiction?

Location

The location hint for the bucket indicating geographic placement.

[JsonPropertyName("location")]
public R2LocationHint? Location { get; init; }

Property Value

R2LocationHint?

Name

The name of the created bucket.

[JsonPropertyName("name")]
public string Name { get; init; }

Property Value

string

StorageClass

The default storage class for new objects in the bucket.

[JsonPropertyName("storage_class")]
public R2StorageClass? StorageClass { get; init; }

Property Value

R2StorageClass?