Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
128 changes: 128 additions & 0 deletions src/dns_config/api/lbdn_api.py

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions src/dns_config/docs/ACL.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ Named ACL (Access Control List).
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**comment** | **str** | Optional. Comment for ACL. | [optional]
**compartment_id** | **str** | The access view associated with the object. If no access view is associated with the object, the value defaults to empty. | [optional]
**id** | **str** | The resource identifier. | [optional] [readonly]
**list** | [**List[ACLItem]**](ACLItem.md) | Optional. Ordered list of access control elements. Elements are evaluated in order to determine access. If evaluation reaches the end of the list then access is denied. | [optional]
**name** | **str** | ACL object name. |
Expand Down
1 change: 1 addition & 0 deletions src/dns_config/docs/AuthZone.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ Authoritative zone.
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**comment** | **str** | Optional. Comment for zone configuration. | [optional]
**compartment_id** | **str** | The access view associated with the object. If no access view is associated with the object, the value defaults to empty. | [optional]
**created_at** | **datetime** | Time when the object has been created. | [optional] [readonly]
**disabled** | **bool** | Optional. _true_ to disable object. A disabled object is effectively non-existent when generating configuration. | [optional]
**external_primaries** | [**List[ExternalPrimary]**](ExternalPrimary.md) | Optional. DNS primaries external to BloxOne DDI. Order is not significant. | [optional]
Expand Down
1 change: 1 addition & 0 deletions src/dns_config/docs/Delegation.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ DNS zone delegation.
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**comment** | **str** | Optional. Comment for zone delegation. | [optional]
**compartment_id** | **str** | The access view associated with the object. If no access view is associated with the object, the value defaults to empty. | [optional]
**delegation_servers** | [**List[DelegationServer]**](DelegationServer.md) | Required. DNS zone delegation servers. Order is not significant. | [optional]
**disabled** | **bool** | Optional. _true_ to disable object. A disabled object is effectively non-existent when generating resource records. | [optional]
**fqdn** | **str** | Delegation FQDN. The FQDN supplied at creation will be converted to canonical form. Read-only after creation. | [optional]
Expand Down
1 change: 1 addition & 0 deletions src/dns_config/docs/ForwardZone.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ Forward zone
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**comment** | **str** | Optional. Comment for zone configuration. | [optional]
**compartment_id** | **str** | The access view associated with the object. If no access view is associated with the object, the value defaults to empty. | [optional]
**created_at** | **datetime** | The timestamp when the object has been created. | [optional] [readonly]
**disabled** | **bool** | Optional. _true_ to disable object. A disabled object is effectively non-existent when generating configuration. | [optional]
**external_forwarders** | [**List[Forwarder]**](Forwarder.md) | Optional. External DNS servers to forward to. Order is not significant. | [optional]
Expand Down
12 changes: 8 additions & 4 deletions src/dns_config/docs/LbdnApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Method | HTTP request | Description


# **create**
> CreateLBDNResponse create(body)
> CreateLBDNResponse create(body, inherit=inherit)

Create the __LBDN__ object.

Expand Down Expand Up @@ -65,6 +65,7 @@ with ApiClient(configuration) as api_client:
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**body** | [**LBDN**](LBDN.md)| |
**inherit** | **str**| This parameter is used for getting inheritance_sources. Allowed values: * _none_, * _partial_, * _full_. Defaults to _none | [optional]

### Return type

Expand Down Expand Up @@ -162,7 +163,7 @@ void (empty response body)
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **list**
> ListLBDNResponse list(fields=fields, filter=filter, offset=offset, limit=limit, page_token=page_token, order_by=order_by, tfilter=tfilter, torder_by=torder_by)
> ListLBDNResponse list(fields=fields, filter=filter, offset=offset, limit=limit, page_token=page_token, order_by=order_by, tfilter=tfilter, torder_by=torder_by, inherit=inherit)

List __LBDN__ objects.

Expand Down Expand Up @@ -221,6 +222,7 @@ Name | Type | Description | Notes
**order_by** | **str**| A collection of response resources can be sorted by their JSON tags. For a 'flat' resource, the tag name is straightforward. If sorting is allowed on non-flat hierarchical resources, the service should implement a qualified naming scheme such as dot-qualification to reference data down the hierarchy. If a resource does not have the specified tag, its value is assumed to be null.) Specify this parameter as a comma-separated list of JSON tag names. The sort direction can be specified by a suffix separated by whitespace before the tag name. The suffix 'asc' sorts the data in ascending order. The suffix 'desc' sorts the data in descending order. If no suffix is specified the data is sorted in ascending order. | [optional]
**tfilter** | **str**| This parameter is used for filtering by tags. | [optional]
**torder_by** | **str**| This parameter is used for sorting by tags. | [optional]
**inherit** | **str**| This parameter is used for getting inheritance_sources. Allowed values: * _none_, * _partial_, * _full_. Defaults to _none | [optional]

### Return type

