azure-sdk-for-go: github.com/Azure/azure-sdk-for-go/services/preview/security/mgmt/v1.0/security Index | Files | Directories

package security

import "github.com/Azure/azure-sdk-for-go/services/preview/security/mgmt/v1.0/security"

Package security implements the Azure ARM Security service API version .

API spec for Microsoft.Security (Azure Security Center) resource provider

Index

Package Files

adaptiveapplicationcontrols.go adaptivenetworkhardenings.go advancedthreatprotection.go alerts.go allowedconnections.go autoprovisioningsettings.go client.go compliances.go contacts.go devicesecuritygroups.go discoveredsecuritysolutions.go externalsecuritysolutions.go informationprotectionpolicies.go jitnetworkaccesspolicies.go locations.go models.go operations.go pricings.go regulatorycomplianceassessments.go regulatorycompliancecontrols.go regulatorycompliancestandards.go settings.go tasks.go topology.go version.go workspacesettings.go

Constants

const (
    // DefaultBaseURI is the default URI used for the service Security
    DefaultBaseURI = "https://management.azure.com"
)

func UserAgent Uses

func UserAgent() string

UserAgent returns the UserAgent string to use when sending http.Requests.

func Version Uses

func Version() string

Version returns the semantic version (see http://semver.org) of the client.

type AadConnectivityState Uses

type AadConnectivityState string

AadConnectivityState enumerates the values for aad connectivity state.

const (
    // Connected ...
    Connected AadConnectivityState = "Connected"
    // Discovered ...
    Discovered AadConnectivityState = "Discovered"
    // NotLicensed ...
    NotLicensed AadConnectivityState = "NotLicensed"
)

func PossibleAadConnectivityStateValues Uses

func PossibleAadConnectivityStateValues() []AadConnectivityState

PossibleAadConnectivityStateValues returns an array of possible values for the AadConnectivityState const type.

type AadConnectivityState1 Uses

type AadConnectivityState1 struct {
    // ConnectivityState - Possible values include: 'Discovered', 'NotLicensed', 'Connected'
    ConnectivityState AadConnectivityState `json:"connectivityState,omitempty"`
}

AadConnectivityState1 describes an Azure resource with kind

type AadExternalSecuritySolution Uses

type AadExternalSecuritySolution struct {
    Properties *AadSolutionProperties `json:"properties,omitempty"`
    // ID - READ-ONLY; Resource Id
    ID  *string `json:"id,omitempty"`
    // Name - READ-ONLY; Resource name
    Name *string `json:"name,omitempty"`
    // Type - READ-ONLY; Resource type
    Type *string `json:"type,omitempty"`
    // Location - READ-ONLY; Location where the resource is stored
    Location *string `json:"location,omitempty"`
    // Kind - Possible values include: 'KindExternalSecuritySolution', 'KindCEF', 'KindATA', 'KindAAD'
    Kind KindEnum `json:"kind,omitempty"`
}

AadExternalSecuritySolution represents an AAD identity protection solution which sends logs to an OMS workspace.

func (AadExternalSecuritySolution) AsAadExternalSecuritySolution Uses

func (aess AadExternalSecuritySolution) AsAadExternalSecuritySolution() (*AadExternalSecuritySolution, bool)

AsAadExternalSecuritySolution is the BasicExternalSecuritySolution implementation for AadExternalSecuritySolution.

func (AadExternalSecuritySolution) AsAtaExternalSecuritySolution Uses

func (aess AadExternalSecuritySolution) AsAtaExternalSecuritySolution() (*AtaExternalSecuritySolution, bool)

AsAtaExternalSecuritySolution is the BasicExternalSecuritySolution implementation for AadExternalSecuritySolution.

func (AadExternalSecuritySolution) AsBasicExternalSecuritySolution Uses

func (aess AadExternalSecuritySolution) AsBasicExternalSecuritySolution() (BasicExternalSecuritySolution, bool)

AsBasicExternalSecuritySolution is the BasicExternalSecuritySolution implementation for AadExternalSecuritySolution.

func (AadExternalSecuritySolution) AsCefExternalSecuritySolution Uses

func (aess AadExternalSecuritySolution) AsCefExternalSecuritySolution() (*CefExternalSecuritySolution, bool)

AsCefExternalSecuritySolution is the BasicExternalSecuritySolution implementation for AadExternalSecuritySolution.

func (AadExternalSecuritySolution) AsExternalSecuritySolution Uses

func (aess AadExternalSecuritySolution) AsExternalSecuritySolution() (*ExternalSecuritySolution, bool)

AsExternalSecuritySolution is the BasicExternalSecuritySolution implementation for AadExternalSecuritySolution.

func (AadExternalSecuritySolution) MarshalJSON Uses

func (aess AadExternalSecuritySolution) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for AadExternalSecuritySolution.

type AadSolutionProperties Uses

type AadSolutionProperties struct {
    DeviceVendor *string             `json:"deviceVendor,omitempty"`
    DeviceType   *string             `json:"deviceType,omitempty"`
    Workspace    *ConnectedWorkspace `json:"workspace,omitempty"`
    // ConnectivityState - Possible values include: 'Discovered', 'NotLicensed', 'Connected'
    ConnectivityState AadConnectivityState `json:"connectivityState,omitempty"`
}

AadSolutionProperties ...

type Action Uses

type Action string

Action enumerates the values for action.

const (
    // Add ...
    Add Action = "Add"
    // Recommended ...
    Recommended Action = "Recommended"
    // Remove ...
    Remove Action = "Remove"
)

func PossibleActionValues Uses

func PossibleActionValues() []Action

PossibleActionValues returns an array of possible values for the Action const type.

type AdaptiveApplicationControlsClient Uses

type AdaptiveApplicationControlsClient struct {
    BaseClient
}

AdaptiveApplicationControlsClient is the API spec for Microsoft.Security (Azure Security Center) resource provider

func NewAdaptiveApplicationControlsClient Uses

func NewAdaptiveApplicationControlsClient(subscriptionID string, ascLocation string) AdaptiveApplicationControlsClient

NewAdaptiveApplicationControlsClient creates an instance of the AdaptiveApplicationControlsClient client.

func NewAdaptiveApplicationControlsClientWithBaseURI Uses

func NewAdaptiveApplicationControlsClientWithBaseURI(baseURI string, subscriptionID string, ascLocation string) AdaptiveApplicationControlsClient

NewAdaptiveApplicationControlsClientWithBaseURI creates an instance of the AdaptiveApplicationControlsClient client.

func (AdaptiveApplicationControlsClient) Get Uses

func (client AdaptiveApplicationControlsClient) Get(ctx context.Context, groupName string) (result AppWhitelistingGroup, err error)

Get gets an application control VM/server group. Parameters: groupName - name of an application control VM/server group

func (AdaptiveApplicationControlsClient) GetPreparer Uses

func (client AdaptiveApplicationControlsClient) GetPreparer(ctx context.Context, groupName string) (*http.Request, error)

GetPreparer prepares the Get request.

func (AdaptiveApplicationControlsClient) GetResponder Uses

func (client AdaptiveApplicationControlsClient) GetResponder(resp *http.Response) (result AppWhitelistingGroup, err error)

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (AdaptiveApplicationControlsClient) GetSender Uses

func (client AdaptiveApplicationControlsClient) GetSender(req *http.Request) (*http.Response, error)

GetSender sends the Get request. The method will close the http.Response Body if it receives an error.

func (AdaptiveApplicationControlsClient) List Uses

func (client AdaptiveApplicationControlsClient) List(ctx context.Context, includePathRecommendations *bool, summary *bool) (result AppWhitelistingGroups, err error)

List gets a list of application control VM/server groups for the subscription. Parameters: includePathRecommendations - include the policy rules summary - return output in a summarized form

func (AdaptiveApplicationControlsClient) ListPreparer Uses

func (client AdaptiveApplicationControlsClient) ListPreparer(ctx context.Context, includePathRecommendations *bool, summary *bool) (*http.Request, error)

ListPreparer prepares the List request.

func (AdaptiveApplicationControlsClient) ListResponder Uses

func (client AdaptiveApplicationControlsClient) ListResponder(resp *http.Response) (result AppWhitelistingGroups, err error)

ListResponder handles the response to the List request. The method always closes the http.Response Body.

func (AdaptiveApplicationControlsClient) ListSender Uses

func (client AdaptiveApplicationControlsClient) ListSender(req *http.Request) (*http.Response, error)

ListSender sends the List request. The method will close the http.Response Body if it receives an error.

func (AdaptiveApplicationControlsClient) Put Uses

func (client AdaptiveApplicationControlsClient) Put(ctx context.Context, groupName string, body AppWhitelistingPutGroupData) (result AppWhitelistingGroup, err error)

Put update an application control VM/server group Parameters: groupName - name of an application control VM/server group body - the updated VM/server group data

func (AdaptiveApplicationControlsClient) PutPreparer Uses

func (client AdaptiveApplicationControlsClient) PutPreparer(ctx context.Context, groupName string, body AppWhitelistingPutGroupData) (*http.Request, error)

PutPreparer prepares the Put request.

func (AdaptiveApplicationControlsClient) PutResponder Uses

func (client AdaptiveApplicationControlsClient) PutResponder(resp *http.Response) (result AppWhitelistingGroup, err error)

PutResponder handles the response to the Put request. The method always closes the http.Response Body.

func (AdaptiveApplicationControlsClient) PutSender Uses

func (client AdaptiveApplicationControlsClient) PutSender(req *http.Request) (*http.Response, error)

PutSender sends the Put request. The method will close the http.Response Body if it receives an error.

type AdaptiveNetworkHardening Uses

type AdaptiveNetworkHardening struct {
    autorest.Response `json:"-"`
    // AdaptiveNetworkHardeningProperties - Properties of the Adaptive Network Hardening resource
    *AdaptiveNetworkHardeningProperties `json:"properties,omitempty"`
    // ID - READ-ONLY; Resource Id
    ID  *string `json:"id,omitempty"`
    // Name - READ-ONLY; Resource name
    Name *string `json:"name,omitempty"`
    // Type - READ-ONLY; Resource type
    Type *string `json:"type,omitempty"`
}

AdaptiveNetworkHardening the resource whose properties describes the Adaptive Network Hardening settings for some Azure resource

func (AdaptiveNetworkHardening) MarshalJSON Uses

func (anh AdaptiveNetworkHardening) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for AdaptiveNetworkHardening.

func (*AdaptiveNetworkHardening) UnmarshalJSON Uses

func (anh *AdaptiveNetworkHardening) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for AdaptiveNetworkHardening struct.

type AdaptiveNetworkHardeningEnforceRequest Uses

type AdaptiveNetworkHardeningEnforceRequest struct {
    // Rules - The rules to enforce
    Rules *[]Rule `json:"rules,omitempty"`
    // NetworkSecurityGroups - The Azure resource IDs of the effective network security groups that will be updated with the created security rules from the Adaptive Network Hardening rules
    NetworkSecurityGroups *[]string `json:"networkSecurityGroups,omitempty"`
}

AdaptiveNetworkHardeningEnforceRequest ...

type AdaptiveNetworkHardeningProperties Uses

type AdaptiveNetworkHardeningProperties struct {
    // Rules - The security rules which are recommended to be effective on the VM
    Rules *[]Rule `json:"rules,omitempty"`
    // RulesCalculationTime - The UTC time on which the rules were calculated
    RulesCalculationTime *date.Time `json:"rulesCalculationTime,omitempty"`
    // EffectiveNetworkSecurityGroups - The Network Security Groups effective on the network interfaces of the protected resource
    EffectiveNetworkSecurityGroups *[]EffectiveNetworkSecurityGroups `json:"effectiveNetworkSecurityGroups,omitempty"`
}

AdaptiveNetworkHardeningProperties adaptive Network Hardening resource properties

type AdaptiveNetworkHardeningsClient Uses

type AdaptiveNetworkHardeningsClient struct {
    BaseClient
}

AdaptiveNetworkHardeningsClient is the API spec for Microsoft.Security (Azure Security Center) resource provider

func NewAdaptiveNetworkHardeningsClient Uses

func NewAdaptiveNetworkHardeningsClient(subscriptionID string, ascLocation string) AdaptiveNetworkHardeningsClient

NewAdaptiveNetworkHardeningsClient creates an instance of the AdaptiveNetworkHardeningsClient client.

func NewAdaptiveNetworkHardeningsClientWithBaseURI Uses

func NewAdaptiveNetworkHardeningsClientWithBaseURI(baseURI string, subscriptionID string, ascLocation string) AdaptiveNetworkHardeningsClient

NewAdaptiveNetworkHardeningsClientWithBaseURI creates an instance of the AdaptiveNetworkHardeningsClient client.

func (AdaptiveNetworkHardeningsClient) Enforce Uses

func (client AdaptiveNetworkHardeningsClient) Enforce(ctx context.Context, resourceGroupName string, resourceNamespace string, resourceType string, resourceName string, adaptiveNetworkHardeningResourceName string, body AdaptiveNetworkHardeningEnforceRequest) (result AdaptiveNetworkHardeningsEnforceFuture, err error)

Enforce enforces the given rules on the NSG(s) listed in the request Parameters: resourceGroupName - the name of the resource group within the user's subscription. The name is case insensitive. resourceNamespace - the Namespace of the resource. resourceType - the type of the resource. resourceName - name of the resource. adaptiveNetworkHardeningResourceName - the name of the Adaptive Network Hardening resource.

func (AdaptiveNetworkHardeningsClient) EnforcePreparer Uses

func (client AdaptiveNetworkHardeningsClient) EnforcePreparer(ctx context.Context, resourceGroupName string, resourceNamespace string, resourceType string, resourceName string, adaptiveNetworkHardeningResourceName string, body AdaptiveNetworkHardeningEnforceRequest) (*http.Request, error)

EnforcePreparer prepares the Enforce request.

func (AdaptiveNetworkHardeningsClient) EnforceResponder Uses

func (client AdaptiveNetworkHardeningsClient) EnforceResponder(resp *http.Response) (result autorest.Response, err error)

EnforceResponder handles the response to the Enforce request. The method always closes the http.Response Body.

func (AdaptiveNetworkHardeningsClient) EnforceSender Uses

func (client AdaptiveNetworkHardeningsClient) EnforceSender(req *http.Request) (future AdaptiveNetworkHardeningsEnforceFuture, err error)

EnforceSender sends the Enforce request. The method will close the http.Response Body if it receives an error.

func (AdaptiveNetworkHardeningsClient) Get Uses

func (client AdaptiveNetworkHardeningsClient) Get(ctx context.Context, resourceGroupName string, resourceNamespace string, resourceType string, resourceName string, adaptiveNetworkHardeningResourceName string) (result AdaptiveNetworkHardening, err error)

Get gets a single Adaptive Network Hardening resource Parameters: resourceGroupName - the name of the resource group within the user's subscription. The name is case insensitive. resourceNamespace - the Namespace of the resource. resourceType - the type of the resource. resourceName - name of the resource. adaptiveNetworkHardeningResourceName - the name of the Adaptive Network Hardening resource.

func (AdaptiveNetworkHardeningsClient) GetPreparer Uses

func (client AdaptiveNetworkHardeningsClient) GetPreparer(ctx context.Context, resourceGroupName string, resourceNamespace string, resourceType string, resourceName string, adaptiveNetworkHardeningResourceName string) (*http.Request, error)

GetPreparer prepares the Get request.

func (AdaptiveNetworkHardeningsClient) GetResponder Uses

func (client AdaptiveNetworkHardeningsClient) GetResponder(resp *http.Response) (result AdaptiveNetworkHardening, err error)

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (AdaptiveNetworkHardeningsClient) GetSender Uses

func (client AdaptiveNetworkHardeningsClient) GetSender(req *http.Request) (*http.Response, error)

GetSender sends the Get request. The method will close the http.Response Body if it receives an error.

func (AdaptiveNetworkHardeningsClient) ListByExtendedResource Uses

func (client AdaptiveNetworkHardeningsClient) ListByExtendedResource(ctx context.Context, resourceGroupName string, resourceNamespace string, resourceType string, resourceName string) (result AdaptiveNetworkHardeningsListPage, err error)

ListByExtendedResource gets a list of Adaptive Network Hardenings resources in scope of an extended resource. Parameters: resourceGroupName - the name of the resource group within the user's subscription. The name is case insensitive. resourceNamespace - the Namespace of the resource. resourceType - the type of the resource. resourceName - name of the resource.

func (AdaptiveNetworkHardeningsClient) ListByExtendedResourceComplete Uses

func (client AdaptiveNetworkHardeningsClient) ListByExtendedResourceComplete(ctx context.Context, resourceGroupName string, resourceNamespace string, resourceType string, resourceName string) (result AdaptiveNetworkHardeningsListIterator, err error)

ListByExtendedResourceComplete enumerates all values, automatically crossing page boundaries as required.

func (AdaptiveNetworkHardeningsClient) ListByExtendedResourcePreparer Uses

func (client AdaptiveNetworkHardeningsClient) ListByExtendedResourcePreparer(ctx context.Context, resourceGroupName string, resourceNamespace string, resourceType string, resourceName string) (*http.Request, error)

ListByExtendedResourcePreparer prepares the ListByExtendedResource request.

func (AdaptiveNetworkHardeningsClient) ListByExtendedResourceResponder Uses

func (client AdaptiveNetworkHardeningsClient) ListByExtendedResourceResponder(resp *http.Response) (result AdaptiveNetworkHardeningsList, err error)

ListByExtendedResourceResponder handles the response to the ListByExtendedResource request. The method always closes the http.Response Body.

func (AdaptiveNetworkHardeningsClient) ListByExtendedResourceSender Uses

func (client AdaptiveNetworkHardeningsClient) ListByExtendedResourceSender(req *http.Request) (*http.Response, error)

ListByExtendedResourceSender sends the ListByExtendedResource request. The method will close the http.Response Body if it receives an error.

type AdaptiveNetworkHardeningsEnforceFuture Uses

type AdaptiveNetworkHardeningsEnforceFuture struct {
    azure.Future
}

AdaptiveNetworkHardeningsEnforceFuture an abstraction for monitoring and retrieving the results of a long-running operation.

func (*AdaptiveNetworkHardeningsEnforceFuture) Result Uses

func (future *AdaptiveNetworkHardeningsEnforceFuture) Result(client AdaptiveNetworkHardeningsClient) (ar autorest.Response, err error)

Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.

type AdaptiveNetworkHardeningsList Uses

type AdaptiveNetworkHardeningsList struct {
    autorest.Response `json:"-"`
    // Value - A list of Adaptive Network Hardenings resources
    Value *[]AdaptiveNetworkHardening `json:"value,omitempty"`
    // NextLink - The URL to get the next set of results
    NextLink *string `json:"nextLink,omitempty"`
}

AdaptiveNetworkHardeningsList response for ListAdaptiveNetworkHardenings API service call

func (AdaptiveNetworkHardeningsList) IsEmpty Uses

func (anhl AdaptiveNetworkHardeningsList) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type AdaptiveNetworkHardeningsListIterator Uses

type AdaptiveNetworkHardeningsListIterator struct {
    // contains filtered or unexported fields
}

AdaptiveNetworkHardeningsListIterator provides access to a complete listing of AdaptiveNetworkHardening values.

func NewAdaptiveNetworkHardeningsListIterator Uses

func NewAdaptiveNetworkHardeningsListIterator(page AdaptiveNetworkHardeningsListPage) AdaptiveNetworkHardeningsListIterator

Creates a new instance of the AdaptiveNetworkHardeningsListIterator type.

func (*AdaptiveNetworkHardeningsListIterator) Next Uses

func (iter *AdaptiveNetworkHardeningsListIterator) Next() error

Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*AdaptiveNetworkHardeningsListIterator) NextWithContext Uses

func (iter *AdaptiveNetworkHardeningsListIterator) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.

func (AdaptiveNetworkHardeningsListIterator) NotDone Uses

func (iter AdaptiveNetworkHardeningsListIterator) NotDone() bool

NotDone returns true if the enumeration should be started or is not yet complete.

func (AdaptiveNetworkHardeningsListIterator) Response Uses

func (iter AdaptiveNetworkHardeningsListIterator) Response() AdaptiveNetworkHardeningsList

Response returns the raw server response from the last page request.

func (AdaptiveNetworkHardeningsListIterator) Value Uses

func (iter AdaptiveNetworkHardeningsListIterator) Value() AdaptiveNetworkHardening

Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.

type AdaptiveNetworkHardeningsListPage Uses

type AdaptiveNetworkHardeningsListPage struct {
    // contains filtered or unexported fields
}

AdaptiveNetworkHardeningsListPage contains a page of AdaptiveNetworkHardening values.

func NewAdaptiveNetworkHardeningsListPage Uses

func NewAdaptiveNetworkHardeningsListPage(getNextPage func(context.Context, AdaptiveNetworkHardeningsList) (AdaptiveNetworkHardeningsList, error)) AdaptiveNetworkHardeningsListPage

Creates a new instance of the AdaptiveNetworkHardeningsListPage type.

func (*AdaptiveNetworkHardeningsListPage) Next Uses

func (page *AdaptiveNetworkHardeningsListPage) Next() error

Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*AdaptiveNetworkHardeningsListPage) NextWithContext Uses

func (page *AdaptiveNetworkHardeningsListPage) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.

func (AdaptiveNetworkHardeningsListPage) NotDone Uses

func (page AdaptiveNetworkHardeningsListPage) NotDone() bool

NotDone returns true if the page enumeration should be started or is not yet complete.

func (AdaptiveNetworkHardeningsListPage) Response Uses

func (page AdaptiveNetworkHardeningsListPage) Response() AdaptiveNetworkHardeningsList

Response returns the raw server response from the last page request.

func (AdaptiveNetworkHardeningsListPage) Values Uses

func (page AdaptiveNetworkHardeningsListPage) Values() []AdaptiveNetworkHardening

Values returns the slice of values for the current page or nil if there are no values.

type AdvancedThreatProtectionClient Uses

type AdvancedThreatProtectionClient struct {
    BaseClient
}

AdvancedThreatProtectionClient is the API spec for Microsoft.Security (Azure Security Center) resource provider

func NewAdvancedThreatProtectionClient Uses

func NewAdvancedThreatProtectionClient(subscriptionID string, ascLocation string) AdvancedThreatProtectionClient

NewAdvancedThreatProtectionClient creates an instance of the AdvancedThreatProtectionClient client.

func NewAdvancedThreatProtectionClientWithBaseURI Uses

func NewAdvancedThreatProtectionClientWithBaseURI(baseURI string, subscriptionID string, ascLocation string) AdvancedThreatProtectionClient

NewAdvancedThreatProtectionClientWithBaseURI creates an instance of the AdvancedThreatProtectionClient client.

func (AdvancedThreatProtectionClient) Create Uses

func (client AdvancedThreatProtectionClient) Create(ctx context.Context, resourceID string, advancedThreatProtectionSetting AdvancedThreatProtectionSetting) (result AdvancedThreatProtectionSetting, err error)

Create creates or updates the Advanced Threat Protection settings on a specified resource. Parameters: resourceID - the identifier of the resource. advancedThreatProtectionSetting - advanced Threat Protection Settings

func (AdvancedThreatProtectionClient) CreatePreparer Uses

func (client AdvancedThreatProtectionClient) CreatePreparer(ctx context.Context, resourceID string, advancedThreatProtectionSetting AdvancedThreatProtectionSetting) (*http.Request, error)

CreatePreparer prepares the Create request.

func (AdvancedThreatProtectionClient) CreateResponder Uses

func (client AdvancedThreatProtectionClient) CreateResponder(resp *http.Response) (result AdvancedThreatProtectionSetting, err error)

CreateResponder handles the response to the Create request. The method always closes the http.Response Body.

func (AdvancedThreatProtectionClient) CreateSender Uses

func (client AdvancedThreatProtectionClient) CreateSender(req *http.Request) (*http.Response, error)

CreateSender sends the Create request. The method will close the http.Response Body if it receives an error.

func (AdvancedThreatProtectionClient) Get Uses

func (client AdvancedThreatProtectionClient) Get(ctx context.Context, resourceID string) (result AdvancedThreatProtectionSetting, err error)

Get gets the Advanced Threat Protection settings for the specified resource. Parameters: resourceID - the identifier of the resource.

func (AdvancedThreatProtectionClient) GetPreparer Uses

func (client AdvancedThreatProtectionClient) GetPreparer(ctx context.Context, resourceID string) (*http.Request, error)

GetPreparer prepares the Get request.

func (AdvancedThreatProtectionClient) GetResponder Uses

func (client AdvancedThreatProtectionClient) GetResponder(resp *http.Response) (result AdvancedThreatProtectionSetting, err error)

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (AdvancedThreatProtectionClient) GetSender Uses

func (client AdvancedThreatProtectionClient) GetSender(req *http.Request) (*http.Response, error)

GetSender sends the Get request. The method will close the http.Response Body if it receives an error.

type AdvancedThreatProtectionProperties Uses

type AdvancedThreatProtectionProperties struct {
    // IsEnabled - Indicates whether Advanced Threat Protection is enabled.
    IsEnabled *bool `json:"isEnabled,omitempty"`
}

AdvancedThreatProtectionProperties the Advanced Threat Protection settings.

type AdvancedThreatProtectionSetting Uses

type AdvancedThreatProtectionSetting struct {
    autorest.Response                   `json:"-"`
    *AdvancedThreatProtectionProperties `json:"properties,omitempty"`
    // ID - READ-ONLY; Resource Id
    ID  *string `json:"id,omitempty"`
    // Name - READ-ONLY; Resource name
    Name *string `json:"name,omitempty"`
    // Type - READ-ONLY; Resource type
    Type *string `json:"type,omitempty"`
}

AdvancedThreatProtectionSetting the Advanced Threat Protection resource.

func (AdvancedThreatProtectionSetting) MarshalJSON Uses

func (atps AdvancedThreatProtectionSetting) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for AdvancedThreatProtectionSetting.

func (*AdvancedThreatProtectionSetting) UnmarshalJSON Uses

func (atps *AdvancedThreatProtectionSetting) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for AdvancedThreatProtectionSetting struct.

type Alert Uses

type Alert struct {
    autorest.Response `json:"-"`
    *AlertProperties  `json:"properties,omitempty"`
    // ID - READ-ONLY; Resource Id
    ID  *string `json:"id,omitempty"`
    // Name - READ-ONLY; Resource name
    Name *string `json:"name,omitempty"`
    // Type - READ-ONLY; Resource type
    Type *string `json:"type,omitempty"`
}

Alert security alert

func (Alert) MarshalJSON Uses

func (a Alert) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for Alert.

func (*Alert) UnmarshalJSON Uses

func (a *Alert) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for Alert struct.

type AlertConfidenceReason Uses

type AlertConfidenceReason struct {
    // Type - READ-ONLY; Type of confidence factor
    Type *string `json:"type,omitempty"`
    // Reason - READ-ONLY; description of the confidence reason
    Reason *string `json:"reason,omitempty"`
}

AlertConfidenceReason factors that increase our confidence that the alert is a true positive

type AlertEntity Uses

type AlertEntity struct {
    // AdditionalProperties - Unmatched properties from the message are deserialized this collection
    AdditionalProperties map[string]interface{} `json:""`
    // Type - READ-ONLY; Type of entity
    Type *string `json:"type,omitempty"`
}

AlertEntity changing set of properties depending on the entity type.

func (AlertEntity) MarshalJSON Uses

func (ae AlertEntity) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for AlertEntity.

func (*AlertEntity) UnmarshalJSON Uses

func (ae *AlertEntity) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for AlertEntity struct.

type AlertList Uses

type AlertList struct {
    autorest.Response `json:"-"`
    Value             *[]Alert `json:"value,omitempty"`
    // NextLink - READ-ONLY; The URI to fetch the next page.
    NextLink *string `json:"nextLink,omitempty"`
}

AlertList list of security alerts

func (AlertList) IsEmpty Uses

func (al AlertList) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type AlertListIterator Uses

type AlertListIterator struct {
    // contains filtered or unexported fields
}

AlertListIterator provides access to a complete listing of Alert values.

func NewAlertListIterator Uses

func NewAlertListIterator(page AlertListPage) AlertListIterator

Creates a new instance of the AlertListIterator type.

func (*AlertListIterator) Next Uses

func (iter *AlertListIterator) Next() error

Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*AlertListIterator) NextWithContext Uses

func (iter *AlertListIterator) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.

func (AlertListIterator) NotDone Uses

func (iter AlertListIterator) NotDone() bool

NotDone returns true if the enumeration should be started or is not yet complete.

func (AlertListIterator) Response Uses

func (iter AlertListIterator) Response() AlertList

Response returns the raw server response from the last page request.

func (AlertListIterator) Value Uses

func (iter AlertListIterator) Value() Alert

Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.

type AlertListPage Uses

type AlertListPage struct {
    // contains filtered or unexported fields
}

AlertListPage contains a page of Alert values.

func NewAlertListPage Uses

func NewAlertListPage(getNextPage func(context.Context, AlertList) (AlertList, error)) AlertListPage

Creates a new instance of the AlertListPage type.

func (*AlertListPage) Next Uses

func (page *AlertListPage) Next() error

Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*AlertListPage) NextWithContext Uses

func (page *AlertListPage) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.

func (AlertListPage) NotDone Uses

func (page AlertListPage) NotDone() bool

NotDone returns true if the page enumeration should be started or is not yet complete.

func (AlertListPage) Response Uses

func (page AlertListPage) Response() AlertList

Response returns the raw server response from the last page request.

func (AlertListPage) Values Uses

func (page AlertListPage) Values() []Alert

Values returns the slice of values for the current page or nil if there are no values.

type AlertNotifications Uses

type AlertNotifications string

AlertNotifications enumerates the values for alert notifications.

const (
    // Off Don't get notifications on new alerts
    Off AlertNotifications = "Off"
    // On Get notifications on new alerts
    On  AlertNotifications = "On"
)

func PossibleAlertNotificationsValues Uses

func PossibleAlertNotificationsValues() []AlertNotifications

PossibleAlertNotificationsValues returns an array of possible values for the AlertNotifications const type.

type AlertProperties Uses

type AlertProperties struct {
    // State - READ-ONLY; State of the alert (Active, Dismissed etc.)
    State *string `json:"state,omitempty"`
    // ReportedTimeUtc - READ-ONLY; The time the incident was reported to Microsoft.Security in UTC
    ReportedTimeUtc *date.Time `json:"reportedTimeUtc,omitempty"`
    // VendorName - READ-ONLY; Name of the vendor that discovered the incident
    VendorName *string `json:"vendorName,omitempty"`
    // AlertName - READ-ONLY; Name of the alert type
    AlertName *string `json:"alertName,omitempty"`
    // AlertDisplayName - READ-ONLY; Display name of the alert type
    AlertDisplayName *string `json:"alertDisplayName,omitempty"`
    // DetectedTimeUtc - READ-ONLY; The time the incident was detected by the vendor
    DetectedTimeUtc *date.Time `json:"detectedTimeUtc,omitempty"`
    // Description - READ-ONLY; Description of the incident and what it means
    Description *string `json:"description,omitempty"`
    // RemediationSteps - READ-ONLY; Recommended steps to reradiate the incident
    RemediationSteps *string `json:"remediationSteps,omitempty"`
    // ActionTaken - READ-ONLY; The action that was taken as a response to the alert (Active, Blocked etc.)
    ActionTaken *string `json:"actionTaken,omitempty"`
    // ReportedSeverity - READ-ONLY; Estimated severity of this alert. Possible values include: 'Silent', 'Information', 'Low', 'High'
    ReportedSeverity ReportedSeverity `json:"reportedSeverity,omitempty"`
    // CompromisedEntity - READ-ONLY; The entity that the incident happened on
    CompromisedEntity *string `json:"compromisedEntity,omitempty"`
    // AssociatedResource - READ-ONLY; Azure resource ID of the associated resource
    AssociatedResource *string                `json:"associatedResource,omitempty"`
    ExtendedProperties map[string]interface{} `json:"extendedProperties"`
    // SystemSource - READ-ONLY; The type of the alerted resource (Azure, Non-Azure)
    SystemSource *string `json:"systemSource,omitempty"`
    // CanBeInvestigated - READ-ONLY; Whether this alert can be investigated with Azure Security Center
    CanBeInvestigated *bool `json:"canBeInvestigated,omitempty"`
    // IsIncident - READ-ONLY; Whether this alert is for incident type or not (otherwise - single alert)
    IsIncident *bool `json:"isIncident,omitempty"`
    // Entities - objects that are related to this alerts
    Entities *[]AlertEntity `json:"entities,omitempty"`
    // ConfidenceScore - READ-ONLY; level of confidence we have on the alert
    ConfidenceScore *float64 `json:"confidenceScore,omitempty"`
    // ConfidenceReasons - reasons the alert got the confidenceScore value
    ConfidenceReasons *[]AlertConfidenceReason `json:"confidenceReasons,omitempty"`
    // SubscriptionID - READ-ONLY; Azure subscription ID of the resource that had the security alert or the subscription ID of the workspace that this resource reports to
    SubscriptionID *string `json:"subscriptionId,omitempty"`
    // InstanceID - READ-ONLY; Instance ID of the alert.
    InstanceID *string `json:"instanceId,omitempty"`
    // WorkspaceArmID - READ-ONLY; Azure resource ID of the workspace that the alert was reported to.
    WorkspaceArmID *string `json:"workspaceArmId,omitempty"`
    // CorrelationKey - READ-ONLY; Alerts with the same CorrelationKey will be grouped together in Ibiza.
    CorrelationKey *string `json:"correlationKey,omitempty"`
}

AlertProperties describes security alert properties.

func (AlertProperties) MarshalJSON Uses

func (ap AlertProperties) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for AlertProperties.

type AlertsClient Uses

type AlertsClient struct {
    BaseClient
}

AlertsClient is the API spec for Microsoft.Security (Azure Security Center) resource provider

func NewAlertsClient Uses

func NewAlertsClient(subscriptionID string, ascLocation string) AlertsClient

NewAlertsClient creates an instance of the AlertsClient client.

func NewAlertsClientWithBaseURI Uses

func NewAlertsClientWithBaseURI(baseURI string, subscriptionID string, ascLocation string) AlertsClient

NewAlertsClientWithBaseURI creates an instance of the AlertsClient client.

func (AlertsClient) GetResourceGroupLevelAlerts Uses

func (client AlertsClient) GetResourceGroupLevelAlerts(ctx context.Context, alertName string, resourceGroupName string) (result Alert, err error)

GetResourceGroupLevelAlerts get an alert that is associated a resource group or a resource in a resource group Parameters: alertName - name of the alert object resourceGroupName - the name of the resource group within the user's subscription. The name is case insensitive.

func (AlertsClient) GetResourceGroupLevelAlertsPreparer Uses

func (client AlertsClient) GetResourceGroupLevelAlertsPreparer(ctx context.Context, alertName string, resourceGroupName string) (*http.Request, error)

GetResourceGroupLevelAlertsPreparer prepares the GetResourceGroupLevelAlerts request.

func (AlertsClient) GetResourceGroupLevelAlertsResponder Uses

func (client AlertsClient) GetResourceGroupLevelAlertsResponder(resp *http.Response) (result Alert, err error)

GetResourceGroupLevelAlertsResponder handles the response to the GetResourceGroupLevelAlerts request. The method always closes the http.Response Body.

func (AlertsClient) GetResourceGroupLevelAlertsSender Uses

func (client AlertsClient) GetResourceGroupLevelAlertsSender(req *http.Request) (*http.Response, error)

GetResourceGroupLevelAlertsSender sends the GetResourceGroupLevelAlerts request. The method will close the http.Response Body if it receives an error.

func (AlertsClient) GetSubscriptionLevelAlert Uses

func (client AlertsClient) GetSubscriptionLevelAlert(ctx context.Context, alertName string) (result Alert, err error)

GetSubscriptionLevelAlert get an alert that is associated with a subscription Parameters: alertName - name of the alert object

func (AlertsClient) GetSubscriptionLevelAlertPreparer Uses

func (client AlertsClient) GetSubscriptionLevelAlertPreparer(ctx context.Context, alertName string) (*http.Request, error)

GetSubscriptionLevelAlertPreparer prepares the GetSubscriptionLevelAlert request.

func (AlertsClient) GetSubscriptionLevelAlertResponder Uses

func (client AlertsClient) GetSubscriptionLevelAlertResponder(resp *http.Response) (result Alert, err error)

GetSubscriptionLevelAlertResponder handles the response to the GetSubscriptionLevelAlert request. The method always closes the http.Response Body.

func (AlertsClient) GetSubscriptionLevelAlertSender Uses

func (client AlertsClient) GetSubscriptionLevelAlertSender(req *http.Request) (*http.Response, error)

GetSubscriptionLevelAlertSender sends the GetSubscriptionLevelAlert request. The method will close the http.Response Body if it receives an error.

func (AlertsClient) List Uses

func (client AlertsClient) List(ctx context.Context, filter string, selectParameter string, expand string) (result AlertListPage, err error)

List list all the alerts that are associated with the subscription Parameters: filter - oData filter. Optional. selectParameter - oData select. Optional. expand - oData expand. Optional.

func (AlertsClient) ListByResourceGroup Uses

func (client AlertsClient) ListByResourceGroup(ctx context.Context, resourceGroupName string, filter string, selectParameter string, expand string) (result AlertListPage, err error)

ListByResourceGroup list all the alerts that are associated with the resource group Parameters: resourceGroupName - the name of the resource group within the user's subscription. The name is case insensitive. filter - oData filter. Optional. selectParameter - oData select. Optional. expand - oData expand. Optional.

func (AlertsClient) ListByResourceGroupComplete Uses

func (client AlertsClient) ListByResourceGroupComplete(ctx context.Context, resourceGroupName string, filter string, selectParameter string, expand string) (result AlertListIterator, err error)

ListByResourceGroupComplete enumerates all values, automatically crossing page boundaries as required.

func (AlertsClient) ListByResourceGroupPreparer Uses

func (client AlertsClient) ListByResourceGroupPreparer(ctx context.Context, resourceGroupName string, filter string, selectParameter string, expand string) (*http.Request, error)

ListByResourceGroupPreparer prepares the ListByResourceGroup request.

func (AlertsClient) ListByResourceGroupResponder Uses

func (client AlertsClient) ListByResourceGroupResponder(resp *http.Response) (result AlertList, err error)

ListByResourceGroupResponder handles the response to the ListByResourceGroup request. The method always closes the http.Response Body.

func (AlertsClient) ListByResourceGroupSender Uses

func (client AlertsClient) ListByResourceGroupSender(req *http.Request) (*http.Response, error)

ListByResourceGroupSender sends the ListByResourceGroup request. The method will close the http.Response Body if it receives an error.

func (AlertsClient) ListComplete Uses

func (client AlertsClient) ListComplete(ctx context.Context, filter string, selectParameter string, expand string) (result AlertListIterator, err error)

ListComplete enumerates all values, automatically crossing page boundaries as required.

func (AlertsClient) ListPreparer Uses

func (client AlertsClient) ListPreparer(ctx context.Context, filter string, selectParameter string, expand string) (*http.Request, error)

ListPreparer prepares the List request.

func (AlertsClient) ListResourceGroupLevelAlertsByRegion Uses

func (client AlertsClient) ListResourceGroupLevelAlertsByRegion(ctx context.Context, resourceGroupName string, filter string, selectParameter string, expand string) (result AlertListPage, err error)

ListResourceGroupLevelAlertsByRegion list all the alerts that are associated with the resource group that are stored in a specific location Parameters: resourceGroupName - the name of the resource group within the user's subscription. The name is case insensitive. filter - oData filter. Optional. selectParameter - oData select. Optional. expand - oData expand. Optional.

func (AlertsClient) ListResourceGroupLevelAlertsByRegionComplete Uses

func (client AlertsClient) ListResourceGroupLevelAlertsByRegionComplete(ctx context.Context, resourceGroupName string, filter string, selectParameter string, expand string) (result AlertListIterator, err error)

ListResourceGroupLevelAlertsByRegionComplete enumerates all values, automatically crossing page boundaries as required.

func (AlertsClient) ListResourceGroupLevelAlertsByRegionPreparer Uses

func (client AlertsClient) ListResourceGroupLevelAlertsByRegionPreparer(ctx context.Context, resourceGroupName string, filter string, selectParameter string, expand string) (*http.Request, error)

ListResourceGroupLevelAlertsByRegionPreparer prepares the ListResourceGroupLevelAlertsByRegion request.

func (AlertsClient) ListResourceGroupLevelAlertsByRegionResponder Uses

func (client AlertsClient) ListResourceGroupLevelAlertsByRegionResponder(resp *http.Response) (result AlertList, err error)

ListResourceGroupLevelAlertsByRegionResponder handles the response to the ListResourceGroupLevelAlertsByRegion request. The method always closes the http.Response Body.

func (AlertsClient) ListResourceGroupLevelAlertsByRegionSender Uses

func (client AlertsClient) ListResourceGroupLevelAlertsByRegionSender(req *http.Request) (*http.Response, error)

ListResourceGroupLevelAlertsByRegionSender sends the ListResourceGroupLevelAlertsByRegion request. The method will close the http.Response Body if it receives an error.

func (AlertsClient) ListResponder Uses

func (client AlertsClient) ListResponder(resp *http.Response) (result AlertList, err error)

ListResponder handles the response to the List request. The method always closes the http.Response Body.

func (AlertsClient) ListSender Uses

func (client AlertsClient) ListSender(req *http.Request) (*http.Response, error)

ListSender sends the List request. The method will close the http.Response Body if it receives an error.

func (AlertsClient) ListSubscriptionLevelAlertsByRegion Uses

func (client AlertsClient) ListSubscriptionLevelAlertsByRegion(ctx context.Context, filter string, selectParameter string, expand string) (result AlertListPage, err error)

ListSubscriptionLevelAlertsByRegion list all the alerts that are associated with the subscription that are stored in a specific location Parameters: filter - oData filter. Optional. selectParameter - oData select. Optional. expand - oData expand. Optional.

func (AlertsClient) ListSubscriptionLevelAlertsByRegionComplete Uses

func (client AlertsClient) ListSubscriptionLevelAlertsByRegionComplete(ctx context.Context, filter string, selectParameter string, expand string) (result AlertListIterator, err error)

ListSubscriptionLevelAlertsByRegionComplete enumerates all values, automatically crossing page boundaries as required.

func (AlertsClient) ListSubscriptionLevelAlertsByRegionPreparer Uses

func (client AlertsClient) ListSubscriptionLevelAlertsByRegionPreparer(ctx context.Context, filter string, selectParameter string, expand string) (*http.Request, error)

ListSubscriptionLevelAlertsByRegionPreparer prepares the ListSubscriptionLevelAlertsByRegion request.

func (AlertsClient) ListSubscriptionLevelAlertsByRegionResponder Uses

func (client AlertsClient) ListSubscriptionLevelAlertsByRegionResponder(resp *http.Response) (result AlertList, err error)

ListSubscriptionLevelAlertsByRegionResponder handles the response to the ListSubscriptionLevelAlertsByRegion request. The method always closes the http.Response Body.

func (AlertsClient) ListSubscriptionLevelAlertsByRegionSender Uses

func (client AlertsClient) ListSubscriptionLevelAlertsByRegionSender(req *http.Request) (*http.Response, error)

ListSubscriptionLevelAlertsByRegionSender sends the ListSubscriptionLevelAlertsByRegion request. The method will close the http.Response Body if it receives an error.

func (AlertsClient) UpdateResourceGroupLevelAlertState Uses

func (client AlertsClient) UpdateResourceGroupLevelAlertState(ctx context.Context, alertName string, alertUpdateActionType string, resourceGroupName string) (result autorest.Response, err error)

UpdateResourceGroupLevelAlertState update the alert's state Parameters: alertName - name of the alert object alertUpdateActionType - type of the action to do on the alert resourceGroupName - the name of the resource group within the user's subscription. The name is case insensitive.

func (AlertsClient) UpdateResourceGroupLevelAlertStatePreparer Uses

func (client AlertsClient) UpdateResourceGroupLevelAlertStatePreparer(ctx context.Context, alertName string, alertUpdateActionType string, resourceGroupName string) (*http.Request, error)

UpdateResourceGroupLevelAlertStatePreparer prepares the UpdateResourceGroupLevelAlertState request.

func (AlertsClient) UpdateResourceGroupLevelAlertStateResponder Uses

func (client AlertsClient) UpdateResourceGroupLevelAlertStateResponder(resp *http.Response) (result autorest.Response, err error)

UpdateResourceGroupLevelAlertStateResponder handles the response to the UpdateResourceGroupLevelAlertState request. The method always closes the http.Response Body.

func (AlertsClient) UpdateResourceGroupLevelAlertStateSender Uses

