Skip to content

[NetworkLoadBalancer] Definitions are missing in the SDK #852

@aquamatthias

Description

@aquamatthias

I work with different resource types and rely on proper typing in the SDK.
NetworkLoadBalancers define a health checker and this health checker defines DNS Details.
The parameter rcodes is defined like this:

        :param rcodes:
            The value to assign to the rcodes property of this DnsHealthCheckerDetails.
        :type rcodes: list[oci.network_load_balancer.models.DnsHealthCheckRCodes]

but the related type oci.network_load_balancer.models.DnsHealthCheckRCodes does not exist.

The property let me guess that this is a string:

    @property
    def rcodes(self):
        """
        Gets the rcodes of this DnsHealthCheckerDetails.
        An array that represents accepetable RCODE values for DNS query response.
        Example: [\"NOERROR\", \"NXDOMAIN\"]

Looking at the go definition, this is actually an enumeration.
Ideally this would be reflected correctly in the python SDK as well.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions