servervulnerabilityassessmentssettings

package
v0.20241023.1122425 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 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 Azure Resource Manager 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"`

	Id         *string                                   `json:"id,omitempty"`
	Kind       ServerVulnerabilityAssessmentsSettingKind `json:"kind"`
	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)

func (AzureServersSetting) ServerVulnerabilityAssessmentsSetting added in v0.20240920.1135249

func (s AzureServersSetting) ServerVulnerabilityAssessmentsSetting() BaseServerVulnerabilityAssessmentsSettingImpl

type BaseServerVulnerabilityAssessmentsSettingImpl added in v0.20240920.1135249

type BaseServerVulnerabilityAssessmentsSettingImpl struct {
	Id         *string                                   `json:"id,omitempty"`
	Kind       ServerVulnerabilityAssessmentsSettingKind `json:"kind"`
	Name       *string                                   `json:"name,omitempty"`
	SystemData *systemdata.SystemData                    `json:"systemData,omitempty"`
	Type       *string                                   `json:"type,omitempty"`
}

func (BaseServerVulnerabilityAssessmentsSettingImpl) ServerVulnerabilityAssessmentsSetting added in v0.20240920.1135249

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 ListBySubscriptionCustomPager added in v0.20240628.1153531

type ListBySubscriptionCustomPager struct {
	NextLink *odata.Link `json:"nextLink"`
}
func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link

type ListBySubscriptionOperationResponse

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

type RawServerVulnerabilityAssessmentsSettingImpl

type RawServerVulnerabilityAssessmentsSettingImpl struct {
	Type   string
	Values map[string]interface{}
	// contains filtered or unexported fields
}

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

func (RawServerVulnerabilityAssessmentsSettingImpl) ServerVulnerabilityAssessmentsSetting added in v0.20240920.1135249

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 {
	ServerVulnerabilityAssessmentsSetting() BaseServerVulnerabilityAssessmentsSettingImpl
}

func UnmarshalServerVulnerabilityAssessmentsSettingImplementation added in v0.20240920.1135249

func UnmarshalServerVulnerabilityAssessmentsSettingImplementation(input []byte) (ServerVulnerabilityAssessmentsSetting, error)

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