func (client AlertsClient) UpdateResourceGroupLevelAlertStateSender(req *http.Request) (*http.Response, error)

UpdateResourceGroupLevelAlertStateSender sends the UpdateResourceGroupLevelAlertState request. The method will close the http.Response Body if it receives an error.

func (AlertsClient) UpdateSubscriptionLevelAlertState Uses

func (client AlertsClient) UpdateSubscriptionLevelAlertState(ctx context.Context, alertName string, alertUpdateActionType string) (result autorest.Response, err error)

UpdateSubscriptionLevelAlertState update the alert's state Parameters: alertName - name of the alert object alertUpdateActionType - type of the action to do on the alert

func (AlertsClient) UpdateSubscriptionLevelAlertStatePreparer Uses

func (client AlertsClient) UpdateSubscriptionLevelAlertStatePreparer(ctx context.Context, alertName string, alertUpdateActionType string) (*http.Request, error)

UpdateSubscriptionLevelAlertStatePreparer prepares the UpdateSubscriptionLevelAlertState request.

func (AlertsClient) UpdateSubscriptionLevelAlertStateResponder Uses

func (client AlertsClient) UpdateSubscriptionLevelAlertStateResponder(resp *http.Response) (result autorest.Response, err error)

UpdateSubscriptionLevelAlertStateResponder handles the response to the UpdateSubscriptionLevelAlertState request. The method always closes the http.Response Body.

func (AlertsClient) UpdateSubscriptionLevelAlertStateSender Uses

func (client AlertsClient) UpdateSubscriptionLevelAlertStateSender(req *http.Request) (*http.Response, error)

UpdateSubscriptionLevelAlertStateSender sends the UpdateSubscriptionLevelAlertState request. The method will close the http.Response Body if it receives an error.

type AlertsToAdmins Uses

type AlertsToAdmins string

AlertsToAdmins enumerates the values for alerts to admins.

const (
    // AlertsToAdminsOff Don't send notification on new alerts to the subscription's admins
    AlertsToAdminsOff AlertsToAdmins = "Off"
    // AlertsToAdminsOn Send notification on new alerts to the subscription's admins
    AlertsToAdminsOn AlertsToAdmins = "On"
)

func PossibleAlertsToAdminsValues Uses

func PossibleAlertsToAdminsValues() []AlertsToAdmins

PossibleAlertsToAdminsValues returns an array of possible values for the AlertsToAdmins const type.

type AllowedConnectionsClient Uses

type AllowedConnectionsClient struct {
    BaseClient
}

AllowedConnectionsClient is the API spec for Microsoft.Security (Azure Security Center) resource provider

func NewAllowedConnectionsClient Uses

func NewAllowedConnectionsClient(subscriptionID string, ascLocation string) AllowedConnectionsClient

NewAllowedConnectionsClient creates an instance of the AllowedConnectionsClient client.

func NewAllowedConnectionsClientWithBaseURI Uses

func NewAllowedConnectionsClientWithBaseURI(baseURI string, subscriptionID string, ascLocation string) AllowedConnectionsClient

NewAllowedConnectionsClientWithBaseURI creates an instance of the AllowedConnectionsClient client.

func (AllowedConnectionsClient) Get Uses

func (client AllowedConnectionsClient) Get(ctx context.Context, resourceGroupName string, connectionType ConnectionType) (result AllowedConnectionsResource, err error)

Get gets the list of all possible traffic between resources for the subscription and location, based on connection type. Parameters: resourceGroupName - the name of the resource group within the user's subscription. The name is case insensitive. connectionType - the type of allowed connections (Internal, External)

func (AllowedConnectionsClient) GetPreparer Uses

func (client AllowedConnectionsClient) GetPreparer(ctx context.Context, resourceGroupName string, connectionType ConnectionType) (*http.Request, error)

GetPreparer prepares the Get request.

func (AllowedConnectionsClient) GetResponder Uses

func (client AllowedConnectionsClient) GetResponder(resp *http.Response) (result AllowedConnectionsResource, err error)

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (AllowedConnectionsClient) GetSender Uses

func (client AllowedConnectionsClient) GetSender(req *http.Request) (*http.Response, error)

GetSender sends the Get request. The method will close the http.Response Body if it receives an error.

func (AllowedConnectionsClient) List Uses

func (client AllowedConnectionsClient) List(ctx context.Context) (result AllowedConnectionsListPage, err error)

List gets the list of all possible traffic between resources for the subscription

func (AllowedConnectionsClient) ListByHomeRegion Uses

func (client AllowedConnectionsClient) ListByHomeRegion(ctx context.Context) (result AllowedConnectionsListPage, err error)

ListByHomeRegion gets the list of all possible traffic between resources for the subscription and location.

func (AllowedConnectionsClient) ListByHomeRegionComplete Uses

func (client AllowedConnectionsClient) ListByHomeRegionComplete(ctx context.Context) (result AllowedConnectionsListIterator, err error)

ListByHomeRegionComplete enumerates all values, automatically crossing page boundaries as required.

func (AllowedConnectionsClient) ListByHomeRegionPreparer Uses

func (client AllowedConnectionsClient) ListByHomeRegionPreparer(ctx context.Context) (*http.Request, error)

ListByHomeRegionPreparer prepares the ListByHomeRegion request.

func (AllowedConnectionsClient) ListByHomeRegionResponder Uses

func (client AllowedConnectionsClient) ListByHomeRegionResponder(resp *http.Response) (result AllowedConnectionsList, err error)

ListByHomeRegionResponder handles the response to the ListByHomeRegion request. The method always closes the http.Response Body.

func (AllowedConnectionsClient) ListByHomeRegionSender Uses

func (client AllowedConnectionsClient) ListByHomeRegionSender(req *http.Request) (*http.Response, error)

ListByHomeRegionSender sends the ListByHomeRegion request. The method will close the http.Response Body if it receives an error.

func (AllowedConnectionsClient) ListComplete Uses

func (client AllowedConnectionsClient) ListComplete(ctx context.Context) (result AllowedConnectionsListIterator, err error)

ListComplete enumerates all values, automatically crossing page boundaries as required.

func (AllowedConnectionsClient) ListPreparer Uses

func (client AllowedConnectionsClient) ListPreparer(ctx context.Context) (*http.Request, error)

ListPreparer prepares the List request.

func (AllowedConnectionsClient) ListResponder Uses

func (client AllowedConnectionsClient) ListResponder(resp *http.Response) (result AllowedConnectionsList, err error)

ListResponder handles the response to the List request. The method always closes the http.Response Body.

func (AllowedConnectionsClient) ListSender Uses

func (client AllowedConnectionsClient) ListSender(req *http.Request) (*http.Response, error)

ListSender sends the List request. The method will close the http.Response Body if it receives an error.

type AllowedConnectionsList Uses

type AllowedConnectionsList struct {
    autorest.Response `json:"-"`
    // Value - READ-ONLY
    Value *[]AllowedConnectionsResource `json:"value,omitempty"`
    // NextLink - READ-ONLY; The URI to fetch the next page.
    NextLink *string `json:"nextLink,omitempty"`
}

AllowedConnectionsList list of all possible traffic between Azure resources

func (AllowedConnectionsList) IsEmpty Uses

func (ACL AllowedConnectionsList) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type AllowedConnectionsListIterator Uses

type AllowedConnectionsListIterator struct {
    // contains filtered or unexported fields
}

AllowedConnectionsListIterator provides access to a complete listing of AllowedConnectionsResource values.

func NewAllowedConnectionsListIterator Uses

func NewAllowedConnectionsListIterator(page AllowedConnectionsListPage) AllowedConnectionsListIterator

Creates a new instance of the AllowedConnectionsListIterator type.

func (*AllowedConnectionsListIterator) Next Uses

func (iter *AllowedConnectionsListIterator) Next() error

Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*AllowedConnectionsListIterator) NextWithContext Uses

func (iter *AllowedConnectionsListIterator) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.

func (AllowedConnectionsListIterator) NotDone Uses

func (iter AllowedConnectionsListIterator) NotDone() bool

NotDone returns true if the enumeration should be started or is not yet complete.

func (AllowedConnectionsListIterator) Response Uses

func (iter AllowedConnectionsListIterator) Response() AllowedConnectionsList

Response returns the raw server response from the last page request.

func (AllowedConnectionsListIterator) Value Uses

func (iter AllowedConnectionsListIterator) Value() AllowedConnectionsResource

Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.

type AllowedConnectionsListPage Uses

type AllowedConnectionsListPage struct {
    ACL AllowedConnectionsList
    // contains filtered or unexported fields
}

AllowedConnectionsListPage contains a page of AllowedConnectionsResource values.

func NewAllowedConnectionsListPage Uses

func NewAllowedConnectionsListPage(getNextPage func(context.Context, AllowedConnectionsList) (AllowedConnectionsList, error)) AllowedConnectionsListPage

Creates a new instance of the AllowedConnectionsListPage type.

func (*AllowedConnectionsListPage) Next Uses

func (page *AllowedConnectionsListPage) Next() error

Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*AllowedConnectionsListPage) NextWithContext Uses

func (page *AllowedConnectionsListPage) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.

func (AllowedConnectionsListPage) NotDone Uses

func (page AllowedConnectionsListPage) NotDone() bool

NotDone returns true if the page enumeration should be started or is not yet complete.

func (AllowedConnectionsListPage) Response Uses

func (page AllowedConnectionsListPage) Response() AllowedConnectionsList

Response returns the raw server response from the last page request.

func (AllowedConnectionsListPage) Values Uses

func (page AllowedConnectionsListPage) Values() []AllowedConnectionsResource

Values returns the slice of values for the current page or nil if there are no values.

type AllowedConnectionsResource Uses

type AllowedConnectionsResource struct {
    autorest.Response `json:"-"`
    // ID - READ-ONLY; Resource Id
    ID  *string `json:"id,omitempty"`
    // Name - READ-ONLY; Resource name
    Name *string `json:"name,omitempty"`
    // Type - READ-ONLY; Resource type
    Type *string `json:"type,omitempty"`
    // Location - READ-ONLY; Location where the resource is stored
    Location *string `json:"location,omitempty"`
    // AllowedConnectionsResourceProperties - READ-ONLY
    *AllowedConnectionsResourceProperties `json:"properties,omitempty"`
}

AllowedConnectionsResource the resource whose properties describes the allowed traffic between Azure resources

func (AllowedConnectionsResource) MarshalJSON Uses

func (acr AllowedConnectionsResource) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for AllowedConnectionsResource.

func (*AllowedConnectionsResource) UnmarshalJSON Uses

func (acr *AllowedConnectionsResource) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for AllowedConnectionsResource struct.

type AllowedConnectionsResourceProperties Uses

type AllowedConnectionsResourceProperties struct {
    // CalculatedDateTime - READ-ONLY; The UTC time on which the allowed connections resource was calculated
    CalculatedDateTime *date.Time `json:"calculatedDateTime,omitempty"`
    // ConnectableResources - READ-ONLY; List of connectable resources
    ConnectableResources *[]ConnectableResource `json:"connectableResources,omitempty"`
}

AllowedConnectionsResourceProperties describes the allowed traffic between Azure resources

type AllowlistCustomAlertRule Uses

type AllowlistCustomAlertRule struct {
    // AllowlistValues - The values to allow. The format of the values depends on the rule type.
    AllowlistValues *[]string `json:"allowlistValues,omitempty"`
    // ValueType - READ-ONLY; The value type of the items in the list. Possible values include: 'IPCidr', 'String'
    ValueType ValueType `json:"valueType,omitempty"`
    // DisplayName - READ-ONLY; The display name of the custom alert.
    DisplayName *string `json:"displayName,omitempty"`
    // Description - READ-ONLY; The description of the custom alert.
    Description *string `json:"description,omitempty"`
    // IsEnabled - Whether the custom alert is enabled.
    IsEnabled *bool `json:"isEnabled,omitempty"`
    // RuleType - The type of the custom alert rule.
    RuleType *string `json:"ruleType,omitempty"`
}

AllowlistCustomAlertRule a custom alert rule that checks if a value (depends on the custom alert type) is allowed

type AppWhitelistingGroup Uses

type AppWhitelistingGroup struct {
    autorest.Response `json:"-"`
    // ID - READ-ONLY; Resource Id
    ID  *string `json:"id,omitempty"`
    // Name - READ-ONLY; Resource name
    Name *string `json:"name,omitempty"`
    // Type - READ-ONLY; Resource type
    Type *string `json:"type,omitempty"`
    // Location - READ-ONLY; Location where the resource is stored
    Location                  *string `json:"location,omitempty"`
    *AppWhitelistingGroupData `json:"properties,omitempty"`
}

AppWhitelistingGroup ...

func (AppWhitelistingGroup) MarshalJSON Uses

func (awg AppWhitelistingGroup) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for AppWhitelistingGroup.

func (*AppWhitelistingGroup) UnmarshalJSON Uses

func (awg *AppWhitelistingGroup) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for AppWhitelistingGroup struct.

type AppWhitelistingGroupData Uses

type AppWhitelistingGroupData struct {
    // EnforcementMode - Possible values include: 'Audit', 'Enforce'
    EnforcementMode EnforcementMode `json:"enforcementMode,omitempty"`
    // ConfigurationStatus - Possible values include: 'ConfigurationStatus2Configured', 'ConfigurationStatus2NotConfigured', 'ConfigurationStatus2InProgress', 'ConfigurationStatus2Failed', 'ConfigurationStatus2NoStatus'
    ConfigurationStatus ConfigurationStatus2 `json:"configurationStatus,omitempty"`
    // RecommendationStatus - Possible values include: 'RecommendationStatusRecommended', 'RecommendationStatusNotRecommended', 'RecommendationStatusNotAvailable', 'RecommendationStatusNoStatus'
    RecommendationStatus RecommendationStatus           `json:"recommendationStatus,omitempty"`
    Issues               *[]AppWhitelistingIssueSummary `json:"issues,omitempty"`
    // SourceSystem - Possible values include: 'AzureAppLocker', 'AzureAuditD', 'NonAzureAppLocker', 'NonAzureAuditD', 'None'
    SourceSystem        SourceSystem          `json:"sourceSystem,omitempty"`
    VMRecommendations   *[]VMRecommendation   `json:"vmRecommendations,omitempty"`
    PathRecommendations *[]PathRecommendation `json:"pathRecommendations,omitempty"`
}

AppWhitelistingGroupData represents a VM/server group and set of rules that are Recommended by Azure Security Center to be allowed

type AppWhitelistingGroups Uses

type AppWhitelistingGroups struct {
    autorest.Response `json:"-"`
    Value             *[]AppWhitelistingGroup `json:"value,omitempty"`
}

AppWhitelistingGroups represents a list of VM/server groups and set of rules that are Recommended by Azure Security Center to be allowed

type AppWhitelistingIssueSummary Uses

type AppWhitelistingIssueSummary struct {
    // Issue - Possible values include: 'ViolationsAudited', 'ViolationsBlocked', 'MsiAndScriptViolationsAudited', 'MsiAndScriptViolationsBlocked', 'ExecutableViolationsAudited', 'RulesViolatedManually'
    Issue Issue `json:"issue,omitempty"`
    // NumberOfVms - The number of machines in the VM/server group that have this alert
    NumberOfVms *float64 `json:"numberOfVms,omitempty"`
}

AppWhitelistingIssueSummary represents a summary of the alerts of the VM/server group

type AppWhitelistingPutGroupData Uses

type AppWhitelistingPutGroupData struct {
    // EnforcementMode - Possible values include: 'EnforcementMode1Audit', 'EnforcementMode1Enforce'
    EnforcementMode     EnforcementMode1      `json:"enforcementMode,omitempty"`
    VMRecommendations   *[]VMRecommendation   `json:"vmRecommendations,omitempty"`
    PathRecommendations *[]PathRecommendation `json:"pathRecommendations,omitempty"`
}

AppWhitelistingPutGroupData the altered data of the recommended VM/server group policy

type AscLocation Uses

type AscLocation struct {
    autorest.Response `json:"-"`
    Properties        interface{} `json:"properties,omitempty"`
    // ID - READ-ONLY; Resource Id
    ID  *string `json:"id,omitempty"`
    // Name - READ-ONLY; Resource name
    Name *string `json:"name,omitempty"`
    // Type - READ-ONLY; Resource type
    Type *string `json:"type,omitempty"`
}

AscLocation the ASC location of the subscription is in the "name" field

type AscLocationList Uses

type AscLocationList struct {
    autorest.Response `json:"-"`
    // Value - READ-ONLY
    Value *[]AscLocation `json:"value,omitempty"`
    // NextLink - READ-ONLY; The URI to fetch the next page.
    NextLink *string `json:"nextLink,omitempty"`
}

AscLocationList list of locations where ASC saves your data

func (AscLocationList) IsEmpty Uses

func (all AscLocationList) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type AscLocationListIterator Uses

type AscLocationListIterator struct {
    // contains filtered or unexported fields
}

AscLocationListIterator provides access to a complete listing of AscLocation values.

func NewAscLocationListIterator Uses

func NewAscLocationListIterator(page AscLocationListPage) AscLocationListIterator

Creates a new instance of the AscLocationListIterator type.

func (*AscLocationListIterator) Next Uses

func (iter *AscLocationListIterator) Next() error

Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*AscLocationListIterator) NextWithContext Uses

func (iter *AscLocationListIterator) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.

func (AscLocationListIterator) NotDone Uses

func (iter AscLocationListIterator) NotDone() bool

NotDone returns true if the enumeration should be started or is not yet complete.

func (AscLocationListIterator) Response Uses

func (iter AscLocationListIterator) Response() AscLocationList

Response returns the raw server response from the last page request.

func (AscLocationListIterator) Value Uses

func (iter AscLocationListIterator) Value() AscLocation

Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.

type AscLocationListPage Uses

type AscLocationListPage struct {
    // contains filtered or unexported fields
}

AscLocationListPage contains a page of AscLocation values.

func NewAscLocationListPage Uses

func NewAscLocationListPage(getNextPage func(context.Context, AscLocationList) (AscLocationList, error)) AscLocationListPage

Creates a new instance of the AscLocationListPage type.

func (*AscLocationListPage) Next Uses

func (page *AscLocationListPage) Next() error

Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*AscLocationListPage) NextWithContext Uses

func (page *AscLocationListPage) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.

func (AscLocationListPage) NotDone Uses

func (page AscLocationListPage) NotDone() bool

NotDone returns true if the page enumeration should be started or is not yet complete.

func (AscLocationListPage) Response Uses

func (page AscLocationListPage) Response() AscLocationList

Response returns the raw server response from the last page request.

func (AscLocationListPage) Values Uses

func (page AscLocationListPage) Values() []AscLocation

Values returns the slice of values for the current page or nil if there are no values.

type AtaExternalSecuritySolution Uses

type AtaExternalSecuritySolution struct {
    Properties *AtaSolutionProperties `json:"properties,omitempty"`
    // ID - READ-ONLY; Resource Id
    ID  *string `json:"id,omitempty"`
    // Name - READ-ONLY; Resource name
    Name *string `json:"name,omitempty"`
    // Type - READ-ONLY; Resource type
    Type *string `json:"type,omitempty"`
    // Location - READ-ONLY; Location where the resource is stored
    Location *string `json:"location,omitempty"`
    // Kind - Possible values include: 'KindExternalSecuritySolution', 'KindCEF', 'KindATA', 'KindAAD'
    Kind KindEnum `json:"kind,omitempty"`
}

AtaExternalSecuritySolution represents an ATA security solution which sends logs to an OMS workspace

func (AtaExternalSecuritySolution) AsAadExternalSecuritySolution Uses

func (aess AtaExternalSecuritySolution) AsAadExternalSecuritySolution() (*AadExternalSecuritySolution, bool)

AsAadExternalSecuritySolution is the BasicExternalSecuritySolution implementation for AtaExternalSecuritySolution.

func (AtaExternalSecuritySolution) AsAtaExternalSecuritySolution Uses

func (aess AtaExternalSecuritySolution) AsAtaExternalSecuritySolution() (*AtaExternalSecuritySolution, bool)

AsAtaExternalSecuritySolution is the BasicExternalSecuritySolution implementation for AtaExternalSecuritySolution.

func (AtaExternalSecuritySolution) AsBasicExternalSecuritySolution Uses

func (aess AtaExternalSecuritySolution) AsBasicExternalSecuritySolution() (BasicExternalSecuritySolution, bool)

AsBasicExternalSecuritySolution is the BasicExternalSecuritySolution implementation for AtaExternalSecuritySolution.

func (AtaExternalSecuritySolution) AsCefExternalSecuritySolution Uses

func (aess AtaExternalSecuritySolution) AsCefExternalSecuritySolution() (*CefExternalSecuritySolution, bool)

AsCefExternalSecuritySolution is the BasicExternalSecuritySolution implementation for AtaExternalSecuritySolution.

func (AtaExternalSecuritySolution) AsExternalSecuritySolution Uses

func (aess AtaExternalSecuritySolution) AsExternalSecuritySolution() (*ExternalSecuritySolution, bool)

AsExternalSecuritySolution is the BasicExternalSecuritySolution implementation for AtaExternalSecuritySolution.

func (AtaExternalSecuritySolution) MarshalJSON Uses

func (aess AtaExternalSecuritySolution) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for AtaExternalSecuritySolution.

type AtaSolutionProperties Uses

type AtaSolutionProperties struct {
    LastEventReceived *string `json:"lastEventReceived,omitempty"`
    // AdditionalProperties - Unmatched properties from the message are deserialized this collection
    AdditionalProperties map[string]interface{} `json:""`
    DeviceVendor         *string                `json:"deviceVendor,omitempty"`
    DeviceType           *string                `json:"deviceType,omitempty"`
    Workspace            *ConnectedWorkspace    `json:"workspace,omitempty"`
}

AtaSolutionProperties ...

func (AtaSolutionProperties) MarshalJSON Uses

func (asp AtaSolutionProperties) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for AtaSolutionProperties.

func (*AtaSolutionProperties) UnmarshalJSON Uses

func (asp *AtaSolutionProperties) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for AtaSolutionProperties struct.

type AutoProvision Uses

type AutoProvision string

AutoProvision enumerates the values for auto provision.

const (
    // AutoProvisionOff Do not install security agent on the VMs automatically
    AutoProvisionOff AutoProvision = "Off"
    // AutoProvisionOn Install missing security agent on VMs automatically
    AutoProvisionOn AutoProvision = "On"
)

func PossibleAutoProvisionValues Uses

func PossibleAutoProvisionValues() []AutoProvision

PossibleAutoProvisionValues returns an array of possible values for the AutoProvision const type.

