networkconfigurations

package
v0.20241126.2320 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2024 License: MPL-2.0 Imports: 11 Imported by: 0

README

github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-05-20-preview/networkconfigurations Documentation

The networkconfigurations SDK allows for interaction with Azure Resource Manager hybridcompute (API Version 2024-05-20-preview).

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-helpers/resourcemanager/commonids"
import "github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-05-20-preview/networkconfigurations"

Client Initialization

client := networkconfigurations.NewNetworkConfigurationsClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: NetworkConfigurationsClient.CreateOrUpdate

ctx := context.TODO()
id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group")

payload := networkconfigurations.NetworkConfiguration{
	// ...
}


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

Example Usage: NetworkConfigurationsClient.Get

ctx := context.TODO()
id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group")

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

Example Usage: NetworkConfigurationsClient.Update

ctx := context.TODO()
id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group")

payload := networkconfigurations.NetworkConfiguration{
	// ...
}


read, err := client.Update(ctx, id, payload)
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

This section is empty.

Types

type CreateOrUpdateOperationResponse

type CreateOrUpdateOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *NetworkConfiguration
}

type GetOperationResponse

type GetOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *NetworkConfiguration
}

type KeyDetails

type KeyDetails struct {
	NotAfter   *string `json:"notAfter,omitempty"`
	PublicKey  *string `json:"publicKey,omitempty"`
	RenewAfter *string `json:"renewAfter,omitempty"`
}

func (*KeyDetails) GetNotAfterAsTime

func (o *KeyDetails) GetNotAfterAsTime() (*time.Time, error)

func (*KeyDetails) GetRenewAfterAsTime

func (o *KeyDetails) GetRenewAfterAsTime() (*time.Time, error)

func (*KeyDetails) SetNotAfterAsTime

func (o *KeyDetails) SetNotAfterAsTime(input time.Time)

func (*KeyDetails) SetRenewAfterAsTime

func (o *KeyDetails) SetRenewAfterAsTime(input time.Time)

type KeyProperties

type KeyProperties struct {
	CandidatePublicKey *KeyDetails `json:"candidatePublicKey,omitempty"`
	ClientPublicKey    *KeyDetails `json:"clientPublicKey,omitempty"`
}

type NetworkConfiguration

type NetworkConfiguration struct {
	Id         *string                         `json:"id,omitempty"`
	Name       *string                         `json:"name,omitempty"`
	Properties *NetworkConfigurationProperties `json:"properties,omitempty"`
	SystemData *systemdata.SystemData          `json:"systemData,omitempty"`
	Type       *string                         `json:"type,omitempty"`
}

type NetworkConfigurationProperties

type NetworkConfigurationProperties struct {
	KeyProperties                       *KeyProperties `json:"keyProperties,omitempty"`
	Location                            *string        `json:"location,omitempty"`
	NetworkConfigurationScopeId         *string        `json:"networkConfigurationScopeId,omitempty"`
	NetworkConfigurationScopeResourceId string         `json:"networkConfigurationScopeResourceId"`
	TenantId                            *string        `json:"tenantId,omitempty"`
}

type NetworkConfigurationsClient

type NetworkConfigurationsClient struct {
	Client *resourcemanager.Client
}

func NewNetworkConfigurationsClientWithBaseURI

func NewNetworkConfigurationsClientWithBaseURI(sdkApi sdkEnv.Api) (*NetworkConfigurationsClient, error)

func (NetworkConfigurationsClient) CreateOrUpdate

CreateOrUpdate ...

func (NetworkConfigurationsClient) Get

Get ...

func (NetworkConfigurationsClient) Update

Update ...

type UpdateOperationResponse

type UpdateOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *NetworkConfiguration
}

Jump to

Keyboard shortcuts

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