Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetSchema ¶
func GetSchema(opts ...networkSchemaOpts) superschema.Schema
networkSchema
This function is used to create the schema for the catalog resource and datasource. Default is to create a resource schema. If you want to create a datasource schema you must pass in the withDataSource() option.
func SetIsolated ¶
func SetIsolated() networkSchemaOpts
Set bool to true to create a schema for an isolated network.
func SetIsolatedVapp ¶
func SetIsolatedVapp() networkSchemaOpts
Set bool to true to create a schema for an isolated vApp network.
func SetRouted ¶
func SetRouted() networkSchemaOpts
Set bool to true to create a schema for a routed network.
func SetRoutedVapp ¶
func SetRoutedVapp() networkSchemaOpts
Types ¶
type GlobalResourceModel ¶
type GlobalResourceModel struct { // BASE ID types.String Name types.String Description types.String Gateway types.String PrefixLength types.Int64 DNS1 types.String DNS2 types.String DNSSuffix types.String StaticIPPool types.Set VDCIDOrVDCGroupID types.String // ROUTED EdgeGatewayID types.String EdgegatewayName types.String InterfaceType types.String }
type Kind ¶
type Kind struct {
TypeOfNetwork Type
}
func (Kind) SetNetworkAPIObject ¶
func (k Kind) SetNetworkAPIObject(ctx context.Context, data GlobalResourceModel) (*govcdtypes.OpenApiOrgVdcNetwork, diag.Diagnostics)
SetNetowrkAPIObject set the network object.
type Network ¶
type Network interface {
SetNetworkAPIObject(ctx context.Context, plan any) (*govcdtypes.OpenApiOrgVdcNetwork, diag.Diagnostics)
}
type StaticIPPool ¶
Click to show internal directories.
Click to hide internal directories.