type AutoProvisioningSetting Uses

type AutoProvisioningSetting struct {
    autorest.Response `json:"-"`
    // AutoProvisioningSettingProperties - Auto provisioning setting data
    *AutoProvisioningSettingProperties `json:"properties,omitempty"`
    // ID - READ-ONLY; Resource Id
    ID  *string `json:"id,omitempty"`
    // Name - READ-ONLY; Resource name
    Name *string `json:"name,omitempty"`
    // Type - READ-ONLY; Resource type
    Type *string `json:"type,omitempty"`
}

AutoProvisioningSetting auto provisioning setting

func (AutoProvisioningSetting) MarshalJSON Uses

func (aps AutoProvisioningSetting) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for AutoProvisioningSetting.

func (*AutoProvisioningSetting) UnmarshalJSON Uses

func (aps *AutoProvisioningSetting) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for AutoProvisioningSetting struct.

type AutoProvisioningSettingList Uses

type AutoProvisioningSettingList struct {
    autorest.Response `json:"-"`
    // Value - List of all the auto provisioning settings
    Value *[]AutoProvisioningSetting `json:"value,omitempty"`
    // NextLink - READ-ONLY; The URI to fetch the next page.
    NextLink *string `json:"nextLink,omitempty"`
}

AutoProvisioningSettingList list of all the auto provisioning settings response

func (AutoProvisioningSettingList) IsEmpty Uses

func (apsl AutoProvisioningSettingList) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type AutoProvisioningSettingListIterator Uses

type AutoProvisioningSettingListIterator struct {
    // contains filtered or unexported fields
}

AutoProvisioningSettingListIterator provides access to a complete listing of AutoProvisioningSetting values.

func NewAutoProvisioningSettingListIterator Uses

func NewAutoProvisioningSettingListIterator(page AutoProvisioningSettingListPage) AutoProvisioningSettingListIterator

Creates a new instance of the AutoProvisioningSettingListIterator type.

func (*AutoProvisioningSettingListIterator) Next Uses

func (iter *AutoProvisioningSettingListIterator) Next() error

Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*AutoProvisioningSettingListIterator) NextWithContext Uses

func (iter *AutoProvisioningSettingListIterator) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.

func (AutoProvisioningSettingListIterator) NotDone Uses

func (iter AutoProvisioningSettingListIterator) NotDone() bool

NotDone returns true if the enumeration should be started or is not yet complete.

func (AutoProvisioningSettingListIterator) Response Uses

func (iter AutoProvisioningSettingListIterator) Response() AutoProvisioningSettingList

Response returns the raw server response from the last page request.

func (AutoProvisioningSettingListIterator) Value Uses

func (iter AutoProvisioningSettingListIterator) Value() AutoProvisioningSetting

Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.

type AutoProvisioningSettingListPage Uses

type AutoProvisioningSettingListPage struct {
    // contains filtered or unexported fields
}

AutoProvisioningSettingListPage contains a page of AutoProvisioningSetting values.

func NewAutoProvisioningSettingListPage Uses

func NewAutoProvisioningSettingListPage(getNextPage func(context.Context, AutoProvisioningSettingList) (AutoProvisioningSettingList, error)) AutoProvisioningSettingListPage

Creates a new instance of the AutoProvisioningSettingListPage type.

func (*AutoProvisioningSettingListPage) Next Uses

func (page *AutoProvisioningSettingListPage) Next() error

Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*AutoProvisioningSettingListPage) NextWithContext Uses

func (page *AutoProvisioningSettingListPage) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.

func (AutoProvisioningSettingListPage) NotDone Uses

func (page AutoProvisioningSettingListPage) NotDone() bool

NotDone returns true if the page enumeration should be started or is not yet complete.

func (AutoProvisioningSettingListPage) Response Uses

func (page AutoProvisioningSettingListPage) Response() AutoProvisioningSettingList

Response returns the raw server response from the last page request.

func (AutoProvisioningSettingListPage) Values Uses

func (page AutoProvisioningSettingListPage) Values() []AutoProvisioningSetting

Values returns the slice of values for the current page or nil if there are no values.

type AutoProvisioningSettingProperties Uses

type AutoProvisioningSettingProperties struct {
    // AutoProvision - Describes what kind of security agent provisioning action to take. Possible values include: 'AutoProvisionOn', 'AutoProvisionOff'
    AutoProvision AutoProvision `json:"autoProvision,omitempty"`
}

AutoProvisioningSettingProperties describes properties of an auto provisioning setting

type AutoProvisioningSettingsClient Uses

type AutoProvisioningSettingsClient struct {
    BaseClient
}

AutoProvisioningSettingsClient is the API spec for Microsoft.Security (Azure Security Center) resource provider

func NewAutoProvisioningSettingsClient Uses

func NewAutoProvisioningSettingsClient(subscriptionID string, ascLocation string) AutoProvisioningSettingsClient

NewAutoProvisioningSettingsClient creates an instance of the AutoProvisioningSettingsClient client.

func NewAutoProvisioningSettingsClientWithBaseURI Uses

func NewAutoProvisioningSettingsClientWithBaseURI(baseURI string, subscriptionID string, ascLocation string) AutoProvisioningSettingsClient

NewAutoProvisioningSettingsClientWithBaseURI creates an instance of the AutoProvisioningSettingsClient client.

func (AutoProvisioningSettingsClient) Create Uses

func (client AutoProvisioningSettingsClient) Create(ctx context.Context, settingName string, setting AutoProvisioningSetting) (result AutoProvisioningSetting, err error)

Create details of a specific setting Parameters: settingName - auto provisioning setting key setting - auto provisioning setting key

func (AutoProvisioningSettingsClient) CreatePreparer Uses

func (client AutoProvisioningSettingsClient) CreatePreparer(ctx context.Context, settingName string, setting AutoProvisioningSetting) (*http.Request, error)

CreatePreparer prepares the Create request.

func (AutoProvisioningSettingsClient) CreateResponder Uses

func (client AutoProvisioningSettingsClient) CreateResponder(resp *http.Response) (result AutoProvisioningSetting, err error)

CreateResponder handles the response to the Create request. The method always closes the http.Response Body.

func (AutoProvisioningSettingsClient) CreateSender Uses

func (client AutoProvisioningSettingsClient) CreateSender(req *http.Request) (*http.Response, error)

CreateSender sends the Create request. The method will close the http.Response Body if it receives an error.

func (AutoProvisioningSettingsClient) Get Uses

func (client AutoProvisioningSettingsClient) Get(ctx context.Context, settingName string) (result AutoProvisioningSetting, err error)

Get details of a specific setting Parameters: settingName - auto provisioning setting key

func (AutoProvisioningSettingsClient) GetPreparer Uses

func (client AutoProvisioningSettingsClient) GetPreparer(ctx context.Context, settingName string) (*http.Request, error)

GetPreparer prepares the Get request.

func (AutoProvisioningSettingsClient) GetResponder Uses

func (client AutoProvisioningSettingsClient) GetResponder(resp *http.Response) (result AutoProvisioningSetting, err error)

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (AutoProvisioningSettingsClient) GetSender Uses

func (client AutoProvisioningSettingsClient) GetSender(req *http.Request) (*http.Response, error)

GetSender sends the Get request. The method will close the http.Response Body if it receives an error.

func (AutoProvisioningSettingsClient) List Uses

func (client AutoProvisioningSettingsClient) List(ctx context.Context) (result AutoProvisioningSettingListPage, err error)

List exposes the auto provisioning settings of the subscriptions

func (AutoProvisioningSettingsClient) ListComplete Uses

func (client AutoProvisioningSettingsClient) ListComplete(ctx context.Context) (result AutoProvisioningSettingListIterator, err error)

ListComplete enumerates all values, automatically crossing page boundaries as required.

func (AutoProvisioningSettingsClient) ListPreparer Uses

func (client AutoProvisioningSettingsClient) ListPreparer(ctx context.Context) (*http.Request, error)

ListPreparer prepares the List request.

func (AutoProvisioningSettingsClient) ListResponder Uses

func (client AutoProvisioningSettingsClient) ListResponder(resp *http.Response) (result AutoProvisioningSettingList, err error)

ListResponder handles the response to the List request. The method always closes the http.Response Body.

func (AutoProvisioningSettingsClient) ListSender Uses

func (client AutoProvisioningSettingsClient) ListSender(req *http.Request) (*http.Response, error)

ListSender sends the List request. The method will close the http.Response Body if it receives an error.

type BaseClient Uses

type BaseClient struct {
    autorest.Client
    BaseURI        string
    SubscriptionID string
    AscLocation    string
}

BaseClient is the base client for Security.

func New Uses

func New(subscriptionID string, ascLocation string) BaseClient

New creates an instance of the BaseClient client.

func NewWithBaseURI Uses

func NewWithBaseURI(baseURI string, subscriptionID string, ascLocation string) BaseClient

NewWithBaseURI creates an instance of the BaseClient client.

type BasicExternalSecuritySolution Uses

type BasicExternalSecuritySolution interface {
    AsCefExternalSecuritySolution() (*CefExternalSecuritySolution, bool)
    AsAtaExternalSecuritySolution() (*AtaExternalSecuritySolution, bool)
    AsAadExternalSecuritySolution() (*AadExternalSecuritySolution, bool)
    AsExternalSecuritySolution() (*ExternalSecuritySolution, bool)
}

BasicExternalSecuritySolution represents a security solution external to Azure Security Center which sends information to an OMS workspace and whose data is displayed by Azure Security Center.

type CefExternalSecuritySolution Uses

type CefExternalSecuritySolution struct {
    Properties *CefSolutionProperties `json:"properties,omitempty"`
    // ID - READ-ONLY; Resource Id
    ID  *string `json:"id,omitempty"`
    // Name - READ-ONLY; Resource name
    Name *string `json:"name,omitempty"`
    // Type - READ-ONLY; Resource type
    Type *string `json:"type,omitempty"`
    // Location - READ-ONLY; Location where the resource is stored
    Location *string `json:"location,omitempty"`
    // Kind - Possible values include: 'KindExternalSecuritySolution', 'KindCEF', 'KindATA', 'KindAAD'
    Kind KindEnum `json:"kind,omitempty"`
}

CefExternalSecuritySolution represents a security solution which sends CEF logs to an OMS workspace

func (CefExternalSecuritySolution) AsAadExternalSecuritySolution Uses

func (cess CefExternalSecuritySolution) AsAadExternalSecuritySolution() (*AadExternalSecuritySolution, bool)

AsAadExternalSecuritySolution is the BasicExternalSecuritySolution implementation for CefExternalSecuritySolution.

func (CefExternalSecuritySolution) AsAtaExternalSecuritySolution Uses

func (cess CefExternalSecuritySolution) AsAtaExternalSecuritySolution() (*AtaExternalSecuritySolution, bool)

AsAtaExternalSecuritySolution is the BasicExternalSecuritySolution implementation for CefExternalSecuritySolution.

func (CefExternalSecuritySolution) AsBasicExternalSecuritySolution Uses

func (cess CefExternalSecuritySolution) AsBasicExternalSecuritySolution() (BasicExternalSecuritySolution, bool)

AsBasicExternalSecuritySolution is the BasicExternalSecuritySolution implementation for CefExternalSecuritySolution.

func (CefExternalSecuritySolution) AsCefExternalSecuritySolution Uses

func (cess CefExternalSecuritySolution) AsCefExternalSecuritySolution() (*CefExternalSecuritySolution, bool)

AsCefExternalSecuritySolution is the BasicExternalSecuritySolution implementation for CefExternalSecuritySolution.

func (CefExternalSecuritySolution) AsExternalSecuritySolution Uses

func (cess CefExternalSecuritySolution) AsExternalSecuritySolution() (*ExternalSecuritySolution, bool)

AsExternalSecuritySolution is the BasicExternalSecuritySolution implementation for CefExternalSecuritySolution.

func (CefExternalSecuritySolution) MarshalJSON Uses

func (cess CefExternalSecuritySolution) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for CefExternalSecuritySolution.

type CefSolutionProperties Uses

type CefSolutionProperties struct {
    Hostname          *string `json:"hostname,omitempty"`
    Agent             *string `json:"agent,omitempty"`
    LastEventReceived *string `json:"lastEventReceived,omitempty"`
    // AdditionalProperties - Unmatched properties from the message are deserialized this collection
    AdditionalProperties map[string]interface{} `json:""`
    DeviceVendor         *string                `json:"deviceVendor,omitempty"`
    DeviceType           *string                `json:"deviceType,omitempty"`
    Workspace            *ConnectedWorkspace    `json:"workspace,omitempty"`
}

CefSolutionProperties ...

func (CefSolutionProperties) MarshalJSON Uses

func (csp CefSolutionProperties) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for CefSolutionProperties.

func (*CefSolutionProperties) UnmarshalJSON Uses

func (csp *CefSolutionProperties) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for CefSolutionProperties struct.

type CloudError Uses

type CloudError struct {
    // CloudErrorBody - Error data
    *CloudErrorBody `json:"error,omitempty"`
}

CloudError error response structure.

func (CloudError) MarshalJSON Uses

func (ce CloudError) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for CloudError.

func (*CloudError) UnmarshalJSON Uses

func (ce *CloudError) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for CloudError struct.

type CloudErrorBody Uses

type CloudErrorBody struct {
    // Code - READ-ONLY; An identifier for the error. Codes are invariant and are intended to be consumed programmatically.
    Code *string `json:"code,omitempty"`
    // Message - READ-ONLY; A message describing the error, intended to be suitable for display in a user interface.
    Message *string `json:"message,omitempty"`
}

CloudErrorBody error details.

type Compliance Uses

type Compliance struct {
    autorest.Response `json:"-"`
    // ComplianceProperties - Compliance data
    *ComplianceProperties `json:"properties,omitempty"`
    // ID - READ-ONLY; Resource Id
    ID  *string `json:"id,omitempty"`
    // Name - READ-ONLY; Resource name
    Name *string `json:"name,omitempty"`
    // Type - READ-ONLY; Resource type
    Type *string `json:"type,omitempty"`
}

Compliance compliance of a scope

func (Compliance) MarshalJSON Uses

func (c Compliance) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for Compliance.

func (*Compliance) UnmarshalJSON Uses

func (c *Compliance) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for Compliance struct.

type ComplianceList Uses

type ComplianceList struct {
    autorest.Response `json:"-"`
    // Value - List of Compliance objects
    Value *[]Compliance `json:"value,omitempty"`
    // NextLink - READ-ONLY; The URI to fetch the next page.
    NextLink *string `json:"nextLink,omitempty"`
}

ComplianceList list of Compliance objects response

func (ComplianceList) IsEmpty Uses

func (cl ComplianceList) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type ComplianceListIterator Uses

type ComplianceListIterator struct {
    // contains filtered or unexported fields
}

ComplianceListIterator provides access to a complete listing of Compliance values.

func NewComplianceListIterator Uses

func NewComplianceListIterator(page ComplianceListPage) ComplianceListIterator

Creates a new instance of the ComplianceListIterator type.

func (*ComplianceListIterator) Next Uses

func (iter *ComplianceListIterator) Next() error

Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*ComplianceListIterator) NextWithContext Uses

func (iter *ComplianceListIterator) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.

func (ComplianceListIterator) NotDone Uses

func (iter ComplianceListIterator) NotDone() bool

NotDone returns true if the enumeration should be started or is not yet complete.

func (ComplianceListIterator) Response Uses

func (iter ComplianceListIterator) Response() ComplianceList

Response returns the raw server response from the last page request.

func (ComplianceListIterator) Value Uses

func (iter ComplianceListIterator) Value() Compliance

Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.

type ComplianceListPage Uses

type ComplianceListPage struct {
    // contains filtered or unexported fields
}

ComplianceListPage contains a page of Compliance values.

func NewComplianceListPage Uses

func NewComplianceListPage(getNextPage func(context.Context, ComplianceList) (ComplianceList, error)) ComplianceListPage

Creates a new instance of the ComplianceListPage type.

func (*ComplianceListPage) Next Uses

func (page *ComplianceListPage) Next() error

Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*ComplianceListPage) NextWithContext Uses

func (page *ComplianceListPage) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.

func (ComplianceListPage) NotDone Uses

func (page ComplianceListPage) NotDone() bool

NotDone returns true if the page enumeration should be started or is not yet complete.

func (ComplianceListPage) Response Uses

func (page ComplianceListPage) Response() ComplianceList

Response returns the raw server response from the last page request.

func (ComplianceListPage) Values Uses

func (page ComplianceListPage) Values() []Compliance

Values returns the slice of values for the current page or nil if there are no values.

type ComplianceProperties Uses

type ComplianceProperties struct {
    // AssessmentTimestampUtcDate - READ-ONLY; The timestamp when the Compliance calculation was conducted.
    AssessmentTimestampUtcDate *date.Time `json:"assessmentTimestampUtcDate,omitempty"`
    // ResourceCount - READ-ONLY; The resource count of the given subscription for which the Compliance calculation was conducted (needed for Management Group Compliance calculation).
    ResourceCount *int32 `json:"resourceCount,omitempty"`
    // AssessmentResult - READ-ONLY; An array of segment, which is the actually the compliance assessment.
    AssessmentResult *[]ComplianceSegment `json:"assessmentResult,omitempty"`
}

ComplianceProperties the Compliance score (percentage) of a Subscription is a sum of all Resources' Compliances under the given Subscription. A Resource Compliance is defined as the compliant ('healthy') Policy Definitions out of all Policy Definitions applicable to a given resource.

type ComplianceSegment Uses

type ComplianceSegment struct {
    // SegmentType - READ-ONLY; The segment type, e.g. compliant, non-compliance, insufficient coverage, N/A, etc.
    SegmentType *string `json:"segmentType,omitempty"`
    // Percentage - READ-ONLY; The size (%) of the segment.
    Percentage *float64 `json:"percentage,omitempty"`
}

ComplianceSegment a segment of a compliance assessment.

type CompliancesClient Uses

type CompliancesClient struct {
    BaseClient
}

CompliancesClient is the API spec for Microsoft.Security (Azure Security Center) resource provider

func NewCompliancesClient Uses

func NewCompliancesClient(subscriptionID string, ascLocation string) CompliancesClient

NewCompliancesClient creates an instance of the CompliancesClient client.

func NewCompliancesClientWithBaseURI Uses

func NewCompliancesClientWithBaseURI(baseURI string, subscriptionID string, ascLocation string) CompliancesClient

NewCompliancesClientWithBaseURI creates an instance of the CompliancesClient client.

func (CompliancesClient) Get Uses

func (client CompliancesClient) Get(ctx context.Context, scope string, complianceName string) (result Compliance, err error)

Get details of a specific Compliance. Parameters: scope - scope of the query, can be subscription (/subscriptions/0b06d9ea-afe6-4779-bd59-30e5c2d9d13f) or management group (/providers/Microsoft.Management/managementGroups/mgName). complianceName - name of the Compliance

func (CompliancesClient) GetPreparer Uses

func (client CompliancesClient) GetPreparer(ctx context.Context, scope string, complianceName string) (*http.Request, error)

GetPreparer prepares the Get request.

func (CompliancesClient) GetResponder Uses

func (client CompliancesClient) GetResponder(resp *http.Response) (result Compliance, err error)

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (CompliancesClient) GetSender Uses

func (client CompliancesClient) GetSender(req *http.Request) (*http.Response, error)

GetSender sends the Get request. The method will close the http.Response Body if it receives an error.

func (CompliancesClient) List Uses

func (client CompliancesClient) List(ctx context.Context, scope string) (result ComplianceListPage, err error)

List the Compliance scores of the specific management group. Parameters: scope - scope of the query, can be subscription (/subscriptions/0b06d9ea-afe6-4779-bd59-30e5c2d9d13f) or management group (/providers/Microsoft.Management/managementGroups/mgName).

func (CompliancesClient) ListComplete Uses

func (client CompliancesClient) ListComplete(ctx context.Context, scope string) (result ComplianceListIterator, err error)

ListComplete enumerates all values, automatically crossing page boundaries as required.

func (CompliancesClient) ListPreparer Uses

func (client CompliancesClient) ListPreparer(ctx context.Context, scope string) (*http.Request, error)

ListPreparer prepares the List request.

func (CompliancesClient) ListResponder Uses

func (client CompliancesClient) ListResponder(resp *http.Response) (result ComplianceList, err error)

ListResponder handles the response to the List request. The method always closes the http.Response Body.

func (CompliancesClient) ListSender Uses

func (client CompliancesClient) ListSender(req *http.Request) (*http.Response, error)

ListSender sends the List request. The method will close the http.Response Body if it receives an error.

type ConfigurationStatus Uses

type ConfigurationStatus string

ConfigurationStatus enumerates the values for configuration status.

const (
    // Configured ...
    Configured ConfigurationStatus = "Configured"
    // Failed ...
    Failed ConfigurationStatus = "Failed"
    // InProgress ...
    InProgress ConfigurationStatus = "InProgress"
    // NoStatus ...
    NoStatus ConfigurationStatus = "NoStatus"
    // NotConfigured ...
    NotConfigured ConfigurationStatus = "NotConfigured"
)

func PossibleConfigurationStatusValues Uses

func PossibleConfigurationStatusValues() []ConfigurationStatus

PossibleConfigurationStatusValues returns an array of possible values for the ConfigurationStatus const type.

type ConfigurationStatus1 Uses

type ConfigurationStatus1 string

ConfigurationStatus1 enumerates the values for configuration status 1.

const (
    // ConfigurationStatus1Configured ...
    ConfigurationStatus1Configured ConfigurationStatus1 = "Configured"
    // ConfigurationStatus1Failed ...
    ConfigurationStatus1Failed ConfigurationStatus1 = "Failed"
    // ConfigurationStatus1InProgress ...
    ConfigurationStatus1InProgress ConfigurationStatus1 = "InProgress"
    // ConfigurationStatus1NoStatus ...
    ConfigurationStatus1NoStatus ConfigurationStatus1 = "NoStatus"
    // ConfigurationStatus1NotConfigured ...
    ConfigurationStatus1NotConfigured ConfigurationStatus1 = "NotConfigured"
)

func PossibleConfigurationStatus1Values Uses

func PossibleConfigurationStatus1Values() []ConfigurationStatus1

PossibleConfigurationStatus1Values returns an array of possible values for the ConfigurationStatus1 const type.

type ConfigurationStatus2 Uses

type ConfigurationStatus2 string

ConfigurationStatus2 enumerates the values for configuration status 2.

