Documentation ¶
Index ¶
- func PossibleValuesForTransportProtocol() []string
- func PossibleValuesForUsagePermissionType() []string
- func ValidateLabID(input interface{}, key string) (warnings []string, errors []error)
- func ValidateVirtualNetworkID(input interface{}, key string) (warnings []string, errors []error)
- type CreateOrUpdateOperationResponse
- type DeleteOperationResponse
- type ExternalSubnet
- type GetOperationOptions
- type GetOperationResponse
- type LabId
- type ListCompleteResult
- type ListOperationOptions
- type ListOperationResponse
- type Port
- type Subnet
- type SubnetOverride
- type SubnetSharedPublicIPAddressConfiguration
- type TransportProtocol
- type UpdateOperationResponse
- type UpdateResource
- type UsagePermissionType
- type VirtualNetwork
- type VirtualNetworkId
- type VirtualNetworkOperationPredicate
- type VirtualNetworkProperties
- type VirtualNetworksClient
- func (c VirtualNetworksClient) CreateOrUpdate(ctx context.Context, id VirtualNetworkId, input VirtualNetwork) (result CreateOrUpdateOperationResponse, err error)
- func (c VirtualNetworksClient) CreateOrUpdateThenPoll(ctx context.Context, id VirtualNetworkId, input VirtualNetwork) error
- func (c VirtualNetworksClient) Delete(ctx context.Context, id VirtualNetworkId) (result DeleteOperationResponse, err error)
- func (c VirtualNetworksClient) DeleteThenPoll(ctx context.Context, id VirtualNetworkId) error
- func (c VirtualNetworksClient) Get(ctx context.Context, id VirtualNetworkId, options GetOperationOptions) (result GetOperationResponse, err error)
- func (c VirtualNetworksClient) List(ctx context.Context, id LabId, options ListOperationOptions) (result ListOperationResponse, err error)
- func (c VirtualNetworksClient) ListComplete(ctx context.Context, id LabId, options ListOperationOptions) (ListCompleteResult, error)
- func (c VirtualNetworksClient) ListCompleteMatchingPredicate(ctx context.Context, id LabId, options ListOperationOptions, ...) (result ListCompleteResult, err error)
- func (c VirtualNetworksClient) Update(ctx context.Context, id VirtualNetworkId, input UpdateResource) (result UpdateOperationResponse, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PossibleValuesForTransportProtocol ¶
func PossibleValuesForTransportProtocol() []string
func PossibleValuesForUsagePermissionType ¶
func PossibleValuesForUsagePermissionType() []string
func ValidateLabID ¶
ValidateLabID checks that 'input' can be parsed as a Lab ID
func ValidateVirtualNetworkID ¶
ValidateVirtualNetworkID checks that 'input' can be parsed as a Virtual Network ID
Types ¶
type DeleteOperationResponse ¶
type ExternalSubnet ¶
type GetOperationOptions ¶
type GetOperationOptions struct {
Expand *string
}
func DefaultGetOperationOptions ¶
func DefaultGetOperationOptions() GetOperationOptions
func (GetOperationOptions) ToHeaders ¶ added in v0.20230815.1165905
func (o GetOperationOptions) ToHeaders() *client.Headers
func (GetOperationOptions) ToOData ¶ added in v0.20230815.1165905
func (o GetOperationOptions) ToOData() *odata.Query
func (GetOperationOptions) ToQuery ¶ added in v0.20230815.1165905
func (o GetOperationOptions) ToQuery() *client.QueryParams
type GetOperationResponse ¶
type GetOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *VirtualNetwork }
type LabId ¶
LabId is a struct representing the Resource ID for a Lab
func ParseLabID ¶
ParseLabID parses 'input' into a LabId
func ParseLabIDInsensitively ¶
ParseLabIDInsensitively parses 'input' case-insensitively into a LabId note: this method should only be used for API response data and not user input
func (LabId) Segments ¶
func (id LabId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Lab ID
type ListCompleteResult ¶
type ListCompleteResult struct {
Items []VirtualNetwork
}
type ListOperationOptions ¶
func DefaultListOperationOptions ¶
func DefaultListOperationOptions() ListOperationOptions
func (ListOperationOptions) ToHeaders ¶ added in v0.20230815.1165905
func (o ListOperationOptions) ToHeaders() *client.Headers
func (ListOperationOptions) ToOData ¶ added in v0.20230815.1165905
func (o ListOperationOptions) ToOData() *odata.Query
func (ListOperationOptions) ToQuery ¶ added in v0.20230815.1165905
func (o ListOperationOptions) ToQuery() *client.QueryParams
type ListOperationResponse ¶
type ListOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *[]VirtualNetwork }
type Port ¶
type Port struct { BackendPort *int64 `json:"backendPort,omitempty"` TransportProtocol *TransportProtocol `json:"transportProtocol,omitempty"` }
type Subnet ¶
type Subnet struct { AllowPublicIP *UsagePermissionType `json:"allowPublicIp,omitempty"` LabSubnetName *string `json:"labSubnetName,omitempty"` ResourceId *string `json:"resourceId,omitempty"` }
type SubnetOverride ¶
type SubnetOverride struct { LabSubnetName *string `json:"labSubnetName,omitempty"` ResourceId *string `json:"resourceId,omitempty"` UseInVMCreationPermission *UsagePermissionType `json:"useInVmCreationPermission,omitempty"` UsePublicIPAddressPermission *UsagePermissionType `json:"usePublicIpAddressPermission,omitempty"` VirtualNetworkPoolName *string `json:"virtualNetworkPoolName,omitempty"` }
type SubnetSharedPublicIPAddressConfiguration ¶
type SubnetSharedPublicIPAddressConfiguration struct {
}type TransportProtocol ¶
type TransportProtocol string
const ( TransportProtocolTcp TransportProtocol = "Tcp" TransportProtocolUdp TransportProtocol = "Udp" )
func (*TransportProtocol) UnmarshalJSON ¶ added in v0.20230815.1165905
func (s *TransportProtocol) UnmarshalJSON(bytes []byte) error
type UpdateOperationResponse ¶
type UpdateOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *VirtualNetwork }
type UpdateResource ¶
type UsagePermissionType ¶
type UsagePermissionType string
const ( UsagePermissionTypeAllow UsagePermissionType = "Allow" UsagePermissionTypeDefault UsagePermissionType = "Default" UsagePermissionTypeDeny UsagePermissionType = "Deny" )
func (*UsagePermissionType) UnmarshalJSON ¶ added in v0.20230815.1165905
func (s *UsagePermissionType) UnmarshalJSON(bytes []byte) error
type VirtualNetwork ¶
type VirtualNetworkId ¶
type VirtualNetworkId struct { SubscriptionId string ResourceGroupName string LabName string VirtualNetworkName string }
VirtualNetworkId is a struct representing the Resource ID for a Virtual Network
func NewVirtualNetworkID ¶
func NewVirtualNetworkID(subscriptionId string, resourceGroupName string, labName string, virtualNetworkName string) VirtualNetworkId
NewVirtualNetworkID returns a new VirtualNetworkId struct
func ParseVirtualNetworkID ¶
func ParseVirtualNetworkID(input string) (*VirtualNetworkId, error)
ParseVirtualNetworkID parses 'input' into a VirtualNetworkId
func ParseVirtualNetworkIDInsensitively ¶
func ParseVirtualNetworkIDInsensitively(input string) (*VirtualNetworkId, error)
ParseVirtualNetworkIDInsensitively parses 'input' case-insensitively into a VirtualNetworkId note: this method should only be used for API response data and not user input
func (VirtualNetworkId) ID ¶
func (id VirtualNetworkId) ID() string
ID returns the formatted Virtual Network ID
func (VirtualNetworkId) Segments ¶
func (id VirtualNetworkId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Virtual Network ID
func (VirtualNetworkId) String ¶
func (id VirtualNetworkId) String() string
String returns a human-readable description of this Virtual Network ID
type VirtualNetworkOperationPredicate ¶
type VirtualNetworkOperationPredicate struct { Id *string Location *string Name *string Type *string }
func (VirtualNetworkOperationPredicate) Matches ¶
func (p VirtualNetworkOperationPredicate) Matches(input VirtualNetwork) bool
type VirtualNetworkProperties ¶
type VirtualNetworkProperties struct { AllowedSubnets *[]Subnet `json:"allowedSubnets,omitempty"` CreatedDate *string `json:"createdDate,omitempty"` Description *string `json:"description,omitempty"` ExternalProviderResourceId *string `json:"externalProviderResourceId,omitempty"` ExternalSubnets *[]ExternalSubnet `json:"externalSubnets,omitempty"` ProvisioningState *string `json:"provisioningState,omitempty"` SubnetOverrides *[]SubnetOverride `json:"subnetOverrides,omitempty"` UniqueIdentifier *string `json:"uniqueIdentifier,omitempty"` }
func (*VirtualNetworkProperties) GetCreatedDateAsTime ¶
func (o *VirtualNetworkProperties) GetCreatedDateAsTime() (*time.Time, error)
func (*VirtualNetworkProperties) SetCreatedDateAsTime ¶
func (o *VirtualNetworkProperties) SetCreatedDateAsTime(input time.Time)
type VirtualNetworksClient ¶
type VirtualNetworksClient struct {
Client *resourcemanager.Client
}
func NewVirtualNetworksClientWithBaseURI ¶
func NewVirtualNetworksClientWithBaseURI(sdkApi sdkEnv.Api) (*VirtualNetworksClient, error)
func (VirtualNetworksClient) CreateOrUpdate ¶
func (c VirtualNetworksClient) CreateOrUpdate(ctx context.Context, id VirtualNetworkId, input VirtualNetwork) (result CreateOrUpdateOperationResponse, err error)
CreateOrUpdate ...
func (VirtualNetworksClient) CreateOrUpdateThenPoll ¶
func (c VirtualNetworksClient) CreateOrUpdateThenPoll(ctx context.Context, id VirtualNetworkId, input VirtualNetwork) error
CreateOrUpdateThenPoll performs CreateOrUpdate then polls until it's completed
func (VirtualNetworksClient) Delete ¶
func (c VirtualNetworksClient) Delete(ctx context.Context, id VirtualNetworkId) (result DeleteOperationResponse, err error)
Delete ...
func (VirtualNetworksClient) DeleteThenPoll ¶
func (c VirtualNetworksClient) DeleteThenPoll(ctx context.Context, id VirtualNetworkId) error
DeleteThenPoll performs Delete then polls until it's completed
func (VirtualNetworksClient) Get ¶
func (c VirtualNetworksClient) Get(ctx context.Context, id VirtualNetworkId, options GetOperationOptions) (result GetOperationResponse, err error)
Get ...
func (VirtualNetworksClient) List ¶
func (c VirtualNetworksClient) List(ctx context.Context, id LabId, options ListOperationOptions) (result ListOperationResponse, err error)
List ...
func (VirtualNetworksClient) ListComplete ¶
func (c VirtualNetworksClient) ListComplete(ctx context.Context, id LabId, options ListOperationOptions) (ListCompleteResult, error)
ListComplete retrieves all the results into a single object
func (VirtualNetworksClient) ListCompleteMatchingPredicate ¶
func (c VirtualNetworksClient) ListCompleteMatchingPredicate(ctx context.Context, id LabId, options ListOperationOptions, predicate VirtualNetworkOperationPredicate) (result ListCompleteResult, err error)
ListCompleteMatchingPredicate retrieves all the results and then applies the predicate
func (VirtualNetworksClient) Update ¶
func (c VirtualNetworksClient) Update(ctx context.Context, id VirtualNetworkId, input UpdateResource) (result UpdateOperationResponse, err error)
Update ...
Source Files ¶
- client.go
- constants.go
- id_lab.go
- id_virtualnetwork.go
- method_createorupdate.go
- method_delete.go
- method_get.go
- method_list.go
- method_update.go
- model_externalsubnet.go
- model_port.go
- model_subnet.go
- model_subnetoverride.go
- model_subnetsharedpublicipaddressconfiguration.go
- model_updateresource.go
- model_virtualnetwork.go
- model_virtualnetworkproperties.go
- predicates.go
- version.go