servervulnerabilityassessmentssettings

package
v0.20240411.1145857 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2024 License: MPL-2.0 Imports: 11 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
	OData        *odata.OData
	Model        *ServerVulnerabilityAssessmentsSetting
}

type DeleteOperationResponse

type DeleteOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
}

type GetOperationResponse

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

type ListBySubscriptionCompleteResult

type ListBySubscriptionCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []ServerVulnerabilityAssessmentsSetting
}

type ListBySubscriptionOperationResponse

type ListBySubscriptionOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]ServerVulnerabilityAssessmentsSetting
}

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"
)

func (*ServerVulnerabilityAssessmentsAzureSettingSelectedProvider) UnmarshalJSON added in v0.20240228.1142829

type ServerVulnerabilityAssessmentsSetting

type ServerVulnerabilityAssessmentsSetting interface {
}

type ServerVulnerabilityAssessmentsSettingKind

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

func (*ServerVulnerabilityAssessmentsSettingKind) UnmarshalJSON added in v0.20240228.1142829

func (s *ServerVulnerabilityAssessmentsSettingKind) UnmarshalJSON(bytes []byte) error

type ServerVulnerabilityAssessmentsSettingOperationPredicate

type ServerVulnerabilityAssessmentsSettingOperationPredicate struct {
}

func (ServerVulnerabilityAssessmentsSettingOperationPredicate) Matches

type ServerVulnerabilityAssessmentsSettingsClient

type ServerVulnerabilityAssessmentsSettingsClient struct {
	Client *resourcemanager.Client
}

func NewServerVulnerabilityAssessmentsSettingsClientWithBaseURI

func NewServerVulnerabilityAssessmentsSettingsClientWithBaseURI(sdkApi sdkEnv.Api) (*ServerVulnerabilityAssessmentsSettingsClient, error)

func (ServerVulnerabilityAssessmentsSettingsClient) CreateOrUpdate

CreateOrUpdate ...

func (ServerVulnerabilityAssessmentsSettingsClient) Delete

Delete ...

func (ServerVulnerabilityAssessmentsSettingsClient) Get

Get ...

func (ServerVulnerabilityAssessmentsSettingsClient) ListBySubscription

ListBySubscription ...

func (ServerVulnerabilityAssessmentsSettingsClient) ListBySubscriptionComplete

ListBySubscriptionComplete retrieves all the results into a single object

func (ServerVulnerabilityAssessmentsSettingsClient) ListBySubscriptionCompleteMatchingPredicate

ListBySubscriptionCompleteMatchingPredicate retrieves all the results and then applies the predicate

Jump to

Keyboard shortcuts

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