servervulnerabilityassessmentssettings

package
v0.20240214.1100807 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2024 License: MPL-2.0 Imports: 10 Imported by: 1

README

github.com/hashicorp/go-azure-sdk/resource-manager/security/2023-05-01/servervulnerabilityassessmentssettings Documentation

The servervulnerabilityassessmentssettings SDK allows for interaction with the Azure Resource Manager Service security (API Version 2023-05-01).

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/security/2023-05-01/servervulnerabilityassessmentssettings"

Client Initialization

client := servervulnerabilityassessmentssettings.NewServerVulnerabilityAssessmentsSettingsClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: ServerVulnerabilityAssessmentsSettingsClient.CreateOrUpdate

ctx := context.TODO()
id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012")

payload := servervulnerabilityassessmentssettings.ServerVulnerabilityAssessmentsSetting{
	// ...
}


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: ServerVulnerabilityAssessmentsSettingsClient.Delete

ctx := context.TODO()
id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012")

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

Example Usage: ServerVulnerabilityAssessmentsSettingsClient.Get

ctx := context.TODO()
id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012")

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: ServerVulnerabilityAssessmentsSettingsClient.ListBySubscription

ctx := context.TODO()
id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012")

// alternatively `client.ListBySubscription(ctx, id)` can be used to do batched pagination
items, err := client.ListBySubscriptionComplete(ctx, id)
if err != nil {
	// handle the error
}
for _, item := range items {
	// do something
}

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PossibleValuesForServerVulnerabilityAssessmentsAzureSettingSelectedProvider

func PossibleValuesForServerVulnerabilityAssessmentsAzureSettingSelectedProvider() []string

func PossibleValuesForServerVulnerabilityAssessmentsSettingKind

func PossibleValuesForServerVulnerabilityAssessmentsSettingKind() []string

Types

type AzureServersSetting

type AzureServersSetting struct {
	Properties *ServerVulnerabilityAssessmentsAzureSettingProperties `json:"properties,omitempty"`

	// Fields inherited from ServerVulnerabilityAssessmentsSetting
	Id         *string                `json:"id,omitempty"`
	Name       *string                `json:"name,omitempty"`
	SystemData *systemdata.SystemData `json:"systemData,omitempty"`
	Type       *string                `json:"type,omitempty"`
}

func (AzureServersSetting) MarshalJSON

func (s AzureServersSetting) MarshalJSON() ([]byte, error)

type CreateOrUpdateOperationResponse

type CreateOrUpdateOperationResponse struct {
	HttpResponse *http.Response
	Model        *ServerVulnerabilityAssessmentsSetting
}

type DeleteOperationResponse

type DeleteOperationResponse struct {
	HttpResponse *http.Response
}

type GetOperationResponse

type GetOperationResponse struct {
	HttpResponse *http.Response
	Model        *ServerVulnerabilityAssessmentsSetting
}

type ListBySubscriptionCompleteResult

type ListBySubscriptionCompleteResult struct {
	Items []ServerVulnerabilityAssessmentsSetting
}

type ListBySubscriptionOperationResponse

type ListBySubscriptionOperationResponse struct {
	HttpResponse *http.Response
	Model        *[]ServerVulnerabilityAssessmentsSetting
	// contains filtered or unexported fields
}

func (ListBySubscriptionOperationResponse) HasMore

func (ListBySubscriptionOperationResponse) LoadMore

type RawServerVulnerabilityAssessmentsSettingImpl

type RawServerVulnerabilityAssessmentsSettingImpl struct {
	Type   string
	Values map[string]interface{}
}

RawServerVulnerabilityAssessmentsSettingImpl is returned when the Discriminated Value doesn't match any of the defined types NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) and is used only for Deserialization (e.g. this cannot be used as a Request Payload).

type ServerVulnerabilityAssessmentsAzureSettingProperties

type ServerVulnerabilityAssessmentsAzureSettingProperties struct {
	SelectedProvider ServerVulnerabilityAssessmentsAzureSettingSelectedProvider `json:"selectedProvider"`
}

type ServerVulnerabilityAssessmentsAzureSettingSelectedProvider

type ServerVulnerabilityAssessmentsAzureSettingSelectedProvider string
const (
	ServerVulnerabilityAssessmentsAzureSettingSelectedProviderMdeTVM ServerVulnerabilityAssessmentsAzureSettingSelectedProvider = "MdeTvm"
)

type ServerVulnerabilityAssessmentsSetting

type ServerVulnerabilityAssessmentsSetting interface {
}

type ServerVulnerabilityAssessmentsSettingKind

type ServerVulnerabilityAssessmentsSettingKind string
const (
	ServerVulnerabilityAssessmentsSettingKindAzureServersSetting ServerVulnerabilityAssessmentsSettingKind = "AzureServersSetting"
)

type ServerVulnerabilityAssessmentsSettingOperationPredicate

type ServerVulnerabilityAssessmentsSettingOperationPredicate struct {
}

func (ServerVulnerabilityAssessmentsSettingOperationPredicate) Matches

type ServerVulnerabilityAssessmentsSettingsClient

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

func NewServerVulnerabilityAssessmentsSettingsClientWithBaseURI

func NewServerVulnerabilityAssessmentsSettingsClientWithBaseURI(endpoint string) ServerVulnerabilityAssessmentsSettingsClient

func (ServerVulnerabilityAssessmentsSettingsClient) CreateOrUpdate

CreateOrUpdate ...

func (ServerVulnerabilityAssessmentsSettingsClient) Delete

Delete ...

func (ServerVulnerabilityAssessmentsSettingsClient) Get

Get ...

func (ServerVulnerabilityAssessmentsSettingsClient) ListBySubscription

ListBySubscription ...

func (ServerVulnerabilityAssessmentsSettingsClient) ListBySubscriptionComplete

ListBySubscriptionComplete retrieves all of the results into a single object

func (ServerVulnerabilityAssessmentsSettingsClient) ListBySubscriptionCompleteMatchingPredicate

ListBySubscriptionCompleteMatchingPredicate retrieves all of the results and then applied the predicate

Jump to

Keyboard shortcuts

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