const (
    // ConfigurationStatus2Configured ...
    ConfigurationStatus2Configured ConfigurationStatus2 = "Configured"
    // ConfigurationStatus2Failed ...
    ConfigurationStatus2Failed ConfigurationStatus2 = "Failed"
    // ConfigurationStatus2InProgress ...
    ConfigurationStatus2InProgress ConfigurationStatus2 = "InProgress"
    // ConfigurationStatus2NoStatus ...
    ConfigurationStatus2NoStatus ConfigurationStatus2 = "NoStatus"
    // ConfigurationStatus2NotConfigured ...
    ConfigurationStatus2NotConfigured ConfigurationStatus2 = "NotConfigured"
)

func PossibleConfigurationStatus2Values Uses

func PossibleConfigurationStatus2Values() []ConfigurationStatus2

PossibleConfigurationStatus2Values returns an array of possible values for the ConfigurationStatus2 const type.

type ConnectableResource Uses

type ConnectableResource struct {
    // ID - READ-ONLY; The Azure resource id
    ID  *string `json:"id,omitempty"`
    // InboundConnectedResources - READ-ONLY; The list of Azure resources that the resource has inbound allowed connection from
    InboundConnectedResources *[]ConnectedResource `json:"inboundConnectedResources,omitempty"`
    // OutboundConnectedResources - READ-ONLY; The list of Azure resources that the resource has outbound allowed connection to
    OutboundConnectedResources *[]ConnectedResource `json:"outboundConnectedResources,omitempty"`
}

ConnectableResource describes the allowed inbound and outbound traffic of an Azure resource

type ConnectedResource Uses

type ConnectedResource struct {
    // ConnectedResourceID - READ-ONLY; The Azure resource id of the connected resource
    ConnectedResourceID *string `json:"connectedResourceId,omitempty"`
    // TCPPorts - READ-ONLY; The allowed tcp ports
    TCPPorts *string `json:"tcpPorts,omitempty"`
    // UDPPorts - READ-ONLY; The allowed udp ports
    UDPPorts *string `json:"udpPorts,omitempty"`
}

ConnectedResource describes properties of a connected resource

type ConnectedWorkspace Uses

type ConnectedWorkspace struct {
    // ID - Azure resource ID of the connected OMS workspace
    ID *string `json:"id,omitempty"`
}

ConnectedWorkspace ...

type ConnectionType Uses

type ConnectionType string

ConnectionType enumerates the values for connection type.

const (
    // External ...
    External ConnectionType = "External"
    // Internal ...
    Internal ConnectionType = "Internal"
)

func PossibleConnectionTypeValues Uses

func PossibleConnectionTypeValues() []ConnectionType

PossibleConnectionTypeValues returns an array of possible values for the ConnectionType const type.

type Contact Uses

type Contact struct {
    autorest.Response `json:"-"`
    // ContactProperties - Security contact data
    *ContactProperties `json:"properties,omitempty"`
    // ID - READ-ONLY; Resource Id
    ID  *string `json:"id,omitempty"`
    // Name - READ-ONLY; Resource name
    Name *string `json:"name,omitempty"`
    // Type - READ-ONLY; Resource type
    Type *string `json:"type,omitempty"`
}

Contact contact details for security issues

func (Contact) MarshalJSON Uses

func (c Contact) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for Contact.

func (*Contact) UnmarshalJSON Uses

func (c *Contact) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for Contact struct.

type ContactList Uses

type ContactList struct {
    autorest.Response `json:"-"`
    // Value - READ-ONLY; List of security contacts
    Value *[]Contact `json:"value,omitempty"`
    // NextLink - READ-ONLY; The URI to fetch the next page.
    NextLink *string `json:"nextLink,omitempty"`
}

ContactList list of security contacts response

func (ContactList) IsEmpty Uses

func (cl ContactList) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type ContactListIterator Uses

type ContactListIterator struct {
    // contains filtered or unexported fields
}

ContactListIterator provides access to a complete listing of Contact values.

func NewContactListIterator Uses

func NewContactListIterator(page ContactListPage) ContactListIterator

Creates a new instance of the ContactListIterator type.

func (*ContactListIterator) Next Uses

func (iter *ContactListIterator) Next() error

Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*ContactListIterator) NextWithContext Uses

func (iter *ContactListIterator) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.

func (ContactListIterator) NotDone Uses

func (iter ContactListIterator) NotDone() bool

NotDone returns true if the enumeration should be started or is not yet complete.

func (ContactListIterator) Response Uses

func (iter ContactListIterator) Response() ContactList

Response returns the raw server response from the last page request.

func (ContactListIterator) Value Uses

func (iter ContactListIterator) Value() Contact

Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.

type ContactListPage Uses

type ContactListPage struct {
    // contains filtered or unexported fields
}

ContactListPage contains a page of Contact values.

func NewContactListPage Uses

func NewContactListPage(getNextPage func(context.Context, ContactList) (ContactList, error)) ContactListPage

Creates a new instance of the ContactListPage type.

func (*ContactListPage) Next Uses

func (page *ContactListPage) Next() error

Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*ContactListPage) NextWithContext Uses

func (page *ContactListPage) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.

func (ContactListPage) NotDone Uses

func (page ContactListPage) NotDone() bool

NotDone returns true if the page enumeration should be started or is not yet complete.

func (ContactListPage) Response Uses

func (page ContactListPage) Response() ContactList

Response returns the raw server response from the last page request.

func (ContactListPage) Values Uses

func (page ContactListPage) Values() []Contact

Values returns the slice of values for the current page or nil if there are no values.

type ContactProperties Uses

type ContactProperties struct {
    // Email - The email of this security contact
    Email *string `json:"email,omitempty"`
    // Phone - The phone number of this security contact
    Phone *string `json:"phone,omitempty"`
    // AlertNotifications - Whether to send security alerts notifications to the security contact. Possible values include: 'On', 'Off'
    AlertNotifications AlertNotifications `json:"alertNotifications,omitempty"`
    // AlertsToAdmins - Whether to send security alerts notifications to subscription admins. Possible values include: 'AlertsToAdminsOn', 'AlertsToAdminsOff'
    AlertsToAdmins AlertsToAdmins `json:"alertsToAdmins,omitempty"`
}

ContactProperties describes security contact properties

type ContactsClient Uses

type ContactsClient struct {
    BaseClient
}

ContactsClient is the API spec for Microsoft.Security (Azure Security Center) resource provider

func NewContactsClient Uses

func NewContactsClient(subscriptionID string, ascLocation string) ContactsClient

NewContactsClient creates an instance of the ContactsClient client.

func NewContactsClientWithBaseURI Uses

func NewContactsClientWithBaseURI(baseURI string, subscriptionID string, ascLocation string) ContactsClient

NewContactsClientWithBaseURI creates an instance of the ContactsClient client.

func (ContactsClient) Create Uses

func (client ContactsClient) Create(ctx context.Context, securityContactName string, securityContact Contact) (result Contact, err error)

Create security contact configurations for the subscription Parameters: securityContactName - name of the security contact object securityContact - security contact object

func (ContactsClient) CreatePreparer Uses

func (client ContactsClient) CreatePreparer(ctx context.Context, securityContactName string, securityContact Contact) (*http.Request, error)

CreatePreparer prepares the Create request.

func (ContactsClient) CreateResponder Uses

func (client ContactsClient) CreateResponder(resp *http.Response) (result Contact, err error)

CreateResponder handles the response to the Create request. The method always closes the http.Response Body.

func (ContactsClient) CreateSender Uses

func (client ContactsClient) CreateSender(req *http.Request) (*http.Response, error)

CreateSender sends the Create request. The method will close the http.Response Body if it receives an error.

func (ContactsClient) Delete Uses

func (client ContactsClient) Delete(ctx context.Context, securityContactName string) (result autorest.Response, err error)

Delete security contact configurations for the subscription Parameters: securityContactName - name of the security contact object

func (ContactsClient) DeletePreparer Uses

func (client ContactsClient) DeletePreparer(ctx context.Context, securityContactName string) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (ContactsClient) DeleteResponder Uses

func (client ContactsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)

DeleteResponder handles the response to the Delete request. The method always closes the http.Response Body.

func (ContactsClient) DeleteSender Uses

func (client ContactsClient) DeleteSender(req *http.Request) (*http.Response, error)

DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.

func (ContactsClient) Get Uses

func (client ContactsClient) Get(ctx context.Context, securityContactName string) (result Contact, err error)

Get security contact configurations for the subscription Parameters: securityContactName - name of the security contact object

func (ContactsClient) GetPreparer Uses

func (client ContactsClient) GetPreparer(ctx context.Context, securityContactName string) (*http.Request, error)

GetPreparer prepares the Get request.

func (ContactsClient) GetResponder Uses

func (client ContactsClient) GetResponder(resp *http.Response) (result Contact, err error)

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (ContactsClient) GetSender Uses

func (client ContactsClient) GetSender(req *http.Request) (*http.Response, error)

GetSender sends the Get request. The method will close the http.Response Body if it receives an error.

func (ContactsClient) List Uses

func (client ContactsClient) List(ctx context.Context) (result ContactListPage, err error)

List security contact configurations for the subscription

func (ContactsClient) ListComplete Uses

func (client ContactsClient) ListComplete(ctx context.Context) (result ContactListIterator, err error)

ListComplete enumerates all values, automatically crossing page boundaries as required.

func (ContactsClient) ListPreparer Uses

func (client ContactsClient) ListPreparer(ctx context.Context) (*http.Request, error)

ListPreparer prepares the List request.

func (ContactsClient) ListResponder Uses

func (client ContactsClient) ListResponder(resp *http.Response) (result ContactList, err error)

ListResponder handles the response to the List request. The method always closes the http.Response Body.

func (ContactsClient) ListSender Uses

func (client ContactsClient) ListSender(req *http.Request) (*http.Response, error)

ListSender sends the List request. The method will close the http.Response Body if it receives an error.

func (ContactsClient) Update Uses

func (client ContactsClient) Update(ctx context.Context, securityContactName string, securityContact Contact) (result Contact, err error)

Update security contact configurations for the subscription Parameters: securityContactName - name of the security contact object securityContact - security contact object

func (ContactsClient) UpdatePreparer Uses

func (client ContactsClient) UpdatePreparer(ctx context.Context, securityContactName string, securityContact Contact) (*http.Request, error)

UpdatePreparer prepares the Update request.

func (ContactsClient) UpdateResponder Uses

func (client ContactsClient) UpdateResponder(resp *http.Response) (result Contact, err error)

UpdateResponder handles the response to the Update request. The method always closes the http.Response Body.

func (ContactsClient) UpdateSender Uses

func (client ContactsClient) UpdateSender(req *http.Request) (*http.Response, error)

UpdateSender sends the Update request. The method will close the http.Response Body if it receives an error.

type CustomAlertRule Uses

type CustomAlertRule struct {
    // DisplayName - READ-ONLY; The display name of the custom alert.
    DisplayName *string `json:"displayName,omitempty"`
    // Description - READ-ONLY; The description of the custom alert.
    Description *string `json:"description,omitempty"`
    // IsEnabled - Whether the custom alert is enabled.
    IsEnabled *bool `json:"isEnabled,omitempty"`
    // RuleType - The type of the custom alert rule.
    RuleType *string `json:"ruleType,omitempty"`
}

CustomAlertRule a custom alert rule

type DataExportSetting Uses

type DataExportSetting struct {
    // DataExportSettingProperties - Data export setting data
    *DataExportSettingProperties `json:"properties,omitempty"`
    // Kind - the kind of the settings string (DataExportSetting). Possible values include: 'SettingKindDataExportSetting', 'SettingKindAlertSuppressionSetting'
    Kind SettingKind `json:"kind,omitempty"`
    // ID - READ-ONLY; Resource Id
    ID  *string `json:"id,omitempty"`
    // Name - READ-ONLY; Resource name
    Name *string `json:"name,omitempty"`
    // Type - READ-ONLY; Resource type
    Type *string `json:"type,omitempty"`
}

DataExportSetting represents a data export setting

func (DataExportSetting) MarshalJSON Uses

func (desVar DataExportSetting) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for DataExportSetting.

func (*DataExportSetting) UnmarshalJSON Uses

func (desVar *DataExportSetting) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for DataExportSetting struct.

type DataExportSettingProperties Uses

type DataExportSettingProperties struct {
    // Enabled - Is the data export setting is enabled
    Enabled *bool `json:"enabled,omitempty"`
}

DataExportSettingProperties the data export setting properties

type DenylistCustomAlertRule Uses

type DenylistCustomAlertRule struct {
    // DenylistValues - The values to deny. The format of the values depends on the rule type.
    DenylistValues *[]string `json:"denylistValues,omitempty"`
    // ValueType - READ-ONLY; The value type of the items in the list. Possible values include: 'IPCidr', 'String'
    ValueType ValueType `json:"valueType,omitempty"`
    // DisplayName - READ-ONLY; The display name of the custom alert.
    DisplayName *string `json:"displayName,omitempty"`
    // Description - READ-ONLY; The description of the custom alert.
    Description *string `json:"description,omitempty"`
    // IsEnabled - Whether the custom alert is enabled.
    IsEnabled *bool `json:"isEnabled,omitempty"`
    // RuleType - The type of the custom alert rule.
    RuleType *string `json:"ruleType,omitempty"`
}

DenylistCustomAlertRule a custom alert rule that checks if a value (depends on the custom alert type) is denied

type DeviceSecurityGroup Uses

type DeviceSecurityGroup struct {
    autorest.Response `json:"-"`
    // DeviceSecurityGroupProperties - Device Security group data
    *DeviceSecurityGroupProperties `json:"properties,omitempty"`
    // ID - READ-ONLY; Resource Id
    ID  *string `json:"id,omitempty"`
    // Name - READ-ONLY; Resource name
    Name *string `json:"name,omitempty"`
    // Type - READ-ONLY; Resource type
    Type *string `json:"type,omitempty"`
}

DeviceSecurityGroup the device security group resource

func (DeviceSecurityGroup) MarshalJSON Uses

func (dsg DeviceSecurityGroup) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for DeviceSecurityGroup.

func (*DeviceSecurityGroup) UnmarshalJSON Uses

func (dsg *DeviceSecurityGroup) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for DeviceSecurityGroup struct.

type DeviceSecurityGroupList Uses

type DeviceSecurityGroupList struct {
    autorest.Response `json:"-"`
    // Value - List of device security group objects
    Value *[]DeviceSecurityGroup `json:"value,omitempty"`
    // NextLink - READ-ONLY; The URI to fetch the next page.
    NextLink *string `json:"nextLink,omitempty"`
}

DeviceSecurityGroupList list of device security groups

func (DeviceSecurityGroupList) IsEmpty Uses

func (dsgl DeviceSecurityGroupList) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type DeviceSecurityGroupListIterator Uses

type DeviceSecurityGroupListIterator struct {
    // contains filtered or unexported fields
}

DeviceSecurityGroupListIterator provides access to a complete listing of DeviceSecurityGroup values.

func NewDeviceSecurityGroupListIterator Uses

func NewDeviceSecurityGroupListIterator(page DeviceSecurityGroupListPage) DeviceSecurityGroupListIterator

Creates a new instance of the DeviceSecurityGroupListIterator type.

func (*DeviceSecurityGroupListIterator) Next Uses

func (iter *DeviceSecurityGroupListIterator) Next() error

Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*DeviceSecurityGroupListIterator) NextWithContext Uses

func (iter *DeviceSecurityGroupListIterator) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.

func (DeviceSecurityGroupListIterator) NotDone Uses

func (iter DeviceSecurityGroupListIterator) NotDone() bool

NotDone returns true if the enumeration should be started or is not yet complete.

func (DeviceSecurityGroupListIterator) Response Uses

func (iter DeviceSecurityGroupListIterator) Response() DeviceSecurityGroupList

Response returns the raw server response from the last page request.

func (DeviceSecurityGroupListIterator) Value Uses

func (iter DeviceSecurityGroupListIterator) Value() DeviceSecurityGroup

Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.

type DeviceSecurityGroupListPage Uses

type DeviceSecurityGroupListPage struct {
    // contains filtered or unexported fields
}

DeviceSecurityGroupListPage contains a page of DeviceSecurityGroup values.

func NewDeviceSecurityGroupListPage Uses

func NewDeviceSecurityGroupListPage(getNextPage func(context.Context, DeviceSecurityGroupList) (DeviceSecurityGroupList, error)) DeviceSecurityGroupListPage

Creates a new instance of the DeviceSecurityGroupListPage type.

func (*DeviceSecurityGroupListPage) Next Uses

func (page *DeviceSecurityGroupListPage) Next() error

Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*DeviceSecurityGroupListPage) NextWithContext Uses

func (page *DeviceSecurityGroupListPage) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.

func (DeviceSecurityGroupListPage) NotDone Uses

func (page DeviceSecurityGroupListPage) NotDone() bool

NotDone returns true if the page enumeration should be started or is not yet complete.

func (DeviceSecurityGroupListPage) Response Uses

func (page DeviceSecurityGroupListPage) Response() DeviceSecurityGroupList

Response returns the raw server response from the last page request.

func (DeviceSecurityGroupListPage) Values Uses

func (page DeviceSecurityGroupListPage) Values() []DeviceSecurityGroup

Values returns the slice of values for the current page or nil if there are no values.

type DeviceSecurityGroupProperties Uses

type DeviceSecurityGroupProperties struct {
    // ThresholdRules - A list of threshold custom alert rules.
    ThresholdRules *[]ThresholdCustomAlertRule `json:"thresholdRules,omitempty"`
    // TimeWindowRules - A list of time window custom alert rules.
    TimeWindowRules *[]TimeWindowCustomAlertRule `json:"timeWindowRules,omitempty"`
    // AllowlistRules - A list of allow-list custom alert rules.
    AllowlistRules *[]AllowlistCustomAlertRule `json:"allowlistRules,omitempty"`
    // DenylistRules - A list of deny-list custom alert rules.
    DenylistRules *[]DenylistCustomAlertRule `json:"denylistRules,omitempty"`
}

DeviceSecurityGroupProperties describes properties of a security group.

type DeviceSecurityGroupsClient Uses

type DeviceSecurityGroupsClient struct {
    BaseClient
}

DeviceSecurityGroupsClient is the API spec for Microsoft.Security (Azure Security Center) resource provider

func NewDeviceSecurityGroupsClient Uses

func NewDeviceSecurityGroupsClient(subscriptionID string, ascLocation string) DeviceSecurityGroupsClient

NewDeviceSecurityGroupsClient creates an instance of the DeviceSecurityGroupsClient client.

func NewDeviceSecurityGroupsClientWithBaseURI Uses

func NewDeviceSecurityGroupsClientWithBaseURI(baseURI string, subscriptionID string, ascLocation string) DeviceSecurityGroupsClient

NewDeviceSecurityGroupsClientWithBaseURI creates an instance of the DeviceSecurityGroupsClient client.

func (DeviceSecurityGroupsClient) CreateOrUpdate Uses

func (client DeviceSecurityGroupsClient) CreateOrUpdate(ctx context.Context, resourceID string, deviceSecurityGroupName string, deviceSecurityGroup DeviceSecurityGroup) (result DeviceSecurityGroup, err error)

CreateOrUpdate creates or updates the device security group on a specified IoT hub resource. Parameters: resourceID - the identifier of the resource. deviceSecurityGroupName - the name of the security group. Please notice that the name is case insensitive. deviceSecurityGroup - security group object.

func (DeviceSecurityGroupsClient) CreateOrUpdatePreparer Uses

func (client DeviceSecurityGroupsClient) CreateOrUpdatePreparer(ctx context.Context, resourceID string, deviceSecurityGroupName string, deviceSecurityGroup DeviceSecurityGroup) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (DeviceSecurityGroupsClient) CreateOrUpdateResponder Uses

func (client DeviceSecurityGroupsClient) CreateOrUpdateResponder(resp *http.Response) (result DeviceSecurityGroup, err error)

CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always closes the http.Response Body.

func (DeviceSecurityGroupsClient) CreateOrUpdateSender Uses

func (client DeviceSecurityGroupsClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error)

CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the http.Response Body if it receives an error.

func (DeviceSecurityGroupsClient) Delete Uses

func (client DeviceSecurityGroupsClient) Delete(ctx context.Context, resourceID string, deviceSecurityGroupName string) (result autorest.Response, err error)

Delete deletes the security group Parameters: resourceID - the identifier of the resource. deviceSecurityGroupName - the name of the security group. Please notice that the name is case insensitive.

func (DeviceSecurityGroupsClient) DeletePreparer Uses

func (client DeviceSecurityGroupsClient) DeletePreparer(ctx context.Context, resourceID string, deviceSecurityGroupName string) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (DeviceSecurityGroupsClient) DeleteResponder Uses

func (client DeviceSecurityGroupsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)

DeleteResponder handles the response to the Delete request. The method always closes the http.Response Body.

func (DeviceSecurityGroupsClient) DeleteSender Uses

func (client DeviceSecurityGroupsClient) DeleteSender(req *http.Request) (*http.Response, error)

DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.

func (DeviceSecurityGroupsClient) Get Uses

func (client DeviceSecurityGroupsClient) Get(ctx context.Context, resourceID string, deviceSecurityGroupName string) (result DeviceSecurityGroup, err error)

Get gets the device security group for the specified IoT hub resource. Parameters: resourceID - the identifier of the resource. deviceSecurityGroupName - the name of the security group. Please notice that the name is case insensitive.

func (DeviceSecurityGroupsClient) GetPreparer Uses

func (client DeviceSecurityGroupsClient) GetPreparer(ctx context.Context, resourceID string, deviceSecurityGroupName string) (*http.Request, error)

GetPreparer prepares the Get request.

func (DeviceSecurityGroupsClient) GetResponder Uses

func (client DeviceSecurityGroupsClient) GetResponder(resp *http.Response) (result DeviceSecurityGroup, err error)

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (DeviceSecurityGroupsClient) GetSender Uses

func (client DeviceSecurityGroupsClient) GetSender(req *http.Request) (*http.Response, error)

GetSender sends the Get request. The method will close the http.Response Body if it receives an error.

func (DeviceSecurityGroupsClient) List Uses

func (client DeviceSecurityGroupsClient) List(ctx context.Context, resourceID string) (result DeviceSecurityGroupListPage, err error)

List gets the list of device security groups for the specified IoT hub resource. Parameters: resourceID - the identifier of the resource.

func (DeviceSecurityGroupsClient) ListComplete Uses

func (client DeviceSecurityGroupsClient) ListComplete(ctx context.Context, resourceID string) (result DeviceSecurityGroupListIterator, err error)

