dlp - ActiveState ActiveGo 1.8
...

Package dlp

import "google.golang.org/api/dlp/v2beta1"
Overview
Index

Overview ▾

Package dlp provides access to the DLP API.

See https://cloud.google.com/dlp/docs/

Usage example:

import "google.golang.org/api/dlp/v2beta1"
...
dlpService, err := dlp.New(oauthHttpClient)

Index ▾

Constants
type CancelOperationRequest
type CategoryDescription
    func (s *CategoryDescription) MarshalJSON() ([]byte, error)
type CloudStorageKey
    func (s *CloudStorageKey) MarshalJSON() ([]byte, error)
type CloudStorageOptions
    func (s *CloudStorageOptions) MarshalJSON() ([]byte, error)
type CloudStoragePath
    func (s *CloudStoragePath) MarshalJSON() ([]byte, error)
type ContentInspectCall
    func (c *ContentInspectCall) Context(ctx context.Context) *ContentInspectCall
    func (c *ContentInspectCall) Do(opts ...googleapi.CallOption) (*InspectContentResponse, error)
    func (c *ContentInspectCall) Fields(s ...googleapi.Field) *ContentInspectCall
    func (c *ContentInspectCall) Header() http.Header
type ContentItem
    func (s *ContentItem) MarshalJSON() ([]byte, error)
type ContentRedactCall
    func (c *ContentRedactCall) Context(ctx context.Context) *ContentRedactCall
    func (c *ContentRedactCall) Do(opts ...googleapi.CallOption) (*RedactContentResponse, error)
    func (c *ContentRedactCall) Fields(s ...googleapi.Field) *ContentRedactCall
    func (c *ContentRedactCall) Header() http.Header
type ContentService
    func NewContentService(s *Service) *ContentService
    func (r *ContentService) Inspect(inspectcontentrequest *InspectContentRequest) *ContentInspectCall
    func (r *ContentService) Redact(redactcontentrequest *RedactContentRequest) *ContentRedactCall
type CreateInspectOperationRequest
    func (s *CreateInspectOperationRequest) MarshalJSON() ([]byte, error)
type DatastoreKey
    func (s *DatastoreKey) MarshalJSON() ([]byte, error)
type DatastoreOptions
    func (s *DatastoreOptions) MarshalJSON() ([]byte, error)
type Empty
type FieldId
    func (s *FieldId) MarshalJSON() ([]byte, error)
type FileSet
    func (s *FileSet) MarshalJSON() ([]byte, error)
type Finding
    func (s *Finding) MarshalJSON() ([]byte, error)
type ImageLocation
    func (s *ImageLocation) MarshalJSON() ([]byte, error)
type InfoType
    func (s *InfoType) MarshalJSON() ([]byte, error)
type InfoTypeDescription
    func (s *InfoTypeDescription) MarshalJSON() ([]byte, error)
type InspectConfig
    func (s *InspectConfig) MarshalJSON() ([]byte, error)
type InspectContentRequest
    func (s *InspectContentRequest) MarshalJSON() ([]byte, error)
type InspectContentResponse
    func (s *InspectContentResponse) MarshalJSON() ([]byte, error)
type InspectOperationsCancelCall
    func (c *InspectOperationsCancelCall) Context(ctx context.Context) *InspectOperationsCancelCall
    func (c *InspectOperationsCancelCall) Do(opts ...googleapi.CallOption) (*Empty, error)
    func (c *InspectOperationsCancelCall) Fields(s ...googleapi.Field) *InspectOperationsCancelCall
    func (c *InspectOperationsCancelCall) Header() http.Header
type InspectOperationsCreateCall
    func (c *InspectOperationsCreateCall) Context(ctx context.Context) *InspectOperationsCreateCall
    func (c *InspectOperationsCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error)
    func (c *InspectOperationsCreateCall) Fields(s ...googleapi.Field) *InspectOperationsCreateCall
    func (c *InspectOperationsCreateCall) Header() http.Header
type InspectOperationsDeleteCall
    func (c *InspectOperationsDeleteCall) Context(ctx context.Context) *InspectOperationsDeleteCall
    func (c *InspectOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error)
    func (c *InspectOperationsDeleteCall) Fields(s ...googleapi.Field) *InspectOperationsDeleteCall
    func (c *InspectOperationsDeleteCall) Header() http.Header
type InspectOperationsGetCall
    func (c *InspectOperationsGetCall) Context(ctx context.Context) *InspectOperationsGetCall
    func (c *InspectOperationsGetCall) Do(opts ...googleapi.CallOption) (*Operation, error)
    func (c *InspectOperationsGetCall) Fields(s ...googleapi.Field) *InspectOperationsGetCall
    func (c *InspectOperationsGetCall) Header() http.Header
    func (c *InspectOperationsGetCall) IfNoneMatch(entityTag string) *InspectOperationsGetCall
type InspectOperationsListCall
    func (c *InspectOperationsListCall) Context(ctx context.Context) *InspectOperationsListCall
    func (c *InspectOperationsListCall) Do(opts ...googleapi.CallOption) (*ListOperationsResponse, error)
    func (c *InspectOperationsListCall) Fields(s ...googleapi.Field) *InspectOperationsListCall
    func (c *InspectOperationsListCall) Filter(filter string) *InspectOperationsListCall
    func (c *InspectOperationsListCall) Header() http.Header
    func (c *InspectOperationsListCall) IfNoneMatch(entityTag string) *InspectOperationsListCall
    func (c *InspectOperationsListCall) PageSize(pageSize int64) *InspectOperationsListCall
    func (c *InspectOperationsListCall) PageToken(pageToken string) *InspectOperationsListCall
    func (c *InspectOperationsListCall) Pages(ctx context.Context, f func(*ListOperationsResponse) error) error
type InspectOperationsService
    func NewInspectOperationsService(s *Service) *InspectOperationsService
    func (r *InspectOperationsService) Cancel(name string, canceloperationrequest *CancelOperationRequest) *InspectOperationsCancelCall
    func (r *InspectOperationsService) Create(createinspectoperationrequest *CreateInspectOperationRequest) *InspectOperationsCreateCall
    func (r *InspectOperationsService) Delete(name string) *InspectOperationsDeleteCall
    func (r *InspectOperationsService) Get(name string) *InspectOperationsGetCall
    func (r *InspectOperationsService) List(name string) *InspectOperationsListCall
type InspectResult
    func (s *InspectResult) MarshalJSON() ([]byte, error)
