threatintelligence

package
v0.280.0 Latest Latest
Warning

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

Go to latest
Published: May 19, 2026 License: BSD-3-Clause Imports: 18 Imported by: 0

Documentation

Overview

Package threatintelligence provides access to the Threat Intelligence API.

For product documentation, see: https://docs.cloud.google.com/threatintelligence/

Library status

These client libraries are officially supported by Google. However, this library is considered complete and is in maintenance mode. This means that we will address critical bugs and security issues but will not add any new features.

When possible, we recommend using our newer [Cloud Client Libraries for Go](https://pkg.go.dev/cloud.google.com/go) that are still actively being worked and iterated on.

Creating a client

Usage example:

import "google.golang.org/api/threatintelligence/v1beta"
...
ctx := context.Background()
threatintelligenceService, err := threatintelligence.NewService(ctx)

In this example, Google Application Default Credentials are used for authentication. For information on how to create and obtain Application Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials.

Other authentication options

To use an API key for authentication (note: some APIs do not support API keys), use google.golang.org/api/option.WithAPIKey:

threatintelligenceService, err := threatintelligence.NewService(ctx, option.WithAPIKey("AIza..."))

To use an OAuth token (e.g., a user token obtained via a three-legged OAuth flow, use google.golang.org/api/option.WithTokenSource:

config := &oauth2.Config{...}
// ...
token, err := config.Exchange(ctx, ...)
threatintelligenceService, err := threatintelligence.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token)))

See google.golang.org/api/option.ClientOption for details on options.

Index

Constants

View Source
const (
	// See, edit, configure, and delete your Google Cloud data and see the email
	// address for your Google Account.
	CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platform"
)

OAuth2 scopes used by this API.

Variables

This section is empty.

Functions

This section is empty.

Types

type Alert