ListComplete enumerates all values, automatically crossing page boundaries as required.

func (DeviceSecurityGroupsClient) ListPreparer Uses

func (client DeviceSecurityGroupsClient) ListPreparer(ctx context.Context, resourceID string) (*http.Request, error)

ListPreparer prepares the List request.

func (DeviceSecurityGroupsClient) ListResponder Uses

func (client DeviceSecurityGroupsClient) ListResponder(resp *http.Response) (result DeviceSecurityGroupList, err error)

ListResponder handles the response to the List request. The method always closes the http.Response Body.

func (DeviceSecurityGroupsClient) ListSender Uses

func (client DeviceSecurityGroupsClient) ListSender(req *http.Request) (*http.Response, error)

ListSender sends the List request. The method will close the http.Response Body if it receives an error.

type Direction Uses

type Direction string

Direction enumerates the values for direction.

const (
    // Inbound ...
    Inbound Direction = "Inbound"
    // Outbound ...
    Outbound Direction = "Outbound"
)

func PossibleDirectionValues Uses

func PossibleDirectionValues() []Direction

PossibleDirectionValues returns an array of possible values for the Direction const type.

type DiscoveredSecuritySolution Uses

type DiscoveredSecuritySolution struct {
    autorest.Response `json:"-"`
    // ID - READ-ONLY; Resource Id
    ID  *string `json:"id,omitempty"`
    // Name - READ-ONLY; Resource name
    Name *string `json:"name,omitempty"`
    // Type - READ-ONLY; Resource type
    Type *string `json:"type,omitempty"`
    // Location - READ-ONLY; Location where the resource is stored
    Location                              *string `json:"location,omitempty"`
    *DiscoveredSecuritySolutionProperties `json:"properties,omitempty"`
}

DiscoveredSecuritySolution ...

func (DiscoveredSecuritySolution) MarshalJSON Uses

func (dss DiscoveredSecuritySolution) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for DiscoveredSecuritySolution.

func (*DiscoveredSecuritySolution) UnmarshalJSON Uses

func (dss *DiscoveredSecuritySolution) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for DiscoveredSecuritySolution struct.

type DiscoveredSecuritySolutionList Uses

type DiscoveredSecuritySolutionList struct {
    autorest.Response `json:"-"`
    Value             *[]DiscoveredSecuritySolution `json:"value,omitempty"`
    // NextLink - READ-ONLY; The URI to fetch the next page.
    NextLink *string `json:"nextLink,omitempty"`
}

DiscoveredSecuritySolutionList ...

func (DiscoveredSecuritySolutionList) IsEmpty Uses

func (dssl DiscoveredSecuritySolutionList) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type DiscoveredSecuritySolutionListIterator Uses

type DiscoveredSecuritySolutionListIterator struct {
    // contains filtered or unexported fields
}

DiscoveredSecuritySolutionListIterator provides access to a complete listing of DiscoveredSecuritySolution values.

func NewDiscoveredSecuritySolutionListIterator Uses

func NewDiscoveredSecuritySolutionListIterator(page DiscoveredSecuritySolutionListPage) DiscoveredSecuritySolutionListIterator

Creates a new instance of the DiscoveredSecuritySolutionListIterator type.

func (*DiscoveredSecuritySolutionListIterator) Next Uses

func (iter *DiscoveredSecuritySolutionListIterator) Next() error

Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*DiscoveredSecuritySolutionListIterator) NextWithContext Uses

func (iter *DiscoveredSecuritySolutionListIterator) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.

func (DiscoveredSecuritySolutionListIterator) NotDone Uses

func (iter DiscoveredSecuritySolutionListIterator) NotDone() bool

NotDone returns true if the enumeration should be started or is not yet complete.

func (DiscoveredSecuritySolutionListIterator) Response Uses

func (iter DiscoveredSecuritySolutionListIterator) Response() DiscoveredSecuritySolutionList

Response returns the raw server response from the last page request.

func (DiscoveredSecuritySolutionListIterator) Value Uses

func (iter DiscoveredSecuritySolutionListIterator) Value() DiscoveredSecuritySolution

Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.

type DiscoveredSecuritySolutionListPage Uses

type DiscoveredSecuritySolutionListPage struct {
    // contains filtered or unexported fields
}

DiscoveredSecuritySolutionListPage contains a page of DiscoveredSecuritySolution values.

func NewDiscoveredSecuritySolutionListPage Uses

func NewDiscoveredSecuritySolutionListPage(getNextPage func(context.Context, DiscoveredSecuritySolutionList) (DiscoveredSecuritySolutionList, error)) DiscoveredSecuritySolutionListPage

Creates a new instance of the DiscoveredSecuritySolutionListPage type.

func (*DiscoveredSecuritySolutionListPage) Next Uses

func (page *DiscoveredSecuritySolutionListPage) Next() error

Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*DiscoveredSecuritySolutionListPage) NextWithContext Uses

func (page *DiscoveredSecuritySolutionListPage) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.

func (DiscoveredSecuritySolutionListPage) NotDone Uses

func (page DiscoveredSecuritySolutionListPage) NotDone() bool

NotDone returns true if the page enumeration should be started or is not yet complete.

func (DiscoveredSecuritySolutionListPage) Response Uses

func (page DiscoveredSecuritySolutionListPage) Response() DiscoveredSecuritySolutionList

Response returns the raw server response from the last page request.

func (DiscoveredSecuritySolutionListPage) Values Uses

func (page DiscoveredSecuritySolutionListPage) Values() []DiscoveredSecuritySolution

Values returns the slice of values for the current page or nil if there are no values.

type DiscoveredSecuritySolutionProperties Uses

type DiscoveredSecuritySolutionProperties struct {
    // SecurityFamily - The security family of the discovered solution. Possible values include: 'Waf', 'Ngfw', 'SaasWaf', 'Va'
    SecurityFamily Family `json:"securityFamily,omitempty"`
    // Offer - The security solutions' image offer
    Offer *string `json:"offer,omitempty"`
    // Publisher - The security solutions' image publisher
    Publisher *string `json:"publisher,omitempty"`
    // Sku - The security solutions' image sku
    Sku *string `json:"sku,omitempty"`
}

DiscoveredSecuritySolutionProperties ...

type DiscoveredSecuritySolutionsClient Uses

type DiscoveredSecuritySolutionsClient struct {
    BaseClient
}

DiscoveredSecuritySolutionsClient is the API spec for Microsoft.Security (Azure Security Center) resource provider

func NewDiscoveredSecuritySolutionsClient Uses

func NewDiscoveredSecuritySolutionsClient(subscriptionID string, ascLocation string) DiscoveredSecuritySolutionsClient

NewDiscoveredSecuritySolutionsClient creates an instance of the DiscoveredSecuritySolutionsClient client.

func NewDiscoveredSecuritySolutionsClientWithBaseURI Uses

func NewDiscoveredSecuritySolutionsClientWithBaseURI(baseURI string, subscriptionID string, ascLocation string) DiscoveredSecuritySolutionsClient

NewDiscoveredSecuritySolutionsClientWithBaseURI creates an instance of the DiscoveredSecuritySolutionsClient client.

func (DiscoveredSecuritySolutionsClient) Get Uses

func (client DiscoveredSecuritySolutionsClient) Get(ctx context.Context, resourceGroupName string, discoveredSecuritySolutionName string) (result DiscoveredSecuritySolution, err error)

Get gets a specific discovered Security Solution. Parameters: resourceGroupName - the name of the resource group within the user's subscription. The name is case insensitive. discoveredSecuritySolutionName - name of a discovered security solution.

func (DiscoveredSecuritySolutionsClient) GetPreparer Uses

func (client DiscoveredSecuritySolutionsClient) GetPreparer(ctx context.Context, resourceGroupName string, discoveredSecuritySolutionName string) (*http.Request, error)

GetPreparer prepares the Get request.

func (DiscoveredSecuritySolutionsClient) GetResponder Uses

func (client DiscoveredSecuritySolutionsClient) GetResponder(resp *http.Response) (result DiscoveredSecuritySolution, err error)

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (DiscoveredSecuritySolutionsClient) GetSender Uses

func (client DiscoveredSecuritySolutionsClient) GetSender(req *http.Request) (*http.Response, error)

GetSender sends the Get request. The method will close the http.Response Body if it receives an error.

func (DiscoveredSecuritySolutionsClient) List Uses

func (client DiscoveredSecuritySolutionsClient) List(ctx context.Context) (result DiscoveredSecuritySolutionListPage, err error)

List gets a list of discovered Security Solutions for the subscription.

func (DiscoveredSecuritySolutionsClient) ListByHomeRegion Uses

func (client DiscoveredSecuritySolutionsClient) ListByHomeRegion(ctx context.Context) (result DiscoveredSecuritySolutionListPage, err error)

ListByHomeRegion gets a list of discovered Security Solutions for the subscription and location.

func (DiscoveredSecuritySolutionsClient) ListByHomeRegionComplete Uses

func (client DiscoveredSecuritySolutionsClient) ListByHomeRegionComplete(ctx context.Context) (result DiscoveredSecuritySolutionListIterator, err error)

ListByHomeRegionComplete enumerates all values, automatically crossing page boundaries as required.

func (DiscoveredSecuritySolutionsClient) ListByHomeRegionPreparer Uses

func (client DiscoveredSecuritySolutionsClient) ListByHomeRegionPreparer(ctx context.Context) (*http.Request, error)

ListByHomeRegionPreparer prepares the ListByHomeRegion request.

func (DiscoveredSecuritySolutionsClient) ListByHomeRegionResponder Uses

func (client DiscoveredSecuritySolutionsClient) ListByHomeRegionResponder(resp *http.Response) (result DiscoveredSecuritySolutionList, err error)

ListByHomeRegionResponder handles the response to the ListByHomeRegion request. The method always closes the http.Response Body.

func (DiscoveredSecuritySolutionsClient) ListByHomeRegionSender Uses

func (client DiscoveredSecuritySolutionsClient) ListByHomeRegionSender(req *http.Request) (*http.Response, error)

ListByHomeRegionSender sends the ListByHomeRegion request. The method will close the http.Response Body if it receives an error.

func (DiscoveredSecuritySolutionsClient) ListComplete Uses

func (client DiscoveredSecuritySolutionsClient) ListComplete(ctx context.Context) (result DiscoveredSecuritySolutionListIterator, err error)

ListComplete enumerates all values, automatically crossing page boundaries as required.

func (DiscoveredSecuritySolutionsClient) ListPreparer Uses

func (client DiscoveredSecuritySolutionsClient) ListPreparer(ctx context.Context) (*http.Request, error)

ListPreparer prepares the List request.

func (DiscoveredSecuritySolutionsClient) ListResponder Uses

func (client DiscoveredSecuritySolutionsClient) ListResponder(resp *http.Response) (result DiscoveredSecuritySolutionList, err error)

ListResponder handles the response to the List request. The method always closes the http.Response Body.

func (DiscoveredSecuritySolutionsClient) ListSender Uses

func (client DiscoveredSecuritySolutionsClient) ListSender(req *http.Request) (*http.Response, error)

ListSender sends the List request. The method will close the http.Response Body if it receives an error.

type EffectiveNetworkSecurityGroups Uses

type EffectiveNetworkSecurityGroups struct {
    // NetworkInterface - The Azure resource ID of the network interface
    NetworkInterface *string `json:"networkInterface,omitempty"`
    // NetworkSecurityGroups - The Network Security Groups effective on the network interface
    NetworkSecurityGroups *[]string `json:"networkSecurityGroups,omitempty"`
}

EffectiveNetworkSecurityGroups describes the Network Security Groups effective on a network interface

type EnforcementMode Uses

type EnforcementMode string

EnforcementMode enumerates the values for enforcement mode.

const (
    // Audit ...
    Audit EnforcementMode = "Audit"
    // Enforce ...
    Enforce EnforcementMode = "Enforce"
)

func PossibleEnforcementModeValues Uses

func PossibleEnforcementModeValues() []EnforcementMode

PossibleEnforcementModeValues returns an array of possible values for the EnforcementMode const type.

type EnforcementMode1 Uses

type EnforcementMode1 string

EnforcementMode1 enumerates the values for enforcement mode 1.

const (
    // EnforcementMode1Audit ...
    EnforcementMode1Audit EnforcementMode1 = "Audit"
    // EnforcementMode1Enforce ...
    EnforcementMode1Enforce EnforcementMode1 = "Enforce"
)

func PossibleEnforcementMode1Values Uses

func PossibleEnforcementMode1Values() []EnforcementMode1

PossibleEnforcementMode1Values returns an array of possible values for the EnforcementMode1 const type.

type ExternalSecuritySolution Uses

type ExternalSecuritySolution struct {
    autorest.Response `json:"-"`
    // ID - READ-ONLY; Resource Id
    ID  *string `json:"id,omitempty"`
    // Name - READ-ONLY; Resource name
    Name *string `json:"name,omitempty"`
    // Type - READ-ONLY; Resource type
    Type *string `json:"type,omitempty"`
    // Location - READ-ONLY; Location where the resource is stored
    Location *string `json:"location,omitempty"`
    // Kind - Possible values include: 'KindExternalSecuritySolution', 'KindCEF', 'KindATA', 'KindAAD'
    Kind KindEnum `json:"kind,omitempty"`
}

ExternalSecuritySolution represents a security solution external to Azure Security Center which sends information to an OMS workspace and whose data is displayed by Azure Security Center.

func (ExternalSecuritySolution) AsAadExternalSecuritySolution Uses

func (ess ExternalSecuritySolution) AsAadExternalSecuritySolution() (*AadExternalSecuritySolution, bool)

AsAadExternalSecuritySolution is the BasicExternalSecuritySolution implementation for ExternalSecuritySolution.

func (ExternalSecuritySolution) AsAtaExternalSecuritySolution Uses

func (ess ExternalSecuritySolution) AsAtaExternalSecuritySolution() (*AtaExternalSecuritySolution, bool)

AsAtaExternalSecuritySolution is the BasicExternalSecuritySolution implementation for ExternalSecuritySolution.

func (ExternalSecuritySolution) AsBasicExternalSecuritySolution Uses

func (ess ExternalSecuritySolution) AsBasicExternalSecuritySolution() (BasicExternalSecuritySolution, bool)

AsBasicExternalSecuritySolution is the BasicExternalSecuritySolution implementation for ExternalSecuritySolution.

func (ExternalSecuritySolution) AsCefExternalSecuritySolution Uses

func (ess ExternalSecuritySolution) AsCefExternalSecuritySolution() (*CefExternalSecuritySolution, bool)

AsCefExternalSecuritySolution is the BasicExternalSecuritySolution implementation for ExternalSecuritySolution.

func (ExternalSecuritySolution) AsExternalSecuritySolution Uses

func (ess ExternalSecuritySolution) AsExternalSecuritySolution() (*ExternalSecuritySolution, bool)

AsExternalSecuritySolution is the BasicExternalSecuritySolution implementation for ExternalSecuritySolution.

func (ExternalSecuritySolution) MarshalJSON Uses

func (ess ExternalSecuritySolution) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ExternalSecuritySolution.

type ExternalSecuritySolutionKind Uses

type ExternalSecuritySolutionKind string

ExternalSecuritySolutionKind enumerates the values for external security solution kind.

const (
    // AAD ...
    AAD ExternalSecuritySolutionKind = "AAD"
    // ATA ...
    ATA ExternalSecuritySolutionKind = "ATA"
    // CEF ...
    CEF ExternalSecuritySolutionKind = "CEF"
)

func PossibleExternalSecuritySolutionKindValues Uses

func PossibleExternalSecuritySolutionKindValues() []ExternalSecuritySolutionKind

PossibleExternalSecuritySolutionKindValues returns an array of possible values for the ExternalSecuritySolutionKind const type.

type ExternalSecuritySolutionKind1 Uses

type ExternalSecuritySolutionKind1 struct {
    // Kind - The kind of the external solution. Possible values include: 'CEF', 'ATA', 'AAD'
    Kind ExternalSecuritySolutionKind `json:"kind,omitempty"`
}

ExternalSecuritySolutionKind1 describes an Azure resource with kind

type ExternalSecuritySolutionList Uses

type ExternalSecuritySolutionList struct {
    autorest.Response `json:"-"`
    Value             *[]BasicExternalSecuritySolution `json:"value,omitempty"`
    // NextLink - READ-ONLY; The URI to fetch the next page.
    NextLink *string `json:"nextLink,omitempty"`
}

ExternalSecuritySolutionList ...

func (ExternalSecuritySolutionList) IsEmpty Uses

func (essl ExternalSecuritySolutionList) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

func (*ExternalSecuritySolutionList) UnmarshalJSON Uses

func (essl *ExternalSecuritySolutionList) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for ExternalSecuritySolutionList struct.

type ExternalSecuritySolutionListIterator Uses

type ExternalSecuritySolutionListIterator struct {
    // contains filtered or unexported fields
}

ExternalSecuritySolutionListIterator provides access to a complete listing of ExternalSecuritySolution values.

func NewExternalSecuritySolutionListIterator Uses

func NewExternalSecuritySolutionListIterator(page ExternalSecuritySolutionListPage) ExternalSecuritySolutionListIterator

Creates a new instance of the ExternalSecuritySolutionListIterator type.

func (*ExternalSecuritySolutionListIterator) Next Uses

func (iter *ExternalSecuritySolutionListIterator) Next() error

Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*ExternalSecuritySolutionListIterator) NextWithContext Uses

func (iter *ExternalSecuritySolutionListIterator) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.

func (ExternalSecuritySolutionListIterator) NotDone Uses

func (iter ExternalSecuritySolutionListIterator) NotDone() bool

NotDone returns true if the enumeration should be started or is not yet complete.

func (ExternalSecuritySolutionListIterator) Response Uses

func (iter ExternalSecuritySolutionListIterator) Response() ExternalSecuritySolutionList

Response returns the raw server response from the last page request.

func (ExternalSecuritySolutionListIterator) Value Uses

func (iter ExternalSecuritySolutionListIterator) Value() BasicExternalSecuritySolution

Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.

type ExternalSecuritySolutionListPage Uses

type ExternalSecuritySolutionListPage struct {
    // contains filtered or unexported fields
}

ExternalSecuritySolutionListPage contains a page of BasicExternalSecuritySolution values.

func NewExternalSecuritySolutionListPage Uses

func NewExternalSecuritySolutionListPage(getNextPage func(context.Context, ExternalSecuritySolutionList) (ExternalSecuritySolutionList, error)) ExternalSecuritySolutionListPage

Creates a new instance of the ExternalSecuritySolutionListPage type.

func (*ExternalSecuritySolutionListPage) Next Uses

func (page *ExternalSecuritySolutionListPage) Next() error

Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*ExternalSecuritySolutionListPage) NextWithContext Uses

func (page *ExternalSecuritySolutionListPage) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.

func (ExternalSecuritySolutionListPage) NotDone Uses

func (page ExternalSecuritySolutionListPage) NotDone() bool

NotDone returns true if the page enumeration should be started or is not yet complete.

func (ExternalSecuritySolutionListPage) Response Uses

func (page ExternalSecuritySolutionListPage) Response() ExternalSecuritySolutionList

Response returns the raw server response from the last page request.

func (ExternalSecuritySolutionListPage) Values Uses

func (page ExternalSecuritySolutionListPage) Values() []BasicExternalSecuritySolution

Values returns the slice of values for the current page or nil if there are no values.

type ExternalSecuritySolutionModel Uses

type ExternalSecuritySolutionModel struct {
    autorest.Response `json:"-"`
    Value             BasicExternalSecuritySolution `json:"value,omitempty"`
}

ExternalSecuritySolutionModel ...

func (*ExternalSecuritySolutionModel) UnmarshalJSON Uses

func (essm *ExternalSecuritySolutionModel) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for ExternalSecuritySolutionModel struct.

type ExternalSecuritySolutionProperties Uses

type ExternalSecuritySolutionProperties struct {
    // AdditionalProperties - Unmatched properties from the message are deserialized this collection
    AdditionalProperties map[string]interface{} `json:""`
    DeviceVendor         *string                `json:"deviceVendor,omitempty"`
    DeviceType           *string                `json:"deviceType,omitempty"`
    Workspace            *ConnectedWorkspace    `json:"workspace,omitempty"`
}

ExternalSecuritySolutionProperties the solution properties (correspond to the solution kind)

func (ExternalSecuritySolutionProperties) MarshalJSON Uses

func (essp ExternalSecuritySolutionProperties) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ExternalSecuritySolutionProperties.

func (*ExternalSecuritySolutionProperties) UnmarshalJSON Uses

func (essp *ExternalSecuritySolutionProperties) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for ExternalSecuritySolutionProperties struct.

type ExternalSecuritySolutionsClient Uses

type ExternalSecuritySolutionsClient struct {
    BaseClient
}

ExternalSecuritySolutionsClient is the API spec for Microsoft.Security (Azure Security Center) resource provider

func NewExternalSecuritySolutionsClient Uses

func NewExternalSecuritySolutionsClient(subscriptionID string, ascLocation string) ExternalSecuritySolutionsClient

NewExternalSecuritySolutionsClient creates an instance of the ExternalSecuritySolutionsClient client.

func NewExternalSecuritySolutionsClientWithBaseURI Uses

func NewExternalSecuritySolutionsClientWithBaseURI(baseURI string, subscriptionID string, ascLocation string) ExternalSecuritySolutionsClient

NewExternalSecuritySolutionsClientWithBaseURI creates an instance of the ExternalSecuritySolutionsClient client.

func (ExternalSecuritySolutionsClient) Get Uses

func (client ExternalSecuritySolutionsClient) Get(ctx context.Context, resourceGroupName string, externalSecuritySolutionsName string) (result ExternalSecuritySolutionModel, err error)

Get gets a specific external Security Solution. Parameters: resourceGroupName - the name of the resource group within the user's subscription. The name is case insensitive. externalSecuritySolutionsName - name of an external security solution.

func (ExternalSecuritySolutionsClient) GetPreparer Uses

func (client ExternalSecuritySolutionsClient) GetPreparer(ctx context.Context, resourceGroupName string, externalSecuritySolutionsName string) (*http.Request, error)

GetPreparer prepares the Get request.

func (ExternalSecuritySolutionsClient) GetResponder Uses

func (client ExternalSecuritySolutionsClient) GetResponder(resp *http.Response) (result ExternalSecuritySolutionModel, err error)

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (ExternalSecuritySolutionsClient) GetSender Uses

func (client ExternalSecuritySolutionsClient) GetSender(req *http.Request) (*http.Response, error)

