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
NamestringComponent name (e.g., "page_rules", "workers").
ValueintCurrent value/quantity for this component.
Defaultint?Default value for this component (if applicable).
Pricedecimal?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
Price
Additional price for this component (if applicable).
[JsonPropertyName("price")]
public decimal? Price { get; init; }
Property Value
Value
Current value/quantity for this component.
[JsonPropertyName("value")]
public int Value { get; init; }