type Alert struct {
	// AiSummary: Optional. AI summary of the alert.
	AiSummary string `json:"aiSummary,omitempty"`
	// Audit: Output only. Audit information for the alert.
	Audit *Audit `json:"audit,omitempty"`
	// Configurations: Output only. The resource names of the Configurations bound
	// to this alert. Format: projects/{project}/configurations/{configuration}
	Configurations []string `json:"configurations,omitempty"`
	// Detail: Output only. Details object for the alert, not all alerts will have
	// a details object.
	Detail *AlertDetail `json:"detail,omitempty"`
	// DisplayName: Output only. A short title for the alert.
	DisplayName string `json:"displayName,omitempty"`
	// DuplicateOf: Output only. alert name of the alert this alert is a duplicate
	// of. Format: projects/{project}/alerts/{alert}
	DuplicateOf string `json:"duplicateOf,omitempty"`
	// DuplicatedBy: Output only. alert names of the alerts that are duplicates of
	// this alert. Format: projects/{project}/alerts/{alert}
	DuplicatedBy []string `json:"duplicatedBy,omitempty"`
	// Etag: Optional. If included when updating an alert, this should be set to
	// the current etag of the alert. If the etags do not match, the update will be
	// rejected and an ABORTED error will be returned.
	Etag string `json:"etag,omitempty"`
	// ExternalId: Output only. External ID for the alert. This is used internally
	// to provide protection against out of order updates.
	ExternalId string `json:"externalId,omitempty"`
	// FindingCount: Output only. The number of findings associated with this
	// alert.
	FindingCount int64 `json:"findingCount,omitempty,string"`
	// Findings: Output only. Findings that are covered by this alert.
	Findings []string `json:"findings,omitempty"`
	// Name: Identifier. Server generated name for the alert. format is
	// projects/{project}/alerts/{alert}
	Name string `json:"name,omitempty"`
	// PriorityAnalysis: Output only. High-Precision Priority Analysis for the
	// alert.
	PriorityAnalysis *PriorityAnalysis `json:"priorityAnalysis,omitempty"`
	// RelevanceAnalysis: Output only. High-Precision Relevance Analysis verdict
	// for the alert.
	RelevanceAnalysis *RelevanceAnalysis `json:"relevanceAnalysis,omitempty"`
	// SeverityAnalysis: Output only. High-Precision Severity Analysis for the
	// alert.
	SeverityAnalysis *SeverityAnalysis `json:"severityAnalysis,omitempty"`
	// State: Output only. State of the alert.
	//
	// Possible values:
	//   "STATE_UNSPECIFIED" - Default value, should never be set.
	//   "NEW" - alert is new.
	//   "READ" - alert was read by a human.
	//   "TRIAGED" - alert has been triaged.
	//   "ESCALATED" - alert has been escalated.
	//   "RESOLVED" - alert has been resolved.
	//   "DUPLICATE" - alert is a duplicate of another alert.
	//   "FALSE_POSITIVE" - alert is a false positive and should be ignored.
	//   "NOT_ACTIONABLE" - alert is not actionable.
	//   "BENIGN" - alert is benign.
	//   "TRACKED_EXTERNALLY" - alert is tracked externally.
	State string `json:"state,omitempty"`

	// ServerResponse contains the HTTP response code and headers from the server.
	googleapi.ServerResponse `json:"-"`
	// ForceSendFields is a list of field names (e.g. "AiSummary") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "AiSummary") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

Alert: Stateful object representing a group of Findings. Key feature to an Alert is that it expresses the user's intent towards the findings of that group, even those that haven't occurred yet.

func (Alert) MarshalJSON

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

type AlertDetail

type AlertDetail struct {
	// DataLeak: Data Leak alert detail type.
	DataLeak *DataLeakAlertDetail `json:"dataLeak,omitempty"`
	// DetailType: Output only. Name of the detail type. Will be set by the server
	// during creation to the name of the field that is set in the detail union.
	DetailType string `json:"detailType,omitempty"`
	// InitialAccessBroker: Initial Access Broker alert detail type.
	InitialAccessBroker *InitialAccessBrokerAlertDetail `json:"initialAccessBroker,omitempty"`
	// InsiderThreat: Insider Threat alert detail type.
	InsiderThreat *InsiderThreatAlertDetail `json:"insiderThreat,omitempty"`
	// ForceSendFields is a list of field names (e.g. "DataLeak") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "DataLeak") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

AlertDetail: Container for different types of alert details.

func (AlertDetail) MarshalJSON

func (s AlertDetail) MarshalJSON() ([]byte, error)

type AlertDocument

type AlertDocument struct {
	// AiSummary: Output only. AI summary of the document.
	AiSummary string `json:"aiSummary,omitempty"`
	// Author: Output only. The author of the document.
	Author string `json:"author,omitempty"`
	// CollectionTime: Output only. Time when the origin source collected the
	// intel.
	CollectionTime string `json:"collectionTime,omitempty"`
	// Content: Output only. The content of the document.
	Content string `json:"content,omitempty"`
	// CreateTime: Output only. The timestamp of the original external publication
	// of the document.
	CreateTime string `json:"createTime,omitempty"`
	// IngestTime: Output only. Time when GTI received the intel.
	IngestTime string `json:"ingestTime,omitempty"`
	// LanguageCode: Output only. The language code of the document.
	LanguageCode string `json:"languageCode,omitempty"`
	// Name: Identifier. Server generated name for the alert document. format is
	// projects/{project}/alerts/{alert}/documents/{document}
	Name string `json:"name,omitempty"`
	// Source: Output only. Source of the intel item, e.g. DarkMarket.
	Source string `json:"source,omitempty"`
	// SourceUpdateTime: Output only. Time when the intel was last updated by the
	// source.
	SourceUpdateTime string `json:"sourceUpdateTime,omitempty"`
	// SourceUri: Output only. URI of the intel item from the source.
	SourceUri string `json:"sourceUri,omitempty"`
	// Title: Output only. The title of the document, if available.
	Title string `json:"title,omitempty"`
	// Translation: Output only. The translation of the document, if available.
	Translation *AlertDocumentTranslation `json:"translation,omitempty"`

	// ServerResponse contains the HTTP response code and headers from the server.
	googleapi.ServerResponse `json:"-"`
	// ForceSendFields is a list of field names (e.g. "AiSummary") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "AiSummary") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

AlertDocument: A document that is associated with an alert.

func (AlertDocument) MarshalJSON

func (s AlertDocument) MarshalJSON() ([]byte, error)

type AlertDocumentTranslation

type AlertDocumentTranslation struct {
	// TranslatedContent: Output only. The translated content of the document.
	TranslatedContent string `json:"translatedContent,omitempty"`
	// TranslatedTitle: Output only. The translated title of the document.
	TranslatedTitle string `json:"translatedTitle,omitempty"`
	// ForceSendFields is a list of field names (e.g. "TranslatedContent") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "TranslatedContent") to include in
	// API requests with the JSON null value. By default, fields with empty values
	// are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

AlertDocumentTranslation: The translation of an alert document.

func (AlertDocumentTranslation) MarshalJSON

func (s AlertDocumentTranslation) MarshalJSON() ([]byte, error)

type Audit

type Audit struct {
	// CreateTime: Output only. Time of creation.
	CreateTime string `json:"createTime,omitempty"`
	// Creator: Output only. Agent that created or updated the record, could be a
	// UserId or a JobId.
	Creator string `json:"creator,omitempty"`
	// UpdateTime: Output only. Time of creation or last update.
	UpdateTime string `json:"updateTime,omitempty"`
	// Updater: Output only. Agent that last updated the record, could be a UserId
	// or a JobId.
	Updater string `json:"updater,omitempty"`
	// ForceSendFields is a list of field names (e.g. "CreateTime") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "CreateTime") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

Audit: Tracks basic CRUD facts.

func (Audit) MarshalJSON

func (s Audit) MarshalJSON() ([]byte, error)

type Configuration

type Configuration struct {
	// Audit: Output only. Audit information for the configuration.
	Audit *Audit `json:"audit,omitempty"`
	// Description: Optional. A description of the configuration.
	Description string `json:"description,omitempty"`
	// Detail: Required. Domain specific details for the configuration.
	Detail *ConfigurationDetail `json:"detail,omitempty"`
	// DisplayName: Output only. Human readable name for the configuration.
	DisplayName string `json:"displayName,omitempty"`
	// Name: Identifier. Server generated name for the configuration. format is
	// projects/{project}/configurations/{configuration}
	Name string `json:"name,omitempty"`
	// Provider: Required. Name of the service that provides the configuration.
	Provider string `json:"provider,omitempty"`
	// State: Optional. State of the configuration.
	//
	// Possible values:
	//   "STATE_UNSPECIFIED" - Configuration state is unspecified. This is not
	// expected to occur.
	//   "ENABLED" - Configuration is enabled for the customer.
	//   "DISABLED" - Configuration is disabled for the customer.
	//   "DEPRECATED" - Configuration is deprecated, no new configs are allowed to
	// be created.
	State string `json:"state,omitempty"`
	// Version: Optional. A user-manipulatable version. Does not adhere to a
	// specific format
	Version string `json:"version,omitempty"`

	// ServerResponse contains the HTTP response code and headers from the server.
	googleapi.ServerResponse `json:"-"`
	// ForceSendFields is a list of field names (e.g. "Audit") to unconditionally
	// include in API requests. By default, fields with empty or default values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "Audit") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

Configuration: A configuration represents a behavior an engine should follow when producing new findings.

func (Configuration) MarshalJSON

func (s Configuration) MarshalJSON() ([]byte, error)

type ConfigurationDetail

type ConfigurationDetail struct {
	// CustomerProfile: Customer Profile detail config.
	CustomerProfile *CustomerProfileConfig `json:"customerProfile,omitempty"`
	// DetailType: Output only. Name of the detail type. Will be set by the server
	// during creation to the name of the field that is set in the detail union.
	DetailType string `json:"detailType,omitempty"`
	// ForceSendFields is a list of field names (e.g. "CustomerProfile") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "CustomerProfile") to include in
	// API requests with the JSON null value. By default, fields with empty values
	// are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

ConfigurationDetail: Wrapper class that contains the union struct for all the various configuration detail specific classes.

func (ConfigurationDetail) MarshalJSON

func (s ConfigurationDetail) MarshalJSON() ([]byte, error)

type ConfigurationRevision

type ConfigurationRevision struct {
	// CreateTime: Output only. The time the Revision was created
	CreateTime string `json:"createTime,omitempty"`
	// Name: Identifier. The name of the ConfigurationRevision Format:
	// projects//configurations//revisions/
	Name string `json:"name,omitempty"`
	// Snapshot: The snapshot of the configuration
	Snapshot *Configuration `json:"snapshot,omitempty"`
	// ForceSendFields is a list of field names (e.g. "CreateTime") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "CreateTime") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

ConfigurationRevision: A ConfigurationRevision is a snapshot of a Configuration at a point in time. It is immutable.

func (ConfigurationRevision) MarshalJSON

func (s ConfigurationRevision) MarshalJSON() ([]byte, error)

type CustomerProfileCitation

type CustomerProfileCitation struct {
	// CitationId: Required. The citation id for the citation. Should be unique
	// within the profile.
	CitationId string `json:"citationId,omitempty"`
	// Document: Required. The name of the document the citation is from.
	Document string `json:"document,omitempty"`
	// RetrievalTime: The time the citation was retrieved.
	RetrievalTime string `json:"retrievalTime,omitempty"`
	// Source: Required. The source of the citation.
	Source string `json:"source,omitempty"`
	// Uri: Optional. The url of the citation.
	Uri string `json:"uri,omitempty"`
	// ForceSendFields is a list of field names (e.g. "CitationId") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "CitationId") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

CustomerProfileCitation: Citation information for the customer profile.

func (CustomerProfileCitation) MarshalJSON

func (s CustomerProfileCitation) MarshalJSON() ([]byte, error)

type CustomerProfileCitedString

type CustomerProfileCitedString struct {
	// CitationIds: Optional. The citation ids for the string.
	CitationIds []string `json:"citationIds,omitempty"`
	// Value: Required. The value of the string.
	Value string `json:"value,omitempty"`
	// ForceSendFields is a list of field names (e.g. "CitationIds") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "CitationIds") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

CustomerProfileCitedString: A string with citation ids.

func (CustomerProfileCitedString) MarshalJSON

func (s CustomerProfileCitedString) MarshalJSON() ([]byte, error)

type CustomerProfileCompany

type CustomerProfileCompany struct {
	// CitationIds: Optional. The citation ids for the company.
	CitationIds []string `json:"citationIds,omitempty"`
	// Company: Required. The name of the company.
	Company string `json:"company,omitempty"`
	// ForceSendFields is a list of field names (e.g. "CitationIds") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "CitationIds") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

CustomerProfileCompany: Company information for the customer profile.

func (CustomerProfileCompany) MarshalJSON

func (s CustomerProfileCompany) MarshalJSON() ([]byte, error)

type CustomerProfileConfig

type CustomerProfileConfig struct {
	// Citations: Optional. Citations for the organization profile.
	Citations []*CustomerProfileCitation `json:"citations,omitempty"`
	// ContactInfo: Optional. Contact information for the organization.
	ContactInfo []*CustomerProfileContactInfo `json:"contactInfo,omitempty"`
	// Executives: Optional. Executives of the organization.
	Executives []*CustomerProfilePerson `json:"executives,omitempty"`
	// Industries: Optional. The industries the organization is involved in.
	Industries []*CustomerProfileIndustry `json:"industries,omitempty"`
	// Locations: Optional. Locations the organization is present or conducts
	// business in.
	Locations []*CustomerProfileLocation `json:"locations,omitempty"`
	// Org: Required. The name of the organization.
	Org string `json:"org,omitempty"`
	// OrgSummary: Optional. A summary of the organization.
	OrgSummary string `json:"orgSummary,omitempty"`
	// ParentCompanies: Optional. The parent companies of the organization.
	ParentCompanies []*CustomerProfileCompany `json:"parentCompanies,omitempty"`
	// Products: Optional. Product information for the organization.
	Products []*CustomerProfileProduct `json:"products,omitempty"`
	// SecurityConsiderations: Optional. Security considerations for the
	// organization.
	SecurityConsiderations *CustomerProfileSecurityConsiderations `json:"securityConsiderations,omitempty"`
	// Summary: Optional. A summarized version of the customer profile.
	Summary *CustomerProfileSummary `json:"summary,omitempty"`
	// TechnologyPresence: Optional. Technology presence of the organization.
	TechnologyPresence string `json:"technologyPresence,omitempty"`
	// WebPresences: Optional. Web presence of the organization.
	WebPresences []*CustomerProfileWebPresence `json:"webPresences,omitempty"`
	// ForceSendFields is a list of field names (e.g. "Citations") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "Citations") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

CustomerProfileConfig: CustomerProfileConfig is the configuration for the customer profile.

func (CustomerProfileConfig) MarshalJSON

func (s CustomerProfileConfig) MarshalJSON() ([]byte, error)

type CustomerProfileContactInfo

type CustomerProfileContactInfo struct {
	// Address: The address of the contact.
	Address string `json:"address,omitempty"`
	// CitationIds: Optional. The citation ids for the contact information.
	CitationIds []string `json:"citationIds,omitempty"`
	// Email: The email address of the contact.
	Email string `json:"email,omitempty"`
	// Label: Optional. The name of the contact.
	Label string `json:"label,omitempty"`
	// Other: The other contact information.
	Other string `json:"other,omitempty"`
	// Phone: The phone number of the contact.
	Phone string `json:"phone,omitempty"`
	// ForceSendFields is a list of field names (e.g. "Address") to unconditionally
	// include in API requests. By default, fields with empty or default values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "Address") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

CustomerProfileContactInfo: Contact information for the customer profile.

func (CustomerProfileContactInfo) MarshalJSON

func (s CustomerProfileContactInfo) MarshalJSON() ([]byte, error)

type CustomerProfileIndustry

type CustomerProfileIndustry struct {
	// CitationIds: Optional. The citation ids for the industry.
	CitationIds []string `json:"citationIds,omitempty"`
	// Industry: Required. The name of the industry.
	Industry string `json:"industry,omitempty"`
	// ForceSendFields is a list of field names (e.g. "CitationIds") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "CitationIds") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

CustomerProfileIndustry: Industry information for the customer profile.

func (CustomerProfileIndustry) MarshalJSON

func (s CustomerProfileIndustry) MarshalJSON() ([]byte, error)

type CustomerProfileLocation

type CustomerProfileLocation struct {
	// Address: Required. The address of the location.
	Address string `json:"address,omitempty"`
	// Brand: Required. The brand of the location.
	Brand string `json:"brand,omitempty"`
	// CitationIds: Optional. The citation ids for the location.
	CitationIds []string `json:"citationIds,omitempty"`
	// FacilityType: Optional. The type of location.
	FacilityType string `json:"facilityType,omitempty"`
	// ForceSendFields is a list of field names (e.g. "Address") to unconditionally
	// include in API requests. By default, fields with empty or default values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "Address") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

CustomerProfileLocation: Location information for the customer profile.

func (CustomerProfileLocation) MarshalJSON

func (s CustomerProfileLocation) MarshalJSON() ([]byte, error)

type CustomerProfilePerson

type CustomerProfilePerson struct {
	// CitationIds: Optional. The citation ids for the person.
	CitationIds []string `json:"citationIds,omitempty"`
	// Name: Required. The name of the person.
	Name string `json:"name,omitempty"`
	// Title: Optional. The title of the person.
	Title string `json:"title,omitempty"`
	// ForceSendFields is a list of field names (e.g. "CitationIds") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "CitationIds") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

CustomerProfilePerson: Person information for the customer profile.

func (CustomerProfilePerson) MarshalJSON

func (s CustomerProfilePerson) MarshalJSON() ([]byte, error)

type CustomerProfileProduct

type CustomerProfileProduct struct {
	// Brand: Required. The brand of the product.
	Brand string `json:"brand,omitempty"`
	// CitationIds: Optional. The citation ids for the product.
	CitationIds []string `json:"citationIds,omitempty"`
	// Product: Required. The name of the product.
	Product string `json:"product,omitempty"`
	// ForceSendFields is a list of field names (e.g. "Brand") to unconditionally
	// include in API requests. By default, fields with empty or default values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "Brand") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

CustomerProfileProduct: Product information for the customer profile.

func (CustomerProfileProduct) MarshalJSON

func (s CustomerProfileProduct) MarshalJSON() ([]byte, error)

type CustomerProfileSecurityConsiderations

type CustomerProfileSecurityConsiderations struct {
	// Considerations: Optional. A series of considerations for the security of the
	// organization, such as "high risk of compromise" or "vulnerable to
	// cyberbullying".
	Considerations []string `json:"considerations,omitempty"`
	// Note: Optional. A note about the security considerations.
	Note string `json:"note,omitempty"`
	// ForceSendFields is a list of field names (e.g. "Considerations") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "Considerations") to include in
	// API requests with the JSON null value. By default, fields with empty values
	// are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

CustomerProfileSecurityConsiderations: Security considerations for the customer profile.

func (CustomerProfileSecurityConsiderations) MarshalJSON

func (s CustomerProfileSecurityConsiderations) MarshalJSON() ([]byte, error)

type CustomerProfileSummary

type CustomerProfileSummary struct {
	// AreaServed: Optional. The area the customer serves.
	AreaServed *CustomerProfileCitedString `json:"areaServed,omitempty"`
	// Brands: Optional. A narrative summary of brands.
	Brands *CustomerProfileCitedString `json:"brands,omitempty"`
	// EntityType: Optional. The entity type of the customer.
	EntityType *CustomerProfileCitedString `json:"entityType,omitempty"`
	// Founded: Optional. The date the customer was founded.
	Founded *CustomerProfileCitedString `json:"founded,omitempty"`
	// Headquarters: Optional. The headquarters of the customer.
	Headquarters *CustomerProfileCitedString `json:"headquarters,omitempty"`
	// Industry: Optional. The industry the customer is in.
	Industry *CustomerProfileCitedString `json:"industry,omitempty"`
	// KeyPeopleSummary: Optional. A narrative summary of key people.
	KeyPeopleSummary *CustomerProfileCitedString `json:"keyPeopleSummary,omitempty"`
	// ParentCompany: Optional. The parent company of the customer.
	ParentCompany *CustomerProfileCitedString `json:"parentCompany,omitempty"`
	// PrimaryWebsite: Optional. The primary website of the customer.
	PrimaryWebsite *CustomerProfileCitedString `json:"primaryWebsite,omitempty"`
	// ProductsSummary: Optional. A narrative summary of products.
	ProductsSummary *CustomerProfileCitedString `json:"productsSummary,omitempty"`
	// ServicesSummary: Optional. A narrative summary of services.
	ServicesSummary *CustomerProfileCitedString `json:"servicesSummary,omitempty"`
	// Title: Optional. The official name of the customer.
	Title *CustomerProfileCitedString `json:"title,omitempty"`
	// ForceSendFields is a list of field names (e.g. "AreaServed") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "AreaServed") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

CustomerProfileSummary: A summarized version of the customer profile. Generated by the backend.

func (CustomerProfileSummary) MarshalJSON

func (s CustomerProfileSummary) MarshalJSON() ([]byte, error)

type CustomerProfileWebPresence

type CustomerProfileWebPresence struct {
	// CitationIds: Optional. The citation ids for the web presence.
	CitationIds []string `json:"citationIds,omitempty"`
	// Domain: Required. The domain name of the web presence.
	Domain string `json:"domain,omitempty"`
	// ForceSendFields is a list of field names (e.g. "CitationIds") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "CitationIds") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

CustomerProfileWebPresence: Web presence information for the customer profile.

func (CustomerProfileWebPresence) MarshalJSON

func (s CustomerProfileWebPresence) MarshalJSON() ([]byte, error)

type DataLeakAlertDetail

type DataLeakAlertDetail struct {
	// DiscoveryDocumentIds: Required. Array of ids to accommodate multiple
	// discovery documents
	DiscoveryDocumentIds []string `json:"discoveryDocumentIds,omitempty"`
	// Severity: Required. The severity of the Data Leak alert. Allowed values are:
	// * `LOW` * `MEDIUM` * `HIGH` * `CRITICAL`
	Severity string `json:"severity,omitempty"`
	// ForceSendFields is a list of field names (e.g. "DiscoveryDocumentIds") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "DiscoveryDocumentIds") to include
	// in API requests with the JSON null value. By default, fields with empty
	// values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

DataLeakAlertDetail: Captures the specific details of Data Leak alert.

func (DataLeakAlertDetail) MarshalJSON

func (s DataLeakAlertDetail) MarshalJSON() ([]byte, error)

type DataLeakFindingDetail

type DataLeakFindingDetail struct {
	// DocumentId: Required. The unique identifier of the document that triggered
	// the Data Leak finding. This ID can be used to retrieve the content of the
	// document for further analysis.
	DocumentId string `json:"documentId,omitempty"`
	// MatchScore: Required. Reference to the match score of the Data Leak finding.
	// This is a float value greater than 0 and less than or equal to 1 calculated
	// by the matching engine based on the similarity of the document and the user
	// provided configurations.
	MatchScore float64 `json:"matchScore,omitempty"`
	// Severity: Required. The severity of the Data Leak finding. This indicates
	// the potential impact of the threat.
	//
	// Possible values:
	//   "SEVERITY_UNSPECIFIED" - Default value, should never be set.
	//   "LOW" - Low severity.
	//   "MEDIUM" - Medium severity.
	//   "HIGH" - High severity.
	//   "CRITICAL" - Critical severity.
	Severity string `json:"severity,omitempty"`
	// ForceSendFields is a list of field names (e.g. "DocumentId") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "DocumentId") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

DataLeakFindingDetail: A detail object for a Data Leak finding.

func (DataLeakFindingDetail) MarshalJSON

func (s DataLeakFindingDetail) MarshalJSON() ([]byte, error)

func (*DataLeakFindingDetail) UnmarshalJSON

func (s *DataLeakFindingDetail) UnmarshalJSON(data []byte) error

type EnumerateAlertFacetsResponse

type EnumerateAlertFacetsResponse struct {
	// Facets: List of facets and the counts.
	Facets []*Facet `json:"facets,omitempty"`

	// ServerResponse contains the HTTP response code and headers from the server.
	googleapi.ServerResponse `json:"-"`
	// ForceSendFields is a list of field names (e.g. "Facets") to unconditionally
	// include in API requests. By default, fields with empty or default values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "Facets") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

EnumerateAlertFacetsResponse: Response message for EnumerateAlertFacets.

func (EnumerateAlertFacetsResponse) MarshalJSON

func (s EnumerateAlertFacetsResponse) MarshalJSON() ([]byte, error)

type Evidence

type Evidence struct {
	// CommonThemes: A list of semantic themes or concepts found to be common,
	// related, or aligned between the sources, supporting the verdict.
	CommonThemes []string `json:"commonThemes,omitempty"`
	// DistinctThemes: A list of semantic themes or descriptions unique to one
	// source or semantically distant.
	DistinctThemes []string `json:"distinctThemes,omitempty"`
	// ForceSendFields is a list of field names (e.g. "CommonThemes") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "CommonThemes") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

Evidence: Details the evidence used to determine the relevance verdict.

func (Evidence) MarshalJSON

func (s Evidence) MarshalJSON() ([]byte, error)

type Facet

type Facet struct {
	// Facet: Name of the facet. This is also the string that needs to be used in
	// the filtering expression.
	Facet string `json:"facet,omitempty"`
	// FacetCounts: List of counts for the facet (if categorical).
	FacetCounts []*FacetCount `json:"facetCounts,omitempty"`
	// FacetType: The type of the facet. Options include "string", "int", "float",
	// "bool", "enum", "timestamp", "user" and are useful to show the right sort of
	// UI controls when building a AIP-160 style filtering string.
	FacetType string `json:"facetType,omitempty"`
	// MaxValue: Max value of the facet stringified based on type. Will be
	// populated and formatted the same as min_value.
	MaxValue string `json:"maxValue,omitempty"`
	// MinValue: Min value of the facet stringified based on type. This is only
	// populated for facets that have a clear ordering, for types like enum it will
	// be left empty. Timestamps will be formatted using RFC3339.
	MinValue string `json:"minValue,omitempty"`
	// TotalCount: Total number of records that contain this facet with ANY value.
	TotalCount int64 `json:"totalCount,omitempty,string"`
	// ForceSendFields is a list of field names (e.g. "Facet") to unconditionally
	// include in API requests. By default, fields with empty or default values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "Facet") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

Facet: Facet represents a sub element of a resource for filtering. The results from this method are used to populate the filterable facets in the UI.

func (Facet) MarshalJSON

func (s Facet) MarshalJSON() ([]byte, error)

type FacetCount

type FacetCount struct {
	// Count: Count of records with the value.
	Count int64 `json:"count,omitempty"`
	// Value: Value of the facet stringified. Timestamps will be formatted using
	// RFC3339.
	Value string `json:"value,omitempty"`
	// ForceSendFields is a list of field names (e.g. "Count") to unconditionally
	// include in API requests. By default, fields with empty or default values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "Count") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

FacetCount: FacetCount represents a count of records with each facet value.

func (FacetCount) MarshalJSON

func (s FacetCount) MarshalJSON() ([]byte, error)

type Finding

type Finding struct {
	// AiSummary: Optional. AI summary of the finding.
	AiSummary string `json:"aiSummary,omitempty"`
	// Alert: Optional. Name of the alert that this finding is bound to.
	Alert string `json:"alert,omitempty"`
	// Audit: Output only. Audit data about the finding.
	Audit *Audit `json:"audit,omitempty"`
	// Configurations: Optional. Configuration names that are bound to this
	// finding.
	Configurations []string `json:"configurations,omitempty"`
	// Detail: Required. Holder of the domain specific details of the finding.
	Detail *FindingDetail `json:"detail,omitempty"`
	// DisplayName: Required. A short descriptive title for the finding <= 250
	// chars. EX: "Actor 'baddy' offering $1000 for credentials of 'goodguy'".
	DisplayName string `json:"displayName,omitempty"`
	// Name: Identifier. Server generated name for the finding (leave clear during
	// creation). Format: projects/{project}/findings/{finding}
	Name string `json:"name,omitempty"`
	// Provider: Required. Logical source of this finding (name of the sub-engine).
	Provider string `json:"provider,omitempty"`
	// RelevanceAnalysis: Output only. High-Precision Relevance Analysis verdict
	// for the finding.
	RelevanceAnalysis *RelevanceAnalysis `json:"relevanceAnalysis,omitempty"`
	// ReoccurrenceTimes: Output only. When identical finding (same labels and same
	// details) has re-occurred.
	ReoccurrenceTimes []string `json:"reoccurrenceTimes,omitempty"`
	// Severity: Optional. Deprecated: Use the `severity_analysis` field instead.
	// Base severity score from the finding source.
	Severity float64 `json:"severity,omitempty"`
	// SeverityAnalysis: Output only. High-Precision Severity Analysis verdict for
	// the finding.
	SeverityAnalysis *SeverityAnalysis `json:"severityAnalysis,omitempty"`

	// ServerResponse contains the HTTP response code and headers from the server.
	googleapi.ServerResponse `json:"-"`
	// ForceSendFields is a list of field names (e.g. "AiSummary") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "AiSummary") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

Finding: A ‘stateless’ and a point in time event that a check produced a result of interest.

func (Finding) MarshalJSON

func (s Finding) MarshalJSON() ([]byte, error)

func (*Finding) UnmarshalJSON

func (s *Finding) UnmarshalJSON(data []byte) error

type FindingDetail

type FindingDetail struct {
	// DataLeak: Data Leak finding detail type.
	DataLeak *DataLeakFindingDetail `json:"dataLeak,omitempty"`
	// DetailType: Output only. Name of the detail type. Will be set by the server
	// during creation to the name of the field that is set in the detail union.
	DetailType string `json:"detailType,omitempty"`
	// InitialAccessBroker: Initial Access Broker finding detail type.
	InitialAccessBroker *InitialAccessBrokerFindingDetail `json:"initialAccessBroker,omitempty"`
	// InsiderThreat: Insider Threat finding detail type.
	InsiderThreat *InsiderThreatFindingDetail `json:"insiderThreat,omitempty"`
	// ForceSendFields is a list of field names (e.g. "DataLeak") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "DataLeak") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

FindingDetail: Wrapper class that contains the union struct for all the various findings detail specific classes.

func (FindingDetail) MarshalJSON

func (s FindingDetail) MarshalJSON() ([]byte, error)

type GenerateOrgProfileConfigurationRequest added in v0.266.0

type GenerateOrgProfileConfigurationRequest struct {
	// DisplayName: Required. The display name of the organization to generate the
	// profile for.
	DisplayName string `json:"displayName,omitempty"`
	// Domain: Required. The domain of the organization to generate the profile
	// for.
	Domain string `json:"domain,omitempty"`
	// ForceSendFields is a list of field names (e.g. "DisplayName") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "DisplayName") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

GenerateOrgProfileConfigurationRequest: Request message for GenerateOrgProfileConfiguration.

func (GenerateOrgProfileConfigurationRequest) MarshalJSON added in v0.266.0

func (s GenerateOrgProfileConfigurationRequest) MarshalJSON() ([]byte, error)

type InitialAccessBrokerAlertDetail

type InitialAccessBrokerAlertDetail struct {
	// DiscoveryDocumentIds: Required. Array of ids to accommodate multiple
	// discovery documents
	DiscoveryDocumentIds []string `json:"discoveryDocumentIds,omitempty"`
	// Severity: Required. The severity of the Initial Access Broker (IAB) alert.
	// Allowed values are: * `LOW` * `MEDIUM` * `HIGH` * `CRITICAL`
	Severity string `json:"severity,omitempty"`
	// ForceSendFields is a list of field names (e.g. "DiscoveryDocumentIds") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "DiscoveryDocumentIds") to include
	// in API requests with the JSON null value. By default, fields with empty
	// values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

InitialAccessBrokerAlertDetail: Captures the specific details of InitialAccessBroker (IAB) alert.

func (InitialAccessBrokerAlertDetail) MarshalJSON

func (s InitialAccessBrokerAlertDetail) MarshalJSON() ([]byte, error)

type InitialAccessBrokerFindingDetail

type InitialAccessBrokerFindingDetail struct {
	// DocumentId: Required. The unique identifier of the document that triggered
	// the IAB finding. This ID can be used to retrieve the content of the document
	// for further analysis.
	DocumentId string `json:"documentId,omitempty"`
	// MatchScore: Required. Reference to the match score of the IAB finding. This
	// is a float value between 0 and 1 calculated by the matching engine based on
	// the similarity of the document and the user provided configurations.
	MatchScore float64 `json:"matchScore,omitempty"`
	// Severity: Required. The severity of the IAB finding. This indicates the
	// potential impact of the threat.
	//
	// Possible values:
	//   "SEVERITY_UNSPECIFIED"
	//   "LOW"
	//   "MEDIUM"
	//   "HIGH"
	//   "CRITICAL"
	Severity string `json:"severity,omitempty"`
	// ForceSendFields is a list of field names (e.g. "DocumentId") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "DocumentId") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

InitialAccessBrokerFindingDetail: A detail object for an Initial Access Broker (IAB) finding.

func (InitialAccessBrokerFindingDetail) MarshalJSON

func (s InitialAccessBrokerFindingDetail) MarshalJSON() ([]byte, error)

func (*InitialAccessBrokerFindingDetail) UnmarshalJSON

func (s *InitialAccessBrokerFindingDetail) UnmarshalJSON(data []byte) error

type InsiderThreatAlertDetail

type InsiderThreatAlertDetail struct {
	// DiscoveryDocumentIds: Required. Array of ids to accommodate multiple
	// discovery documents
	DiscoveryDocumentIds []string `json:"discoveryDocumentIds,omitempty"`
	// Severity: Required. The severity of the Insider Threat alert. Allowed values
	// are: * `LOW` * `MEDIUM` * `HIGH` * `CRITICAL`
	Severity string `json:"severity,omitempty"`
	// ForceSendFields is a list of field names (e.g. "DiscoveryDocumentIds") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "DiscoveryDocumentIds") to include
	// in API requests with the JSON null value. By default, fields with empty
	// values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

InsiderThreatAlertDetail: Captures the specific details of InsiderThreat alert.

func (InsiderThreatAlertDetail) MarshalJSON

func (s InsiderThreatAlertDetail) MarshalJSON() ([]byte, error)

type InsiderThreatFindingDetail

type InsiderThreatFindingDetail struct {
	// DocumentId: Required. The unique identifier of the document that triggered
	// the InsiderThreat finding. This ID can be used to retrieve the content of
	// the document for further analysis.
	DocumentId string `json:"documentId,omitempty"`
	// MatchScore: Required. Reference to the match score of the InsiderThreat
	// finding. This is a float value greater than 0 and less than or equal to 1
	// calculated by the matching engine based on the similarity of the document
	// and the user provided configurations.
	MatchScore float64 `json:"matchScore,omitempty"`
	// Severity: Required. The severity of the InsiderThreat finding. This
	// indicates the potential impact of the threat.
	//
	// Possible values:
	//   "SEVERITY_UNSPECIFIED" - Default value, should never be set.
	//   "LOW" - Low severity.
	//   "MEDIUM" - Medium severity.
	//   "HIGH" - High severity.
	//   "CRITICAL" - Critical severity.
	Severity string `json:"severity,omitempty"`
	// ForceSendFields is a list of field names (e.g. "DocumentId") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "DocumentId") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

InsiderThreatFindingDetail: A detail object for a InsiderThreat finding.

func (InsiderThreatFindingDetail) MarshalJSON

func (s InsiderThreatFindingDetail) MarshalJSON() ([]byte, error)

func (*InsiderThreatFindingDetail) UnmarshalJSON

func (s *InsiderThreatFindingDetail) UnmarshalJSON(data []byte) error

type ListAlertsResponse

type ListAlertsResponse struct {
	// Alerts: List of alerts.
	Alerts []*Alert `json:"alerts,omitempty"`
	// NextPageToken: Page token.
	NextPageToken string `json:"nextPageToken,omitempty"`

	// ServerResponse contains the HTTP response code and headers from the server.
	googleapi.ServerResponse `json:"-"`
	// ForceSendFields is a list of field names (e.g. "Alerts") to unconditionally
	// include in API requests. By default, fields with empty or default values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "Alerts") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

ListAlertsResponse: Response message for ListAlerts.

func (ListAlertsResponse) MarshalJSON

func (s ListAlertsResponse) MarshalJSON() ([]byte, error)

type ListConfigurationRevisionsResponse

type ListConfigurationRevisionsResponse struct {
	// NextPageToken: A token, which can be sent as `page_token` to retrieve the
	// next page. If this field is omitted, there are no subsequent pages.
	NextPageToken string `json:"nextPageToken,omitempty"`
	// Revisions: The Configuration Revisions associated with the specified
	// Configuration
	Revisions []*ConfigurationRevision `json:"revisions,omitempty"`

	// ServerResponse contains the HTTP response code and headers from the server.
	googleapi.ServerResponse `json:"-"`
	// ForceSendFields is a list of field names (e.g. "NextPageToken") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "NextPageToken") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

ListConfigurationRevisionsResponse: Response message for ListConfigurationRevisions.

func (ListConfigurationRevisionsResponse) MarshalJSON

func (s ListConfigurationRevisionsResponse) MarshalJSON() ([]byte, error)

type ListConfigurationsResponse

type ListConfigurationsResponse struct {
	// Configurations: List of configurations.
	Configurations []*Configuration `json:"configurations,omitempty"`
	// NextPageToken: Page token.
	NextPageToken string `json:"nextPageToken,omitempty"`

	// ServerResponse contains the HTTP response code and headers from the server.
	googleapi.ServerResponse `json:"-"`
	// ForceSendFields is a list of field names (e.g. "Configurations") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "Configurations") to include in
	// API requests with the JSON null value. By default, fields with empty values
	// are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

ListConfigurationsResponse: Response message for ListConfigurations.

func (ListConfigurationsResponse) MarshalJSON

func (s ListConfigurationsResponse) MarshalJSON() ([]byte, error)

type ListFindingsResponse

type ListFindingsResponse struct {
	// Findings: List of findings.
	Findings []*Finding `json:"findings,omitempty"`
	// NextPageToken: Page token.
	NextPageToken string `json:"nextPageToken,omitempty"`

	// ServerResponse contains the HTTP response code and headers from the server.
	googleapi.ServerResponse `json:"-"`
	// ForceSendFields is a list of field names (e.g. "Findings") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "Findings") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

ListFindingsResponse: Response message for ListFindings.

func (ListFindingsResponse) MarshalJSON

func (s ListFindingsResponse) MarshalJSON() ([]byte, error)

type MarkAlertAsBenignRequest

type MarkAlertAsBenignRequest struct {
}

MarkAlertAsBenignRequest: Request message for MarkAlertAsBenign.

type MarkAlertAsDuplicateRequest

type MarkAlertAsDuplicateRequest struct {
	// DuplicateOf: Optional. Name of the alert to mark as a duplicate of. Format:
	// projects/{project}/alerts/{alert}
	DuplicateOf string `json:"duplicateOf,omitempty"`
	// ForceSendFields is a list of field names (e.g. "DuplicateOf") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "DuplicateOf") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

MarkAlertAsDuplicateRequest: Request message for MarkAlertAsDuplicate.

func (MarkAlertAsDuplicateRequest) MarshalJSON

func (s MarkAlertAsDuplicateRequest) MarshalJSON() ([]byte, error)

type MarkAlertAsEscalatedRequest

type MarkAlertAsEscalatedRequest struct {
}

MarkAlertAsEscalatedRequest: Request message for MarkAlertAsEscalated.

type MarkAlertAsFalsePositiveRequest

type MarkAlertAsFalsePositiveRequest struct {
}

MarkAlertAsFalsePositiveRequest: Request message for MarkAlertAsFalsePositive.

type MarkAlertAsNotActionableRequest

type MarkAlertAsNotActionableRequest struct {
}

MarkAlertAsNotActionableRequest: Request message for MarkAlertAsNotActionable.

type MarkAlertAsReadRequest

type MarkAlertAsReadRequest struct {
}

MarkAlertAsReadRequest: Request message for MarkAlertAsRead.

type MarkAlertAsResolvedRequest

type MarkAlertAsResolvedRequest struct {
}

MarkAlertAsResolvedRequest: Request message for MarkAlertAsResolved.

type MarkAlertAsTrackedExternallyRequest

type MarkAlertAsTrackedExternallyRequest struct {
}

MarkAlertAsTrackedExternallyRequest: Request message for MarkAlertAsTrackedExternally.

type MarkAlertAsTriagedRequest

type MarkAlertAsTriagedRequest struct {
}

MarkAlertAsTriagedRequest: Request message for MarkAlertAsTriaged.

type Operation added in v0.266.0

type Operation struct {
	// Done: If the value is `false`, it means the operation is still in progress.
	// If `true`, the operation is completed, and either `error` or `response` is
	// available.
	Done bool `json:"done,omitempty"`
	// Error: The error result of the operation in case of failure or cancellation.
	Error *Status `json:"error,omitempty"`
	// Metadata: Service-specific metadata associated with the operation. It
	// typically contains progress information and common metadata such as create
	// time. Some services might not provide such metadata. Any method that returns
	// a long-running operation should document the metadata type, if any.
	Metadata googleapi.RawMessage `json:"metadata,omitempty"`
	// Name: The server-assigned name, which is only unique within the same service
	// that originally returns it. If you use the default HTTP mapping, the `name`
	// should be a resource name ending with `operations/{unique_id}`.
	Name string `json:"name,omitempty"`
	// Response: The normal, successful response of the operation. If the original
	// method returns no data on success, such as `Delete`, the response is
	// `google.protobuf.Empty`. If the original method is standard
	// `Get`/`Create`/`Update`, the response should be the resource. For other
	// methods, the response should have the type `XxxResponse`, where `Xxx` is the
	// original method name. For example, if the original method name is
	// `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
	Response googleapi.RawMessage `json:"response,omitempty"`

	// ServerResponse contains the HTTP response code and headers from the server.
	googleapi.ServerResponse `json:"-"`
	// ForceSendFields is a list of field names (e.g. "Done") to unconditionally
	// include in API requests. By default, fields with empty or default values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "Done") to include in API requests
	// with the JSON null value. By default, fields with empty values are omitted
	// from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

Operation: This resource represents a long-running operation that is the result of a network API call.

func (Operation) MarshalJSON added in v0.266.0

func (s Operation) MarshalJSON() ([]byte, error)

type PriorityAnalysis

type PriorityAnalysis struct {
	// Confidence: The level of confidence in the given verdict.
	//
	// Possible values:
	//   "CONFIDENCE_LEVEL_UNSPECIFIED" - Default value. Confidence level is not
	// specified.
	//   "CONFIDENCE_LEVEL_LOW" - Low confidence in the verdict.
	//   "CONFIDENCE_LEVEL_MEDIUM" - Medium confidence in the verdict.
	//   "CONFIDENCE_LEVEL_HIGH" - High confidence in the verdict.
	Confidence string `json:"confidence,omitempty"`
	// PriorityLevel: The level of Priority.
	//
	// Possible values:
	//   "PRIORITY_LEVEL_UNSPECIFIED" - Default value, should never be set.
	//   "PRIORITY_LEVEL_LOW" - Low Priority.
	//   "PRIORITY_LEVEL_MEDIUM" - Medium Priority.
	//   "PRIORITY_LEVEL_HIGH" - High Priority.
	//   "PRIORITY_LEVEL_CRITICAL" - Critical Priority.
	PriorityLevel string `json:"priorityLevel,omitempty"`
	// Reasoning: Human-readable explanation from the model, detailing why a
	// particular result is considered to have a certain priority.
	Reasoning string `json:"reasoning,omitempty"`
	// ForceSendFields is a list of field names (e.g. "Confidence") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "Confidence") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

PriorityAnalysis: Structured priority analysis for a threat.

func (PriorityAnalysis) MarshalJSON

func (s PriorityAnalysis) MarshalJSON() ([]byte, error)

type ProjectsAlertsBenignCall

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

func (*ProjectsAlertsBenignCall) Context

Context sets the context to be used in this call's Do method.

func (*ProjectsAlertsBenignCall) Do

Do executes the "threatintelligence.projects.alerts.benign" call. Any non-2xx status code is an error. Response headers are in either *Alert.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ProjectsAlertsBenignCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*ProjectsAlertsBenignCall) Header

func (c *ProjectsAlertsBenignCall) Header() http.Header

Header returns a http.Header that can be modified by the caller to add headers to the request.

type ProjectsAlertsDocumentsGetCall

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

func (*ProjectsAlertsDocumentsGetCall) Context

Context sets the context to be used in this call's Do method.

func (*ProjectsAlertsDocumentsGetCall) Do

Do executes the "threatintelligence.projects.alerts.documents.get" call. Any non-2xx status code is an error. Response headers are in either *AlertDocument.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ProjectsAlertsDocumentsGetCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*ProjectsAlertsDocumentsGetCall) Header

Header returns a http.Header that can be modified by the caller to add headers to the request.

func (*ProjectsAlertsDocumentsGetCall) IfNoneMatch

IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.

type ProjectsAlertsDocumentsService

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

func NewProjectsAlertsDocumentsService

func NewProjectsAlertsDocumentsService(s *Service) *ProjectsAlertsDocumentsService

func (*ProjectsAlertsDocumentsService) Get

Get: Gets a specific document associated with an alert.

  • name: Name of the alert document to get. Format: projects/{project}/alerts/{alert}/documents/{document}.

type ProjectsAlertsDuplicateCall

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

func (*ProjectsAlertsDuplicateCall) Context

Context sets the context to be used in this call's Do method.

func (*ProjectsAlertsDuplicateCall) Do

Do executes the "threatintelligence.projects.alerts.duplicate" call. Any non-2xx status code is an error. Response headers are in either *Alert.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ProjectsAlertsDuplicateCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*ProjectsAlertsDuplicateCall) Header

Header returns a http.Header that can be modified by the caller to add headers to the request.

type ProjectsAlertsEnumerateFacetsCall

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

func (*ProjectsAlertsEnumerateFacetsCall) Context

Context sets the context to be used in this call's Do method.

func (*ProjectsAlertsEnumerateFacetsCall) Do

Do executes the "threatintelligence.projects.alerts.enumerateFacets" call. Any non-2xx status code is an error. Response headers are in either *EnumerateAlertFacetsResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ProjectsAlertsEnumerateFacetsCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*ProjectsAlertsEnumerateFacetsCall) Filter

Filter sets the optional parameter "filter": Filter on what alerts will be enumerated.

func (*ProjectsAlertsEnumerateFacetsCall) Header

Header returns a http.Header that can be modified by the caller to add headers to the request.

func (*ProjectsAlertsEnumerateFacetsCall) IfNoneMatch

IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.

type ProjectsAlertsEscalateCall

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

func (*ProjectsAlertsEscalateCall) Context

Context sets the context to be used in this call's Do method.

func (*ProjectsAlertsEscalateCall) Do

Do executes the "threatintelligence.projects.alerts.escalate" call. Any non-2xx status code is an error. Response headers are in either *Alert.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ProjectsAlertsEscalateCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*ProjectsAlertsEscalateCall) Header

Header returns a http.Header that can be modified by the caller to add headers to the request.

type ProjectsAlertsFalsePositiveCall

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

func (*ProjectsAlertsFalsePositiveCall) Context

Context sets the context to be used in this call's Do method.

func (*ProjectsAlertsFalsePositiveCall) Do

Do executes the "threatintelligence.projects.alerts.falsePositive" call. Any non-2xx status code is an error. Response headers are in either *Alert.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ProjectsAlertsFalsePositiveCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*ProjectsAlertsFalsePositiveCall) Header

Header returns a http.Header that can be modified by the caller to add headers to the request.

type ProjectsAlertsGetCall

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

func (*ProjectsAlertsGetCall) Context

Context sets the context to be used in this call's Do method.

func (*ProjectsAlertsGetCall) Do

Do executes the "threatintelligence.projects.alerts.get" call. Any non-2xx status code is an error. Response headers are in either *Alert.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ProjectsAlertsGetCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*ProjectsAlertsGetCall) Header

func (c *ProjectsAlertsGetCall) Header() http.Header

Header returns a http.Header that can be modified by the caller to add headers to the request.

func (*ProjectsAlertsGetCall) IfNoneMatch

func (c *ProjectsAlertsGetCall) IfNoneMatch(entityTag string) *ProjectsAlertsGetCall

IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.

type ProjectsAlertsListCall

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

func (*ProjectsAlertsListCall) Context

Context sets the context to be used in this call's Do method.

func (*ProjectsAlertsListCall) Do

Do executes the "threatintelligence.projects.alerts.list" call. Any non-2xx status code is an error. Response headers are in either *ListAlertsResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ProjectsAlertsListCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*ProjectsAlertsListCall) Filter

Filter sets the optional parameter "filter": Filter criteria. Supported fields for filtering include: * `audit.create_time` * `audit.creator` * `audit.update_time` * `audit.updater` * `detail.data_leak.discovery_document_ids` * `detail.data_leak.severity` * `detail.detail_type` * `detail.initial_access_broker.discovery_document_ids` * `detail.initial_access_broker.severity` * `detail.insider_threat.discovery_document_ids` * `detail.insider_threat.severity` * `finding_count` * `priority_analysis.priority_level` * `relevance_analysis.confidence` * `relevance_analysis.relevance_level` * `relevance_analysis.relevant` * `severity_analysis.severity_level` * `state` Examples: * `detail.detail_type = "initial_access_broker" * `detail.detail_type != "data_leak" * `detail.insider_threat.severity = "HIGH" * `audit.create_time >= "2026-04-03T00:00:00Z" AND audit.create_time < "2026-04-06T00:00:00Z" * `state = "NEW" OR state = "TRIAGED" * `severity_analysis.severity_level = "SEVERITY_LEVEL_CRITICAL"

func (*ProjectsAlertsListCall) Header

func (c *ProjectsAlertsListCall) Header() http.Header

Header returns a http.Header that can be modified by the caller to add headers to the request.

func (*ProjectsAlertsListCall) IfNoneMatch

func (c *ProjectsAlertsListCall) IfNoneMatch(entityTag string) *ProjectsAlertsListCall

IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.

func (*ProjectsAlertsListCall) OrderBy

OrderBy sets the optional parameter "orderBy": Order by criteria in the csv format: "field1, field2 desc" or "field1, field2" or "field1 asc, field2". If a field is specified without `asc` or `desc`, ascending order is used by default. Supported fields for ordering are identical to those supported for filtering. Examples: * `audit.create_time desc` * `audit.update_time asc` * `audit.create_time desc, severity_analysis.severity_level desc`

func (*ProjectsAlertsListCall) PageSize

func (c *ProjectsAlertsListCall) PageSize(pageSize int64) *ProjectsAlertsListCall

PageSize sets the optional parameter "pageSize": Page size. Default to 100 alerts per page. Maximum is 1000 alerts per page.

func (*ProjectsAlertsListCall) PageToken

func (c *ProjectsAlertsListCall) PageToken(pageToken string) *ProjectsAlertsListCall

PageToken sets the optional parameter "pageToken": Page token to retrieve the next page of results.

func (*ProjectsAlertsListCall) Pages

Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.

type ProjectsAlertsNotActionableCall

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

func (*ProjectsAlertsNotActionableCall) Context

Context sets the context to be used in this call's Do method.

func (*ProjectsAlertsNotActionableCall) Do

Do executes the "threatintelligence.projects.alerts.notActionable" call. Any non-2xx status code is an error. Response headers are in either *Alert.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ProjectsAlertsNotActionableCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*ProjectsAlertsNotActionableCall) Header

Header returns a http.Header that can be modified by the caller to add headers to the request.

type ProjectsAlertsReadCall

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

func (*ProjectsAlertsReadCall) Context

Context sets the context to be used in this call's Do method.

func (*ProjectsAlertsReadCall) Do

Do executes the "threatintelligence.projects.alerts.read" call. Any non-2xx status code is an error. Response headers are in either *Alert.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ProjectsAlertsReadCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*ProjectsAlertsReadCall) Header

func (c *ProjectsAlertsReadCall) Header() http.Header

Header returns a http.Header that can be modified by the caller to add headers to the request.

type ProjectsAlertsResolveCall

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

func (*ProjectsAlertsResolveCall) Context

Context sets the context to be used in this call's Do method.

func (*ProjectsAlertsResolveCall) Do

Do executes the "threatintelligence.projects.alerts.resolve" call. Any non-2xx status code is an error. Response headers are in either *Alert.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ProjectsAlertsResolveCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*ProjectsAlertsResolveCall) Header

Header returns a http.Header that can be modified by the caller to add headers to the request.

type ProjectsAlertsService

type ProjectsAlertsService struct {
	Documents *ProjectsAlertsDocumentsService
	// contains filtered or unexported fields
}

func NewProjectsAlertsService

func NewProjectsAlertsService(s *Service) *ProjectsAlertsService

func (*ProjectsAlertsService) Benign

func (r *ProjectsAlertsService) Benign(name string, markalertasbenignrequest *MarkAlertAsBenignRequest) *ProjectsAlertsBenignCall

Benign: Marks an alert as benign - BENIGN.

  • name: Name of the alert to mark as a benign. Format: projects/{project}/alerts/{alert}.

func (*ProjectsAlertsService) Duplicate

func (r *ProjectsAlertsService) Duplicate(name string, markalertasduplicaterequest *MarkAlertAsDuplicateRequest) *ProjectsAlertsDuplicateCall

Duplicate: Marks an alert as a duplicate of another alert. - DUPLICATE.

  • name: Name of the alert to mark as a duplicate. Format: projects/{project}/alerts/{alert}.

func (*ProjectsAlertsService) EnumerateFacets

EnumerateFacets: EnumerateAlertFacets returns the facets and the number of alerts that meet the filter criteria and have that value for each facet.

- parent: Parent of the alerts.

func (*ProjectsAlertsService) Escalate

func (r *ProjectsAlertsService) Escalate(name string, markalertasescalatedrequest *MarkAlertAsEscalatedRequest) *ProjectsAlertsEscalateCall

Escalate: Marks an alert as escalated - ESCALATED.

  • name: Name of the alert to mark as escalated. Format: projects/{project}/alerts/{alert}.

func (*ProjectsAlertsService) FalsePositive

func (r *ProjectsAlertsService) FalsePositive(name string, markalertasfalsepositiverequest *MarkAlertAsFalsePositiveRequest) *ProjectsAlertsFalsePositiveCall

FalsePositive: Marks an alert as a false positive - FALSE_POSITIVE.

  • name: Name of the alert to mark as a false positive. Format: projects/{project}/alerts/{alert}.

func (*ProjectsAlertsService) Get

Get: Get an alert by name.

- name: Name of the alert to get. Format: projects/{project}/alerts/{alert}.

func (*ProjectsAlertsService) List

List: Get a list of alerts that meet the filter criteria.

- parent: Parent of the alerts. Format: projects/{project}.

func (*ProjectsAlertsService) NotActionable

func (r *ProjectsAlertsService) NotActionable(name string, markalertasnotactionablerequest *MarkAlertAsNotActionableRequest) *ProjectsAlertsNotActionableCall

NotActionable: Marks an alert as not actionable - NOT_ACTIONABLE.

  • name: Name of the alert to mark as a not actionable. Format: projects/{project}/alerts/{alert}.

func (*ProjectsAlertsService) Read

func (r *ProjectsAlertsService) Read(name string, markalertasreadrequest *MarkAlertAsReadRequest) *ProjectsAlertsReadCall

Read: Marks an alert as read - READ.

  • name: Name of the alert to mark as read. Format: projects/{project}/alerts/{alert}.

func (*ProjectsAlertsService) Resolve

func (r *ProjectsAlertsService) Resolve(name string, markalertasresolvedrequest *MarkAlertAsResolvedRequest) *ProjectsAlertsResolveCall

Resolve: Marks an alert to closed state - RESOLVED.

  • name: Name of the alert to mark as resolved. Format: projects/{project}/alerts/{alert}.

func (*ProjectsAlertsService) TrackExternally

func (r *ProjectsAlertsService) TrackExternally(name string, markalertastrackedexternallyrequest *MarkAlertAsTrackedExternallyRequest) *ProjectsAlertsTrackExternallyCall

TrackExternally: Marks an alert as tracked externally - TRACKED_EXTERNALLY.

  • name: Name of the alert to mark as tracked externally. Format: projects/{project}/alerts/{alert}.

func (*ProjectsAlertsService) Triage

func (r *ProjectsAlertsService) Triage(name string, markalertastriagedrequest *MarkAlertAsTriagedRequest) *ProjectsAlertsTriageCall

Triage: Marks an alert as triaged - TRIAGED.

  • name: Name of the alert to mark as a triaged. Format: projects/{project}/alerts/{alert}.

type ProjectsAlertsTrackExternallyCall

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

func (*ProjectsAlertsTrackExternallyCall) Context

Context sets the context to be used in this call's Do method.

func (*ProjectsAlertsTrackExternallyCall) Do

Do executes the "threatintelligence.projects.alerts.trackExternally" call. Any non-2xx status code is an error. Response headers are in either *Alert.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ProjectsAlertsTrackExternallyCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*ProjectsAlertsTrackExternallyCall) Header

Header returns a http.Header that can be modified by the caller to add headers to the request.

type ProjectsAlertsTriageCall

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

func (*ProjectsAlertsTriageCall) Context

Context sets the context to be used in this call's Do method.

func (*ProjectsAlertsTriageCall) Do

Do executes the "threatintelligence.projects.alerts.triage" call. Any non-2xx status code is an error. Response headers are in either *Alert.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ProjectsAlertsTriageCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*ProjectsAlertsTriageCall) Header

func (c *ProjectsAlertsTriageCall) Header() http.Header

Header returns a http.Header that can be modified by the caller to add headers to the request.

type ProjectsConfigurationsGetCall

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

func (*ProjectsConfigurationsGetCall) Context

Context sets the context to be used in this call's Do method.

func (*ProjectsConfigurationsGetCall) Do

Do executes the "threatintelligence.projects.configurations.get" call. Any non-2xx status code is an error. Response headers are in either *Configuration.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ProjectsConfigurationsGetCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*ProjectsConfigurationsGetCall) Header

Header returns a http.Header that can be modified by the caller to add headers to the request.

func (*ProjectsConfigurationsGetCall) IfNoneMatch

IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.

type ProjectsConfigurationsListCall

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

func (*ProjectsConfigurationsListCall) Context

Context sets the context to be used in this call's Do method.

func (*ProjectsConfigurationsListCall) Do

Do executes the "threatintelligence.projects.configurations.list" call. Any non-2xx status code is an error. Response headers are in either *ListConfigurationsResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ProjectsConfigurationsListCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*ProjectsConfigurationsListCall) Filter

Filter sets the optional parameter "filter": Filter criteria.

func (*ProjectsConfigurationsListCall) Header

Header returns a http.Header that can be modified by the caller to add headers to the request.

func (*ProjectsConfigurationsListCall) IfNoneMatch

IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.

func (*ProjectsConfigurationsListCall) OrderBy

OrderBy sets the optional parameter "orderBy": Order by criteria in the csv format: "field1,field2 desc" or "field1,field2" or "field1 asc, field2".

func (*ProjectsConfigurationsListCall) PageSize

PageSize sets the optional parameter "pageSize": Page size.

func (*ProjectsConfigurationsListCall) PageToken

PageToken sets the optional parameter "pageToken": Page token.

func (*ProjectsConfigurationsListCall) Pages

Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.

type ProjectsConfigurationsRevisionsListCall

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

func (*ProjectsConfigurationsRevisionsListCall) Context

Context sets the context to be used in this call's Do method.

func (*ProjectsConfigurationsRevisionsListCall) Do

Do executes the "threatintelligence.projects.configurations.revisions.list" call. Any non-2xx status code is an error. Response headers are in either *ListConfigurationRevisionsResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ProjectsConfigurationsRevisionsListCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*ProjectsConfigurationsRevisionsListCall) Filter

Filter sets the optional parameter "filter": An AIP-160 filter string

func (*ProjectsConfigurationsRevisionsListCall) Header

Header returns a http.Header that can be modified by the caller to add headers to the request.

func (*ProjectsConfigurationsRevisionsListCall) IfNoneMatch

IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.

func (*ProjectsConfigurationsRevisionsListCall) OrderBy

OrderBy sets the optional parameter "orderBy": Specify ordering of response

func (*ProjectsConfigurationsRevisionsListCall) PageSize

PageSize sets the optional parameter "pageSize": Page Size

func (*ProjectsConfigurationsRevisionsListCall) PageToken

PageToken sets the optional parameter "pageToken": A page token provided by the API

func (*ProjectsConfigurationsRevisionsListCall) Pages

Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.

type ProjectsConfigurationsRevisionsService

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

func NewProjectsConfigurationsRevisionsService

func NewProjectsConfigurationsRevisionsService(s *Service) *ProjectsConfigurationsRevisionsService

func (*ProjectsConfigurationsRevisionsService) List

List: List configuration revisions that meet the filter criteria.

- parent: The name of the Configuration to retrieve Revisions for.

type ProjectsConfigurationsService

type ProjectsConfigurationsService struct {
	Revisions *ProjectsConfigurationsRevisionsService
	// contains filtered or unexported fields
}

func NewProjectsConfigurationsService

func NewProjectsConfigurationsService(s *Service) *ProjectsConfigurationsService

func (*ProjectsConfigurationsService) Get

Get: Get a configuration by name.

  • name: Name of the configuration to get. Format: vaults/{vault}/configurations/{configuration}.

func (*ProjectsConfigurationsService) List

List: Get a list of configurations that meet the filter criteria.

- parent: Parent of the configuration. Format: vaults/{vault}.

func (*ProjectsConfigurationsService) Upsert

Upsert: Creates or updates a configuration.

- parent: Parent of the configuration.

type ProjectsConfigurationsUpsertCall

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

func (*ProjectsConfigurationsUpsertCall) Context

Context sets the context to be used in this call's Do method.

func (*ProjectsConfigurationsUpsertCall) Do

Do executes the "threatintelligence.projects.configurations.upsert" call. Any non-2xx status code is an error. Response headers are in either *UpsertConfigurationResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ProjectsConfigurationsUpsertCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*ProjectsConfigurationsUpsertCall) Header

Header returns a http.Header that can be modified by the caller to add headers to the request.

func (*ProjectsConfigurationsUpsertCall) PublishTime

PublishTime sets the optional parameter "publishTime": Time that the configuration should be considered to have been published. This is an advanced feature used when onboarding and bulk loading data from other systems. Do not set this field without consulting with the API team.

type ProjectsFindingsGetCall

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

func (*ProjectsFindingsGetCall) Context

Context sets the context to be used in this call's Do method.

func (*ProjectsFindingsGetCall) Do

Do executes the "threatintelligence.projects.findings.get" call. Any non-2xx status code is an error. Response headers are in either *Finding.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ProjectsFindingsGetCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*ProjectsFindingsGetCall) Header

func (c *ProjectsFindingsGetCall) Header() http.Header

Header returns a http.Header that can be modified by the caller to add headers to the request.

func (*ProjectsFindingsGetCall) IfNoneMatch

func (c *ProjectsFindingsGetCall) IfNoneMatch(entityTag string) *ProjectsFindingsGetCall

IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.

type ProjectsFindingsListCall

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

func (*ProjectsFindingsListCall) Context

Context sets the context to be used in this call's Do method.

func (*ProjectsFindingsListCall) Do

Do executes the "threatintelligence.projects.findings.list" call. Any non-2xx status code is an error. Response headers are in either *ListFindingsResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ProjectsFindingsListCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*ProjectsFindingsListCall) Filter

Filter sets the optional parameter "filter": Filter criteria.

func (*ProjectsFindingsListCall) Header

func (c *ProjectsFindingsListCall) Header() http.Header

Header returns a http.Header that can be modified by the caller to add headers to the request.

func (*ProjectsFindingsListCall) IfNoneMatch

func (c *ProjectsFindingsListCall) IfNoneMatch(entityTag string) *ProjectsFindingsListCall

IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.

func (*ProjectsFindingsListCall) OrderBy

OrderBy sets the optional parameter "orderBy": Order by criteria in the csv format: "field1,field2 desc" or "field1,field2" or "field1 asc, field2".

func (*ProjectsFindingsListCall) PageSize

PageSize sets the optional parameter "pageSize": Page size.

func (*ProjectsFindingsListCall) PageToken

func (c *ProjectsFindingsListCall) PageToken(pageToken string) *ProjectsFindingsListCall

PageToken sets the optional parameter "pageToken": Page token.

func (*ProjectsFindingsListCall) Pages

Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.

type ProjectsFindingsSearchCall

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

func (*ProjectsFindingsSearchCall) Context

Context sets the context to be used in this call's Do method.

func (*ProjectsFindingsSearchCall) Do

Do executes the "threatintelligence.projects.findings.search" call. Any non-2xx status code is an error. Response headers are in either *SearchFindingsResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ProjectsFindingsSearchCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*ProjectsFindingsSearchCall) Header

Header returns a http.Header that can be modified by the caller to add headers to the request.

func (*ProjectsFindingsSearchCall) IfNoneMatch

IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.

func (*ProjectsFindingsSearchCall) OrderBy

OrderBy sets the optional parameter "orderBy": Order by criteria in the csv format: "field1,field2 desc" or "field1,field2" or "field1 asc, field2".

func (*ProjectsFindingsSearchCall) PageSize

PageSize sets the optional parameter "pageSize": Page size.

func (*ProjectsFindingsSearchCall) PageToken

PageToken sets the optional parameter "pageToken": Page token.

func (*ProjectsFindingsSearchCall) Pages

Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.

func (*ProjectsFindingsSearchCall) Query

Query sets the optional parameter "query": Query on what findings will be returned. This supports the same filter criteria as FindingService.ListFindings as well as the following relationship query `has_alert`. Example: - `has_alert("name=\"projects/gti-12345/alerts/alert-12345\"")`

type ProjectsFindingsService

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

func NewProjectsFindingsService

func NewProjectsFindingsService(s *Service) *ProjectsFindingsService

func (*ProjectsFindingsService) Get

Get: Get a finding by name. The `name` field should have the format: `projects/{project}/findings/{finding}`

- name: Name of the finding to get.

func (*ProjectsFindingsService) List

List: Get a list of findings that meet the filter criteria. The `parent` field in ListFindingsRequest should have the format: projects/{project}

- parent: Parent of the findings.

func (*ProjectsFindingsService) Search

Search: SearchFindings is a more powerful version of ListFindings that supports complex queries like "findings for alerts" using functions such as `has_alert` in the query string. The `parent` field in SearchFindingsRequest should have the format: projects/{project} Example to search for findings for a specific issue: `has_alert("name=\"projects/gti-12345/alerts/alert-12345\"")`

- parent: Parent of the findings. Format: vaults/{vault}.

type ProjectsGenerateOrgProfileCall added in v0.266.0

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

func (*ProjectsGenerateOrgProfileCall) Context added in v0.266.0

Context sets the context to be used in this call's Do method.

func (*ProjectsGenerateOrgProfileCall) Do added in v0.266.0

Do executes the "threatintelligence.projects.generateOrgProfile" call. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ProjectsGenerateOrgProfileCall) Fields added in v0.266.0

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*ProjectsGenerateOrgProfileCall) Header added in v0.266.0

Header returns a http.Header that can be modified by the caller to add headers to the request.

type ProjectsService

type ProjectsService struct {
	Alerts *ProjectsAlertsService

	Configurations *ProjectsConfigurationsService

	Findings *ProjectsFindingsService
	// contains filtered or unexported fields
}

func NewProjectsService

func NewProjectsService(s *Service) *ProjectsService

func (*ProjectsService) GenerateOrgProfile added in v0.266.0

func (r *ProjectsService) GenerateOrgProfile(name string, generateorgprofileconfigurationrequest *GenerateOrgProfileConfigurationRequest) *ProjectsGenerateOrgProfileCall

GenerateOrgProfile: Triggers the generation of a Customer Profile for a project.

  • name: The name of the project to generate the profile for. Format: projects/{project}.

type RelevanceAnalysis

type RelevanceAnalysis struct {
	// Confidence: The level of confidence in the given verdict.
	//
	// Possible values:
	//   "CONFIDENCE_LEVEL_UNSPECIFIED" - Default value. Confidence level is not
	// specified.
	//   "CONFIDENCE_LEVEL_LOW" - Low confidence in the verdict.
	//   "CONFIDENCE_LEVEL_MEDIUM" - Medium confidence in the verdict.
	//   "CONFIDENCE_LEVEL_HIGH" - High confidence in the verdict.
	Confidence string `json:"confidence,omitempty"`
	// Evidence: Evidence supporting the verdict, including matched and unmatched
	// items.
	Evidence *Evidence `json:"evidence,omitempty"`
	// Reasoning: Human-readable explanation from the matcher, detailing why a
	// particular result is considered relevant or not relevant.
	Reasoning string `json:"reasoning,omitempty"`
	// RelevanceLevel: The level of relevance.
	//
	// Possible values:
	//   "RELEVANCE_LEVEL_UNSPECIFIED" - Default value, should never be set.
	//   "RELEVANCE_LEVEL_LOW" - Low Relevance.
	//   "RELEVANCE_LEVEL_MEDIUM" - Medium Relevance.
	//   "RELEVANCE_LEVEL_HIGH" - High Relevance.
	RelevanceLevel string `json:"relevanceLevel,omitempty"`
	// Relevant: Indicates whether the threat is considered relevant.
	Relevant bool `json:"relevant,omitempty"`
	// ForceSendFields is a list of field names (e.g. "Confidence") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "Confidence") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

RelevanceAnalysis: Structured relevance analysis for a threat.

func (RelevanceAnalysis) MarshalJSON

func (s RelevanceAnalysis) MarshalJSON() ([]byte, error)

type SearchFindingsResponse

type SearchFindingsResponse struct {
	// Findings: List of findings.
	Findings []*Finding `json:"findings,omitempty"`
	// NextPageToken: Page token.
	NextPageToken string `json:"nextPageToken,omitempty"`

	// ServerResponse contains the HTTP response code and headers from the server.
	googleapi.ServerResponse `json:"-"`
	// ForceSendFields is a list of field names (e.g. "Findings") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "Findings") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

SearchFindingsResponse: Response message for SearchFindings.

func (SearchFindingsResponse) MarshalJSON

func (s SearchFindingsResponse) MarshalJSON() ([]byte, error)

type Service

type Service struct {
	BasePath  string // API endpoint base URL
	UserAgent string // optional additional User-Agent fragment

	Projects *ProjectsService
	// contains filtered or unexported fields
}

func New deprecated

func New(client *http.Client) (*Service, error)

New creates a new Service. It uses the provided http.Client for requests.

Deprecated: please use NewService instead. To provide a custom HTTP client, use option.WithHTTPClient. If you are using google.golang.org/api/googleapis/transport.APIKey, use option.WithAPIKey with NewService instead.

func NewService

func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, error)

NewService creates a new Service.

type SeverityAnalysis

type SeverityAnalysis struct {
	// Confidence: The level of confidence in the given verdict.
	//
	// Possible values:
	//   "CONFIDENCE_LEVEL_UNSPECIFIED" - Default value. Confidence level is not
	// specified.
	//   "CONFIDENCE_LEVEL_LOW" - Low confidence in the verdict.
	//   "CONFIDENCE_LEVEL_MEDIUM" - Medium confidence in the verdict.
	//   "CONFIDENCE_LEVEL_HIGH" - High confidence in the verdict.
	Confidence string `json:"confidence,omitempty"`
	// Reasoning: Human-readable explanation from the model, detailing why a
	// particular result is considered to have a certain severity.
	Reasoning string `json:"reasoning,omitempty"`
	// SeverityLevel: The level of severity.
	//
	// Possible values:
	//   "SEVERITY_LEVEL_UNSPECIFIED" - Default value, should never be set.
	//   "SEVERITY_LEVEL_LOW" - Low Severity.
	//   "SEVERITY_LEVEL_MEDIUM" - Medium Severity.
	//   "SEVERITY_LEVEL_HIGH" - High Severity.
	SeverityLevel string `json:"severityLevel,omitempty"`
	// ForceSendFields is a list of field names (e.g. "Confidence") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "Confidence") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

SeverityAnalysis: Structured severity analysis for a threat.

func (SeverityAnalysis) MarshalJSON

func (s SeverityAnalysis) MarshalJSON() ([]byte, error)

type Status added in v0.266.0

type Status struct {
	// Code: The status code, which should be an enum value of google.rpc.Code.
	Code int64 `json:"code,omitempty"`
	// Details: A list of messages that carry the error details. There is a common
	// set of message types for APIs to use.
	Details []googleapi.RawMessage `json:"details,omitempty"`
	// Message: A developer-facing error message, which should be in English. Any
	// user-facing error message should be localized and sent in the
	// google.rpc.Status.details field, or localized by the client.
	Message string `json:"message,omitempty"`
	// ForceSendFields is a list of field names (e.g. "Code") to unconditionally
	// include in API requests. By default, fields with empty or default values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "Code") to include in API requests
	// with the JSON null value. By default, fields with empty values are omitted
	// from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

Status: The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by gRPC (https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the API Design Guide (https://cloud.google.com/apis/design/errors).

func (Status) MarshalJSON added in v0.266.0

func (s Status) MarshalJSON() ([]byte, error)

type UpsertConfigurationResponse

type UpsertConfigurationResponse struct {
	// Configuration: Output only. Created configuration ID with server assigned
	// id.
	Configuration string `json:"configuration,omitempty"`

	// ServerResponse contains the HTTP response code and headers from the server.
	googleapi.ServerResponse `json:"-"`
	// ForceSendFields is a list of field names (e.g. "Configuration") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "Configuration") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

UpsertConfigurationResponse: Response message for UpsertConfiguration.

func (UpsertConfigurationResponse) MarshalJSON

func (s UpsertConfigurationResponse) MarshalJSON() ([]byte, error)

Jump to

Keyboard shortcuts

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