type InspectResultsFindingsListCall
    func (c *InspectResultsFindingsListCall) Context(ctx context.Context) *InspectResultsFindingsListCall
    func (c *InspectResultsFindingsListCall) Do(opts ...googleapi.CallOption) (*ListInspectFindingsResponse, error)
    func (c *InspectResultsFindingsListCall) Fields(s ...googleapi.Field) *InspectResultsFindingsListCall
    func (c *InspectResultsFindingsListCall) Filter(filter string) *InspectResultsFindingsListCall
    func (c *InspectResultsFindingsListCall) Header() http.Header
    func (c *InspectResultsFindingsListCall) IfNoneMatch(entityTag string) *InspectResultsFindingsListCall
    func (c *InspectResultsFindingsListCall) PageSize(pageSize int64) *InspectResultsFindingsListCall
    func (c *InspectResultsFindingsListCall) PageToken(pageToken string) *InspectResultsFindingsListCall
    func (c *InspectResultsFindingsListCall) Pages(ctx context.Context, f func(*ListInspectFindingsResponse) error) error
type InspectResultsFindingsService
    func NewInspectResultsFindingsService(s *Service) *InspectResultsFindingsService
    func (r *InspectResultsFindingsService) List(name string) *InspectResultsFindingsListCall
type InspectResultsService
    func NewInspectResultsService(s *Service) *InspectResultsService
type InspectService
    func NewInspectService(s *Service) *InspectService
type Key
    func (s *Key) MarshalJSON() ([]byte, error)
type KindExpression
    func (s *KindExpression) MarshalJSON() ([]byte, error)
type ListInfoTypesResponse
    func (s *ListInfoTypesResponse) MarshalJSON() ([]byte, error)
type ListInspectFindingsResponse
    func (s *ListInspectFindingsResponse) MarshalJSON() ([]byte, error)
type ListOperationsResponse
    func (s *ListOperationsResponse) MarshalJSON() ([]byte, error)
type ListRootCategoriesResponse
    func (s *ListRootCategoriesResponse) MarshalJSON() ([]byte, error)
type Location
    func (s *Location) MarshalJSON() ([]byte, error)
type Operation
    func (s *Operation) MarshalJSON() ([]byte, error)
type OutputStorageConfig
    func (s *OutputStorageConfig) MarshalJSON() ([]byte, error)
type PartitionId
    func (s *PartitionId) MarshalJSON() ([]byte, error)
type PathElement
    func (s *PathElement) MarshalJSON() ([]byte, error)
type Projection
    func (s *Projection) MarshalJSON() ([]byte, error)
type PropertyReference
    func (s *PropertyReference) MarshalJSON() ([]byte, error)
type Range
    func (s *Range) MarshalJSON() ([]byte, error)
type RecordKey
    func (s *RecordKey) MarshalJSON() ([]byte, error)
type RedactContentRequest
    func (s *RedactContentRequest) MarshalJSON() ([]byte, error)
type RedactContentResponse
    func (s *RedactContentResponse) MarshalJSON() ([]byte, error)
type ReplaceConfig
    func (s *ReplaceConfig) MarshalJSON() ([]byte, error)
type RootCategoriesInfoTypesListCall
    func (c *RootCategoriesInfoTypesListCall) Context(ctx context.Context) *RootCategoriesInfoTypesListCall
    func (c *RootCategoriesInfoTypesListCall) Do(opts ...googleapi.CallOption) (*ListInfoTypesResponse, error)
    func (c *RootCategoriesInfoTypesListCall) Fields(s ...googleapi.Field) *RootCategoriesInfoTypesListCall
    func (c *RootCategoriesInfoTypesListCall) Header() http.Header
    func (c *RootCategoriesInfoTypesListCall) IfNoneMatch(entityTag string) *RootCategoriesInfoTypesListCall
    func (c *RootCategoriesInfoTypesListCall) LanguageCode(languageCode string) *RootCategoriesInfoTypesListCall
type RootCategoriesInfoTypesService
    func NewRootCategoriesInfoTypesService(s *Service) *RootCategoriesInfoTypesService
    func (r *RootCategoriesInfoTypesService) List(category string) *RootCategoriesInfoTypesListCall
type RootCategoriesListCall
    func (c *RootCategoriesListCall) Context(ctx context.Context) *RootCategoriesListCall
    func (c *RootCategoriesListCall) Do(opts ...googleapi.CallOption) (*ListRootCategoriesResponse, error)
    func (c *RootCategoriesListCall) Fields(s ...googleapi.Field) *RootCategoriesListCall
    func (c *RootCategoriesListCall) Header() http.Header
    func (c *RootCategoriesListCall) IfNoneMatch(entityTag string) *RootCategoriesListCall
    func (c *RootCategoriesListCall) LanguageCode(languageCode string) *RootCategoriesListCall
type RootCategoriesService
    func NewRootCategoriesService(s *Service) *RootCategoriesService
    func (r *RootCategoriesService) List() *RootCategoriesListCall
type Service
    func New(client *http.Client) (*Service, error)
type Status
    func (s *Status) MarshalJSON() ([]byte, error)
type StorageConfig
    func (s *StorageConfig) MarshalJSON() ([]byte, error)

Package files

dlp-gen.go

Constants

OAuth2 scopes used by this API.

const (
    // View and manage your data across Google Cloud Platform services
    CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platform"
)

type CancelOperationRequest

CancelOperationRequest: The request message for Operations.CancelOperation.

type CancelOperationRequest struct {
}

type CategoryDescription

CategoryDescription: Info Type Category description.

