enrichment

package
v0.20230811.1084201 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2023 License: MPL-2.0 Imports: 8 Imported by: 1

README

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

The enrichment SDK allows for interaction with the Azure Resource Manager Service securityinsights (API Version 2022-10-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-10-01-preview/enrichment"

Client Initialization

client := enrichment.NewEnrichmentClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: EnrichmentClient.DomainWhoisGet

ctx := context.TODO()
id := enrichment.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group")

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

Example Usage: EnrichmentClient.IPGeodataGet

ctx := context.TODO()
id := enrichment.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group")

read, err := client.IPGeodataGet(ctx, id, enrichment.DefaultIPGeodataGetOperationOptions())
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

This section is empty.

Types

type DomainWhoisGetOperationOptions

type DomainWhoisGetOperationOptions struct {
	Domain *string
}

func DefaultDomainWhoisGetOperationOptions

func DefaultDomainWhoisGetOperationOptions() DomainWhoisGetOperationOptions

type DomainWhoisGetOperationResponse

type DomainWhoisGetOperationResponse struct {
	HttpResponse *http.Response
	Model        *EnrichmentDomainWhois
}

type EnrichmentClient

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

func NewEnrichmentClientWithBaseURI

func NewEnrichmentClientWithBaseURI(endpoint string) EnrichmentClient

func (EnrichmentClient) DomainWhoisGet

DomainWhoisGet ...

func (EnrichmentClient) IPGeodataGet

IPGeodataGet ...

type EnrichmentDomainWhois

type EnrichmentDomainWhois struct {
	Created     *string                       `json:"created,omitempty"`
	Domain      *string                       `json:"domain,omitempty"`
	Expires     *string                       `json:"expires,omitempty"`
	ParsedWhois *EnrichmentDomainWhoisDetails `json:"parsedWhois,omitempty"`
	Server      *string                       `json:"server,omitempty"`
	Updated     *string                       `json:"updated,omitempty"`
}

func (*EnrichmentDomainWhois) GetCreatedAsTime

func (o *EnrichmentDomainWhois) GetCreatedAsTime() (*time.Time, error)

func (*EnrichmentDomainWhois) GetExpiresAsTime

func (o *EnrichmentDomainWhois) GetExpiresAsTime() (*time.Time, error)

func (*EnrichmentDomainWhois) GetUpdatedAsTime

func (o *EnrichmentDomainWhois) GetUpdatedAsTime() (*time.Time, error)

func (*EnrichmentDomainWhois) SetCreatedAsTime

func (o *EnrichmentDomainWhois) SetCreatedAsTime(input time.Time)

func (*EnrichmentDomainWhois) SetExpiresAsTime

func (o *EnrichmentDomainWhois) SetExpiresAsTime(input time.Time)

func (*EnrichmentDomainWhois) SetUpdatedAsTime

func (o *EnrichmentDomainWhois) SetUpdatedAsTime(input time.Time)

type EnrichmentDomainWhoisContact

type EnrichmentDomainWhoisContact struct {
	City    *string   `json:"city,omitempty"`
	Country *string   `json:"country,omitempty"`
	Email   *string   `json:"email,omitempty"`
	Fax     *string   `json:"fax,omitempty"`
	Name    *string   `json:"name,omitempty"`
	Org     *string   `json:"org,omitempty"`
	Phone   *string   `json:"phone,omitempty"`
	Postal  *string   `json:"postal,omitempty"`
	State   *string   `json:"state,omitempty"`
	Street  *[]string `json:"street,omitempty"`
}

type EnrichmentDomainWhoisContacts

type EnrichmentDomainWhoisContacts struct {
	Admin      *EnrichmentDomainWhoisContact `json:"admin,omitempty"`
	Billing    *EnrichmentDomainWhoisContact `json:"billing,omitempty"`
	Registrant *EnrichmentDomainWhoisContact `json:"registrant,omitempty"`
	Tech       *EnrichmentDomainWhoisContact `json:"tech,omitempty"`
}

type EnrichmentDomainWhoisDetails

type EnrichmentDomainWhoisDetails struct {
	Contacts    *EnrichmentDomainWhoisContacts         `json:"contacts,omitempty"`
	NameServers *[]string                              `json:"nameServers,omitempty"`
	Registrar   *EnrichmentDomainWhoisRegistrarDetails `json:"registrar,omitempty"`
	Statuses    *[]string                              `json:"statuses,omitempty"`
}

type EnrichmentDomainWhoisRegistrarDetails

type EnrichmentDomainWhoisRegistrarDetails struct {
	AbuseContactEmail *string `json:"abuseContactEmail,omitempty"`
	AbuseContactPhone *string `json:"abuseContactPhone,omitempty"`
	IanaId            *string `json:"ianaId,omitempty"`
	Name              *string `json:"name,omitempty"`
	Url               *string `json:"url,omitempty"`
	WhoisServer       *string `json:"whoisServer,omitempty"`
}

type EnrichmentIPGeodata

type EnrichmentIPGeodata struct {
	Asn              *string `json:"asn,omitempty"`
	Carrier          *string `json:"carrier,omitempty"`
	City             *string `json:"city,omitempty"`
	CityCf           *int64  `json:"cityCf,omitempty"`
	Continent        *string `json:"continent,omitempty"`
	Country          *string `json:"country,omitempty"`
	CountryCf        *int64  `json:"countryCf,omitempty"`
	IPAddr           *string `json:"ipAddr,omitempty"`
	IPRoutingType    *string `json:"ipRoutingType,omitempty"`
	Latitude         *string `json:"latitude,omitempty"`
	Longitude        *string `json:"longitude,omitempty"`
	Organization     *string `json:"organization,omitempty"`
	OrganizationType *string `json:"organizationType,omitempty"`
	Region           *string `json:"region,omitempty"`
	State            *string `json:"state,omitempty"`
	StateCf          *int64  `json:"stateCf,omitempty"`
	StateCode        *string `json:"stateCode,omitempty"`
}

type IPGeodataGetOperationOptions

type IPGeodataGetOperationOptions struct {
	IPAddress *string
}

func DefaultIPGeodataGetOperationOptions

func DefaultIPGeodataGetOperationOptions() IPGeodataGetOperationOptions

type IPGeodataGetOperationResponse

type IPGeodataGetOperationResponse struct {
	HttpResponse *http.Response
	Model        *EnrichmentIPGeodata
}

Jump to

Keyboard shortcuts

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