AllowedDomain

class oci.generative_ai.models.AllowedDomain(**kwargs)

Bases: object

Hostnames and ports allowed by a sandbox network policy.

Methods:

__init__(**kwargs)

Initializes a new AllowedDomain object with values from keyword arguments.

Attributes:

hostnames

[Required] Gets the hostnames of this AllowedDomain.

ports

[Required] Gets the ports of this AllowedDomain.

__init__(**kwargs)

Initializes a new AllowedDomain object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):

Parameters
  • hostnames (list[str]) – The value to assign to the hostnames property of this AllowedDomain.

  • ports (list[int]) – The value to assign to the ports property of this AllowedDomain.

property hostnames

[Required] Gets the hostnames of this AllowedDomain. Hostnames allowed by this domain rule.

Returns

The hostnames of this AllowedDomain.

Return type

list[str]

property ports

[Required] Gets the ports of this AllowedDomain. Ports allowed by this domain rule.

Returns

The ports of this AllowedDomain.

Return type

list[int]