Documentation ¶
Index ¶
- func PossibleValuesForDeleteStatus() []string
- func PossibleValuesForFileFormat() []string
- func PossibleValuesForFileImportContentType() []string
- func PossibleValuesForFileImportState() []string
- func PossibleValuesForIngestionMode() []string
- func ValidateFileImportID(input interface{}, key string) (warnings []string, errors []error)
- func ValidateWorkspaceID(input interface{}, key string) (warnings []string, errors []error)
- type CreateOperationResponse
- type DeleteOperationResponse
- type DeleteStatus
- type FileFormat
- type FileImport
- type FileImportContentType
- type FileImportId
- type FileImportOperationPredicate
- type FileImportProperties
- func (o *FileImportProperties) GetCreatedTimeUTCAsTime() (*time.Time, error)
- func (o *FileImportProperties) GetFilesValidUntilTimeUTCAsTime() (*time.Time, error)
- func (o *FileImportProperties) GetImportValidUntilTimeUTCAsTime() (*time.Time, error)
- func (o *FileImportProperties) SetCreatedTimeUTCAsTime(input time.Time)
- func (o *FileImportProperties) SetFilesValidUntilTimeUTCAsTime(input time.Time)
- func (o *FileImportProperties) SetImportValidUntilTimeUTCAsTime(input time.Time)
- type FileImportState
- type FileImportsClient
- func (c FileImportsClient) Create(ctx context.Context, id FileImportId, input FileImport) (result CreateOperationResponse, err error)
- func (c FileImportsClient) Delete(ctx context.Context, id FileImportId) (result DeleteOperationResponse, err error)
- func (c FileImportsClient) DeleteThenPoll(ctx context.Context, id FileImportId) error
- func (c FileImportsClient) Get(ctx context.Context, id FileImportId) (result GetOperationResponse, err error)
- func (c FileImportsClient) List(ctx context.Context, id WorkspaceId, options ListOperationOptions) (resp ListOperationResponse, err error)
- func (c FileImportsClient) ListComplete(ctx context.Context, id WorkspaceId, options ListOperationOptions) (ListCompleteResult, error)
- func (c FileImportsClient) ListCompleteMatchingPredicate(ctx context.Context, id WorkspaceId, options ListOperationOptions, ...) (resp ListCompleteResult, err error)
- type FileMetadata
- type GetOperationResponse
- type IngestionMode
- type ListCompleteResult
- type ListOperationOptions
- type ListOperationResponse
- type ValidationError
- type WorkspaceId
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PossibleValuesForDeleteStatus ¶
func PossibleValuesForDeleteStatus() []string
func PossibleValuesForFileFormat ¶
func PossibleValuesForFileFormat() []string
func PossibleValuesForFileImportContentType ¶
func PossibleValuesForFileImportContentType() []string
func PossibleValuesForFileImportState ¶
func PossibleValuesForFileImportState() []string
func PossibleValuesForIngestionMode ¶
func PossibleValuesForIngestionMode() []string
func ValidateFileImportID ¶
ValidateFileImportID checks that 'input' can be parsed as a File Import ID
func ValidateWorkspaceID ¶
ValidateWorkspaceID checks that 'input' can be parsed as a Workspace ID
Types ¶
type CreateOperationResponse ¶
type CreateOperationResponse struct { HttpResponse *http.Response Model *FileImport }
type DeleteOperationResponse ¶
type DeleteOperationResponse struct { Poller polling.LongRunningPoller HttpResponse *http.Response Model *FileImport }
type DeleteStatus ¶
type DeleteStatus string
const ( DeleteStatusDeleted DeleteStatus = "Deleted" DeleteStatusNotDeleted DeleteStatus = "NotDeleted" DeleteStatusUnspecified DeleteStatus = "Unspecified" )
type FileFormat ¶
type FileFormat string
const ( FileFormatCSV FileFormat = "CSV" FileFormatJSON FileFormat = "JSON" FileFormatUnspecified FileFormat = "Unspecified" )
type FileImport ¶
type FileImport struct { Id *string `json:"id,omitempty"` Name *string `json:"name,omitempty"` Properties *FileImportProperties `json:"properties,omitempty"` SystemData *systemdata.SystemData `json:"systemData,omitempty"` Type *string `json:"type,omitempty"` }
type FileImportContentType ¶
type FileImportContentType string
const ( FileImportContentTypeBasicIndicator FileImportContentType = "BasicIndicator" FileImportContentTypeStixIndicator FileImportContentType = "StixIndicator" FileImportContentTypeUnspecified FileImportContentType = "Unspecified" )
type FileImportId ¶
type FileImportId struct { SubscriptionId string ResourceGroupName string WorkspaceName string FileImportId string }
FileImportId is a struct representing the Resource ID for a File Import
func NewFileImportID ¶
func NewFileImportID(subscriptionId string, resourceGroupName string, workspaceName string, fileImportId string) FileImportId
NewFileImportID returns a new FileImportId struct
func ParseFileImportID ¶
func ParseFileImportID(input string) (*FileImportId, error)
ParseFileImportID parses 'input' into a FileImportId
func ParseFileImportIDInsensitively ¶
func ParseFileImportIDInsensitively(input string) (*FileImportId, error)
ParseFileImportIDInsensitively parses 'input' case-insensitively into a FileImportId note: this method should only be used for API response data and not user input
func (*FileImportId) FromParseResult ¶
func (id *FileImportId) FromParseResult(input resourceids.ParseResult) error
func (FileImportId) Segments ¶
func (id FileImportId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this File Import ID
func (FileImportId) String ¶
func (id FileImportId) String() string
String returns a human-readable description of this File Import ID
type FileImportOperationPredicate ¶
func (FileImportOperationPredicate) Matches ¶
func (p FileImportOperationPredicate) Matches(input FileImport) bool
type FileImportProperties ¶
type FileImportProperties struct { ContentType FileImportContentType `json:"contentType"` CreatedTimeUTC *string `json:"createdTimeUTC,omitempty"` ErrorFile *FileMetadata `json:"errorFile,omitempty"` ErrorsPreview *[]ValidationError `json:"errorsPreview,omitempty"` FilesValidUntilTimeUTC *string `json:"filesValidUntilTimeUTC,omitempty"` ImportFile FileMetadata `json:"importFile"` ImportValidUntilTimeUTC *string `json:"importValidUntilTimeUTC,omitempty"` IngestedRecordCount *int64 `json:"ingestedRecordCount,omitempty"` IngestionMode IngestionMode `json:"ingestionMode"` Source string `json:"source"` State *FileImportState `json:"state,omitempty"` TotalRecordCount *int64 `json:"totalRecordCount,omitempty"` ValidRecordCount *int64 `json:"validRecordCount,omitempty"` }
func (*FileImportProperties) GetCreatedTimeUTCAsTime ¶
func (o *FileImportProperties) GetCreatedTimeUTCAsTime() (*time.Time, error)
func (*FileImportProperties) GetFilesValidUntilTimeUTCAsTime ¶
func (o *FileImportProperties) GetFilesValidUntilTimeUTCAsTime() (*time.Time, error)
func (*FileImportProperties) GetImportValidUntilTimeUTCAsTime ¶
func (o *FileImportProperties) GetImportValidUntilTimeUTCAsTime() (*time.Time, error)
func (*FileImportProperties) SetCreatedTimeUTCAsTime ¶
func (o *FileImportProperties) SetCreatedTimeUTCAsTime(input time.Time)
func (*FileImportProperties) SetFilesValidUntilTimeUTCAsTime ¶
func (o *FileImportProperties) SetFilesValidUntilTimeUTCAsTime(input time.Time)
func (*FileImportProperties) SetImportValidUntilTimeUTCAsTime ¶
func (o *FileImportProperties) SetImportValidUntilTimeUTCAsTime(input time.Time)
type FileImportState ¶
type FileImportState string
const ( FileImportStateFatalError FileImportState = "FatalError" FileImportStateInProgress FileImportState = "InProgress" FileImportStateIngested FileImportState = "Ingested" FileImportStateIngestedWithErrors FileImportState = "IngestedWithErrors" FileImportStateInvalid FileImportState = "Invalid" FileImportStateUnspecified FileImportState = "Unspecified" FileImportStateWaitingForUpload FileImportState = "WaitingForUpload" )
type FileImportsClient ¶
func NewFileImportsClientWithBaseURI ¶
func NewFileImportsClientWithBaseURI(endpoint string) FileImportsClient
func (FileImportsClient) Create ¶
func (c FileImportsClient) Create(ctx context.Context, id FileImportId, input FileImport) (result CreateOperationResponse, err error)
Create ...
func (FileImportsClient) Delete ¶
func (c FileImportsClient) Delete(ctx context.Context, id FileImportId) (result DeleteOperationResponse, err error)
Delete ...
func (FileImportsClient) DeleteThenPoll ¶
func (c FileImportsClient) DeleteThenPoll(ctx context.Context, id FileImportId) error
DeleteThenPoll performs Delete then polls until it's completed
func (FileImportsClient) Get ¶
func (c FileImportsClient) Get(ctx context.Context, id FileImportId) (result GetOperationResponse, err error)
Get ...
func (FileImportsClient) List ¶
func (c FileImportsClient) List(ctx context.Context, id WorkspaceId, options ListOperationOptions) (resp ListOperationResponse, err error)
List ...
func (FileImportsClient) ListComplete ¶
func (c FileImportsClient) ListComplete(ctx context.Context, id WorkspaceId, options ListOperationOptions) (ListCompleteResult, error)
ListComplete retrieves all of the results into a single object
func (FileImportsClient) ListCompleteMatchingPredicate ¶
func (c FileImportsClient) ListCompleteMatchingPredicate(ctx context.Context, id WorkspaceId, options ListOperationOptions, predicate FileImportOperationPredicate) (resp ListCompleteResult, err error)
ListCompleteMatchingPredicate retrieves all of the results and then applied the predicate
type FileMetadata ¶
type FileMetadata struct { DeleteStatus *DeleteStatus `json:"deleteStatus,omitempty"` FileContentUri *string `json:"fileContentUri,omitempty"` FileFormat *FileFormat `json:"fileFormat,omitempty"` FileName *string `json:"fileName,omitempty"` FileSize *int64 `json:"fileSize,omitempty"` }
type GetOperationResponse ¶
type GetOperationResponse struct { HttpResponse *http.Response Model *FileImport }
type IngestionMode ¶
type IngestionMode string
const ( IngestionModeIngestAnyValidRecords IngestionMode = "IngestAnyValidRecords" IngestionModeIngestOnlyIfAllAreValid IngestionMode = "IngestOnlyIfAllAreValid" IngestionModeUnspecified IngestionMode = "Unspecified" )
type ListCompleteResult ¶
type ListCompleteResult struct {
Items []FileImport
}
type ListOperationOptions ¶
func DefaultListOperationOptions ¶
func DefaultListOperationOptions() ListOperationOptions
type ListOperationResponse ¶
type ListOperationResponse struct { HttpResponse *http.Response Model *[]FileImport // contains filtered or unexported fields }
func (ListOperationResponse) HasMore ¶
func (r ListOperationResponse) HasMore() bool
func (ListOperationResponse) LoadMore ¶
func (r ListOperationResponse) LoadMore(ctx context.Context) (resp ListOperationResponse, err error)
type ValidationError ¶
type WorkspaceId ¶
WorkspaceId is a struct representing the Resource ID for a Workspace
func NewWorkspaceID ¶
func NewWorkspaceID(subscriptionId string, resourceGroupName string, workspaceName string) WorkspaceId
NewWorkspaceID returns a new WorkspaceId struct
func ParseWorkspaceID ¶
func ParseWorkspaceID(input string) (*WorkspaceId, error)
ParseWorkspaceID parses 'input' into a WorkspaceId
func ParseWorkspaceIDInsensitively ¶
func ParseWorkspaceIDInsensitively(input string) (*WorkspaceId, error)
ParseWorkspaceIDInsensitively parses 'input' case-insensitively into a WorkspaceId note: this method should only be used for API response data and not user input
func (*WorkspaceId) FromParseResult ¶
func (id *WorkspaceId) FromParseResult(input resourceids.ParseResult) error
func (WorkspaceId) Segments ¶
func (id WorkspaceId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Workspace ID
func (WorkspaceId) String ¶
func (id WorkspaceId) String() string
String returns a human-readable description of this Workspace ID