Expand All @@ -244,7 +246,7 @@ Name | Type | Description | Notes
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **read**
> ReadLBDNResponse read(id, fields=fields)
> ReadLBDNResponse read(id, fields=fields, inherit=inherit)

Read the __LBDN__ object.

Expand Down Expand Up @@ -298,6 +300,7 @@ Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**id** | **str**| An application specific resource identity of a resource |
**fields** | **str**| A collection of response resources can be transformed by specifying a set of JSON tags to be returned. For a “flat” resource, the tag name is straightforward. If field selection is allowed on non-flat hierarchical resources, the service should implement a qualified naming scheme such as dot-qualification to reference data down the hierarchy. If a resource does not have the specified tag, the tag does not appear in the output resource. Specify this parameter as a comma-separated list of JSON tag names. | [optional]
**inherit** | **str**| This parameter is used for getting inheritance_sources. Allowed values: * _none_, * _partial_, * _full_. Defaults to _none | [optional]

### Return type

Expand All @@ -321,7 +324,7 @@ Name | Type | Description | Notes
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **update**
> UpdateLBDNResponse update(id, body)
> UpdateLBDNResponse update(id, body, inherit=inherit)

Update the __LBDN__ object.

Expand Down Expand Up @@ -376,6 +379,7 @@ Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**id** | **str**| An application specific resource identity of a resource |
**body** | [**LBDN**](LBDN.md)| |
**inherit** | **str**| This parameter is used for getting inheritance_sources. Allowed values: * _none_, * _partial_, * _full_. Defaults to _none | [optional]

### Return type

Expand Down
1 change: 1 addition & 0 deletions src/dns_config/docs/View.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**add_edns_option_in_outgoing_query** | **bool** | _add_edns_option_in_outgoing_query_ adds client IP, MAC address and view name into outgoing recursive query. Defaults to _false_. | [optional]
**comment** | **str** | Optional. Comment for view. | [optional]
**compartment_id** | **str** | The access view associated with the object. If no access view is associated with the object, the value defaults to empty. | [optional]
**created_at** | **datetime** | The timestamp when the object has been created. | [optional] [readonly]
**custom_root_ns** | [**List[RootNS]**](RootNS.md) | Optional. List of custom root nameservers. The order does not matter. Error if empty while _custom_root_ns_enabled_ is _true_. Error if there are duplicate items in the list. Defaults to empty. | [optional]
**custom_root_ns_enabled** | **bool** | Optional. _true_ to use custom root nameservers instead of the default ones. The _custom_root_ns_ is validated when enabled. Defaults to _false_. | [optional]
Expand Down
9 changes: 8 additions & 1 deletion src/dns_config/models/acl.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,11 @@ class ACL(BaseModel):
# noqa: E501
comment: Optional[StrictStr] = Field(
default=None, description="Optional. Comment for ACL.")
compartment_id: Optional[StrictStr] = Field(
default=None,
description=
"The access view associated with the object. If no access view is associated with the object, the value defaults to empty."
)
id: Optional[StrictStr] = Field(default=None,
description="The resource identifier.")
list: Optional[List[ACLItem]] = Field(
Expand All @@ -43,7 +48,7 @@ class ACL(BaseModel):
description="Tagging specifics.")
additional_properties: Dict[str, Any] = {}
__properties: ClassVar[List[str]] = [
"comment", "id", "list", "name", "tags"
"comment", "compartment_id", "id", "list", "name", "tags"
]