GetSender sends the Get request. The method will close the http.Response Body if it receives an error.

func (ExternalSecuritySolutionsClient) List Uses

func (client ExternalSecuritySolutionsClient) List(ctx context.Context) (result ExternalSecuritySolutionListPage, err error)

List gets a list of external security solutions for the subscription.

func (ExternalSecuritySolutionsClient) ListByHomeRegion Uses

func (client ExternalSecuritySolutionsClient) ListByHomeRegion(ctx context.Context) (result ExternalSecuritySolutionListPage, err error)

ListByHomeRegion gets a list of external Security Solutions for the subscription and location.

func (ExternalSecuritySolutionsClient) ListByHomeRegionComplete Uses

func (client ExternalSecuritySolutionsClient) ListByHomeRegionComplete(ctx context.Context) (result ExternalSecuritySolutionListIterator, err error)

ListByHomeRegionComplete enumerates all values, automatically crossing page boundaries as required.

func (ExternalSecuritySolutionsClient) ListByHomeRegionPreparer Uses

func (client ExternalSecuritySolutionsClient) ListByHomeRegionPreparer(ctx context.Context) (*http.Request, error)

ListByHomeRegionPreparer prepares the ListByHomeRegion request.

func (ExternalSecuritySolutionsClient) ListByHomeRegionResponder Uses

func (client ExternalSecuritySolutionsClient) ListByHomeRegionResponder(resp *http.Response) (result ExternalSecuritySolutionList, err error)

ListByHomeRegionResponder handles the response to the ListByHomeRegion request. The method always closes the http.Response Body.

func (ExternalSecuritySolutionsClient) ListByHomeRegionSender Uses

func (client ExternalSecuritySolutionsClient) ListByHomeRegionSender(req *http.Request) (*http.Response, error)

ListByHomeRegionSender sends the ListByHomeRegion request. The method will close the http.Response Body if it receives an error.

func (ExternalSecuritySolutionsClient) ListComplete Uses

func (client ExternalSecuritySolutionsClient) ListComplete(ctx context.Context) (result ExternalSecuritySolutionListIterator, err error)

ListComplete enumerates all values, automatically crossing page boundaries as required.

func (ExternalSecuritySolutionsClient) ListPreparer Uses

func (client ExternalSecuritySolutionsClient) ListPreparer(ctx context.Context) (*http.Request, error)

ListPreparer prepares the List request.

func (ExternalSecuritySolutionsClient) ListResponder Uses

func (client ExternalSecuritySolutionsClient) ListResponder(resp *http.Response) (result ExternalSecuritySolutionList, err error)

ListResponder handles the response to the List request. The method always closes the http.Response Body.

func (ExternalSecuritySolutionsClient) ListSender Uses

func (client ExternalSecuritySolutionsClient) ListSender(req *http.Request) (*http.Response, error)

ListSender sends the List request. The method will close the http.Response Body if it receives an error.

type Family Uses

type Family string

Family enumerates the values for family.

const (
    // Ngfw ...
    Ngfw Family = "Ngfw"
    // SaasWaf ...
    SaasWaf Family = "SaasWaf"
    // Va ...
    Va  Family = "Va"
    // Waf ...
    Waf Family = "Waf"
)

func PossibleFamilyValues Uses

func PossibleFamilyValues() []Family

PossibleFamilyValues returns an array of possible values for the Family const type.

type FileType Uses

type FileType string

FileType enumerates the values for file type.

const (
    // Dll ...
    Dll FileType = "Dll"
    // Exe ...
    Exe FileType = "Exe"
    // Executable ...
    Executable FileType = "Executable"
    // Msi ...
    Msi FileType = "Msi"
    // Script ...
    Script FileType = "Script"
    // Unknown ...
    Unknown FileType = "Unknown"
)

func PossibleFileTypeValues Uses

func PossibleFileTypeValues() []FileType

PossibleFileTypeValues returns an array of possible values for the FileType const type.

type InformationProtectionKeyword Uses

type InformationProtectionKeyword struct {
    // Pattern - The keyword pattern.
    Pattern *string `json:"pattern,omitempty"`
    // Custom - Indicates whether the keyword is custom or not.
    Custom *bool `json:"custom,omitempty"`
    // CanBeNumeric - Indicates whether the keyword can be applied on numeric types or not.
    CanBeNumeric *bool `json:"canBeNumeric,omitempty"`
    // Excluded - Indicates whether the keyword is excluded or not.
    Excluded *bool `json:"excluded,omitempty"`
}

InformationProtectionKeyword the information type keyword.

type InformationProtectionPoliciesClient Uses

type InformationProtectionPoliciesClient struct {
    BaseClient
}

InformationProtectionPoliciesClient is the API spec for Microsoft.Security (Azure Security Center) resource provider

func NewInformationProtectionPoliciesClient Uses

func NewInformationProtectionPoliciesClient(subscriptionID string, ascLocation string) InformationProtectionPoliciesClient

NewInformationProtectionPoliciesClient creates an instance of the InformationProtectionPoliciesClient client.

func NewInformationProtectionPoliciesClientWithBaseURI Uses

func NewInformationProtectionPoliciesClientWithBaseURI(baseURI string, subscriptionID string, ascLocation string) InformationProtectionPoliciesClient

NewInformationProtectionPoliciesClientWithBaseURI creates an instance of the InformationProtectionPoliciesClient client.

func (InformationProtectionPoliciesClient) CreateOrUpdate Uses

func (client InformationProtectionPoliciesClient) CreateOrUpdate(ctx context.Context, scope string, informationProtectionPolicyName string) (result InformationProtectionPolicy, err error)

CreateOrUpdate details of the information protection policy. Parameters: scope - scope of the query, can be subscription (/subscriptions/0b06d9ea-afe6-4779-bd59-30e5c2d9d13f) or management group (/providers/Microsoft.Management/managementGroups/mgName). informationProtectionPolicyName - name of the information protection policy.

func (InformationProtectionPoliciesClient) CreateOrUpdatePreparer Uses

func (client InformationProtectionPoliciesClient) CreateOrUpdatePreparer(ctx context.Context, scope string, informationProtectionPolicyName string) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (InformationProtectionPoliciesClient) CreateOrUpdateResponder Uses

func (client InformationProtectionPoliciesClient) CreateOrUpdateResponder(resp *http.Response) (result InformationProtectionPolicy, err error)

CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always closes the http.Response Body.

func (InformationProtectionPoliciesClient) CreateOrUpdateSender Uses

func (client InformationProtectionPoliciesClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error)

CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the http.Response Body if it receives an error.

func (InformationProtectionPoliciesClient) Get Uses

func (client InformationProtectionPoliciesClient) Get(ctx context.Context, scope string, informationProtectionPolicyName string) (result InformationProtectionPolicy, err error)

Get details of the information protection policy. Parameters: scope - scope of the query, can be subscription (/subscriptions/0b06d9ea-afe6-4779-bd59-30e5c2d9d13f) or management group (/providers/Microsoft.Management/managementGroups/mgName). informationProtectionPolicyName - name of the information protection policy.

func (InformationProtectionPoliciesClient) GetPreparer Uses

func (client InformationProtectionPoliciesClient) GetPreparer(ctx context.Context, scope string, informationProtectionPolicyName string) (*http.Request, error)

GetPreparer prepares the Get request.

func (InformationProtectionPoliciesClient) GetResponder Uses

func (client InformationProtectionPoliciesClient) GetResponder(resp *http.Response) (result InformationProtectionPolicy, err error)

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (InformationProtectionPoliciesClient) GetSender Uses

func (client InformationProtectionPoliciesClient) GetSender(req *http.Request) (*http.Response, error)

GetSender sends the Get request. The method will close the http.Response Body if it receives an error.

func (InformationProtectionPoliciesClient) List Uses

func (client InformationProtectionPoliciesClient) List(ctx context.Context, scope string) (result InformationProtectionPolicyListPage, err error)

List information protection policies of a specific management group. Parameters: scope - scope of the query, can be subscription (/subscriptions/0b06d9ea-afe6-4779-bd59-30e5c2d9d13f) or management group (/providers/Microsoft.Management/managementGroups/mgName).

func (InformationProtectionPoliciesClient) ListComplete Uses

func (client InformationProtectionPoliciesClient) ListComplete(ctx context.Context, scope string) (result InformationProtectionPolicyListIterator, err error)

ListComplete enumerates all values, automatically crossing page boundaries as required.

func (InformationProtectionPoliciesClient) ListPreparer Uses

func (client InformationProtectionPoliciesClient) ListPreparer(ctx context.Context, scope string) (*http.Request, error)

ListPreparer prepares the List request.

func (InformationProtectionPoliciesClient) ListResponder Uses

func (client InformationProtectionPoliciesClient) ListResponder(resp *http.Response) (result InformationProtectionPolicyList, err error)

ListResponder handles the response to the List request. The method always closes the http.Response Body.

func (InformationProtectionPoliciesClient) ListSender Uses

func (client InformationProtectionPoliciesClient) ListSender(req *http.Request) (*http.Response, error)

ListSender sends the List request. The method will close the http.Response Body if it receives an error.

type InformationProtectionPolicy Uses

type InformationProtectionPolicy struct {
    autorest.Response `json:"-"`
    // InformationProtectionPolicyProperties - Information protection policy data
    *InformationProtectionPolicyProperties `json:"properties,omitempty"`
    // ID - READ-ONLY; Resource Id
    ID  *string `json:"id,omitempty"`
    // Name - READ-ONLY; Resource name
    Name *string `json:"name,omitempty"`
    // Type - READ-ONLY; Resource type
    Type *string `json:"type,omitempty"`
}

InformationProtectionPolicy information protection policy.

func (InformationProtectionPolicy) MarshalJSON Uses

func (ipp InformationProtectionPolicy) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for InformationProtectionPolicy.

func (*InformationProtectionPolicy) UnmarshalJSON Uses

func (ipp *InformationProtectionPolicy) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for InformationProtectionPolicy struct.

type InformationProtectionPolicyList Uses

type InformationProtectionPolicyList struct {
    autorest.Response `json:"-"`
    // Value - List of information protection policies.
    Value *[]InformationProtectionPolicy `json:"value,omitempty"`
    // NextLink - READ-ONLY; The URI to fetch the next page.
    NextLink *string `json:"nextLink,omitempty"`
}

InformationProtectionPolicyList information protection policies response.

func (InformationProtectionPolicyList) IsEmpty Uses

func (ippl InformationProtectionPolicyList) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type InformationProtectionPolicyListIterator Uses

type InformationProtectionPolicyListIterator struct {
    // contains filtered or unexported fields
}

InformationProtectionPolicyListIterator provides access to a complete listing of InformationProtectionPolicy values.

func NewInformationProtectionPolicyListIterator Uses

func NewInformationProtectionPolicyListIterator(page InformationProtectionPolicyListPage) InformationProtectionPolicyListIterator

Creates a new instance of the InformationProtectionPolicyListIterator type.

func (*InformationProtectionPolicyListIterator) Next Uses

func (iter *InformationProtectionPolicyListIterator) Next() error

Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*InformationProtectionPolicyListIterator) NextWithContext Uses

func (iter *InformationProtectionPolicyListIterator) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.

func (InformationProtectionPolicyListIterator) NotDone Uses

func (iter InformationProtectionPolicyListIterator) NotDone() bool

NotDone returns true if the enumeration should be started or is not yet complete.

func (InformationProtectionPolicyListIterator) Response Uses

func (iter InformationProtectionPolicyListIterator) Response() InformationProtectionPolicyList

Response returns the raw server response from the last page request.

func (InformationProtectionPolicyListIterator) Value Uses

func (iter InformationProtectionPolicyListIterator) Value() InformationProtectionPolicy

Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.

type InformationProtectionPolicyListPage Uses

type InformationProtectionPolicyListPage struct {
    // contains filtered or unexported fields
}

InformationProtectionPolicyListPage contains a page of InformationProtectionPolicy values.

func NewInformationProtectionPolicyListPage Uses

func NewInformationProtectionPolicyListPage(getNextPage func(context.Context, InformationProtectionPolicyList) (InformationProtectionPolicyList, error)) InformationProtectionPolicyListPage

Creates a new instance of the InformationProtectionPolicyListPage type.

func (*InformationProtectionPolicyListPage) Next Uses

func (page *InformationProtectionPolicyListPage) Next() error

Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*InformationProtectionPolicyListPage) NextWithContext Uses

func (page *InformationProtectionPolicyListPage) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.

func (InformationProtectionPolicyListPage) NotDone Uses

func (page InformationProtectionPolicyListPage) NotDone() bool

NotDone returns true if the page enumeration should be started or is not yet complete.

func (InformationProtectionPolicyListPage) Response Uses

func (page InformationProtectionPolicyListPage) Response() InformationProtectionPolicyList

Response returns the raw server response from the last page request.

func (InformationProtectionPolicyListPage) Values Uses

func (page InformationProtectionPolicyListPage) Values() []InformationProtectionPolicy

Values returns the slice of values for the current page or nil if there are no values.

type InformationProtectionPolicyProperties Uses

type InformationProtectionPolicyProperties struct {
    // LastModifiedUtc - READ-ONLY; Describes the last UTC time the policy was modified.
    LastModifiedUtc *date.Time `json:"lastModifiedUtc,omitempty"`
    // Labels - Dictionary of sensitivity labels.
    Labels map[string]*SensitivityLabel `json:"labels"`
    // InformationTypes - The sensitivity information types.
    InformationTypes map[string]*InformationType `json:"informationTypes"`
}

InformationProtectionPolicyProperties describes properties of an information protection policy.

func (InformationProtectionPolicyProperties) MarshalJSON Uses

func (ippp InformationProtectionPolicyProperties) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for InformationProtectionPolicyProperties.

type InformationType Uses

type InformationType struct {
    // DisplayName - The name of the information type.
    DisplayName *string `json:"displayName,omitempty"`
    // Order - The order of the information type.
    Order *float64 `json:"order,omitempty"`
    // RecommendedLabelID - The recommended label id to be associated with this information type.
    RecommendedLabelID *uuid.UUID `json:"recommendedLabelId,omitempty"`
    // Enabled - Indicates whether the information type is enabled or not.
    Enabled *bool `json:"enabled,omitempty"`
    // Custom - Indicates whether the information type is custom or not.
    Custom *bool `json:"custom,omitempty"`
    // Keywords - The information type keywords.
    Keywords *[]InformationProtectionKeyword `json:"keywords,omitempty"`
}

InformationType the information type.

type Issue Uses

type Issue string

Issue enumerates the values for issue.

const (
    // ExecutableViolationsAudited ...
    ExecutableViolationsAudited Issue = "ExecutableViolationsAudited"
    // MsiAndScriptViolationsAudited ...
    MsiAndScriptViolationsAudited Issue = "MsiAndScriptViolationsAudited"
    // MsiAndScriptViolationsBlocked ...
    MsiAndScriptViolationsBlocked Issue = "MsiAndScriptViolationsBlocked"
    // RulesViolatedManually ...
    RulesViolatedManually Issue = "RulesViolatedManually"
    // ViolationsAudited ...
    ViolationsAudited Issue = "ViolationsAudited"
    // ViolationsBlocked ...
    ViolationsBlocked Issue = "ViolationsBlocked"
)

func PossibleIssueValues Uses

func PossibleIssueValues() []Issue

PossibleIssueValues returns an array of possible values for the Issue const type.

type JitNetworkAccessPoliciesClient Uses

type JitNetworkAccessPoliciesClient struct {
    BaseClient
}

JitNetworkAccessPoliciesClient is the API spec for Microsoft.Security (Azure Security Center) resource provider

func NewJitNetworkAccessPoliciesClient Uses

func NewJitNetworkAccessPoliciesClient(subscriptionID string, ascLocation string) JitNetworkAccessPoliciesClient

NewJitNetworkAccessPoliciesClient creates an instance of the JitNetworkAccessPoliciesClient client.

func NewJitNetworkAccessPoliciesClientWithBaseURI Uses

func NewJitNetworkAccessPoliciesClientWithBaseURI(baseURI string, subscriptionID string, ascLocation string) JitNetworkAccessPoliciesClient

NewJitNetworkAccessPoliciesClientWithBaseURI creates an instance of the JitNetworkAccessPoliciesClient client.

func (JitNetworkAccessPoliciesClient) CreateOrUpdate Uses

func (client JitNetworkAccessPoliciesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, jitNetworkAccessPolicyName string, body JitNetworkAccessPolicy) (result JitNetworkAccessPolicy, err error)

CreateOrUpdate create a policy for protecting resources using Just-in-Time access control Parameters: resourceGroupName - the name of the resource group within the user's subscription. The name is case insensitive. jitNetworkAccessPolicyName - name of a Just-in-Time access configuration policy.

func (JitNetworkAccessPoliciesClient) CreateOrUpdatePreparer Uses

func (client JitNetworkAccessPoliciesClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, jitNetworkAccessPolicyName string, body JitNetworkAccessPolicy) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (JitNetworkAccessPoliciesClient) CreateOrUpdateResponder Uses

func (client JitNetworkAccessPoliciesClient) CreateOrUpdateResponder(resp *http.Response) (result JitNetworkAccessPolicy, err error)

CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always closes the http.Response Body.

func (JitNetworkAccessPoliciesClient) CreateOrUpdateSender Uses

func (client JitNetworkAccessPoliciesClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error)

CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the http.Response Body if it receives an error.

func (JitNetworkAccessPoliciesClient) Delete Uses

func (client JitNetworkAccessPoliciesClient) Delete(ctx context.Context, resourceGroupName string, jitNetworkAccessPolicyName string) (result autorest.Response, err error)

Delete delete a Just-in-Time access control policy. Parameters: resourceGroupName - the name of the resource group within the user's subscription. The name is case insensitive. jitNetworkAccessPolicyName - name of a Just-in-Time access configuration policy.

func (JitNetworkAccessPoliciesClient) DeletePreparer Uses

func (client JitNetworkAccessPoliciesClient) DeletePreparer(ctx context.Context, resourceGroupName string, jitNetworkAccessPolicyName string) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (JitNetworkAccessPoliciesClient) DeleteResponder Uses

func (client JitNetworkAccessPoliciesClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)

DeleteResponder handles the response to the Delete request. The method always closes the http.Response Body.

func (JitNetworkAccessPoliciesClient) DeleteSender Uses

func (client JitNetworkAccessPoliciesClient) DeleteSender(req *http.Request) (*http.Response, error)

DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.

func (JitNetworkAccessPoliciesClient) Get Uses

func (client JitNetworkAccessPoliciesClient) Get(ctx context.Context, resourceGroupName string, jitNetworkAccessPolicyName string) (result JitNetworkAccessPolicy, err error)

Get policies for protecting resources using Just-in-Time access control for the subscription, location Parameters: resourceGroupName - the name of the resource group within the user's subscription. The name is case insensitive. jitNetworkAccessPolicyName - name of a Just-in-Time access configuration policy.

func (JitNetworkAccessPoliciesClient) GetPreparer Uses

func (client JitNetworkAccessPoliciesClient) GetPreparer(ctx context.Context, resourceGroupName string, jitNetworkAccessPolicyName string) (*http.Request, error)

GetPreparer prepares the Get request.

func (JitNetworkAccessPoliciesClient) GetResponder Uses

func (client JitNetworkAccessPoliciesClient) GetResponder(resp *http.Response) (result JitNetworkAccessPolicy, err error)

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (JitNetworkAccessPoliciesClient) GetSender Uses

func (client JitNetworkAccessPoliciesClient) GetSender(req *http.Request) (*http.Response, error)

GetSender sends the Get request. The method will close the http.Response Body if it receives an error.

func (JitNetworkAccessPoliciesClient) Initiate Uses

func (client JitNetworkAccessPoliciesClient) Initiate(ctx context.Context, resourceGroupName string, jitNetworkAccessPolicyName string, body JitNetworkAccessPolicyInitiateRequest) (result JitNetworkAccessRequest, err error)

Initiate initiate a JIT access from a specific Just-in-Time policy configuration. Parameters: resourceGroupName - the name of the resource group within the user's subscription. The name is case insensitive. jitNetworkAccessPolicyName - name of a Just-in-Time access configuration policy.

func (JitNetworkAccessPoliciesClient) InitiatePreparer Uses

func (client JitNetworkAccessPoliciesClient) InitiatePreparer(ctx context.Context, resourceGroupName string, jitNetworkAccessPolicyName string, body JitNetworkAccessPolicyInitiateRequest) (*http.Request, error)

InitiatePreparer prepares the Initiate request.

func (JitNetworkAccessPoliciesClient) InitiateResponder Uses

func (client JitNetworkAccessPoliciesClient) InitiateResponder(resp *http.Response) (result JitNetworkAccessRequest, err error)

InitiateResponder handles the response to the Initiate request. The method always closes the http.Response Body.

func (JitNetworkAccessPoliciesClient) InitiateSender Uses

func (client JitNetworkAccessPoliciesClient) InitiateSender(req *http.Request) (*http.Response, error)

InitiateSender sends the Initiate request. The method will close the http.Response Body if it receives an error.

func (JitNetworkAccessPoliciesClient) List Uses

func (client JitNetworkAccessPoliciesClient) List(ctx context.Context) (result JitNetworkAccessPoliciesListPage, err error)

List policies for protecting resources using Just-in-Time access control.

func (JitNetworkAccessPoliciesClient) ListByRegion Uses

func (client JitNetworkAccessPoliciesClient) ListByRegion(ctx context.Context) (result JitNetworkAccessPoliciesListPage, err error)

ListByRegion policies for protecting resources using Just-in-Time access control for the subscription, location

func (JitNetworkAccessPoliciesClient) ListByRegionComplete Uses

func (client JitNetworkAccessPoliciesClient) ListByRegionComplete(ctx context.Context) (result JitNetworkAccessPoliciesListIterator, err error)

ListByRegionComplete enumerates all values, automatically crossing page boundaries as required.

func (JitNetworkAccessPoliciesClient) ListByRegionPreparer Uses

func (client JitNetworkAccessPoliciesClient) ListByRegionPreparer(ctx context.Context) (*http.Request, error)

ListByRegionPreparer prepares the ListByRegion request.

func (JitNetworkAccessPoliciesClient) ListByRegionResponder Uses

func (client JitNetworkAccessPoliciesClient) ListByRegionResponder(resp *http.Response) (result JitNetworkAccessPoliciesList, err error)

ListByRegionResponder handles the response to the ListByRegion request. The method always closes the http.Response Body.

func (JitNetworkAccessPoliciesClient) ListByRegionSender Uses

func (client JitNetworkAccessPoliciesClient) ListByRegionSender(req *http.Request) (*http.Response, error)

ListByRegionSender sends the ListByRegion request. The method will close the http.Response Body if it receives an error.

func (JitNetworkAccessPoliciesClient) ListByResourceGroup Uses

func (client JitNetworkAccessPoliciesClient) ListByResourceGroup(ctx context.Context, resourceGroupName string) (result JitNetworkAccessPoliciesListPage, err error)

ListByResourceGroup policies for protecting resources using Just-in-Time access control for the subscription, location Parameters: resourceGroupName - the name of the resource group within the user's subscription. The name is case insensitive.

func (JitNetworkAccessPoliciesClient) ListByResourceGroupAndRegion Uses

func (client JitNetworkAccessPoliciesClient) ListByResourceGroupAndRegion(ctx context.Context, resourceGroupName string) (result JitNetworkAccessPoliciesListPage, err error)

ListByResourceGroupAndRegion policies for protecting resources using Just-in-Time access control for the subscription, location Parameters: resourceGroupName - the name of the resource group within the user's subscription. The name is case insensitive.

func (JitNetworkAccessPoliciesClient) ListByResourceGroupAndRegionComplete Uses

func (client JitNetworkAccessPoliciesClient) ListByResourceGroupAndRegionComplete(ctx context.Context, resourceGroupName string) (result JitNetworkAccessPoliciesListIterator, err error)

ListByResourceGroupAndRegionComplete enumerates all values, automatically crossing page boundaries as required.

func (JitNetworkAccessPoliciesClient) ListByResourceGroupAndRegionPreparer Uses

func (client JitNetworkAccessPoliciesClient) ListByResourceGroupAndRegionPreparer(ctx context.Context, resourceGroupName string) (*http.Request, error)

ListByResourceGroupAndRegionPreparer prepares the ListByResourceGroupAndRegion request.

func (JitNetworkAccessPoliciesClient) ListByResourceGroupAndRegionResponder Uses

func (client JitNetworkAccessPoliciesClient) ListByResourceGroupAndRegionResponder(resp *http.Response) (result JitNetworkAccessPoliciesList, err error)

ListByResourceGroupAndRegionResponder handles the response to the ListByResourceGroupAndRegion request. The method always closes the http.Response Body.

func (JitNetworkAccessPoliciesClient) ListByResourceGroupAndRegionSender Uses

func (client JitNetworkAccessPoliciesClient) ListByResourceGroupAndRegionSender(req *http.Request) (*http.Response, error)

ListByResourceGroupAndRegionSender sends the ListByResourceGroupAndRegion request. The method will close the http.Response Body if it receives an error.

func (JitNetworkAccessPoliciesClient) ListByResourceGroupComplete Uses

func (client JitNetworkAccessPoliciesClient) ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result JitNetworkAccessPoliciesListIterator, err error)

ListByResourceGroupComplete enumerates all values, automatically crossing page boundaries as required.

func (JitNetworkAccessPoliciesClient) ListByResourceGroupPreparer Uses

func (client JitNetworkAccessPoliciesClient) ListByResourceGroupPreparer(ctx context.Context, resourceGroupName string) (*http.Request, error)

ListByResourceGroupPreparer prepares the ListByResourceGroup request.

func (JitNetworkAccessPoliciesClient) ListByResourceGroupResponder Uses

func (client JitNetworkAccessPoliciesClient) ListByResourceGroupResponder(resp *http.Response) (result JitNetworkAccessPoliciesList, err error)

ListByResourceGroupResponder handles the response to the ListByResourceGroup request. The method always closes the http.Response Body.

func (JitNetworkAccessPoliciesClient) ListByResourceGroupSender Uses

func (client JitNetworkAccessPoliciesClient) ListByResourceGroupSender(req *http.Request) (*http.Response, error)

ListByResourceGroupSender sends the ListByResourceGroup request. The method will close the http.Response Body if it receives an error.

func (JitNetworkAccessPoliciesClient) ListComplete Uses

func (client JitNetworkAccessPoliciesClient) ListComplete(ctx context.Context) (result JitNetworkAccessPoliciesListIterator, err error)

ListComplete enumerates all values, automatically crossing page boundaries as required.

func (JitNetworkAccessPoliciesClient) ListPreparer Uses

func (client JitNetworkAccessPoliciesClient) ListPreparer(ctx context.Context) (*http.Request, error)

ListPreparer prepares the List request.

func (JitNetworkAccessPoliciesClient) ListResponder Uses

func (client JitNetworkAccessPoliciesClient) ListResponder(resp *http.Response) (result JitNetworkAccessPoliciesList, err error)

ListResponder handles the response to the List request. The method always closes the http.Response Body.

func (JitNetworkAccessPoliciesClient) ListSender Uses

func (client JitNetworkAccessPoliciesClient) ListSender(req *http.Request) (*http.Response, error)

ListSender sends the List request. The method will close the http.Response Body if it receives an error.

type JitNetworkAccessPoliciesList Uses

type JitNetworkAccessPoliciesList struct {
    autorest.Response `json:"-"`
    Value             *[]JitNetworkAccessPolicy `json:"value,omitempty"`
    // NextLink - READ-ONLY; The URI to fetch the next page.
    NextLink *string `json:"nextLink,omitempty"`
}

JitNetworkAccessPoliciesList ...

func (JitNetworkAccessPoliciesList) IsEmpty Uses

func (jnapl JitNetworkAccessPoliciesList) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type JitNetworkAccessPoliciesListIterator Uses

type JitNetworkAccessPoliciesListIterator struct {
    // contains filtered or unexported fields
}

JitNetworkAccessPoliciesListIterator provides access to a complete listing of JitNetworkAccessPolicy values.

func NewJitNetworkAccessPoliciesListIterator Uses

func NewJitNetworkAccessPoliciesListIterator(page JitNetworkAccessPoliciesListPage) JitNetworkAccessPoliciesListIterator

Creates a new instance of the JitNetworkAccessPoliciesListIterator type.

func (*JitNetworkAccessPoliciesListIterator) Next Uses

func (iter *JitNetworkAccessPoliciesListIterator) Next() error

Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*JitNetworkAccessPoliciesListIterator) NextWithContext Uses

func (iter *JitNetworkAccessPoliciesListIterator) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.

func (JitNetworkAccessPoliciesListIterator) NotDone Uses

func (iter JitNetworkAccessPoliciesListIterator) NotDone() bool

NotDone returns true if the enumeration should be started or is not yet complete.

func (JitNetworkAccessPoliciesListIterator) Response Uses

func (iter JitNetworkAccessPoliciesListIterator) Response() JitNetworkAccessPoliciesList

Response returns the raw server response from the last page request.

func (JitNetworkAccessPoliciesListIterator) Value Uses

func (iter JitNetworkAccessPoliciesListIterator) Value() JitNetworkAccessPolicy

Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.

type JitNetworkAccessPoliciesListPage Uses

type JitNetworkAccessPoliciesListPage struct {
    // contains filtered or unexported fields
}

JitNetworkAccessPoliciesListPage contains a page of JitNetworkAccessPolicy values.

func NewJitNetworkAccessPoliciesListPage Uses

func NewJitNetworkAccessPoliciesListPage(getNextPage func(context.Context, JitNetworkAccessPoliciesList) (JitNetworkAccessPoliciesList, error)) JitNetworkAccessPoliciesListPage

Creates a new instance of the JitNetworkAccessPoliciesListPage type.

func (*JitNetworkAccessPoliciesListPage) Next Uses

func (page *JitNetworkAccessPoliciesListPage) Next() error

Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*JitNetworkAccessPoliciesListPage) NextWithContext Uses

func (page *JitNetworkAccessPoliciesListPage) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.

func (JitNetworkAccessPoliciesListPage) NotDone Uses

func (page JitNetworkAccessPoliciesListPage) NotDone() bool

NotDone returns true if the page enumeration should be started or is not yet complete.

func (JitNetworkAccessPoliciesListPage) Response Uses

func (page JitNetworkAccessPoliciesListPage) Response() JitNetworkAccessPoliciesList

Response returns the raw server response from the last page request.

func (JitNetworkAccessPoliciesListPage) Values Uses

func (page JitNetworkAccessPoliciesListPage) Values() []JitNetworkAccessPolicy

Values returns the slice of values for the current page or nil if there are no values.

type JitNetworkAccessPolicy Uses

type JitNetworkAccessPolicy struct {
    autorest.Response `json:"-"`
    // ID - READ-ONLY; Resource Id
    ID  *string `json:"id,omitempty"`
    // Name - READ-ONLY; Resource name
    Name *string `json:"name,omitempty"`
    // Type - READ-ONLY; Resource type
    Type *string `json:"type,omitempty"`
    // Kind - Kind of the resource
    Kind *string `json:"kind,omitempty"`
    // Location - READ-ONLY; Location where the resource is stored
    Location                          *string `json:"location,omitempty"`
    *JitNetworkAccessPolicyProperties `json:"properties,omitempty"`
}

JitNetworkAccessPolicy ...

func (JitNetworkAccessPolicy) MarshalJSON Uses

func (jnap JitNetworkAccessPolicy) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for JitNetworkAccessPolicy.

func (*JitNetworkAccessPolicy) UnmarshalJSON Uses

func (jnap *JitNetworkAccessPolicy) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for JitNetworkAccessPolicy struct.

type JitNetworkAccessPolicyInitiatePort Uses

type JitNetworkAccessPolicyInitiatePort struct {
    Number *int32 `json:"number,omitempty"`
    // AllowedSourceAddressPrefix - Source of the allowed traffic. If omitted, the request will be for the source IP address of the initiate request.
    AllowedSourceAddressPrefix *string `json:"allowedSourceAddressPrefix,omitempty"`
    // EndTimeUtc - The time to close the request in UTC
    EndTimeUtc *date.Time `json:"endTimeUtc,omitempty"`
}

JitNetworkAccessPolicyInitiatePort ...

type JitNetworkAccessPolicyInitiateRequest Uses

type JitNetworkAccessPolicyInitiateRequest struct {
    // VirtualMachines - A list of virtual machines & ports to open access for
    VirtualMachines *[]JitNetworkAccessPolicyInitiateVirtualMachine `json:"virtualMachines,omitempty"`
}

JitNetworkAccessPolicyInitiateRequest ...

type JitNetworkAccessPolicyInitiateVirtualMachine Uses

type JitNetworkAccessPolicyInitiateVirtualMachine struct {
    // ID - Resource ID of the virtual machine that is linked to this policy
    ID  *string `json:"id,omitempty"`
    // Ports - The ports to open for the resource with the `id`
    Ports *[]JitNetworkAccessPolicyInitiatePort `json:"ports,omitempty"`
}

JitNetworkAccessPolicyInitiateVirtualMachine ...

type JitNetworkAccessPolicyProperties Uses

type JitNetworkAccessPolicyProperties struct {
    // VirtualMachines - Configurations for Microsoft.Compute/virtualMachines resource type.
    VirtualMachines *[]JitNetworkAccessPolicyVirtualMachine `json:"virtualMachines,omitempty"`
    Requests        *[]JitNetworkAccessRequest              `json:"requests,omitempty"`
    // ProvisioningState - READ-ONLY; Gets the provisioning state of the Just-in-Time policy.
    ProvisioningState *string `json:"provisioningState,omitempty"`
}

JitNetworkAccessPolicyProperties ...

type JitNetworkAccessPolicyVirtualMachine Uses

type JitNetworkAccessPolicyVirtualMachine struct {
    // ID - Resource ID of the virtual machine that is linked to this policy
    ID  *string `json:"id,omitempty"`
    // Ports - Port configurations for the virtual machine
    Ports *[]JitNetworkAccessPortRule `json:"ports,omitempty"`
    // PublicIPAddress - Public IP address of the Azure Firewall that is linked to this policy, if applicable
    PublicIPAddress *string `json:"publicIpAddress,omitempty"`
}

JitNetworkAccessPolicyVirtualMachine ...

type JitNetworkAccessPortRule Uses

type JitNetworkAccessPortRule struct {
    Number *int32 `json:"number,omitempty"`
    // Protocol - Possible values include: 'TCP', 'UDP', 'All'
    Protocol Protocol `json:"protocol,omitempty"`
    // AllowedSourceAddressPrefix - Mutually exclusive with the "allowedSourceAddressPrefixes" parameter. Should be an IP address or CIDR, for example "192.168.0.3" or "192.168.0.0/16".
    AllowedSourceAddressPrefix *string `json:"allowedSourceAddressPrefix,omitempty"`
    // AllowedSourceAddressPrefixes - Mutually exclusive with the "allowedSourceAddressPrefix" parameter.
    AllowedSourceAddressPrefixes *[]string `json:"allowedSourceAddressPrefixes,omitempty"`
    // MaxRequestAccessDuration - Maximum duration requests can be made for. In ISO 8601 duration format. Minimum 5 minutes, maximum 1 day
    MaxRequestAccessDuration *string `json:"maxRequestAccessDuration,omitempty"`
}

JitNetworkAccessPortRule ...

type JitNetworkAccessRequest Uses

type JitNetworkAccessRequest struct {
    autorest.Response `json:"-"`
    VirtualMachines   *[]JitNetworkAccessRequestVirtualMachine `json:"virtualMachines,omitempty"`
    // StartTimeUtc - The start time of the request in UTC
    StartTimeUtc *date.Time `json:"startTimeUtc,omitempty"`
    // Requestor - The identity of the person who made the request
    Requestor *string `json:"requestor,omitempty"`
}

JitNetworkAccessRequest ...

type JitNetworkAccessRequestPort Uses

type JitNetworkAccessRequestPort struct {
    Number *int32 `json:"number,omitempty"`
    // AllowedSourceAddressPrefix - Mutually exclusive with the "allowedSourceAddressPrefixes" parameter. Should be an IP address or CIDR, for example "192.168.0.3" or "192.168.0.0/16".
    AllowedSourceAddressPrefix *string `json:"allowedSourceAddressPrefix,omitempty"`
    // AllowedSourceAddressPrefixes - Mutually exclusive with the "allowedSourceAddressPrefix" parameter.
    AllowedSourceAddressPrefixes *[]string `json:"allowedSourceAddressPrefixes,omitempty"`
    // EndTimeUtc - The date & time at which the request ends in UTC
    EndTimeUtc *date.Time `json:"endTimeUtc,omitempty"`
    // Status - The status of the port. Possible values include: 'Revoked', 'Initiated'
    Status Status `json:"status,omitempty"`
    // StatusReason - A description of why the `status` has its value. Possible values include: 'Expired', 'UserRequested', 'NewerRequestInitiated'
    StatusReason StatusReason `json:"statusReason,omitempty"`
    // MappedPort - The port which is mapped to this port's `number` in the Azure Firewall, if applicable
    MappedPort *int32 `json:"mappedPort,omitempty"`
}

JitNetworkAccessRequestPort ...

type JitNetworkAccessRequestVirtualMachine Uses

type JitNetworkAccessRequestVirtualMachine struct {
    // ID - Resource ID of the virtual machine that is linked to this policy
    ID  *string `json:"id,omitempty"`
    // Ports - The ports that were opened for the virtual machine
    Ports *[]JitNetworkAccessRequestPort `json:"ports,omitempty"`
}

JitNetworkAccessRequestVirtualMachine ...

type Kind Uses

type Kind struct {
    // Kind - Kind of the resource
    Kind *string `json:"kind,omitempty"`
}

Kind describes an Azure resource with kind

type KindEnum Uses

type KindEnum string

KindEnum enumerates the values for kind enum.

const (
    // KindAAD ...
    KindAAD KindEnum = "AAD"
    // KindATA ...
    KindATA KindEnum = "ATA"
    // KindCEF ...
    KindCEF KindEnum = "CEF"
    // KindExternalSecuritySolution ...
    KindExternalSecuritySolution KindEnum = "ExternalSecuritySolution"
)

func PossibleKindEnumValues Uses

func PossibleKindEnumValues() []KindEnum

PossibleKindEnumValues returns an array of possible values for the KindEnum const type.

type ListCustomAlertRule Uses

type ListCustomAlertRule struct {
    // ValueType - READ-ONLY; The value type of the items in the list. Possible values include: 'IPCidr', 'String'
    ValueType ValueType `json:"valueType,omitempty"`
    // DisplayName - READ-ONLY; The display name of the custom alert.
    DisplayName *string `json:"displayName,omitempty"`
    // Description - READ-ONLY; The description of the custom alert.
    Description *string `json:"description,omitempty"`
    // IsEnabled - Whether the custom alert is enabled.
    IsEnabled *bool `json:"isEnabled,omitempty"`
    // RuleType - The type of the custom alert rule.
    RuleType *string `json:"ruleType,omitempty"`
}

ListCustomAlertRule a List custom alert rule

type Location Uses

type Location struct {
    // Location - READ-ONLY; Location where the resource is stored
    Location *string `json:"location,omitempty"`
}

Location describes an Azure resource with location

type LocationsClient Uses

type LocationsClient struct {
    BaseClient
}

LocationsClient is the API spec for Microsoft.Security (Azure Security Center) resource provider

func NewLocationsClient Uses

func NewLocationsClient(subscriptionID string, ascLocation string) LocationsClient

NewLocationsClient creates an instance of the LocationsClient client.

func NewLocationsClientWithBaseURI Uses

func NewLocationsClientWithBaseURI(baseURI string, subscriptionID string, ascLocation string) LocationsClient

NewLocationsClientWithBaseURI creates an instance of the LocationsClient client.

func (LocationsClient) Get Uses

func (client LocationsClient) Get(ctx context.Context) (result AscLocation, err error)

Get details of a specific location

func (LocationsClient) GetPreparer Uses

func (client LocationsClient) GetPreparer(ctx context.Context) (*http.Request, error)

GetPreparer prepares the Get request.

func (LocationsClient) GetResponder Uses

func (client LocationsClient) GetResponder(resp *http.Response) (result AscLocation, err error)

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (LocationsClient) GetSender Uses

func (client LocationsClient) GetSender(req *http.Request) (*http.Response, error)

GetSender sends the Get request. The method will close the http.Response Body if it receives an error.

func (LocationsClient) List Uses

func (client LocationsClient) List(ctx context.Context) (result AscLocationListPage, err error)

List the location of the responsible ASC of the specific subscription (home region). For each subscription there is only one responsible location. The location in the response should be used to read or write other resources in ASC according to their ID.

func (LocationsClient) ListComplete Uses

func (client LocationsClient) ListComplete(ctx context.Context) (result AscLocationListIterator, err error)

ListComplete enumerates all values, automatically crossing page boundaries as required.

func (LocationsClient) ListPreparer Uses

func (client LocationsClient) ListPreparer(ctx context.Context) (*http.Request, error)

ListPreparer prepares the List request.

func (LocationsClient) ListResponder Uses

func (client LocationsClient) ListResponder(resp *http.Response) (result AscLocationList, err error)

ListResponder handles the response to the List request. The method always closes the http.Response Body.

func (LocationsClient) ListSender Uses

func (client LocationsClient) ListSender(req *http.Request) (*http.Response, error)

ListSender sends the List request. The method will close the http.Response Body if it receives an error.

type Operation Uses

type Operation struct {
    // Name - READ-ONLY; Name of the operation
    Name *string `json:"name,omitempty"`
    // Origin - READ-ONLY; Where the operation is originated
    Origin  *string           `json:"origin,omitempty"`
    Display *OperationDisplay `json:"display,omitempty"`
}

Operation possible operation in the REST API of Microsoft.Security

type OperationDisplay Uses

type OperationDisplay struct {
    // Provider - READ-ONLY; The resource provider for the operation.
    Provider *string `json:"provider,omitempty"`
    // Resource - READ-ONLY; The display name of the resource the operation applies to.
    Resource *string `json:"resource,omitempty"`
    // Operation - READ-ONLY; The display name of the security operation.
    Operation *string `json:"operation,omitempty"`
    // Description - READ-ONLY; The description of the operation.
    Description *string `json:"description,omitempty"`
}

OperationDisplay security operation display

type OperationList Uses

type OperationList struct {
    autorest.Response `json:"-"`
    // Value - List of Security operations
    Value *[]Operation `json:"value,omitempty"`
    // NextLink - READ-ONLY; The URI to fetch the next page.
    NextLink *string `json:"nextLink,omitempty"`
}

OperationList list of possible operations for Microsoft.Security resource provider

func (OperationList) IsEmpty Uses

func (ol OperationList) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type OperationListIterator Uses

type OperationListIterator struct {
    // contains filtered or unexported fields
}

OperationListIterator provides access to a complete listing of Operation values.

func NewOperationListIterator Uses

func NewOperationListIterator(page OperationListPage) OperationListIterator

Creates a new instance of the OperationListIterator type.

func (*OperationListIterator) Next Uses

func (iter *OperationListIterator) Next() error

Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*OperationListIterator) NextWithContext Uses

func (iter *OperationListIterator) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.

func (OperationListIterator) NotDone Uses

func (iter OperationListIterator) NotDone() bool

NotDone returns true if the enumeration should be started or is not yet complete.

func (OperationListIterator) Response Uses

func (iter OperationListIterator) Response() OperationList

Response returns the raw server response from the last page request.

func (OperationListIterator) Value Uses

func (iter OperationListIterator) Value() Operation

Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.

type OperationListPage Uses

type OperationListPage struct {
    // contains filtered or unexported fields
}

OperationListPage contains a page of Operation values.

func NewOperationListPage Uses

func NewOperationListPage(getNextPage func(context.Context, OperationList) (OperationList, error)) OperationListPage

Creates a new instance of the OperationListPage type.

func (*OperationListPage) Next Uses

func (page *OperationListPage) Next() error

Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*OperationListPage) NextWithContext Uses

func (page *OperationListPage) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.

func (OperationListPage) NotDone Uses

func (page OperationListPage) NotDone() bool

NotDone returns true if the page enumeration should be started or is not yet complete.

func (OperationListPage) Response Uses

func (page OperationListPage) Response() OperationList

Response returns the raw server response from the last page request.

func (OperationListPage) Values Uses

func (page OperationListPage) Values() []Operation

Values returns the slice of values for the current page or nil if there are no values.

type OperationsClient Uses

type OperationsClient struct {
    BaseClient
}

OperationsClient is the API spec for Microsoft.Security (Azure Security Center) resource provider

func NewOperationsClient Uses

func NewOperationsClient(subscriptionID string, ascLocation string) OperationsClient

NewOperationsClient creates an instance of the OperationsClient client.

func NewOperationsClientWithBaseURI