diff --git a/src/dtc/docs/PolicyPool.md b/src/dtc/docs/PolicyPool.md index 3ef2452..665ceac 100644 --- a/src/dtc/docs/PolicyPool.md +++ b/src/dtc/docs/PolicyPool.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **str** | Display name of __Pool__. | [optional] [readonly] **pool_id** | **str** | The resource identifier. | -**weight** | **int** | Weight of __Pool__ to be used for load balancing. Unsigned integer, min 1; max 65535. | +**weight** | **int** | Weight of __Pool__ to be used for load balancing. Unsigned integer, min 1; max 65535. | [optional] ## Example diff --git a/src/dtc/models/policy_pool.py b/src/dtc/models/policy_pool.py index cf7b177..79146cd 100644 --- a/src/dtc/models/policy_pool.py +++ b/src/dtc/models/policy_pool.py @@ -29,7 +29,8 @@ class PolicyPool(BaseModel): name: Optional[StrictStr] = Field(default=None, description="Display name of __Pool__.") pool_id: StrictStr = Field(description="The resource identifier.") - weight: StrictInt = Field( + weight: Optional[StrictInt] = Field( + default=None, description= "Weight of __Pool__ to be used for load balancing. Unsigned integer, min 1; max 65535." )