incidentteam

package
v0.20230425.1021638 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2023 License: MPL-2.0 Imports: 9 Imported by: 0

README

github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-07-01-preview/incidentteam Documentation

The incidentteam SDK allows for interaction with the Azure Resource Manager Service securityinsights (API Version 2022-07-01-preview).

This readme covers example usages, but further information on using this SDK can be found in the project root.

Import Path

import "github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-07-01-preview/incidentteam"

Client Initialization

client := incidentteam.NewIncidentTeamClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: IncidentTeamClient.IncidentsCreateTeam

ctx := context.TODO()
id := incidentteam.NewIncidentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceValue", "incidentIdentifierValue")

payload := incidentteam.TeamProperties{
	// ...
}


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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateIncidentID

func ValidateIncidentID(input interface{}, key string) (warnings []string, errors []error)

ValidateIncidentID checks that 'input' can be parsed as a Incident ID

Types

type IncidentId

type IncidentId struct {
	SubscriptionId     string
	ResourceGroupName  string
	WorkspaceName      string
	IncidentIdentifier string
}

IncidentId is a struct representing the Resource ID for a Incident

func NewIncidentID

func NewIncidentID(subscriptionId string, resourceGroupName string, workspaceName string, incidentIdentifier string) IncidentId

NewIncidentID returns a new IncidentId struct

func ParseIncidentID

func ParseIncidentID(input string) (*IncidentId, error)

ParseIncidentID parses 'input' into a IncidentId

func ParseIncidentIDInsensitively

func ParseIncidentIDInsensitively(input string) (*IncidentId, error)

ParseIncidentIDInsensitively parses 'input' case-insensitively into a IncidentId note: this method should only be used for API response data and not user input

func (IncidentId) ID

func (id IncidentId) ID() string

ID returns the formatted Incident ID

func (IncidentId) Segments

func (id IncidentId) Segments() []resourceids.Segment

Segments returns a slice of Resource ID Segments which comprise this Incident ID

func (IncidentId) String

func (id IncidentId) String() string

String returns a human-readable description of this Incident ID

type IncidentTeamClient

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

func NewIncidentTeamClientWithBaseURI

func NewIncidentTeamClientWithBaseURI(endpoint string) IncidentTeamClient

func (IncidentTeamClient) IncidentsCreateTeam

func (c IncidentTeamClient) IncidentsCreateTeam(ctx context.Context, id IncidentId, input TeamProperties) (result IncidentsCreateTeamOperationResponse, err error)

IncidentsCreateTeam ...

type IncidentsCreateTeamOperationResponse

type IncidentsCreateTeamOperationResponse struct {
	HttpResponse *http.Response
	Model        *TeamInformation
}

type TeamInformation

type TeamInformation struct {
	Description         *string `json:"description,omitempty"`
	Name                *string `json:"name,omitempty"`
	PrimaryChannelUrl   *string `json:"primaryChannelUrl,omitempty"`
	TeamCreationTimeUtc *string `json:"teamCreationTimeUtc,omitempty"`
	TeamId              *string `json:"teamId,omitempty"`
}

func (*TeamInformation) GetTeamCreationTimeUtcAsTime

func (o *TeamInformation) GetTeamCreationTimeUtcAsTime() (*time.Time, error)

func (*TeamInformation) SetTeamCreationTimeUtcAsTime

func (o *TeamInformation) SetTeamCreationTimeUtcAsTime(input time.Time)

type TeamProperties

type TeamProperties struct {
	GroupIds        *[]string `json:"groupIds,omitempty"`
	MemberIds       *[]string `json:"memberIds,omitempty"`
	TeamDescription *string   `json:"teamDescription,omitempty"`
	TeamName        string    `json:"teamName"`
}

Jump to

Keyboard shortcuts

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