machinenetworkprofile

package
v0.20230502.1142902 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 2, 2023 License: MPL-2.0 Imports: 7 Imported by: 1

README

github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2022-12-27/machinenetworkprofile Documentation

The machinenetworkprofile SDK allows for interaction with the Azure Resource Manager Service hybridcompute (API Version 2022-12-27).

This readme covers example usages, but further information on using this SDK can be found in the project root.

Import Path

import "github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2022-12-27/machinenetworkprofile"

Client Initialization

client := machinenetworkprofile.NewMachineNetworkProfileClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: MachineNetworkProfileClient.NetworkProfileGet

ctx := context.TODO()
id := machinenetworkprofile.NewMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "machineValue")

read, err := client.NetworkProfileGet(ctx, id)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateMachineID

func ValidateMachineID(input interface{}, key string) (warnings []string, errors []error)

ValidateMachineID checks that 'input' can be parsed as a Machine ID

Types

type IPAddress

type IPAddress struct {
	Address          *string `json:"address,omitempty"`
	IPAddressVersion *string `json:"ipAddressVersion,omitempty"`
	Subnet           *Subnet `json:"subnet,omitempty"`
}

type MachineId

type MachineId struct {
	SubscriptionId    string
	ResourceGroupName string
	MachineName       string
}

MachineId is a struct representing the Resource ID for a Machine

func NewMachineID

func NewMachineID(subscriptionId string, resourceGroupName string, machineName string) MachineId

NewMachineID returns a new MachineId struct

func ParseMachineID

func ParseMachineID(input string) (*MachineId, error)

ParseMachineID parses 'input' into a MachineId

func ParseMachineIDInsensitively

func ParseMachineIDInsensitively(input string) (*MachineId, error)

ParseMachineIDInsensitively parses 'input' case-insensitively into a MachineId note: this method should only be used for API response data and not user input

func (MachineId) ID

func (id MachineId) ID() string

ID returns the formatted Machine ID

func (MachineId) Segments

func (id MachineId) Segments() []resourceids.Segment

Segments returns a slice of Resource ID Segments which comprise this Machine ID

func (MachineId) String

func (id MachineId) String() string

String returns a human-readable description of this Machine ID

type MachineNetworkProfileClient

type MachineNetworkProfileClient struct {
	Client autorest.Client
	// contains filtered or unexported fields
}

func NewMachineNetworkProfileClientWithBaseURI

func NewMachineNetworkProfileClientWithBaseURI(endpoint string) MachineNetworkProfileClient

func (MachineNetworkProfileClient) NetworkProfileGet

NetworkProfileGet ...

type NetworkInterface

type NetworkInterface struct {
	IPAddresses *[]IPAddress `json:"ipAddresses,omitempty"`
}

type NetworkProfile

type NetworkProfile struct {
	NetworkInterfaces *[]NetworkInterface `json:"networkInterfaces,omitempty"`
}

type NetworkProfileGetOperationResponse

type NetworkProfileGetOperationResponse struct {
	HttpResponse *http.Response
	Model        *NetworkProfile
}

type Subnet

type Subnet struct {
	AddressPrefix *string `json:"addressPrefix,omitempty"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL