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 ¶
- type CreateOrUpdateOperationResponse
- type GetOperationResponse
- type KeyDetails
- type KeyProperties
- type NetworkConfiguration
- type NetworkConfigurationProperties
- type NetworkConfigurationsClient
- func (c NetworkConfigurationsClient) CreateOrUpdate(ctx context.Context, id commonids.ScopeId, input NetworkConfiguration) (result CreateOrUpdateOperationResponse, err error)
- func (c NetworkConfigurationsClient) Get(ctx context.Context, id commonids.ScopeId) (result GetOperationResponse, err error)
- func (c NetworkConfigurationsClient) Update(ctx context.Context, id commonids.ScopeId, input NetworkConfiguration) (result UpdateOperationResponse, err error)
- type UpdateOperationResponse
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 ¶
func (c NetworkConfigurationsClient) CreateOrUpdate(ctx context.Context, id commonids.ScopeId, input NetworkConfiguration) (result CreateOrUpdateOperationResponse, err error)
CreateOrUpdate ...
func (NetworkConfigurationsClient) Get ¶
func (c NetworkConfigurationsClient) Get(ctx context.Context, id commonids.ScopeId) (result GetOperationResponse, err error)
Get ...
func (NetworkConfigurationsClient) Update ¶
func (c NetworkConfigurationsClient) Update(ctx context.Context, id commonids.ScopeId, input NetworkConfiguration) (result UpdateOperationResponse, err error)
Update ...
type UpdateOperationResponse ¶
type UpdateOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *NetworkConfiguration }
Click to show internal directories.
Click to hide internal directories.