Table of Contents

Class SubscriptionComponent

Namespace
Cloudflare.NET.Subscriptions.Models
Assembly
Cloudflare.NET.dll

Represents a component value in a subscription.

Components are configurable features within a subscription that can have variable quantities or settings, such as additional page rules or workers.

public record SubscriptionComponent : IEquatable<SubscriptionComponent>
Inheritance
SubscriptionComponent
Implements
Inherited Members

Constructors

SubscriptionComponent(string, int, int?, decimal?)

Represents a component value in a subscription.

Components are configurable features within a subscription that can have variable quantities or settings, such as additional page rules or workers.

public SubscriptionComponent(string Name, int Value, int? Default = null, decimal? Price = null)

Parameters

Name string

Component name (e.g., "page_rules", "workers").

Value int

Current value/quantity for this component.

Default int?

Default value for this component (if applicable).

Price decimal?

Additional price for this component (if applicable).

Properties

Default

Default value for this component (if applicable).

[JsonPropertyName("default")]
public int? Default { get; init; }

Property Value

int?

Name

Component name (e.g., "page_rules", "workers").

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

Property Value

string

Price

Additional price for this component (if applicable).

[JsonPropertyName("price")]
public decimal? Price { get; init; }

Property Value

decimal?

Value

Current value/quantity for this component.

[JsonPropertyName("value")]
public int Value { get; init; }

Property Value

int