model_config = ConfigDict(
Expand Down Expand Up @@ -114,6 +119,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
_obj = cls.model_validate({
"comment":
obj.get("comment"),
"compartment_id":
obj.get("compartment_id"),
"id":
obj.get("id"),
"list": [ACLItem.from_dict(_item) for _item in obj["list"]]
Expand Down
13 changes: 10 additions & 3 deletions src/dns_config/models/auth_zone.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,11 @@ class AuthZone(BaseModel):
# noqa: E501
comment: Optional[StrictStr] = Field(
default=None, description="Optional. Comment for zone configuration.")
compartment_id: Optional[StrictStr] = Field(
default=None,
description=
"The access view associated with the object. If no access view is associated with the object, the value defaults to empty."
)
created_at: Optional[datetime] = Field(
default=None, description="Time when the object has been created.")
disabled: Optional[StrictBool] = Field(
Expand Down Expand Up @@ -148,9 +153,9 @@ class AuthZone(BaseModel):
default=None, description="Optional. ZoneAuthority.")
additional_properties: Dict[str, Any] = {}
__properties: ClassVar[List[str]] = [
"comment", "created_at", "disabled", "external_primaries",
"external_providers", "external_secondaries", "fqdn",
"gss_tsig_enabled", "id", "inheritance_assigned_hosts",
"comment", "compartment_id", "created_at", "disabled",
"external_primaries", "external_providers", "external_secondaries",
"fqdn", "gss_tsig_enabled", "id", "inheritance_assigned_hosts",
"inheritance_sources", "initial_soa_serial", "internal_secondaries",
"mapped_subnet", "mapping", "notify", "nsgs", "parent", "primary_type",
"protocol_fqdn", "query_acl", "tags", "transfer_acl", "update_acl",
Expand Down Expand Up @@ -304,6 +309,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
_obj = cls.model_validate({
"comment":
obj.get("comment"),
"compartment_id":
obj.get("compartment_id"),
"created_at":
obj.get("created_at"),
"disabled":
Expand Down
11 changes: 9 additions & 2 deletions src/dns_config/models/delegation.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,11 @@ class Delegation(BaseModel):
# noqa: E501
comment: Optional[StrictStr] = Field(
default=None, description="Optional. Comment for zone delegation.")
compartment_id: Optional[StrictStr] = Field(
default=None,
description=
"The access view associated with the object. If no access view is associated with the object, the value defaults to empty."
)
delegation_servers: Optional[List[DelegationServer]] = Field(
default=None,
description=
Expand All @@ -57,8 +62,8 @@ class Delegation(BaseModel):
description="The resource identifier.")
additional_properties: Dict[str, Any] = {}
__properties: ClassVar[List[str]] = [
"comment", "delegation_servers", "disabled", "fqdn", "id", "parent",
"protocol_fqdn", "tags", "view"
"comment", "compartment_id", "delegation_servers", "disabled", "fqdn",
"id", "parent", "protocol_fqdn", "tags", "view"
]

model_config = ConfigDict(
Expand Down Expand Up @@ -131,6 +136,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
_obj = cls.model_validate({
"comment":
obj.get("comment"),
"compartment_id":
obj.get("compartment_id"),
"delegation_servers": [
DelegationServer.from_dict(_item)
for _item in obj["delegation_servers"]
Expand Down
15 changes: 11 additions & 4 deletions src/dns_config/models/forward_zone.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,11 @@ class ForwardZone(BaseModel):
# noqa: E501
comment: Optional[StrictStr] = Field(
default=None, description="Optional. Comment for zone configuration.")
compartment_id: Optional[StrictStr] = Field(
default=None,
description=
"The access view associated with the object. If no access view is associated with the object, the value defaults to empty."
)
created_at: Optional[datetime] = Field(
default=None,
description="The timestamp when the object has been created.")
Expand Down Expand Up @@ -88,10 +93,10 @@ class ForwardZone(BaseModel):
default=None, description="The list of a forward zone warnings.")
additional_properties: Dict[str, Any] = {}
__properties: ClassVar[List[str]] = [
"comment", "created_at", "disabled", "external_forwarders",
"forward_only", "fqdn", "hosts", "id", "internal_forwarders",
"mapped_subnet", "mapping", "nsgs", "parent", "protocol_fqdn", "tags",
"updated_at", "view", "warnings"
"comment", "compartment_id", "created_at", "disabled",
"external_forwarders", "forward_only", "fqdn", "hosts", "id",
"internal_forwarders", "mapped_subnet", "mapping", "nsgs", "parent",
"protocol_fqdn", "tags", "updated_at", "view", "warnings"
]

model_config = ConfigDict(
Expand Down Expand Up @@ -181,6 +186,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
_obj = cls.model_validate({
"comment":
obj.get("comment"),
"compartment_id":
obj.get("compartment_id"),
"created_at":
obj.get("created_at"),
"disabled":
Expand Down
11 changes: 9 additions & 2 deletions src/dns_config/models/view.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,11 @@ class View(BaseModel):
)
comment: Optional[StrictStr] = Field(
default=None, description="Optional. Comment for view.")
compartment_id: Optional[StrictStr] = Field(
default=None,
description=
"The access view associated with the object. If no access view is associated with the object, the value defaults to empty."
)
created_at: Optional[datetime] = Field(
default=None,
description="The timestamp when the object has been created.")
Expand Down Expand Up @@ -251,8 +256,8 @@ class View(BaseModel):
default=None, description="Optional. ZoneAuthority.")
additional_properties: Dict[str, Any] = {}
__properties: ClassVar[List[str]] = [
"add_edns_option_in_outgoing_query", "comment", "created_at",
"custom_root_ns", "custom_root_ns_enabled", "disabled",
"add_edns_option_in_outgoing_query", "comment", "compartment_id",
"created_at", "custom_root_ns", "custom_root_ns_enabled", "disabled",
"dnssec_enable_validation", "dnssec_enabled", "dnssec_root_keys",
"dnssec_trust_anchors", "dnssec_validate_expiry", "dtc_config",
"ecs_enabled", "ecs_forwarding", "ecs_prefix_v4", "ecs_prefix_v6",
Expand Down Expand Up @@ -437,6 +442,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
obj.get("add_edns_option_in_outgoing_query"),
"comment":
obj.get("comment"),
"compartment_id":
obj.get("compartment_id"),
"created_at":
obj.get("created_at"),
"custom_root_ns":
Expand Down
Loading