CostControlPatchProperties Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Edits applied when properties is a non-empty object. Omitted fields retain their existing values; no defaults are applied. The complete merged result may contain at most one notification, including disabled notifications, and one Block action. Exceeding either limit returns HTTP 400 without changing the stored definition. Missing registration returns 403 FeatureNotRegistered before merging or no-op detection. Omitting or removing identity selections does not require this registration; omitted stored selections are preserved, subject to existing validation rules.
public class CostControlPatchProperties : System.ClientModel.Primitives.IJsonModel<Azure.ResourceManager.CognitiveServices.Models.CostControlPatchProperties>, System.ClientModel.Primitives.IPersistableModel<Azure.ResourceManager.CognitiveServices.Models.CostControlPatchProperties>
type CostControlPatchProperties = class
interface IJsonModel<CostControlPatchProperties>
interface IPersistableModel<CostControlPatchProperties>
Public Class CostControlPatchProperties
Implements IJsonModel(Of CostControlPatchProperties), IPersistableModel(Of CostControlPatchProperties)
- Inheritance
-
CostControlPatchProperties
- Implements
Constructors
| Name | Description |
|---|---|
| CostControlPatchProperties() |
Initializes a new instance of CostControlPatchProperties. |
Properties
| Name | Description |
|---|---|
| Amount |
Replaces the positive budget amount, measured in United States dollars for the Cost category or in whole tokens for the Tokens category. |
| Category |
The existing measurement category. Changing it after creation is not supported. |
| Filter |
Replaces the complete traffic filter. Set to null to select all eligible traffic within the owner's scope. |
| Grouping |
Replaces additional grouping. Omission preserves grouping; an empty array restores the owner's default counter. Null is not accepted. |
| Notifications |
Merges notifications by case-insensitive name, preserving existing name casing. Null entries delete notifications; null clears the collection. Omission or an empty object preserves existing notifications. New entries must supply all required notification fields after merging. The complete merged result may contain at most one notification, including disabled notifications; otherwise the request returns HTTP 400. |
| Provider |
The resource provider. If supplied, it must be Microsoft.CognitiveServices and cannot be null. |
| ProviderProperties |
Merges provider-specific settings. Set to null to remove all blocking actions; omission preserves them. |
| TimeGrain |
Replaces the calendar-aligned UTC renewal interval. |
| TimePeriod |
Merges supplied dates into the existing validity window; omitted dates remain unchanged. |