type CategoryDescription struct {
    // DisplayName: Human readable form of the category name.
    DisplayName string `json:"displayName,omitempty"`

    // Name: Internal name of the category.
    Name string `json:"name,omitempty"`

    // ForceSendFields is a list of field names (e.g. "DisplayName") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    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. However, any field with
    // an empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*CategoryDescription) MarshalJSON

func (s *CategoryDescription) MarshalJSON() ([]byte, error)

type CloudStorageKey

CloudStorageKey: Record key for a finding in a Cloud Storage file.

type CloudStorageKey struct {
    // FilePath: Path to the file.
    FilePath string `json:"filePath,omitempty"`

    // StartOffset: Byte offset of the referenced data in the file.
    StartOffset int64 `json:"startOffset,omitempty,string"`

    // ForceSendFields is a list of field names (e.g. "FilePath") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "FilePath") to include in
    // API requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*CloudStorageKey) MarshalJSON

func (s *CloudStorageKey) MarshalJSON() ([]byte, error)

type CloudStorageOptions

CloudStorageOptions: Options defining a file or a set of files (path ending with *) within a Google Cloud Storage bucket.

type CloudStorageOptions struct {
    FileSet *FileSet `json:"fileSet,omitempty"`

    // ForceSendFields is a list of field names (e.g. "FileSet") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "FileSet") to include in
    // API requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*CloudStorageOptions) MarshalJSON

func (s *CloudStorageOptions) MarshalJSON() ([]byte, error)

type CloudStoragePath

CloudStoragePath: A location in Cloud Storage.

type CloudStoragePath struct {
    // Path: The url, in the format of `gs://bucket/<path>`.
    Path string `json:"path,omitempty"`

    // ForceSendFields is a list of field names (e.g. "Path") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "Path") to include in API
    // requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*CloudStoragePath) MarshalJSON

func (s *CloudStoragePath) MarshalJSON() ([]byte, error)

type ContentInspectCall

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

func (*ContentInspectCall) Context

func (c *ContentInspectCall) Context(ctx context.Context) *ContentInspectCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*ContentInspectCall) Do

func (c *ContentInspectCall) Do(opts ...googleapi.CallOption) (*InspectContentResponse, error)

Do executes the "dlp.content.inspect" call. Exactly one of *InspectContentResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *InspectContentResponse.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 (*ContentInspectCall) Fields

func (c *ContentInspectCall) Fields(s ...googleapi.Field) *ContentInspectCall

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

func (*ContentInspectCall) Header

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

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

type ContentItem

ContentItem: Container structure for the content to inspect.

type ContentItem struct {
    // Data: Content data to inspect or redact.
    Data string `json:"data,omitempty"`

    // Type: Type of the content, as defined in Content-Type HTTP
    // header.
    // Supported types are: all "text" types, octet streams, PNG
    // images,
    // JPEG images.
    Type string `json:"type,omitempty"`

    // Value: String data to inspect or redact.
    Value string `json:"value,omitempty"`

    // ForceSendFields is a list of field names (e.g. "Data") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "Data") to include in API
    // requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*ContentItem) MarshalJSON

func (s *ContentItem) MarshalJSON() ([]byte, error)

type ContentRedactCall

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

func (*ContentRedactCall) Context

func (c *ContentRedactCall) Context(ctx context.Context) *ContentRedactCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*ContentRedactCall) Do

func (c *ContentRedactCall) Do(opts ...googleapi.CallOption) (*RedactContentResponse, error)

Do executes the "dlp.content.redact" call. Exactly one of *RedactContentResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *RedactContentResponse.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 (*ContentRedactCall) Fields

func (c *ContentRedactCall) Fields(s ...googleapi.Field) *ContentRedactCall

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

func (*ContentRedactCall) Header

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

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

type ContentService

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

func NewContentService

func NewContentService(s *Service) *ContentService

func (*ContentService) Inspect

func (r *ContentService) Inspect(inspectcontentrequest *InspectContentRequest) *ContentInspectCall

Inspect: Find potentially sensitive info in a list of strings. This method has limits on input size, processing time, and output size.

func (*ContentService) Redact

func (r *ContentService) Redact(redactcontentrequest *RedactContentRequest) *ContentRedactCall

Redact: Redact potentially sensitive info from a list of strings. This method has limits on input size, processing time, and output size.

type CreateInspectOperationRequest

CreateInspectOperationRequest: Request for scheduling a scan of a data subset from a Google Platform data repository.

type CreateInspectOperationRequest struct {
    // InspectConfig: Configuration for the inspector.
    InspectConfig *InspectConfig `json:"inspectConfig,omitempty"`

    // OutputConfig: Optional location to store findings. The bucket must
    // already exist and
    // the Google APIs service account for DLP must have write permission
    // to
    // write to the given bucket.
    // <p>Results are split over multiple csv files with each file name
    // matching
    // the pattern "[operation_id]_[count].csv", for
    // example
    // `3094877188788974909_1.csv`. The `operation_id` matches
    // the
    // identifier for the Operation, and the `count` is a counter used
    // for
    // tracking the number of files written. <p>The CSV file(s) contain
    // the
    // following columns regardless of storage type scanned: <li>id
    // <li>info_type
    // <li>likelihood <li>byte size of finding <li>quote
    // <li>time_stamp<br/>
    // <p>For Cloud Storage the next columns are:
    // <li>file_path
    // <li>start_offset<br/>
    // <p>For Cloud Datastore the next columns are:
    // <li>project_id
    // <li>namespace_id <li>path <li>column_name <li>offset
    OutputConfig *OutputStorageConfig `json:"outputConfig,omitempty"`

    // StorageConfig: Specification of the data set to process.
    StorageConfig *StorageConfig `json:"storageConfig,omitempty"`

    // ForceSendFields is a list of field names (e.g. "InspectConfig") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "InspectConfig") to include
    // in API requests with the JSON null value. By default, fields with
    // empty values are omitted from API requests. However, any field with
    // an empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*CreateInspectOperationRequest) MarshalJSON

func (s *CreateInspectOperationRequest) MarshalJSON() ([]byte, error)

type DatastoreKey

DatastoreKey: Record key for a finding in Cloud Datastore.

type DatastoreKey struct {
    // EntityKey: Datastore entity key.
    EntityKey *Key `json:"entityKey,omitempty"`

    // ForceSendFields is a list of field names (e.g. "EntityKey") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "EntityKey") to include in
    // API requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*DatastoreKey) MarshalJSON

func (s *DatastoreKey) MarshalJSON() ([]byte, error)

type DatastoreOptions

DatastoreOptions: Options defining a data set within Google Cloud Datastore.

type DatastoreOptions struct {
    // Kind: The kind to process.
    Kind *KindExpression `json:"kind,omitempty"`

    // PartitionId: A partition ID identifies a grouping of entities. The
    // grouping is always
    // by project and namespace, however the namespace ID may be empty.
    PartitionId *PartitionId `json:"partitionId,omitempty"`

    // Projection: Properties to scan. If none are specified, all properties
    // will be scanned
    // by default.
    Projection []*Projection `json:"projection,omitempty"`

    // ForceSendFields is a list of field names (e.g. "Kind") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "Kind") to include in API
    // requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*DatastoreOptions) MarshalJSON

func (s *DatastoreOptions) MarshalJSON() ([]byte, error)

type Empty

Empty: A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance:

service Foo {
  rpc Bar(google.protobuf.Empty) returns

(google.protobuf.Empty);

}

The JSON representation for `Empty` is empty JSON object `{}`.

type Empty struct {
    // ServerResponse contains the HTTP response code and headers from the
    // server.
    googleapi.ServerResponse `json:"-"`
}

type FieldId

FieldId: General identifier of a data field in a storage service.

type FieldId struct {
    // ColumnName: Column name describing the field.
    ColumnName string `json:"columnName,omitempty"`

    // ForceSendFields is a list of field names (e.g. "ColumnName") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "ColumnName") to include in
    // API requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*FieldId) MarshalJSON

func (s *FieldId) MarshalJSON() ([]byte, error)

type FileSet

FileSet: Set of files to scan.

type FileSet struct {
    // Url: The url, in the format `gs://<bucket>/<path>`. Trailing wildcard
    // in the
    // path is allowed.
    Url string `json:"url,omitempty"`

    // ForceSendFields is a list of field names (e.g. "Url") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "Url") to include in API
    // requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*FileSet) MarshalJSON

func (s *FileSet) MarshalJSON() ([]byte, error)

type Finding

Finding: Container structure describing a single finding within a string or image.

type Finding struct {
    // CreateTime: Timestamp when finding was detected.
    CreateTime string `json:"createTime,omitempty"`

    // InfoType: The specific type of info the string might be.
    InfoType *InfoType `json:"infoType,omitempty"`

    // Likelihood: Estimate of how likely it is that the info_type is
    // correct.
    //
    // Possible values:
    //   "LIKELIHOOD_UNSPECIFIED" - Default value; information with all
    // likelihoods is included.
    //   "VERY_UNLIKELY" - Few matching elements.
    //   "UNLIKELY"
    //   "POSSIBLE" - Some matching elements.
    //   "LIKELY"
    //   "VERY_LIKELY" - Many matching elements.
    Likelihood string `json:"likelihood,omitempty"`

    // Location: Location of the info found.
    Location *Location `json:"location,omitempty"`

    // Quote: The specific string that may be potentially sensitive info.
    Quote string `json:"quote,omitempty"`

    // ForceSendFields is a list of field names (e.g. "CreateTime") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    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. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*Finding) MarshalJSON

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

type ImageLocation

ImageLocation: Bounding box encompassing detected text within an image.

type ImageLocation struct {
    // Height: Height of the bounding box in pixels.
    Height int64 `json:"height,omitempty"`

    // Left: Left coordinate of the bounding box. (0,0) is upper left.
    Left int64 `json:"left,omitempty"`

    // Top: Top coordinate of the bounding box. (0,0) is upper left.
    Top int64 `json:"top,omitempty"`

    // Width: Width of the bounding box in pixels.
    Width int64 `json:"width,omitempty"`

    // ForceSendFields is a list of field names (e.g. "Height") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "Height") to include in API
    // requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*ImageLocation) MarshalJSON

func (s *ImageLocation) MarshalJSON() ([]byte, error)

type InfoType

InfoType: Type of information detected by the API.

type InfoType struct {
    // Name: Name of the information type. For built-in info types, this is
    // provided by
    // the API call ListInfoTypes. For user-defined info types, this
    // is
    // provided by the user. All user-defined info types must have unique
    // names,
    // and cannot conflict with built-in info type names.
    Name string `json:"name,omitempty"`

    // ForceSendFields is a list of field names (e.g. "Name") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "Name") to include in API
    // requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*InfoType) MarshalJSON

func (s *InfoType) MarshalJSON() ([]byte, error)

type InfoTypeDescription

InfoTypeDescription: Info type description.

type InfoTypeDescription struct {
    // Categories: List of categories this info type belongs to.
    Categories []*CategoryDescription `json:"categories,omitempty"`

    // DisplayName: Human readable form of the info type name.
    DisplayName string `json:"displayName,omitempty"`

    // Name: Internal name of the info type.
    Name string `json:"name,omitempty"`

    // ForceSendFields is a list of field names (e.g. "Categories") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "Categories") to include in
    // API requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*InfoTypeDescription) MarshalJSON

func (s *InfoTypeDescription) MarshalJSON() ([]byte, error)

type InspectConfig

InspectConfig: Configuration description of the scanning process. When used with redactContent only info_types and min_likelihood are currently used.

type InspectConfig struct {
    // ExcludeTypes: When true, exclude type information of the findings.
    ExcludeTypes bool `json:"excludeTypes,omitempty"`

    // IncludeQuote: When true, a contextual quote from the data that
    // triggered a finding is
    // included in the response; see Finding.quote.
    IncludeQuote bool `json:"includeQuote,omitempty"`

    // InfoTypes: Restrict what info_types to look for. The values must
    // correspond to
    // InfoType values returned by ListInfoTypes or found in
    // documentation.
    // Empty info_types runs all enabled detectors.
    InfoTypes []*InfoType `json:"infoTypes,omitempty"`

    // MaxFindings: Limit the number of findings per content item.
    MaxFindings int64 `json:"maxFindings,omitempty"`

    // MinLikelihood: Only return findings equal or above this threshold.
    //
    // Possible values:
    //   "LIKELIHOOD_UNSPECIFIED" - Default value; information with all
    // likelihoods is included.
    //   "VERY_UNLIKELY" - Few matching elements.
    //   "UNLIKELY"
    //   "POSSIBLE" - Some matching elements.
    //   "LIKELY"
    //   "VERY_LIKELY" - Many matching elements.
    MinLikelihood string `json:"minLikelihood,omitempty"`

    // ForceSendFields is a list of field names (e.g. "ExcludeTypes") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "ExcludeTypes") to include
    // in API requests with the JSON null value. By default, fields with
    // empty values are omitted from API requests. However, any field with
    // an empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*InspectConfig) MarshalJSON

func (s *InspectConfig) MarshalJSON() ([]byte, error)

type InspectContentRequest

InspectContentRequest: Request to search for potentially sensitive info in a list of items.

type InspectContentRequest struct {
    // InspectConfig: Configuration for the inspector.
    InspectConfig *InspectConfig `json:"inspectConfig,omitempty"`

    // Items: The list of items to inspect. Items in a single request
    // are
    // considered "related" unless inspect_config.independent_inputs is
    // true.
    // Up to 100 are allowed per request.
    Items []*ContentItem `json:"items,omitempty"`

    // ForceSendFields is a list of field names (e.g. "InspectConfig") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "InspectConfig") to include
    // in API requests with the JSON null value. By default, fields with
    // empty values are omitted from API requests. However, any field with
    // an empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*InspectContentRequest) MarshalJSON

func (s *InspectContentRequest) MarshalJSON() ([]byte, error)

type InspectContentResponse

InspectContentResponse: Results of inspecting a list of items.

type InspectContentResponse struct {
    // Results: Each content_item from the request has a result in this
    // list, in the
    // same order as the request.
    Results []*InspectResult `json:"results,omitempty"`

    // ServerResponse contains the HTTP response code and headers from the
    // server.
    googleapi.ServerResponse `json:"-"`

    // ForceSendFields is a list of field names (e.g. "Results") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "Results") to include in
    // API requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*InspectContentResponse) MarshalJSON

func (s *InspectContentResponse) MarshalJSON() ([]byte, error)

type InspectOperationsCancelCall

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

func (*InspectOperationsCancelCall) Context

func (c *InspectOperationsCancelCall) Context(ctx context.Context) *InspectOperationsCancelCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*InspectOperationsCancelCall) Do

func (c *InspectOperationsCancelCall) Do(opts ...googleapi.CallOption) (*Empty, error)

Do executes the "dlp.inspect.operations.cancel" call. Exactly one of *Empty or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Empty.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 (*InspectOperationsCancelCall) Fields

func (c *InspectOperationsCancelCall) Fields(s ...googleapi.Field) *InspectOperationsCancelCall

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

func (*InspectOperationsCancelCall) Header

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

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

type InspectOperationsCreateCall

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

func (*InspectOperationsCreateCall) Context

func (c *InspectOperationsCreateCall) Context(ctx context.Context) *InspectOperationsCreateCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*InspectOperationsCreateCall) Do

func (c *InspectOperationsCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error)

Do executes the "dlp.inspect.operations.create" call. Exactly one of *Operation or error will be non-nil. 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 (*InspectOperationsCreateCall) Fields

func (c *InspectOperationsCreateCall) Fields(s ...googleapi.Field) *InspectOperationsCreateCall

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

func (*InspectOperationsCreateCall) Header

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

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

type InspectOperationsDeleteCall

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

func (*InspectOperationsDeleteCall) Context

func (c *InspectOperationsDeleteCall) Context(ctx context.Context) *InspectOperationsDeleteCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*InspectOperationsDeleteCall) Do

func (c *InspectOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error)

Do executes the "dlp.inspect.operations.delete" call. Exactly one of *Empty or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Empty.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 (*InspectOperationsDeleteCall) Fields

func (c *InspectOperationsDeleteCall) Fields(s ...googleapi.Field) *InspectOperationsDeleteCall

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

func (*InspectOperationsDeleteCall) Header

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

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

type InspectOperationsGetCall

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

func (*InspectOperationsGetCall) Context

func (c *InspectOperationsGetCall) Context(ctx context.Context) *InspectOperationsGetCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*InspectOperationsGetCall) Do

func (c *InspectOperationsGetCall) Do(opts ...googleapi.CallOption) (*Operation, error)

Do executes the "dlp.inspect.operations.get" call. Exactly one of *Operation or error will be non-nil. 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 (*InspectOperationsGetCall) Fields

func (c *InspectOperationsGetCall) Fields(s ...googleapi.Field) *InspectOperationsGetCall

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

func (*InspectOperationsGetCall) Header

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

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

func (*InspectOperationsGetCall) IfNoneMatch

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

IfNoneMatch sets the 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. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

type InspectOperationsListCall

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

func (*InspectOperationsListCall) Context

func (c *InspectOperationsListCall) Context(ctx context.Context) *InspectOperationsListCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*InspectOperationsListCall) Do

func (c *InspectOperationsListCall) Do(opts ...googleapi.CallOption) (*ListOperationsResponse, error)

Do executes the "dlp.inspect.operations.list" call. Exactly one of *ListOperationsResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ListOperationsResponse.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 (*InspectOperationsListCall) Fields

func (c *InspectOperationsListCall) Fields(s ...googleapi.Field) *InspectOperationsListCall

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

func (*InspectOperationsListCall) Filter

func (c *InspectOperationsListCall) Filter(filter string) *InspectOperationsListCall

Filter sets the optional parameter "filter": This parameter supports filtering by done, ie done=true or done=false.

func (*InspectOperationsListCall) Header

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

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

func (*InspectOperationsListCall) IfNoneMatch

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

IfNoneMatch sets the 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. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

func (*InspectOperationsListCall) PageSize

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

PageSize sets the optional parameter "pageSize": The list page size. The max allowed value is 256 and default is 100.

func (*InspectOperationsListCall) PageToken

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

PageToken sets the optional parameter "pageToken": The list page token.

func (*InspectOperationsListCall) Pages

func (c *InspectOperationsListCall) Pages(ctx context.Context, f func(*ListOperationsResponse) error) error

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 InspectOperationsService

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

func NewInspectOperationsService

func NewInspectOperationsService(s *Service) *InspectOperationsService

func (*InspectOperationsService) Cancel

func (r *InspectOperationsService) Cancel(name string, canceloperationrequest *CancelOperationRequest) *InspectOperationsCancelCall

Cancel: Cancels an operation. Use the get method to check whether the cancellation succeeded or whether the operation completed despite cancellation.

func (*InspectOperationsService) Create

func (r *InspectOperationsService) Create(createinspectoperationrequest *CreateInspectOperationRequest) *InspectOperationsCreateCall

Create: Schedule a job scanning content in a Google Cloud Platform data repository.

func (*InspectOperationsService) Delete

func (r *InspectOperationsService) Delete(name string) *InspectOperationsDeleteCall

Delete: This method is not supported and the server returns `UNIMPLEMENTED`.

func (*InspectOperationsService) Get

func (r *InspectOperationsService) Get(name string) *InspectOperationsGetCall

Get: Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.

func (*InspectOperationsService) List

func (r *InspectOperationsService) List(name string) *InspectOperationsListCall

List: Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.

NOTE: the `name` binding allows API services to override the binding to use different resource name schemes, such as `users/*/operations`. To override the binding, API services can add a binding such as "/v1/{name=users/*}/operations" to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must ensure the name binding is the parent resource, without the operations collection id.

type InspectResult

InspectResult: All the findings for a single scanned item.

type InspectResult struct {
    // Findings: List of findings for an item.
    Findings []*Finding `json:"findings,omitempty"`

    // FindingsTruncated: If true, then this item might have more findings
    // than were returned,
    // and the findings returned are an arbitrary subset of all
    // findings.
    // The findings list might be truncated because the input items were
    // too
    // large, or because the server reached the maximum amount of
    // resources
    // allowed for a single API call. For best results, divide the input
    // into
    // smaller batches.
    FindingsTruncated bool `json:"findingsTruncated,omitempty"`

    // ForceSendFields is a list of field names (e.g. "Findings") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    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. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*InspectResult) MarshalJSON

func (s *InspectResult) MarshalJSON() ([]byte, error)

type InspectResultsFindingsListCall

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

func (*InspectResultsFindingsListCall) Context

func (c *InspectResultsFindingsListCall) Context(ctx context.Context) *InspectResultsFindingsListCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*InspectResultsFindingsListCall) Do

func (c *InspectResultsFindingsListCall) Do(opts ...googleapi.CallOption) (*ListInspectFindingsResponse, error)

Do executes the "dlp.inspect.results.findings.list" call. Exactly one of *ListInspectFindingsResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ListInspectFindingsResponse.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 (*InspectResultsFindingsListCall) Fields

func (c *InspectResultsFindingsListCall) Fields(s ...googleapi.Field) *InspectResultsFindingsListCall

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

func (*InspectResultsFindingsListCall) Filter

func (c *InspectResultsFindingsListCall) Filter(filter string) *InspectResultsFindingsListCall

Filter sets the optional parameter "filter": Restrict findings to items that match. Supports info_type and likelihood. <p>Examples:<br/> <li>info_type=EMAIL_ADDRESS <li>info_typ e=PHONE_NUMBER,EMAIL_ADDRESS <li>likelihood=VERY_LIKELY <li>likelihood =VERY_LIKELY,LIKELY <li>info_type=EMAIL_ADDRESS,likelihood=VERY_LIKELY ,LIKELY

func (*InspectResultsFindingsListCall) Header

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

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

func (*InspectResultsFindingsListCall) IfNoneMatch

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

IfNoneMatch sets the 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. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

func (*InspectResultsFindingsListCall) PageSize

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

PageSize sets the optional parameter "pageSize": Maximum number of results to return. If 0, the implementation select a reasonable value.

func (*InspectResultsFindingsListCall) PageToken

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

PageToken sets the optional parameter "pageToken": The value returned by the last `ListInspectFindingsResponse`; indicates that this is a continuation of a prior `ListInspectFindings` call, and that the system should return the next page of data.

func (*InspectResultsFindingsListCall) Pages

func (c *InspectResultsFindingsListCall) Pages(ctx context.Context, f func(*ListInspectFindingsResponse) error) error

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 InspectResultsFindingsService

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

func NewInspectResultsFindingsService

func NewInspectResultsFindingsService(s *Service) *InspectResultsFindingsService

func (*InspectResultsFindingsService) List

func (r *InspectResultsFindingsService) List(name string) *InspectResultsFindingsListCall

List: Returns list of results for given inspect operation result set id.

type InspectResultsService

type InspectResultsService struct {
    Findings *InspectResultsFindingsService
    // contains filtered or unexported fields
}

func NewInspectResultsService

func NewInspectResultsService(s *Service) *InspectResultsService

type InspectService

type InspectService struct {
    Operations *InspectOperationsService

    Results *InspectResultsService
    // contains filtered or unexported fields
}

func NewInspectService

func NewInspectService(s *Service) *InspectService

type Key

Key: A unique identifier for a Datastore entity. If a key's partition ID or any of its path kinds or names are reserved/read-only, the key is reserved/read-only. A reserved/read-only key is forbidden in certain documented contexts.

type Key struct {
    // PartitionId: Entities are partitioned into subsets, currently
    // identified by a project
    // ID and namespace ID.
    // Queries are scoped to a single partition.
    PartitionId *PartitionId `json:"partitionId,omitempty"`

    // Path: The entity path.
    // An entity path consists of one or more elements composed of a kind
    // and a
    // string or numerical identifier, which identify entities. The
    // first
    // element identifies a _root entity_, the second element identifies
    // a _child_ of the root entity, the third element identifies a child of
    // the
    // second entity, and so forth. The entities identified by all prefixes
    // of
    // the path are called the element's _ancestors_.
    //
    // A path can never be empty, and a path can have at most 100 elements.
    Path []*PathElement `json:"path,omitempty"`

    // ForceSendFields is a list of field names (e.g. "PartitionId") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "PartitionId") to include
    // in API requests with the JSON null value. By default, fields with
    // empty values are omitted from API requests. However, any field with
    // an empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*Key) MarshalJSON

func (s *Key) MarshalJSON() ([]byte, error)

type KindExpression

KindExpression: A representation of a Datastore kind.

type KindExpression struct {
    // Name: The name of the kind.
    Name string `json:"name,omitempty"`

    // ForceSendFields is a list of field names (e.g. "Name") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "Name") to include in API
    // requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*KindExpression) MarshalJSON

func (s *KindExpression) MarshalJSON() ([]byte, error)

type ListInfoTypesResponse

ListInfoTypesResponse: Response to the ListInfoTypes request.

type ListInfoTypesResponse struct {
    // InfoTypes: Set of sensitive info types belonging to a category.
    InfoTypes []*InfoTypeDescription `json:"infoTypes,omitempty"`

    // ServerResponse contains the HTTP response code and headers from the
    // server.
    googleapi.ServerResponse `json:"-"`

    // ForceSendFields is a list of field names (e.g. "InfoTypes") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "InfoTypes") to include in
    // API requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*ListInfoTypesResponse) MarshalJSON

func (s *ListInfoTypesResponse) MarshalJSON() ([]byte, error)

type ListInspectFindingsResponse

ListInspectFindingsResponse: Response to the ListInspectFindings request.

type ListInspectFindingsResponse struct {
    // NextPageToken: If not empty, indicates that there may be more results
    // that match the
    // request; this value should be passed in a new
    // `ListInspectFindingsRequest`.
    NextPageToken string `json:"nextPageToken,omitempty"`

    // Result: The results.
    Result *InspectResult `json:"result,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 values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    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. However, any field with
    // an empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*ListInspectFindingsResponse) MarshalJSON

func (s *ListInspectFindingsResponse) MarshalJSON() ([]byte, error)

type ListOperationsResponse

ListOperationsResponse: The response message for Operations.ListOperations.

type ListOperationsResponse struct {
    // NextPageToken: The standard List next-page token.
    NextPageToken string `json:"nextPageToken,omitempty"`

    // Operations: A list of operations that matches the specified filter in
    // the request.
    Operations []*Operation `json:"operations,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 values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    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. However, any field with
    // an empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*ListOperationsResponse) MarshalJSON

func (s *ListOperationsResponse) MarshalJSON() ([]byte, error)

type ListRootCategoriesResponse

ListRootCategoriesResponse: Response for ListRootCategories request.

type ListRootCategoriesResponse struct {
    // Categories: List of all into type categories supported by the API.
    Categories []*CategoryDescription `json:"categories,omitempty"`

    // ServerResponse contains the HTTP response code and headers from the
    // server.
    googleapi.ServerResponse `json:"-"`

    // ForceSendFields is a list of field names (e.g. "Categories") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "Categories") to include in
    // API requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*ListRootCategoriesResponse) MarshalJSON

func (s *ListRootCategoriesResponse) MarshalJSON() ([]byte, error)

type Location

Location: Specifies the location of a finding within its source item.

type Location struct {
    // ByteRange: Zero-based byte offsets within a content item.
    ByteRange *Range `json:"byteRange,omitempty"`

    // CodepointRange: Character offsets within a content item, included
    // when content type
    // is a text. Default charset assumed to be UTF-8.
    CodepointRange *Range `json:"codepointRange,omitempty"`

    // FieldId: Field id of the field containing the finding.
    FieldId *FieldId `json:"fieldId,omitempty"`

    // ImageBoxes: Location within an image's pixels.
    ImageBoxes []*ImageLocation `json:"imageBoxes,omitempty"`

    // RecordKey: Key of the finding.
    RecordKey *RecordKey `json:"recordKey,omitempty"`

    // ForceSendFields is a list of field names (e.g. "ByteRange") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "ByteRange") to include in
    // API requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*Location) MarshalJSON

func (s *Location) MarshalJSON() ([]byte, error)

type Operation

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

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: This field will contain an `InspectOperationMetadata`
    // object.
    Metadata googleapi.RawMessage `json:"metadata,omitempty"`

    // Name: The server-assigned name, The `name` should have the format of
    // `inspect/operations/<identifier>`.
    Name string `json:"name,omitempty"`

    // Response: This field will contain an `InspectOperationResult` object.
    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 values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    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. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*Operation) MarshalJSON

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

type OutputStorageConfig

OutputStorageConfig: Cloud repository for storing output.

type OutputStorageConfig struct {
    // StoragePath: The path to a Google Cloud Storage location to store
    // output.
    StoragePath *CloudStoragePath `json:"storagePath,omitempty"`

    // ForceSendFields is a list of field names (e.g. "StoragePath") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "StoragePath") to include
    // in API requests with the JSON null value. By default, fields with
    // empty values are omitted from API requests. However, any field with
    // an empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*OutputStorageConfig) MarshalJSON

func (s *OutputStorageConfig) MarshalJSON() ([]byte, error)

type PartitionId

PartitionId: Datastore partition ID. A partition ID identifies a grouping of entities. The grouping is always by project and namespace, however the namespace ID may be empty.

A partition ID contains several dimensions: project ID and namespace ID.

type PartitionId struct {
    // NamespaceId: If not empty, the ID of the namespace to which the
    // entities belong.
    NamespaceId string `json:"namespaceId,omitempty"`

    // ProjectId: The ID of the project to which the entities belong.
    ProjectId string `json:"projectId,omitempty"`

    // ForceSendFields is a list of field names (e.g. "NamespaceId") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "NamespaceId") to include
    // in API requests with the JSON null value. By default, fields with
    // empty values are omitted from API requests. However, any field with
    // an empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*PartitionId) MarshalJSON

func (s *PartitionId) MarshalJSON() ([]byte, error)

type PathElement

PathElement: A (kind, ID/name) pair used to construct a key path.

If either name or ID is set, the element is complete. If neither is set, the element is incomplete.

type PathElement struct {
    // Id: The auto-allocated ID of the entity.
    // Never equal to zero. Values less than zero are discouraged and may
    // not
    // be supported in the future.
    Id int64 `json:"id,omitempty,string"`

    // Kind: The kind of the entity.
    // A kind matching regex `__.*__` is reserved/read-only.
    // A kind must not contain more than 1500 bytes when UTF-8
    // encoded.
    // Cannot be "".
    Kind string `json:"kind,omitempty"`

    // Name: The name of the entity.
    // A name matching regex `__.*__` is reserved/read-only.
    // A name must not be more than 1500 bytes when UTF-8 encoded.
    // Cannot be "".
    Name string `json:"name,omitempty"`

    // ForceSendFields is a list of field names (e.g. "Id") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "Id") to include in API
    // requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*PathElement) MarshalJSON

func (s *PathElement) MarshalJSON() ([]byte, error)

type Projection

Projection: A representation of a Datastore property in a projection.

type Projection struct {
    // Property: The property to project.
    Property *PropertyReference `json:"property,omitempty"`

    // ForceSendFields is a list of field names (e.g. "Property") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "Property") to include in
    // API requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*Projection) MarshalJSON

func (s *Projection) MarshalJSON() ([]byte, error)

type PropertyReference

PropertyReference: A reference to a property relative to the Datastore kind expressions.

type PropertyReference struct {
    // Name: The name of the property.
    // If name includes "."s, it may be interpreted as a property name path.
    Name string `json:"name,omitempty"`

    // ForceSendFields is a list of field names (e.g. "Name") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "Name") to include in API
    // requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*PropertyReference) MarshalJSON

func (s *PropertyReference) MarshalJSON() ([]byte, error)

type Range

Range: Generic half-open interval [start, end)

type Range struct {
    // End: Index of the last character of the range (exclusive).
    End int64 `json:"end,omitempty,string"`

    // Start: Index of the first character of the range (inclusive).
    Start int64 `json:"start,omitempty,string"`

    // ForceSendFields is a list of field names (e.g. "End") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "End") to include in API
    // requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*Range) MarshalJSON

func (s *Range) MarshalJSON() ([]byte, error)

type RecordKey

RecordKey: Message for a unique key indicating a record that contains a finding.

type RecordKey struct {
    CloudStorageKey *CloudStorageKey `json:"cloudStorageKey,omitempty"`

    DatastoreKey *DatastoreKey `json:"datastoreKey,omitempty"`

    // ForceSendFields is a list of field names (e.g. "CloudStorageKey") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "CloudStorageKey") to
    // include in API requests with the JSON null value. By default, fields
    // with empty values are omitted from API requests. However, any field
    // with an empty value appearing in NullFields will be sent to the
    // server as null. It is an error if a field in this list has a
    // non-empty value. This may be used to include null fields in Patch
    // requests.
    NullFields []string `json:"-"`
}

func (*RecordKey) MarshalJSON

func (s *RecordKey) MarshalJSON() ([]byte, error)

type RedactContentRequest

RedactContentRequest: Request to search for potentially sensitive info in a list of items and replace it with a default or provided content.

type RedactContentRequest struct {
    // InspectConfig: Configuration for the inspector.
    InspectConfig *InspectConfig `json:"inspectConfig,omitempty"`

    // Items: The list of items to inspect. Up to 100 are allowed per
    // request.
    Items []*ContentItem `json:"items,omitempty"`

    // ReplaceConfigs: The strings to replace findings with. Must specify at
    // least one.
    ReplaceConfigs []*ReplaceConfig `json:"replaceConfigs,omitempty"`

    // ForceSendFields is a list of field names (e.g. "InspectConfig") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "InspectConfig") to include
    // in API requests with the JSON null value. By default, fields with
    // empty values are omitted from API requests. However, any field with
    // an empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*RedactContentRequest) MarshalJSON

func (s *RedactContentRequest) MarshalJSON() ([]byte, error)

type RedactContentResponse

RedactContentResponse: Results of redacting a list of items.

type RedactContentResponse struct {
    // Items: The redacted content.
    Items []*ContentItem `json:"items,omitempty"`

    // ServerResponse contains the HTTP response code and headers from the
    // server.
    googleapi.ServerResponse `json:"-"`

    // ForceSendFields is a list of field names (e.g. "Items") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "Items") to include in API
    // requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*RedactContentResponse) MarshalJSON

func (s *RedactContentResponse) MarshalJSON() ([]byte, error)

type ReplaceConfig

type ReplaceConfig struct {
    // InfoType: Type of information to replace. Only one ReplaceConfig per
    // info_type
    // should be provided. If ReplaceConfig does not have an info_type, the
    // DLP
    // API matches it against all info_types that are found but not
    // specified in
    // another ReplaceConfig.
    InfoType *InfoType `json:"infoType,omitempty"`

    // ReplaceWith: Content replacing sensitive information of given type.
    // Max 256 chars.
    ReplaceWith string `json:"replaceWith,omitempty"`

    // ForceSendFields is a list of field names (e.g. "InfoType") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "InfoType") to include in
    // API requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*ReplaceConfig) MarshalJSON

func (s *ReplaceConfig) MarshalJSON() ([]byte, error)

type RootCategoriesInfoTypesListCall

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

func (*RootCategoriesInfoTypesListCall) Context

func (c *RootCategoriesInfoTypesListCall) Context(ctx context.Context) *RootCategoriesInfoTypesListCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*RootCategoriesInfoTypesListCall) Do

func (c *RootCategoriesInfoTypesListCall) Do(opts ...googleapi.CallOption) (*ListInfoTypesResponse, error)

Do executes the "dlp.rootCategories.infoTypes.list" call. Exactly one of *ListInfoTypesResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ListInfoTypesResponse.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 (*RootCategoriesInfoTypesListCall) Fields

func (c *RootCategoriesInfoTypesListCall) Fields(s ...googleapi.Field) *RootCategoriesInfoTypesListCall

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

func (*RootCategoriesInfoTypesListCall) Header

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

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

func (*RootCategoriesInfoTypesListCall) IfNoneMatch

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

IfNoneMatch sets the 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. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

func (*RootCategoriesInfoTypesListCall) LanguageCode

func (c *RootCategoriesInfoTypesListCall) LanguageCode(languageCode string) *RootCategoriesInfoTypesListCall

LanguageCode sets the optional parameter "languageCode": Optional BCP-47 language code for localized info type friendly names. If omitted, or if localized strings are not available, en-US strings will be returned.

type RootCategoriesInfoTypesService

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

func NewRootCategoriesInfoTypesService

func NewRootCategoriesInfoTypesService(s *Service) *RootCategoriesInfoTypesService

func (*RootCategoriesInfoTypesService) List

func (r *RootCategoriesInfoTypesService) List(category string) *RootCategoriesInfoTypesListCall

List: Returns sensitive information types for given category.

type RootCategoriesListCall

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

func (*RootCategoriesListCall) Context

func (c *RootCategoriesListCall) Context(ctx context.Context) *RootCategoriesListCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*RootCategoriesListCall) Do

func (c *RootCategoriesListCall) Do(opts ...googleapi.CallOption) (*ListRootCategoriesResponse, error)

Do executes the "dlp.rootCategories.list" call. Exactly one of *ListRootCategoriesResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ListRootCategoriesResponse.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 (*RootCategoriesListCall) Fields

func (c *RootCategoriesListCall) Fields(s ...googleapi.Field) *RootCategoriesListCall

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

func (*RootCategoriesListCall) Header

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

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

func (*RootCategoriesListCall) IfNoneMatch

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

IfNoneMatch sets the 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. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

func (*RootCategoriesListCall) LanguageCode

func (c *RootCategoriesListCall) LanguageCode(languageCode string) *RootCategoriesListCall

LanguageCode sets the optional parameter "languageCode": Optional language code for localized friendly category names. If omitted or if localized strings are not available, en-US strings will be returned.

type RootCategoriesService

type RootCategoriesService struct {
    InfoTypes *RootCategoriesInfoTypesService
    // contains filtered or unexported fields
}

func NewRootCategoriesService

func NewRootCategoriesService(s *Service) *RootCategoriesService

func (*RootCategoriesService) List

func (r *RootCategoriesService) List() *RootCategoriesListCall

List: Returns the list of root categories of sensitive information.

type Service

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

    Content *ContentService

    Inspect *InspectService

    RootCategories *RootCategoriesService
    // contains filtered or unexported fields
}

func New

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

type Status

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). The error model is designed to be:

- Simple to use and understand for most users - Flexible enough to meet unexpected needs

# Overview

The `Status` message contains three pieces of data: error code, error message, and error details. The error code should be an enum value of google.rpc.Code, but it may accept additional error codes if needed. The error message should be a developer-facing English message that helps developers *understand* and *resolve* the error. If a localized user-facing error message is needed, put the localized message in the error details or localize it in the client. The optional error details may contain arbitrary information about the error. There is a predefined set of error detail types in the package `google.rpc` that can be used for common error conditions.

# Language mapping

The `Status` message is the logical representation of the error model, but it is not necessarily the actual wire format. When the `Status` message is exposed in different client libraries and different wire protocols, it can be mapped differently. For example, it will likely be mapped to some exceptions in Java, but more likely mapped to some error codes in C.

# Other uses

The error model and the `Status` message can be used in a variety of environments, either with or without APIs, to provide a consistent developer experience across different environments.

Example uses of this error model include:

- Partial errors. If a service needs to return partial errors to the client,

it may embed the `Status` in the normal response to indicate the

partial

errors.

- Workflow errors. A typical workflow has multiple steps. Each step may

have a `Status` message for error reporting.

- Batch operations. If a client uses batch request and batch response, the

`Status` message should be used directly inside batch response,

one for

each error sub-response.

- Asynchronous operations. If an API call embeds asynchronous operation

results in its response, the status of those operations should

be

represented directly using the `Status` message.

- Logging. If some API errors are stored in logs, the message `Status` could

be used directly after any stripping needed for security/privacy

reasons.

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 will
    // be 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 values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    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. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*Status) MarshalJSON

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

type StorageConfig

StorageConfig: Shared message indicating Cloud storage type.

type StorageConfig struct {
    // CloudStorageOptions: Google Cloud Storage options specification.
    CloudStorageOptions *CloudStorageOptions `json:"cloudStorageOptions,omitempty"`

    // DatastoreOptions: Google Cloud Datastore options specification.
    DatastoreOptions *DatastoreOptions `json:"datastoreOptions,omitempty"`

    // ForceSendFields is a list of field names (e.g. "CloudStorageOptions")
    // to unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "CloudStorageOptions") to
    // include in API requests with the JSON null value. By default, fields
    // with empty values are omitted from API requests. However, any field
    // with an empty value appearing in NullFields will be sent to the
    // server as null. It is an error if a field in this list has a
    // non-empty value. This may be used to include null fields in Patch
    // requests.
    NullFields []string `json:"-"`
}

func (*StorageConfig) MarshalJSON

func (s *StorageConfig) MarshalJSON() ([]byte, error)