securitycenter

package
v0.0.0-...-5fc9ac5 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2018 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Finding_State_name = map[int32]string{
	0: "STATE_UNSPECIFIED",
	1: "ACTIVE",
	2: "INACTIVE",
}
View Source
var Finding_State_value = map[string]int32{
	"STATE_UNSPECIFIED": 0,
	"ACTIVE":            1,
	"INACTIVE":          2,
}
View Source
var ListAssetsResponse_ListAssetsResult_State_name = map[int32]string{
	0: "STATE_UNSPECIFIED",
	1: "UNUSED",
	2: "ADDED",
	3: "REMOVED",
	4: "ACTIVE",
}
View Source
var ListAssetsResponse_ListAssetsResult_State_value = map[string]int32{
	"STATE_UNSPECIFIED": 0,
	"UNUSED":            1,
	"ADDED":             2,
	"REMOVED":           3,
	"ACTIVE":            4,
}
View Source
var OrganizationSettings_AssetDiscoveryConfig_InclusionMode_name = map[int32]string{
	0: "INCLUSION_MODE_UNSPECIFIED",
	1: "INCLUDE_ONLY",
	2: "EXCLUDE",
}
View Source
var OrganizationSettings_AssetDiscoveryConfig_InclusionMode_value = map[string]int32{
	"INCLUSION_MODE_UNSPECIFIED": 0,
	"INCLUDE_ONLY":               1,
	"EXCLUDE":                    2,
}

Functions

func RegisterSecurityCenterServer

func RegisterSecurityCenterServer(s *grpc.Server, srv SecurityCenterServer)

Types

type Asset

type Asset struct {
	// The relative resource name of this asset. See:
	// https://cloud.google.com/apis/design/resource_names#relative_resource_name
	// Example:
	// "organizations/123/assets/456".
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Security Center managed properties. These properties are managed by
	// Security Center and cannot be modified by the user.
	SecurityCenterProperties *Asset_SecurityCenterProperties `` /* 135-byte string literal not displayed */
	// Resource managed properties. These properties are managed and defined by
	// the Google Cloud Platform resource and cannot be modified by the user.
	ResourceProperties map[string]*_struct.Value `` /* 203-byte string literal not displayed */
	// User specified security marks. These marks are entirely managed by the user
	// and come from the SecurityMarks resource belonging to the asset.
	SecurityMarks *SecurityMarks `protobuf:"bytes,8,opt,name=security_marks,json=securityMarks,proto3" json:"security_marks,omitempty"`
	// The time at which the asset was created in Security Center.
	CreateTime *timestamp.Timestamp `protobuf:"bytes,9,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
	// The time at which the asset was last updated, added, or deleted in Security
	// Center.
	UpdateTime           *timestamp.Timestamp `protobuf:"bytes,10,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
	XXX_NoUnkeyedLiteral struct{}             `json:"-"`
	XXX_unrecognized     []byte               `json:"-"`
	XXX_sizecache        int32                `json:"-"`
}

Security Center's representation of a Google Cloud Platform resource.

The Asset is a resource of Security Center that is meant to capture information regarding a single Google Cloud Platform resource. All modifications to an Asset are only within the context of Security Center and do not effect the referenced Google Cloud Platform resource.

func (*Asset) Descriptor

func (*Asset) Descriptor() ([]byte, []int)

func (*Asset) GetCreateTime

func (m *Asset) GetCreateTime() *timestamp.Timestamp

func (*Asset) GetName

func (m *Asset) GetName() string

func (*Asset) GetResourceProperties

func (m *Asset) GetResourceProperties() map[string]*_struct.Value

func (*Asset) GetSecurityCenterProperties

func (m *Asset) GetSecurityCenterProperties() *Asset_SecurityCenterProperties

func (*Asset) GetSecurityMarks

func (m *Asset) GetSecurityMarks() *SecurityMarks

func (*Asset) GetUpdateTime

func (m *Asset) GetUpdateTime() *timestamp.Timestamp

func (*Asset) ProtoMessage

func (*Asset) ProtoMessage()

func (*Asset) Reset

func (m *Asset) Reset()

func (*Asset) String

func (m *Asset) String() string

func (*Asset) XXX_DiscardUnknown

func (m *Asset) XXX_DiscardUnknown()

func (*Asset) XXX_Marshal

func (m *Asset) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Asset) XXX_Merge

func (m *Asset) XXX_Merge(src proto.Message)

func (*Asset) XXX_Size

func (m *Asset) XXX_Size() int

func (*Asset) XXX_Unmarshal

func (m *Asset) XXX_Unmarshal(b []byte) error

type Asset_SecurityCenterProperties

type Asset_SecurityCenterProperties struct {
	// The full resource name of the Google Cloud Platform resource this asset
	// represents. This field is immutable after create time. See:
	// https://cloud.google.com/apis/design/resource_names#full_resource_name
	ResourceName string `protobuf:"bytes,1,opt,name=resource_name,json=resourceName,proto3" json:"resource_name,omitempty"`
	// The type of the Google Cloud resource. Examples include: APPLICATION,
	// PROJECT, and ORGANIZATION. This is a case insensitive field defined by
	// Security Center and/or the producer of the resource and is immutable
	// after create time.
	ResourceType string `protobuf:"bytes,2,opt,name=resource_type,json=resourceType,proto3" json:"resource_type,omitempty"`
	// The full resource name of the immediate parent of the resource. See:
	// https://cloud.google.com/apis/design/resource_names#full_resource_name
	ResourceParent string `protobuf:"bytes,3,opt,name=resource_parent,json=resourceParent,proto3" json:"resource_parent,omitempty"`
	// The full resource name of the project the resource belongs to. See:
	// https://cloud.google.com/apis/design/resource_names#full_resource_name
	ResourceProject string `protobuf:"bytes,4,opt,name=resource_project,json=resourceProject,proto3" json:"resource_project,omitempty"`
	// Owners of the Google Cloud resource.
	ResourceOwners       []string `protobuf:"bytes,5,rep,name=resource_owners,json=resourceOwners,proto3" json:"resource_owners,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Security Center managed properties. These properties are managed by Security Center and cannot be modified by the user.

func (*Asset_SecurityCenterProperties) Descriptor

func (*Asset_SecurityCenterProperties) Descriptor() ([]byte, []int)

func (*Asset_SecurityCenterProperties) GetResourceName

func (m *Asset_SecurityCenterProperties) GetResourceName() string

func (*Asset_SecurityCenterProperties) GetResourceOwners

func (m *Asset_SecurityCenterProperties) GetResourceOwners() []string

func (*Asset_SecurityCenterProperties) GetResourceParent

func (m *Asset_SecurityCenterProperties) GetResourceParent() string

func (*Asset_SecurityCenterProperties) GetResourceProject

func (m *Asset_SecurityCenterProperties) GetResourceProject() string

func (*Asset_SecurityCenterProperties) GetResourceType

func (m *Asset_SecurityCenterProperties) GetResourceType() string

func (*Asset_SecurityCenterProperties) ProtoMessage

func (*Asset_SecurityCenterProperties) ProtoMessage()

func (*Asset_SecurityCenterProperties) Reset

func (m *Asset_SecurityCenterProperties) Reset()

func (*Asset_SecurityCenterProperties) String

func (*Asset_SecurityCenterProperties) XXX_DiscardUnknown

func (m *Asset_SecurityCenterProperties) XXX_DiscardUnknown()

func (*Asset_SecurityCenterProperties) XXX_Marshal

func (m *Asset_SecurityCenterProperties) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Asset_SecurityCenterProperties) XXX_Merge

func (m *Asset_SecurityCenterProperties) XXX_Merge(src proto.Message)

func (*Asset_SecurityCenterProperties) XXX_Size

func (m *Asset_SecurityCenterProperties) XXX_Size() int

func (*Asset_SecurityCenterProperties) XXX_Unmarshal

func (m *Asset_SecurityCenterProperties) XXX_Unmarshal(b []byte) error

type CreateFindingRequest

type CreateFindingRequest struct {
	// Resource name of the new finding's parent. Its format should be
	// "organizations/[organization_id]/sources/[source_id]".
	Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
	// Unique identifier provided by the client within the parent scope.
	// It must be alphanumeric and less than or equal to 32 characters and
	// greater than 0 characters in length.
	FindingId string `protobuf:"bytes,2,opt,name=finding_id,json=findingId,proto3" json:"finding_id,omitempty"`
	// The Finding being created. The name and security_marks will be ignored as
	// they are both output only fields on this resource.
	Finding              *Finding `protobuf:"bytes,3,opt,name=finding,proto3" json:"finding,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Request message for creating a finding.

func (*CreateFindingRequest) Descriptor

func (*CreateFindingRequest) Descriptor() ([]byte, []int)

func (*CreateFindingRequest) GetFinding

func (m *CreateFindingRequest) GetFinding() *Finding

func (*CreateFindingRequest) GetFindingId

func (m *CreateFindingRequest) GetFindingId() string

func (*CreateFindingRequest) GetParent

func (m *CreateFindingRequest) GetParent() string

func (*CreateFindingRequest) ProtoMessage

func (*CreateFindingRequest) ProtoMessage()

func (*CreateFindingRequest) Reset

func (m *CreateFindingRequest) Reset()

func (*CreateFindingRequest) String

func (m *CreateFindingRequest) String() string

func (*CreateFindingRequest) XXX_DiscardUnknown

func (m *CreateFindingRequest) XXX_DiscardUnknown()

func (*CreateFindingRequest) XXX_Marshal

func (m *CreateFindingRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CreateFindingRequest) XXX_Merge

func (m *CreateFindingRequest) XXX_Merge(src proto.Message)

func (*CreateFindingRequest) XXX_Size

func (m *CreateFindingRequest) XXX_Size() int

func (*CreateFindingRequest) XXX_Unmarshal

func (m *CreateFindingRequest) XXX_Unmarshal(b []byte) error

type CreateSourceRequest

type CreateSourceRequest struct {
	// Resource name of the new source's parent. Its format should be
	// "organizations/[organization_id]".
	Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
	// The Source being created, only the display_name and description will be
	// used. All other fields will be ignored.
	Source               *Source  `protobuf:"bytes,2,opt,name=source,proto3" json:"source,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Request message for creating a source.

func (*CreateSourceRequest) Descriptor

func (*CreateSourceRequest) Descriptor() ([]byte, []int)

func (*CreateSourceRequest) GetParent

func (m *CreateSourceRequest) GetParent() string

func (*CreateSourceRequest) GetSource

func (m *CreateSourceRequest) GetSource() *Source

func (*CreateSourceRequest) ProtoMessage

func (*CreateSourceRequest) ProtoMessage()

func (*CreateSourceRequest) Reset

func (m *CreateSourceRequest) Reset()

func (*CreateSourceRequest) String

func (m *CreateSourceRequest) String() string

func (*CreateSourceRequest) XXX_DiscardUnknown

func (m *CreateSourceRequest) XXX_DiscardUnknown()

func (*CreateSourceRequest) XXX_Marshal

func (m *CreateSourceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CreateSourceRequest) XXX_Merge

func (m *CreateSourceRequest) XXX_Merge(src proto.Message)

func (*CreateSourceRequest) XXX_Size

func (m *CreateSourceRequest) XXX_Size() int

func (*CreateSourceRequest) XXX_Unmarshal

func (m *CreateSourceRequest) XXX_Unmarshal(b []byte) error

type Finding

type Finding struct {
	// The relative resource name of this finding. See:
	// https://cloud.google.com/apis/design/resource_names#relative_resource_name
	// Example:
	// "organizations/123/sources/456/findings/789"
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// The relative resource name of the source the finding belongs to. See:
	// https://cloud.google.com/apis/design/resource_names#relative_resource_name
	// This field is immutable after creation time.
	// For example:
	// "organizations/123/sources/456"
	Parent string `protobuf:"bytes,2,opt,name=parent,proto3" json:"parent,omitempty"`
	// The full resource name of the Google Cloud Platform resource this finding
	// is for. See:
	// https://cloud.google.com/apis/design/resource_names#full_resource_name
	// This field is immutable after creation time.
	ResourceName string `protobuf:"bytes,3,opt,name=resource_name,json=resourceName,proto3" json:"resource_name,omitempty"`
	// The state of the finding.
	State Finding_State `protobuf:"varint,4,opt,name=state,proto3,enum=google.cloud.securitycenter.v1beta1.Finding_State" json:"state,omitempty"`
	// The additional taxonomy group within findings from a give source.
	// This field is immutable after creation time.
	// Example: "XSS_FLASH_INJECTION"
	Category string `protobuf:"bytes,5,opt,name=category,proto3" json:"category,omitempty"`
	// The URI that, if available, points to a web page outside of Security Center
	// where additional information about the finding can be found. This field is
	// guaranteed to be either empty or a well formed url.
	ExternalUri string `protobuf:"bytes,6,opt,name=external_uri,json=externalUri,proto3" json:"external_uri,omitempty"`
	// Source specific properties. These properties are managed by the source
	// writing the finding.
	SourceProperties map[string]*_struct.Value `` /* 197-byte string literal not displayed */
	// Output only. User specified security marks. These marks are entirely
	// managed by the user and come from the SecurityMarks resource belonging to
	// the finding.
	SecurityMarks *SecurityMarks `protobuf:"bytes,8,opt,name=security_marks,json=securityMarks,proto3" json:"security_marks,omitempty"`
	// The time at which the event took place. For example, if the finding
	// represents an open firewall it would capture the time the open firewall was
	// detected.
	EventTime *timestamp.Timestamp `protobuf:"bytes,9,opt,name=event_time,json=eventTime,proto3" json:"event_time,omitempty"`
	// The time at which the finding was created in Security Center.
	CreateTime           *timestamp.Timestamp `protobuf:"bytes,10,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
	XXX_NoUnkeyedLiteral struct{}             `json:"-"`
	XXX_unrecognized     []byte               `json:"-"`
	XXX_sizecache        int32                `json:"-"`
}

Security Center's finding.

A finding is a record of assessment data (security, risk, health or privacy) ingested into Security Center for presentation, notification, analysis, policy testing and enforcement. For example, an XSS vulnerability in an AppEngine application is a finding.

func (*Finding) Descriptor

func (*Finding) Descriptor() ([]byte, []int)

func (*Finding) GetCategory

func (m *Finding) GetCategory() string

func (*Finding) GetCreateTime

func (m *Finding) GetCreateTime() *timestamp.Timestamp

func (*Finding) GetEventTime

func (m *Finding) GetEventTime() *timestamp.Timestamp

func (*Finding) GetExternalUri

func (m *Finding) GetExternalUri() string

func (*Finding) GetName

func (m *Finding) GetName() string

func (*Finding) GetParent

func (m *Finding) GetParent() string

func (*Finding) GetResourceName

func (m *Finding) GetResourceName() string

func (*Finding) GetSecurityMarks

func (m *Finding) GetSecurityMarks() *SecurityMarks

func (*Finding) GetSourceProperties

func (m *Finding) GetSourceProperties() map[string]*_struct.Value

func (*Finding) GetState

func (m *Finding) GetState() Finding_State

func (*Finding) ProtoMessage

func (*Finding) ProtoMessage()

func (*Finding) Reset

func (m *Finding) Reset()

func (*Finding) String

func (m *Finding) String() string

func (*Finding) XXX_DiscardUnknown

func (m *Finding) XXX_DiscardUnknown()

func (*Finding) XXX_Marshal

func (m *Finding) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Finding) XXX_Merge

func (m *Finding) XXX_Merge(src proto.Message)

func (*Finding) XXX_Size

func (m *Finding) XXX_Size() int

func (*Finding) XXX_Unmarshal

func (m *Finding) XXX_Unmarshal(b []byte) error

type Finding_State

type Finding_State int32

The state of the finding.

const (
	// Unspecified state.
	Finding_STATE_UNSPECIFIED Finding_State = 0
	// The finding requires attention and has not been addressed yet.
	Finding_ACTIVE Finding_State = 1
	// The finding has been fixed, triaged as a non-issue or otherwise addressed
	// and is no longer active.
	Finding_INACTIVE Finding_State = 2
)

func (Finding_State) EnumDescriptor

func (Finding_State) EnumDescriptor() ([]byte, []int)

func (Finding_State) String

func (x Finding_State) String() string

type GetOrganizationSettingsRequest

type GetOrganizationSettingsRequest struct {
	// Name of the organization to get organization settings for. Its format is
	// "organizations/[organization_id]/organizationSettings".
	Name                 string   `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Request message for getting organization settings.

func (*GetOrganizationSettingsRequest) Descriptor

func (*GetOrganizationSettingsRequest) Descriptor() ([]byte, []int)

func (*GetOrganizationSettingsRequest) GetName

func (*GetOrganizationSettingsRequest) ProtoMessage

func (*GetOrganizationSettingsRequest) ProtoMessage()

func (*GetOrganizationSettingsRequest) Reset

func (m *GetOrganizationSettingsRequest) Reset()

func (*GetOrganizationSettingsRequest) String

func (*GetOrganizationSettingsRequest) XXX_DiscardUnknown

func (m *GetOrganizationSettingsRequest) XXX_DiscardUnknown()

func (*GetOrganizationSettingsRequest) XXX_Marshal

func (m *GetOrganizationSettingsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GetOrganizationSettingsRequest) XXX_Merge

func (m *GetOrganizationSettingsRequest) XXX_Merge(src proto.Message)

func (*GetOrganizationSettingsRequest) XXX_Size

func (m *GetOrganizationSettingsRequest) XXX_Size() int

func (*GetOrganizationSettingsRequest) XXX_Unmarshal

func (m *GetOrganizationSettingsRequest) XXX_Unmarshal(b []byte) error

type GetSourceRequest

type GetSourceRequest struct {
	// Relative resource name of the source. Its format is
	// "organizations/[organization_id]/source/[source_id]".
	Name                 string   `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Request message for getting a source.

func (*GetSourceRequest) Descriptor

func (*GetSourceRequest) Descriptor() ([]byte, []int)

func (*GetSourceRequest) GetName

func (m *GetSourceRequest) GetName() string

func (*GetSourceRequest) ProtoMessage

func (*GetSourceRequest) ProtoMessage()

func (*GetSourceRequest) Reset

func (m *GetSourceRequest) Reset()

func (*GetSourceRequest) String

func (m *GetSourceRequest) String() string

func (*GetSourceRequest) XXX_DiscardUnknown

func (m *GetSourceRequest) XXX_DiscardUnknown()

func (*GetSourceRequest) XXX_Marshal

func (m *GetSourceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GetSourceRequest) XXX_Merge

func (m *GetSourceRequest) XXX_Merge(src proto.Message)

func (*GetSourceRequest) XXX_Size

func (m *GetSourceRequest) XXX_Size() int

func (*GetSourceRequest) XXX_Unmarshal

func (m *GetSourceRequest) XXX_Unmarshal(b []byte) error

type GroupAssetsRequest

type GroupAssetsRequest struct {
	// Name of the organization to groupBy. Its format is
	// "organizations/[organization_id]".
	Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
	// Expression that defines the filter to apply across assets.
	// The expression is a list of zero or more restrictions combined via logical
	// operators `AND` and `OR`.
	// Parentheses are not supported, and `OR` has higher precedence than `AND`.
	//
	// Restrictions have the form `<field> <operator> <value>` and may have a `-`
	// character in front of them to indicate negation. The fields map to those
	// defined in the Asset resource. Examples include:
	//
	// * name
	// * security_center_properties.resource_name
	// * resource_properties.a_property
	// * security_marks.marks.marka
	//
	// The supported operators are:
	//
	// * `=` for all value types.
	// * `>`, `<`, `>=`, `<=` for integer values.
	// * `:`, meaning substring matching, for strings.
	//
	// The supported value types are:
	//
	// * string literals in quotes.
	// * integer literals without quotes.
	// * boolean literals `true` and `false` without quotes.
	//
	// For example, `resource_properties.size = 100` is a valid filter string.
	Filter string `protobuf:"bytes,2,opt,name=filter,proto3" json:"filter,omitempty"`
	// Expression that defines what assets fields to use for grouping. The string
	// value should follow SQL syntax: comma separated list of fields. For
	// example:
	// "security_center_properties.resource_project,security_center_properties.project".
	//
	// The following fields are supported when compare_duration is not set:
	//
	// * security_center_properties.resource_name
	// * security_center_properties.resource_project
	// * security_center_properties.resource_type
	// * security_center_properties.resource_parent
	//
	// The following fields are supported when compare_duration is set:
	//
	// * security_center_properties.resource_type
	GroupBy string `protobuf:"bytes,3,opt,name=group_by,json=groupBy,proto3" json:"group_by,omitempty"`
	// When compare_duration is set, the Asset's "state" property is updated to
	// indicate whether the asset was added, removed, or remained present during
	// the compare_duration period of time that precedes the read_time. This is
	// the time between (read_time - compare_duration) and read_time.
	//
	// The state value is derived based on the presence of the asset at the two
	// points in time. Intermediate state changes between the two times don't
	// affect the result. For example, the results aren't affected if the asset is
	// removed and re-created again.
	//
	// Possible "state" values when compare_duration is specified:
	//
	// * "ADDED": indicates that the asset was not present before
	//              compare_duration, but present at reference_time.
	// * "REMOVED": indicates that the asset was present at the start of
	//              compare_duration, but not present at reference_time.
	// * "ACTIVE_AT_BOTH": indicates that the asset was present at both the
	//              start and the end of the time period defined by
	//              compare_duration and reference_time.
	//
	// This field is ignored if `state` is not a field in `group_by`.
	CompareDuration *duration.Duration `protobuf:"bytes,4,opt,name=compare_duration,json=compareDuration,proto3" json:"compare_duration,omitempty"`
	// Time used as a reference point when filtering assets. The filter is limited
	// to assets existing at the supplied time and their values are those at that
	// specific time. Absence of this field will default to the API's version of
	// NOW.
	ReadTime *timestamp.Timestamp `protobuf:"bytes,5,opt,name=read_time,json=readTime,proto3" json:"read_time,omitempty"`
	// The value returned by the last `GroupAssetsResponse`; indicates
	// that this is a continuation of a prior `GroupAssets` call, and that the
	// system should return the next page of data.
	PageToken string `protobuf:"bytes,7,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
	// The maximum number of results to return in a single response. Default is
	// 10, minimum is 1, maximum is 1000.
	PageSize             int32    `protobuf:"varint,8,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Request message for grouping by assets.

func (*GroupAssetsRequest) Descriptor

func (*GroupAssetsRequest) Descriptor() ([]byte, []int)

func (*GroupAssetsRequest) GetCompareDuration

func (m *GroupAssetsRequest) GetCompareDuration() *duration.Duration

func (*GroupAssetsRequest) GetFilter

func (m *GroupAssetsRequest) GetFilter() string

func (*GroupAssetsRequest) GetGroupBy

func (m *GroupAssetsRequest) GetGroupBy() string

func (*GroupAssetsRequest) GetPageSize

func (m *GroupAssetsRequest) GetPageSize() int32

func (*GroupAssetsRequest) GetPageToken

func (m *GroupAssetsRequest) GetPageToken() string

func (*GroupAssetsRequest) GetParent

func (m *GroupAssetsRequest) GetParent() string

func (*GroupAssetsRequest) GetReadTime

func (m *GroupAssetsRequest) GetReadTime() *timestamp.Timestamp

func (*GroupAssetsRequest) ProtoMessage

func (*GroupAssetsRequest) ProtoMessage()

func (*GroupAssetsRequest) Reset

func (m *GroupAssetsRequest) Reset()

func (*GroupAssetsRequest) String

func (m *GroupAssetsRequest) String() string

func (*GroupAssetsRequest) XXX_DiscardUnknown

func (m *GroupAssetsRequest) XXX_DiscardUnknown()

func (*GroupAssetsRequest) XXX_Marshal

func (m *GroupAssetsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GroupAssetsRequest) XXX_Merge

func (m *GroupAssetsRequest) XXX_Merge(src proto.Message)

func (*GroupAssetsRequest) XXX_Size

func (m *GroupAssetsRequest) XXX_Size() int

func (*GroupAssetsRequest) XXX_Unmarshal

func (m *GroupAssetsRequest) XXX_Unmarshal(b []byte) error

type GroupAssetsResponse

type GroupAssetsResponse struct {
	// Group results. There exists an element for each existing unique
	// combination of property/values. The element contains a count for the number
	// of times those specific property/values appear.
	GroupByResults []*GroupResult `protobuf:"bytes,1,rep,name=group_by_results,json=groupByResults,proto3" json:"group_by_results,omitempty"`
	// Time used for executing the groupBy request.
	ReadTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=read_time,json=readTime,proto3" json:"read_time,omitempty"`
	// Token to retrieve the next page of results, or empty if there are no more
	// results.
	NextPageToken        string   `protobuf:"bytes,3,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Response message for grouping by assets.

func (*GroupAssetsResponse) Descriptor

func (*GroupAssetsResponse) Descriptor() ([]byte, []int)

func (*GroupAssetsResponse) GetGroupByResults

func (m *GroupAssetsResponse) GetGroupByResults() []*GroupResult

func (*GroupAssetsResponse) GetNextPageToken

func (m *GroupAssetsResponse) GetNextPageToken() string

func (*GroupAssetsResponse) GetReadTime

func (m *GroupAssetsResponse) GetReadTime() *timestamp.Timestamp

func (*GroupAssetsResponse) ProtoMessage

func (*GroupAssetsResponse) ProtoMessage()

func (*GroupAssetsResponse) Reset

func (m *GroupAssetsResponse) Reset()

func (*GroupAssetsResponse) String

func (m *GroupAssetsResponse) String() string

func (*GroupAssetsResponse) XXX_DiscardUnknown

func (m *GroupAssetsResponse) XXX_DiscardUnknown()

func (*GroupAssetsResponse) XXX_Marshal

func (m *GroupAssetsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GroupAssetsResponse) XXX_Merge

func (m *GroupAssetsResponse) XXX_Merge(src proto.Message)

func (*GroupAssetsResponse) XXX_Size

func (m *GroupAssetsResponse) XXX_Size() int

func (*GroupAssetsResponse) XXX_Unmarshal

func (m *GroupAssetsResponse) XXX_Unmarshal(b []byte) error

type GroupFindingsRequest

type GroupFindingsRequest struct {
	// Name of the source to groupBy. Its format is
	// "organizations/[organization_id]/sources/[source_id]". To groupBy across
	// all sources provide a source_id of `-`. For example:
	// organizations/123/sources/-
	Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
	// Expression that defines the filter to apply across findings.
	// The expression is a list of one or more restrictions combined via logical
	// operators `AND` and `OR`.
	// Parentheses are not supported, and `OR` has higher precedence than `AND`.
	//
	// Restrictions have the form `<field> <operator> <value>` and may have a `-`
	// character in front of them to indicate negation. Examples include:
	//
	//  * name
	//  * source_properties.a_property
	//  * security_marks.marks.marka
	//
	// The supported operators are:
	//
	// * `=` for all value types.
	// * `>`, `<`, `>=`, `<=` for integer values.
	// * `:`, meaning substring matching, for strings.
	//
	// The supported value types are:
	//
	// * string literals in quotes.
	// * integer literals without quotes.
	// * boolean literals `true` and `false` without quotes.
	//
	// For example, `source_properties.size = 100` is a valid filter string.
	Filter string `protobuf:"bytes,2,opt,name=filter,proto3" json:"filter,omitempty"`
	// Expression that defines what assets fields to use for grouping (including
	// `state`). The string value should follow SQL syntax: comma separated list
	// of fields. For example:
	// "parent,resource_name".
	//
	// The following fields are supported:
	//
	// * resource_name
	// * category
	// * state
	// * parent
	GroupBy string `protobuf:"bytes,3,opt,name=group_by,json=groupBy,proto3" json:"group_by,omitempty"`
	// Time used as a reference point when filtering findings. The filter is
	// limited to findings existing at the supplied time and their values are
	// those at that specific time. Absence of this field will default to the
	// API's version of NOW.
	ReadTime *timestamp.Timestamp `protobuf:"bytes,4,opt,name=read_time,json=readTime,proto3" json:"read_time,omitempty"`
	// The value returned by the last `GroupFindingsResponse`; indicates
	// that this is a continuation of a prior `GroupFindings` call, and
	// that the system should return the next page of data.
	PageToken string `protobuf:"bytes,5,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
	// The maximum number of results to return in a single response. Default is
	// 10, minimum is 1, maximum is 1000.
	PageSize             int32    `protobuf:"varint,6,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Request message for grouping by findings.

func (*GroupFindingsRequest) Descriptor

func (*GroupFindingsRequest) Descriptor() ([]byte, []int)

func (*GroupFindingsRequest) GetFilter

func (m *GroupFindingsRequest) GetFilter() string

func (*GroupFindingsRequest) GetGroupBy

func (m *GroupFindingsRequest) GetGroupBy() string

func (*GroupFindingsRequest) GetPageSize

func (m *GroupFindingsRequest) GetPageSize() int32

func (*GroupFindingsRequest) GetPageToken

func (m *GroupFindingsRequest) GetPageToken() string

func (*GroupFindingsRequest) GetParent

func (m *GroupFindingsRequest) GetParent() string

func (*GroupFindingsRequest) GetReadTime

func (m *GroupFindingsRequest) GetReadTime() *timestamp.Timestamp

func (*GroupFindingsRequest) ProtoMessage

func (*GroupFindingsRequest) ProtoMessage()

func (*GroupFindingsRequest) Reset

func (m *GroupFindingsRequest) Reset()

func (*GroupFindingsRequest) String

func (m *GroupFindingsRequest) String() string

func (*GroupFindingsRequest) XXX_DiscardUnknown

func (m *GroupFindingsRequest) XXX_DiscardUnknown()

func (*GroupFindingsRequest) XXX_Marshal

func (m *GroupFindingsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GroupFindingsRequest) XXX_Merge

func (m *GroupFindingsRequest) XXX_Merge(src proto.Message)

func (*GroupFindingsRequest) XXX_Size

func (m *GroupFindingsRequest) XXX_Size() int

func (*GroupFindingsRequest) XXX_Unmarshal

func (m *GroupFindingsRequest) XXX_Unmarshal(b []byte) error

type GroupFindingsResponse

type GroupFindingsResponse struct {
	// Group results. There exists an element for each existing unique
	// combination of property/values. The element contains a count for the number
	// of times those specific property/values appear.
	GroupByResults []*GroupResult `protobuf:"bytes,1,rep,name=group_by_results,json=groupByResults,proto3" json:"group_by_results,omitempty"`
	// Time used for executing the groupBy request.
	ReadTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=read_time,json=readTime,proto3" json:"read_time,omitempty"`
	// Token to retrieve the next page of results, or empty if there are no more
	// results.
	NextPageToken        string   `protobuf:"bytes,3,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Response message for group by findings.

func (*GroupFindingsResponse) Descriptor

func (*GroupFindingsResponse) Descriptor() ([]byte, []int)

func (*GroupFindingsResponse) GetGroupByResults

func (m *GroupFindingsResponse) GetGroupByResults() []*GroupResult

func (*GroupFindingsResponse) GetNextPageToken

func (m *GroupFindingsResponse) GetNextPageToken() string

func (*GroupFindingsResponse) GetReadTime

func (m *GroupFindingsResponse) GetReadTime() *timestamp.Timestamp

func (*GroupFindingsResponse) ProtoMessage

func (*GroupFindingsResponse) ProtoMessage()

func (*GroupFindingsResponse) Reset

func (m *GroupFindingsResponse) Reset()

func (*GroupFindingsResponse) String

func (m *GroupFindingsResponse) String() string

func (*GroupFindingsResponse) XXX_DiscardUnknown

func (m *GroupFindingsResponse) XXX_DiscardUnknown()

func (*GroupFindingsResponse) XXX_Marshal

func (m *GroupFindingsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GroupFindingsResponse) XXX_Merge

func (m *GroupFindingsResponse) XXX_Merge(src proto.Message)

func (*GroupFindingsResponse) XXX_Size

func (m *GroupFindingsResponse) XXX_Size() int

func (*GroupFindingsResponse) XXX_Unmarshal

func (m *GroupFindingsResponse) XXX_Unmarshal(b []byte) error

type GroupResult

type GroupResult struct {
	// Properties matching the groupBy fields in the request.
	Properties map[string]*_struct.Value `` /* 161-byte string literal not displayed */
	// Total count of resources for the given properties.
	Count                int64    `protobuf:"varint,2,opt,name=count,proto3" json:"count,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Result containing the properties and count of a groupBy request.

func (*GroupResult) Descriptor

func (*GroupResult) Descriptor() ([]byte, []int)

func (*GroupResult) GetCount

func (m *GroupResult) GetCount() int64

func (*GroupResult) GetProperties

func (m *GroupResult) GetProperties() map[string]*_struct.Value

func (*GroupResult) ProtoMessage

func (*GroupResult) ProtoMessage()

func (*GroupResult) Reset

func (m *GroupResult) Reset()

func (*GroupResult) String

func (m *GroupResult) String() string

func (*GroupResult) XXX_DiscardUnknown

func (m *GroupResult) XXX_DiscardUnknown()

func (*GroupResult) XXX_Marshal

func (m *GroupResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GroupResult) XXX_Merge

func (m *GroupResult) XXX_Merge(src proto.Message)

func (*GroupResult) XXX_Size

func (m *GroupResult) XXX_Size() int

func (*GroupResult) XXX_Unmarshal

func (m *GroupResult) XXX_Unmarshal(b []byte) error

type ListAssetsRequest

type ListAssetsRequest struct {
	// Name of the organization assets should belong to. Its format is
	// "organizations/[organization_id]".
	Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
	// Expression that defines the filter to apply across assets.
	// The expression is a list of zero or more restrictions combined via logical
	// operators `AND` and `OR`.
	// Parentheses are not supported, and `OR` has higher precedence than `AND`.
	//
	// Restrictions have the form `<field> <operator> <value>` and may have a `-`
	// character in front of them to indicate negation. The fields map to those
	// defined in the Asset resource. Examples include:
	//
	// * name
	// * security_center_properties.resource_name
	// * resource_properties.a_property
	// * security_marks.marks.marka
	//
	// The supported operators are:
	//
	// * `=` for all value types.
	// * `>`, `<`, `>=`, `<=` for integer values.
	// * `:`, meaning substring matching, for strings.
	//
	// The supported value types are:
	//
	// * string literals in quotes.
	// * integer literals without quotes.
	// * boolean literals `true` and `false` without quotes.
	//
	// For example, `resource_properties.size = 100` is a valid filter string.
	Filter string `protobuf:"bytes,2,opt,name=filter,proto3" json:"filter,omitempty"`
	// Expression that defines what fields and order to use for sorting. The
	// string value should follow SQL syntax: comma separated list of fields. For
	// example: "name,resource_properties.a_property". The default sorting order
	// is ascending. To specify descending order for a field, a suffix " desc"
	// should be appended to the field name. For example: "name
	// desc,resource_properties.a_property". Redundant space characters in the
	// syntax are insignificant. "name desc,resource_properties.a_property" and "
	// name     desc  ,   resource_properties.a_property  " are equivalent.
	OrderBy string `protobuf:"bytes,3,opt,name=order_by,json=orderBy,proto3" json:"order_by,omitempty"`
	// Time used as a reference point when filtering assets. The filter is limited
	// to assets existing at the supplied time and their values are those at that
	// specific time. Absence of this field will default to the API's version of
	// NOW.
	ReadTime *timestamp.Timestamp `protobuf:"bytes,4,opt,name=read_time,json=readTime,proto3" json:"read_time,omitempty"`
	// When compare_duration is set, the ListAssetResult's "state" attribute is
	// updated to indicate whether the asset was added, removed, or remained
	// present during the compare_duration period of time that precedes the
	// read_time. This is the time between (read_time -
	// compare_duration) and read_time.
	//
	// The state value is derived based on the presence of the asset at the two
	// points in time. Intermediate state changes between the two times don't
	// affect the result. For example, the results aren't affected if the asset is
	// removed and re-created again.
	//
	// Possible "state" values when compare_duration is specified:
	//
	// * "ADDED": indicates that the asset was not present before
	//              compare_duration, but present at read_time.
	// * "REMOVED": indicates that the asset was present at the start of
	//              compare_duration, but not present at read_time.
	// * "ACTIVE": indicates that the asset was present at both the
	//              start and the end of the time period defined by
	//              compare_duration and read_time.
	//
	// If compare_duration is not specified, then the only possible state is
	// "UNUSED", which indicates that the asset is present at read_time.
	CompareDuration *duration.Duration `protobuf:"bytes,5,opt,name=compare_duration,json=compareDuration,proto3" json:"compare_duration,omitempty"`
	// Optional.
	//
	// A field mask to specify the ListAssetsResult fields to be listed in the
	// response.
	// An empty field mask will list all fields.
	FieldMask *field_mask.FieldMask `protobuf:"bytes,7,opt,name=field_mask,json=fieldMask,proto3" json:"field_mask,omitempty"`
	// The value returned by the last `ListAssetsResponse`; indicates
	// that this is a continuation of a prior `ListAssets` call, and
	// that the system should return the next page of data.
	PageToken string `protobuf:"bytes,8,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
	// The maximum number of results to return in a single response. Default is
	// 10, minimum is 1, maximum is 1000.
	PageSize             int32    `protobuf:"varint,9,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Request message for listing assets.

func (*ListAssetsRequest) Descriptor

func (*ListAssetsRequest) Descriptor() ([]byte, []int)

func (*ListAssetsRequest) GetCompareDuration

func (m *ListAssetsRequest) GetCompareDuration() *duration.Duration

func (*ListAssetsRequest) GetFieldMask

func (m *ListAssetsRequest) GetFieldMask() *field_mask.FieldMask

func (*ListAssetsRequest) GetFilter

func (m *ListAssetsRequest) GetFilter() string

func (*ListAssetsRequest) GetOrderBy

func (m *ListAssetsRequest) GetOrderBy() string

func (*ListAssetsRequest) GetPageSize

func (m *ListAssetsRequest) GetPageSize() int32

func (*ListAssetsRequest) GetPageToken

func (m *ListAssetsRequest) GetPageToken() string

func (*ListAssetsRequest) GetParent

func (m *ListAssetsRequest) GetParent() string

func (*ListAssetsRequest) GetReadTime

func (m *ListAssetsRequest) GetReadTime() *timestamp.Timestamp

func (*ListAssetsRequest) ProtoMessage

func (*ListAssetsRequest) ProtoMessage()

func (*ListAssetsRequest) Reset

func (m *ListAssetsRequest) Reset()

func (*ListAssetsRequest) String

func (m *ListAssetsRequest) String() string

func (*ListAssetsRequest) XXX_DiscardUnknown

func (m *ListAssetsRequest) XXX_DiscardUnknown()

func (*ListAssetsRequest) XXX_Marshal

func (m *ListAssetsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ListAssetsRequest) XXX_Merge

func (m *ListAssetsRequest) XXX_Merge(src proto.Message)

func (*ListAssetsRequest) XXX_Size

func (m *ListAssetsRequest) XXX_Size() int

func (*ListAssetsRequest) XXX_Unmarshal

func (m *ListAssetsRequest) XXX_Unmarshal(b []byte) error

type ListAssetsResponse

type ListAssetsResponse struct {
	// Assets matching the list request.
	ListAssetsResults []*ListAssetsResponse_ListAssetsResult `protobuf:"bytes,1,rep,name=list_assets_results,json=listAssetsResults,proto3" json:"list_assets_results,omitempty"`
	// Time used for executing the list request.
	ReadTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=read_time,json=readTime,proto3" json:"read_time,omitempty"`
	// Token to retrieve the next page of results, or empty if there are no more
	// results.
	NextPageToken string `protobuf:"bytes,3,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
	// The total number of assets matching the query.
	TotalSize            int32    `protobuf:"varint,4,opt,name=total_size,json=totalSize,proto3" json:"total_size,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Response message for listing assets.

func (*ListAssetsResponse) Descriptor

func (*ListAssetsResponse) Descriptor() ([]byte, []int)

func (*ListAssetsResponse) GetListAssetsResults

func (m *ListAssetsResponse) GetListAssetsResults() []*ListAssetsResponse_ListAssetsResult

func (*ListAssetsResponse) GetNextPageToken

func (m *ListAssetsResponse) GetNextPageToken() string

func (*ListAssetsResponse) GetReadTime

func (m *ListAssetsResponse) GetReadTime() *timestamp.Timestamp

func (*ListAssetsResponse) GetTotalSize

func (m *ListAssetsResponse) GetTotalSize() int32

func (*ListAssetsResponse) ProtoMessage

func (*ListAssetsResponse) ProtoMessage()

func (*ListAssetsResponse) Reset

func (m *ListAssetsResponse) Reset()

func (*ListAssetsResponse) String

func (m *ListAssetsResponse) String() string

func (*ListAssetsResponse) XXX_DiscardUnknown

func (m *ListAssetsResponse) XXX_DiscardUnknown()

func (*ListAssetsResponse) XXX_Marshal

func (m *ListAssetsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ListAssetsResponse) XXX_Merge

func (m *ListAssetsResponse) XXX_Merge(src proto.Message)

func (*ListAssetsResponse) XXX_Size

func (m *ListAssetsResponse) XXX_Size() int

func (*ListAssetsResponse) XXX_Unmarshal

func (m *ListAssetsResponse) XXX_Unmarshal(b []byte) error

type ListAssetsResponse_ListAssetsResult

type ListAssetsResponse_ListAssetsResult struct {
	// Asset matching the search request.
	Asset *Asset `protobuf:"bytes,1,opt,name=asset,proto3" json:"asset,omitempty"`
	// State of the asset.
	State                ListAssetsResponse_ListAssetsResult_State `` /* 147-byte string literal not displayed */
	XXX_NoUnkeyedLiteral struct{}                                  `json:"-"`
	XXX_unrecognized     []byte                                    `json:"-"`
	XXX_sizecache        int32                                     `json:"-"`
}

Result containing the Asset and its State.

func (*ListAssetsResponse_ListAssetsResult) Descriptor

func (*ListAssetsResponse_ListAssetsResult) Descriptor() ([]byte, []int)

func (*ListAssetsResponse_ListAssetsResult) GetAsset

func (*ListAssetsResponse_ListAssetsResult) GetState

func (*ListAssetsResponse_ListAssetsResult) ProtoMessage

func (*ListAssetsResponse_ListAssetsResult) ProtoMessage()

func (*ListAssetsResponse_ListAssetsResult) Reset

func (*ListAssetsResponse_ListAssetsResult) String

func (*ListAssetsResponse_ListAssetsResult) XXX_DiscardUnknown

func (m *ListAssetsResponse_ListAssetsResult) XXX_DiscardUnknown()

func (*ListAssetsResponse_ListAssetsResult) XXX_Marshal

func (m *ListAssetsResponse_ListAssetsResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ListAssetsResponse_ListAssetsResult) XXX_Merge

func (*ListAssetsResponse_ListAssetsResult) XXX_Size

func (*ListAssetsResponse_ListAssetsResult) XXX_Unmarshal

func (m *ListAssetsResponse_ListAssetsResult) XXX_Unmarshal(b []byte) error

type ListAssetsResponse_ListAssetsResult_State

type ListAssetsResponse_ListAssetsResult_State int32

State of the asset.

When querying across two points in time this describes the change between the two points: ADDED, REMOVED, or ACTIVE. If there was no compare_duration supplied in the request the state should be: UNUSED

const (
	// Unspecified state.
	ListAssetsResponse_ListAssetsResult_STATE_UNSPECIFIED ListAssetsResponse_ListAssetsResult_State = 0
	// Request did not specify use of this field in the result.
	ListAssetsResponse_ListAssetsResult_UNUSED ListAssetsResponse_ListAssetsResult_State = 1
	// Asset was added between the points in time.
	ListAssetsResponse_ListAssetsResult_ADDED ListAssetsResponse_ListAssetsResult_State = 2
	// Asset was removed between the points in time.
	ListAssetsResponse_ListAssetsResult_REMOVED ListAssetsResponse_ListAssetsResult_State = 3
	// Asset was active at both point(s) in time.
	ListAssetsResponse_ListAssetsResult_ACTIVE ListAssetsResponse_ListAssetsResult_State = 4
)

func (ListAssetsResponse_ListAssetsResult_State) EnumDescriptor

func (ListAssetsResponse_ListAssetsResult_State) EnumDescriptor() ([]byte, []int)

func (ListAssetsResponse_ListAssetsResult_State) String

type ListFindingsRequest

type ListFindingsRequest struct {
	// Name of the source the findings belong to. Its format is
	// "organizations/[organization_id]/sources/[source_id]". To list across all
	// sources provide a source_id of `-`. For example:
	// organizations/123/sources/-
	Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
	// Expression that defines the filter to apply across findings.
	// The expression is a list of one or more restrictions combined via logical
	// operators `AND` and `OR`.
	// Parentheses are not supported, and `OR` has higher precedence than `AND`.
	//
	// Restrictions have the form `<field> <operator> <value>` and may have a `-`
	// character in front of them to indicate negation. Examples include:
	//
	//  * name
	//  * source_properties.a_property
	//  * security_marks.marks.marka
	//
	// The supported operators are:
	//
	// * `=` for all value types.
	// * `>`, `<`, `>=`, `<=` for integer values.
	// * `:`, meaning substring matching, for strings.
	//
	// The supported value types are:
	//
	// * string literals in quotes.
	// * integer literals without quotes.
	// * boolean literals `true` and `false` without quotes.
	//
	// For example, `source_properties.size = 100` is a valid filter string.
	Filter string `protobuf:"bytes,2,opt,name=filter,proto3" json:"filter,omitempty"`
	// Expression that defines what fields and order to use for sorting. The
	// string value should follow SQL syntax: comma separated list of fields. For
	// example: "name,resource_properties.a_property". The default sorting order
	// is ascending. To specify descending order for a field, a suffix " desc"
	// should be appended to the field name. For example: "name
	// desc,source_properties.a_property". Redundant space characters in the
	// syntax are insignificant. "name desc,source_properties.a_property" and "
	// name     desc  ,   source_properties.a_property  " are equivalent.
	OrderBy string `protobuf:"bytes,3,opt,name=order_by,json=orderBy,proto3" json:"order_by,omitempty"`
	// Time used as a reference point when filtering findings. The filter is
	// limited to findings existing at the supplied time and their values are
	// those at that specific time. Absence of this field will default to the
	// API's version of NOW.
	ReadTime *timestamp.Timestamp `protobuf:"bytes,4,opt,name=read_time,json=readTime,proto3" json:"read_time,omitempty"`
	// Optional.
	//
	// A field mask to specify the Finding fields to be listed in the response.
	// An empty field mask will list all fields.
	FieldMask *field_mask.FieldMask `protobuf:"bytes,5,opt,name=field_mask,json=fieldMask,proto3" json:"field_mask,omitempty"`
	// The value returned by the last `ListFindingsResponse`; indicates
	// that this is a continuation of a prior `ListFindings` call, and
	// that the system should return the next page of data.
	PageToken string `protobuf:"bytes,6,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
	// The maximum number of results to return in a single response. Default is
	// 10, minimum is 1, maximum is 1000.
	PageSize             int32    `protobuf:"varint,7,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Request message for listing findings.

func (*ListFindingsRequest) Descriptor

func (*ListFindingsRequest) Descriptor() ([]byte, []int)

func (*ListFindingsRequest) GetFieldMask

func (m *ListFindingsRequest) GetFieldMask() *field_mask.FieldMask

func (*ListFindingsRequest) GetFilter

func (m *ListFindingsRequest) GetFilter() string

func (*ListFindingsRequest) GetOrderBy

func (m *ListFindingsRequest) GetOrderBy() string

func (*ListFindingsRequest) GetPageSize

func (m *ListFindingsRequest) GetPageSize() int32

func (*ListFindingsRequest) GetPageToken

func (m *ListFindingsRequest) GetPageToken() string

func (*ListFindingsRequest) GetParent

func (m *ListFindingsRequest) GetParent() string

func (*ListFindingsRequest) GetReadTime

func (m *ListFindingsRequest) GetReadTime() *timestamp.Timestamp

func (*ListFindingsRequest) ProtoMessage

func (*ListFindingsRequest) ProtoMessage()

func (*ListFindingsRequest) Reset

func (m *ListFindingsRequest) Reset()

func (*ListFindingsRequest) String

func (m *ListFindingsRequest) String() string

func (*ListFindingsRequest) XXX_DiscardUnknown

func (m *ListFindingsRequest) XXX_DiscardUnknown()

func (*ListFindingsRequest) XXX_Marshal

func (m *ListFindingsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ListFindingsRequest) XXX_Merge

func (m *ListFindingsRequest) XXX_Merge(src proto.Message)

func (*ListFindingsRequest) XXX_Size

func (m *ListFindingsRequest) XXX_Size() int

func (*ListFindingsRequest) XXX_Unmarshal

func (m *ListFindingsRequest) XXX_Unmarshal(b []byte) error

type ListFindingsResponse

type ListFindingsResponse struct {
	// Findings matching the list request.
	Findings []*Finding `protobuf:"bytes,1,rep,name=findings,proto3" json:"findings,omitempty"`
	// Time used for executing the list request.
	ReadTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=read_time,json=readTime,proto3" json:"read_time,omitempty"`
	// Token to retrieve the next page of results, or empty if there are no more
	// results.
	NextPageToken string `protobuf:"bytes,3,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
	// The total number of findings matching the query.
	TotalSize            int32    `protobuf:"varint,4,opt,name=total_size,json=totalSize,proto3" json:"total_size,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Response message for listing findings.

func (*ListFindingsResponse) Descriptor

func (*ListFindingsResponse) Descriptor() ([]byte, []int)

func (*ListFindingsResponse) GetFindings

func (m *ListFindingsResponse) GetFindings() []*Finding

func (*ListFindingsResponse) GetNextPageToken

func (m *ListFindingsResponse) GetNextPageToken() string

func (*ListFindingsResponse) GetReadTime

func (m *ListFindingsResponse) GetReadTime() *timestamp.Timestamp

func (*ListFindingsResponse) GetTotalSize

func (m *ListFindingsResponse) GetTotalSize() int32

func (*ListFindingsResponse) ProtoMessage

func (*ListFindingsResponse) ProtoMessage()

func (*ListFindingsResponse) Reset

func (m *ListFindingsResponse) Reset()

func (*ListFindingsResponse) String

func (m *ListFindingsResponse) String() string

func (*ListFindingsResponse) XXX_DiscardUnknown

func (m *ListFindingsResponse) XXX_DiscardUnknown()

func (*ListFindingsResponse) XXX_Marshal

func (m *ListFindingsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ListFindingsResponse) XXX_Merge

func (m *ListFindingsResponse) XXX_Merge(src proto.Message)

func (*ListFindingsResponse) XXX_Size

func (m *ListFindingsResponse) XXX_Size() int

func (*ListFindingsResponse) XXX_Unmarshal

func (m *ListFindingsResponse) XXX_Unmarshal(b []byte) error

type ListSourcesRequest

type ListSourcesRequest struct {
	// Resource name of the parent of sources to list. Its format should be
	// "organizations/[organization_id]".
	Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
	// The value returned by the last `ListSourcesResponse`; indicates
	// that this is a continuation of a prior `ListSources` call, and
	// that the system should return the next page of data.
	PageToken string `protobuf:"bytes,2,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
	// The maximum number of results to return in a single response. Default is
	// 10, minimum is 1, maximum is 1000.
	PageSize             int32    `protobuf:"varint,7,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Request message for listing sources.

func (*ListSourcesRequest) Descriptor

func (*ListSourcesRequest) Descriptor() ([]byte, []int)

func (*ListSourcesRequest) GetPageSize

func (m *ListSourcesRequest) GetPageSize() int32

func (*ListSourcesRequest) GetPageToken

func (m *ListSourcesRequest) GetPageToken() string

func (*ListSourcesRequest) GetParent

func (m *ListSourcesRequest) GetParent() string

func (*ListSourcesRequest) ProtoMessage

func (*ListSourcesRequest) ProtoMessage()

func (*ListSourcesRequest) Reset

func (m *ListSourcesRequest) Reset()

func (*ListSourcesRequest) String

func (m *ListSourcesRequest) String() string

func (*ListSourcesRequest) XXX_DiscardUnknown

func (m *ListSourcesRequest) XXX_DiscardUnknown()

func (*ListSourcesRequest) XXX_Marshal

func (m *ListSourcesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ListSourcesRequest) XXX_Merge

func (m *ListSourcesRequest) XXX_Merge(src proto.Message)

func (*ListSourcesRequest) XXX_Size

func (m *ListSourcesRequest) XXX_Size() int

func (*ListSourcesRequest) XXX_Unmarshal

func (m *ListSourcesRequest) XXX_Unmarshal(b []byte) error

type ListSourcesResponse

type ListSourcesResponse struct {
	// Sources belonging to the requested parent.
	Sources []*Source `protobuf:"bytes,1,rep,name=sources,proto3" json:"sources,omitempty"`
	// Token to retrieve the next page of results, or empty if there are no more
	// results.
	NextPageToken        string   `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Response message for listing sources.

func (*ListSourcesResponse) Descriptor

func (*ListSourcesResponse) Descriptor() ([]byte, []int)

func (*ListSourcesResponse) GetNextPageToken

func (m *ListSourcesResponse) GetNextPageToken() string

func (*ListSourcesResponse) GetSources

func (m *ListSourcesResponse) GetSources() []*Source

func (*ListSourcesResponse) ProtoMessage

func (*ListSourcesResponse) ProtoMessage()

func (*ListSourcesResponse) Reset

func (m *ListSourcesResponse) Reset()

func (*ListSourcesResponse) String

func (m *ListSourcesResponse) String() string

func (*ListSourcesResponse) XXX_DiscardUnknown

func (m *ListSourcesResponse) XXX_DiscardUnknown()

func (*ListSourcesResponse) XXX_Marshal

func (m *ListSourcesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ListSourcesResponse) XXX_Merge

func (m *ListSourcesResponse) XXX_Merge(src proto.Message)

func (*ListSourcesResponse) XXX_Size

func (m *ListSourcesResponse) XXX_Size() int

func (*ListSourcesResponse) XXX_Unmarshal

func (m *ListSourcesResponse) XXX_Unmarshal(b []byte) error

type OrganizationSettings

type OrganizationSettings struct {
	// The relative resource name of the settings. See:
	// https://cloud.google.com/apis/design/resource_names#relative_resource_name
	// Example:
	// "organizations/123/organizationSettings".
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// A flag indicating whether Asset Discovery should be enabled. If the flag is
	// set to true then discovery of assets will occur. If it is set to false all
	// historical assets will remain but discovery of future assets will not
	// occur.
	EnableAssetDiscovery bool `protobuf:"varint,2,opt,name=enable_asset_discovery,json=enableAssetDiscovery,proto3" json:"enable_asset_discovery,omitempty"`
	// The configuration used for Asset Discovery runs.
	AssetDiscoveryConfig *OrganizationSettings_AssetDiscoveryConfig `protobuf:"bytes,3,opt,name=asset_discovery_config,json=assetDiscoveryConfig,proto3" json:"asset_discovery_config,omitempty"`
	XXX_NoUnkeyedLiteral struct{}                                   `json:"-"`
	XXX_unrecognized     []byte                                     `json:"-"`
	XXX_sizecache        int32                                      `json:"-"`
}

User specified settings that are attached to the Security Center organization.

func (*OrganizationSettings) Descriptor

func (*OrganizationSettings) Descriptor() ([]byte, []int)

func (*OrganizationSettings) GetAssetDiscoveryConfig

func (*OrganizationSettings) GetEnableAssetDiscovery

func (m *OrganizationSettings) GetEnableAssetDiscovery() bool

func (*OrganizationSettings) GetName

func (m *OrganizationSettings) GetName() string

func (*OrganizationSettings) ProtoMessage

func (*OrganizationSettings) ProtoMessage()

func (*OrganizationSettings) Reset

func (m *OrganizationSettings) Reset()

func (*OrganizationSettings) String

func (m *OrganizationSettings) String() string

func (*OrganizationSettings) XXX_DiscardUnknown

func (m *OrganizationSettings) XXX_DiscardUnknown()

func (*OrganizationSettings) XXX_Marshal

func (m *OrganizationSettings) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*OrganizationSettings) XXX_Merge

func (m *OrganizationSettings) XXX_Merge(src proto.Message)

func (*OrganizationSettings) XXX_Size

func (m *OrganizationSettings) XXX_Size() int

func (*OrganizationSettings) XXX_Unmarshal

func (m *OrganizationSettings) XXX_Unmarshal(b []byte) error

type OrganizationSettings_AssetDiscoveryConfig

type OrganizationSettings_AssetDiscoveryConfig struct {
	// The project ids to use for filtering asset discovery.
	ProjectIds []string `protobuf:"bytes,1,rep,name=project_ids,json=projectIds,proto3" json:"project_ids,omitempty"`
	// The mode to use for filtering asset discovery.
	InclusionMode        OrganizationSettings_AssetDiscoveryConfig_InclusionMode `` /* 198-byte string literal not displayed */
	XXX_NoUnkeyedLiteral struct{}                                                `json:"-"`
	XXX_unrecognized     []byte                                                  `json:"-"`
	XXX_sizecache        int32                                                   `json:"-"`
}

The configuration used for Asset Discovery runs.

func (*OrganizationSettings_AssetDiscoveryConfig) Descriptor

func (*OrganizationSettings_AssetDiscoveryConfig) Descriptor() ([]byte, []int)

func (*OrganizationSettings_AssetDiscoveryConfig) GetInclusionMode

func (*OrganizationSettings_AssetDiscoveryConfig) GetProjectIds

func (*OrganizationSettings_AssetDiscoveryConfig) ProtoMessage

func (*OrganizationSettings_AssetDiscoveryConfig) Reset

func (*OrganizationSettings_AssetDiscoveryConfig) String

func (*OrganizationSettings_AssetDiscoveryConfig) XXX_DiscardUnknown

func (m *OrganizationSettings_AssetDiscoveryConfig) XXX_DiscardUnknown()

func (*OrganizationSettings_AssetDiscoveryConfig) XXX_Marshal

func (m *OrganizationSettings_AssetDiscoveryConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*OrganizationSettings_AssetDiscoveryConfig) XXX_Merge

func (*OrganizationSettings_AssetDiscoveryConfig) XXX_Size

func (*OrganizationSettings_AssetDiscoveryConfig) XXX_Unmarshal

type OrganizationSettings_AssetDiscoveryConfig_InclusionMode

type OrganizationSettings_AssetDiscoveryConfig_InclusionMode int32

The mode of inclusion when running Asset Discovery. Asset discovery can be limited by explicitly identifying projects to be included or excluded. If INCLUDE_ONLY is set then only those projects (within the organization) and their children are discovered during asset discovery. If EXCLUDE is set then projects not matching those projects are discovered during asset discovery. If neither are set then all projects within the organization are discovered during asset discovery.

const (
	// Unspecified. Setting the mode with this value will disable
	// inclusion/exclusion filtering for Asset Discovery.
	OrganizationSettings_AssetDiscoveryConfig_INCLUSION_MODE_UNSPECIFIED OrganizationSettings_AssetDiscoveryConfig_InclusionMode = 0
	// Asset Discovery will capture only the resources within the projects
	// specified. All other resources will be ignored.
	OrganizationSettings_AssetDiscoveryConfig_INCLUDE_ONLY OrganizationSettings_AssetDiscoveryConfig_InclusionMode = 1
	// Asset Discovery will ignore all resources under the projects specified.
	// All other resources will be retrieved.
	OrganizationSettings_AssetDiscoveryConfig_EXCLUDE OrganizationSettings_AssetDiscoveryConfig_InclusionMode = 2
)

func (OrganizationSettings_AssetDiscoveryConfig_InclusionMode) EnumDescriptor

func (OrganizationSettings_AssetDiscoveryConfig_InclusionMode) String

type RunAssetDiscoveryRequest

type RunAssetDiscoveryRequest struct {
	// Name of the organization to run asset discovery for. Its format is
	// "organizations/[organization_id]".
	Parent               string   `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Request message for running asset discovery for an organization.

func (*RunAssetDiscoveryRequest) Descriptor

func (*RunAssetDiscoveryRequest) Descriptor() ([]byte, []int)

func (*RunAssetDiscoveryRequest) GetParent

func (m *RunAssetDiscoveryRequest) GetParent() string

func (*RunAssetDiscoveryRequest) ProtoMessage

func (*RunAssetDiscoveryRequest) ProtoMessage()

func (*RunAssetDiscoveryRequest) Reset

func (m *RunAssetDiscoveryRequest) Reset()

func (*RunAssetDiscoveryRequest) String

func (m *RunAssetDiscoveryRequest) String() string

func (*RunAssetDiscoveryRequest) XXX_DiscardUnknown

func (m *RunAssetDiscoveryRequest) XXX_DiscardUnknown()

func (*RunAssetDiscoveryRequest) XXX_Marshal

func (m *RunAssetDiscoveryRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*RunAssetDiscoveryRequest) XXX_Merge

func (m *RunAssetDiscoveryRequest) XXX_Merge(src proto.Message)

func (*RunAssetDiscoveryRequest) XXX_Size

func (m *RunAssetDiscoveryRequest) XXX_Size() int

func (*RunAssetDiscoveryRequest) XXX_Unmarshal

func (m *RunAssetDiscoveryRequest) XXX_Unmarshal(b []byte) error

type SecurityCenterClient

type SecurityCenterClient interface {
	// Creates a source.
	CreateSource(ctx context.Context, in *CreateSourceRequest, opts ...grpc.CallOption) (*Source, error)
	// Creates a finding. The corresponding source must exist for finding creation
	// to succeed.
	CreateFinding(ctx context.Context, in *CreateFindingRequest, opts ...grpc.CallOption) (*Finding, error)
	// Gets the access control policy on the specified Source.
	GetIamPolicy(ctx context.Context, in *v1.GetIamPolicyRequest, opts ...grpc.CallOption) (*v1.Policy, error)
	// Gets the settings for an organization.
	GetOrganizationSettings(ctx context.Context, in *GetOrganizationSettingsRequest, opts ...grpc.CallOption) (*OrganizationSettings, error)
	// Gets a source.
	GetSource(ctx context.Context, in *GetSourceRequest, opts ...grpc.CallOption) (*Source, error)
	// Filters an organization's assets and  groups them by their specified
	// properties.
	GroupAssets(ctx context.Context, in *GroupAssetsRequest, opts ...grpc.CallOption) (*GroupAssetsResponse, error)
	// Filters an organization or source's findings and  groups them by their
	// specified properties.
	//
	// To group across all sources provide a `-` as the source id.
	// Example: /v1beta1/organizations/123/sources/-/findings
	GroupFindings(ctx context.Context, in *GroupFindingsRequest, opts ...grpc.CallOption) (*GroupFindingsResponse, error)
	// Lists an organization's assets.
	ListAssets(ctx context.Context, in *ListAssetsRequest, opts ...grpc.CallOption) (*ListAssetsResponse, error)
	// Lists an organization or source's assets.
	//
	// To list across all sources provide a `-` as the source id.
	// Example: /v1beta1/organizations/123/sources/-/findings
	ListFindings(ctx context.Context, in *ListFindingsRequest, opts ...grpc.CallOption) (*ListFindingsResponse, error)
	// Lists all sources belonging to an organization.
	ListSources(ctx context.Context, in *ListSourcesRequest, opts ...grpc.CallOption) (*ListSourcesResponse, error)
	// Runs asset discovery. The discovery is tracked with a long-running
	// operation.
	//
	// This API can only be called with limited frequency for an organization. If
	// it is called too frequently the caller will receive a TOO_MANY_REQUESTS
	// error.
	RunAssetDiscovery(ctx context.Context, in *RunAssetDiscoveryRequest, opts ...grpc.CallOption) (*longrunning.Operation, error)
	// Updates the state of a finding.
	SetFindingState(ctx context.Context, in *SetFindingStateRequest, opts ...grpc.CallOption) (*Finding, error)
	// Sets the access control policy on the specified Source.
	SetIamPolicy(ctx context.Context, in *v1.SetIamPolicyRequest, opts ...grpc.CallOption) (*v1.Policy, error)
	// Returns the permissions that a caller has on the specified source.
	TestIamPermissions(ctx context.Context, in *v1.TestIamPermissionsRequest, opts ...grpc.CallOption) (*v1.TestIamPermissionsResponse, error)
	// Creates or updates a finding. The corresponding source must exist for a
	// finding creation to succeed.
	UpdateFinding(ctx context.Context, in *UpdateFindingRequest, opts ...grpc.CallOption) (*Finding, error)
	// Updates an organization's settings.
	UpdateOrganizationSettings(ctx context.Context, in *UpdateOrganizationSettingsRequest, opts ...grpc.CallOption) (*OrganizationSettings, error)
	// Updates a source.
	UpdateSource(ctx context.Context, in *UpdateSourceRequest, opts ...grpc.CallOption) (*Source, error)
	// Updates security marks.
	UpdateSecurityMarks(ctx context.Context, in *UpdateSecurityMarksRequest, opts ...grpc.CallOption) (*SecurityMarks, error)
}

SecurityCenterClient is the client API for SecurityCenter service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewSecurityCenterClient

func NewSecurityCenterClient(cc *grpc.ClientConn) SecurityCenterClient

type SecurityCenterServer

type SecurityCenterServer interface {
	// Creates a source.
	CreateSource(context.Context, *CreateSourceRequest) (*Source, error)
	// Creates a finding. The corresponding source must exist for finding creation
	// to succeed.
	CreateFinding(context.Context, *CreateFindingRequest) (*Finding, error)
	// Gets the access control policy on the specified Source.
	GetIamPolicy(context.Context, *v1.GetIamPolicyRequest) (*v1.Policy, error)
	// Gets the settings for an organization.
	GetOrganizationSettings(context.Context, *GetOrganizationSettingsRequest) (*OrganizationSettings, error)
	// Gets a source.
	GetSource(context.Context, *GetSourceRequest) (*Source, error)
	// Filters an organization's assets and  groups them by their specified
	// properties.
	GroupAssets(context.Context, *GroupAssetsRequest) (*GroupAssetsResponse, error)
	// Filters an organization or source's findings and  groups them by their
	// specified properties.
	//
	// To group across all sources provide a `-` as the source id.
	// Example: /v1beta1/organizations/123/sources/-/findings
	GroupFindings(context.Context, *GroupFindingsRequest) (*GroupFindingsResponse, error)
	// Lists an organization's assets.
	ListAssets(context.Context, *ListAssetsRequest) (*ListAssetsResponse, error)
	// Lists an organization or source's assets.
	//
	// To list across all sources provide a `-` as the source id.
	// Example: /v1beta1/organizations/123/sources/-/findings
	ListFindings(context.Context, *ListFindingsRequest) (*ListFindingsResponse, error)
	// Lists all sources belonging to an organization.
	ListSources(context.Context, *ListSourcesRequest) (*ListSourcesResponse, error)
	// Runs asset discovery. The discovery is tracked with a long-running
	// operation.
	//
	// This API can only be called with limited frequency for an organization. If
	// it is called too frequently the caller will receive a TOO_MANY_REQUESTS
	// error.
	RunAssetDiscovery(context.Context, *RunAssetDiscoveryRequest) (*longrunning.Operation, error)
	// Updates the state of a finding.
	SetFindingState(context.Context, *SetFindingStateRequest) (*Finding, error)
	// Sets the access control policy on the specified Source.
	SetIamPolicy(context.Context, *v1.SetIamPolicyRequest) (*v1.Policy, error)
	// Returns the permissions that a caller has on the specified source.
	TestIamPermissions(context.Context, *v1.TestIamPermissionsRequest) (*v1.TestIamPermissionsResponse, error)
	// Creates or updates a finding. The corresponding source must exist for a
	// finding creation to succeed.
	UpdateFinding(context.Context, *UpdateFindingRequest) (*Finding, error)
	// Updates an organization's settings.
	UpdateOrganizationSettings(context.Context, *UpdateOrganizationSettingsRequest) (*OrganizationSettings, error)
	// Updates a source.
	UpdateSource(context.Context, *UpdateSourceRequest) (*Source, error)
	// Updates security marks.
	UpdateSecurityMarks(context.Context, *UpdateSecurityMarksRequest) (*SecurityMarks, error)
}

SecurityCenterServer is the server API for SecurityCenter service.

type SecurityMarks

type SecurityMarks struct {
	// The relative resource name of the SecurityMarks. See:
	// https://cloud.google.com/apis/design/resource_names#relative_resource_name
	// Examples:
	// "organizations/123/assets/456/securityMarks"
	// "organizations/123/sources/456/findings/789/securityMarks".
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Mutable user specified security marks belonging to the parent resource.
	// Constraints are as follows:
	//   - Keys and values are treated as case insensitive
	//   - Keys must be alphanumeric and between 1 - 256 characters (inclusive)
	//   - Values have leading and trailing whitespace trimmed, remaining
	//     characters must be between 1 - 4096 characters (inclusive)
	Marks                map[string]string `` /* 151-byte string literal not displayed */
	XXX_NoUnkeyedLiteral struct{}          `json:"-"`
	XXX_unrecognized     []byte            `json:"-"`
	XXX_sizecache        int32             `json:"-"`
}

User specified security marks that are attached to the parent Security Center resource. Security marks are scoped within a Security Center organization -- they are modifiable and viewable by all with proper permissions on the organization.

func (*SecurityMarks) Descriptor

func (*SecurityMarks) Descriptor() ([]byte, []int)

func (*SecurityMarks) GetMarks

func (m *SecurityMarks) GetMarks() map[string]string

func (*SecurityMarks) GetName

func (m *SecurityMarks) GetName() string

func (*SecurityMarks) ProtoMessage

func (*SecurityMarks) ProtoMessage()

func (*SecurityMarks) Reset

func (m *SecurityMarks) Reset()

func (*SecurityMarks) String

func (m *SecurityMarks) String() string

func (*SecurityMarks) XXX_DiscardUnknown

func (m *SecurityMarks) XXX_DiscardUnknown()

func (*SecurityMarks) XXX_Marshal

func (m *SecurityMarks) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SecurityMarks) XXX_Merge

func (m *SecurityMarks) XXX_Merge(src proto.Message)

func (*SecurityMarks) XXX_Size

func (m *SecurityMarks) XXX_Size() int

func (*SecurityMarks) XXX_Unmarshal

func (m *SecurityMarks) XXX_Unmarshal(b []byte) error

type SetFindingStateRequest

type SetFindingStateRequest struct {
	// The relative resource name of the finding. See:
	// https://cloud.google.com/apis/design/resource_names#relative_resource_name
	// Example:
	// "organizations/123/sources/456/finding/789".
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// The desired State of the finding.
	State Finding_State `protobuf:"varint,2,opt,name=state,proto3,enum=google.cloud.securitycenter.v1beta1.Finding_State" json:"state,omitempty"`
	// The time at which the updated state takes effect.
	StartTime            *timestamp.Timestamp `protobuf:"bytes,3,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"`
	XXX_NoUnkeyedLiteral struct{}             `json:"-"`
	XXX_unrecognized     []byte               `json:"-"`
	XXX_sizecache        int32                `json:"-"`
}

Request message for updating a finding's state.

func (*SetFindingStateRequest) Descriptor

func (*SetFindingStateRequest) Descriptor() ([]byte, []int)

func (*SetFindingStateRequest) GetName

func (m *SetFindingStateRequest) GetName() string

func (*SetFindingStateRequest) GetStartTime

func (m *SetFindingStateRequest) GetStartTime() *timestamp.Timestamp

func (*SetFindingStateRequest) GetState

func (m *SetFindingStateRequest) GetState() Finding_State

func (*SetFindingStateRequest) ProtoMessage

func (*SetFindingStateRequest) ProtoMessage()

func (*SetFindingStateRequest) Reset

func (m *SetFindingStateRequest) Reset()

func (*SetFindingStateRequest) String

func (m *SetFindingStateRequest) String() string

func (*SetFindingStateRequest) XXX_DiscardUnknown

func (m *SetFindingStateRequest) XXX_DiscardUnknown()

func (*SetFindingStateRequest) XXX_Marshal

func (m *SetFindingStateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SetFindingStateRequest) XXX_Merge

func (m *SetFindingStateRequest) XXX_Merge(src proto.Message)

func (*SetFindingStateRequest) XXX_Size

func (m *SetFindingStateRequest) XXX_Size() int

func (*SetFindingStateRequest) XXX_Unmarshal

func (m *SetFindingStateRequest) XXX_Unmarshal(b []byte) error

type Source

type Source struct {
	// The relative resource name of this source. See:
	// https://cloud.google.com/apis/design/resource_names#relative_resource_name
	// Example:
	// "organizations/123/sources/456"
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// The source’s display name.
	// A source’s display name must be unique amongst its siblings, e.g.
	// no two sources with the same parent can share the same display name.
	// The display name must start and end with a letter or digit, may contain
	// letters, digits, spaces, hyphens and underscores and can be no longer
	// than 30 characters. This is captured by the regular expression:
	// [\p{L}\p{N}]({\p{L}\p{N}_- ]{0,28}[\p{L}\p{N}])?.
	DisplayName string `protobuf:"bytes,2,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
	// The description of the source (max of 1024 characters).
	// Example:
	// "Cloud Security Scanner is a web security scanner for common
	// vulnerabilities in Google App Engine applications. It can automatically
	// scan and detect four common vulnerabilities, including cross-site-scripting
	// (XSS), Flash injection, mixed content (HTTP in HTTPS), and
	// outdated/insecure libraries."
	Description          string   `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Security Center's finding source. A finding source is an entity or a mechanism that can produce a finding. A source can also be thought of as a container of findings that come from the same scanner, logger, monitor, etc.

func (*Source) Descriptor

func (*Source) Descriptor() ([]byte, []int)

func (*Source) GetDescription

func (m *Source) GetDescription() string

func (*Source) GetDisplayName

func (m *Source) GetDisplayName() string

func (*Source) GetName

func (m *Source) GetName() string

func (*Source) ProtoMessage

func (*Source) ProtoMessage()

func (*Source) Reset

func (m *Source) Reset()

func (*Source) String

func (m *Source) String() string

func (*Source) XXX_DiscardUnknown

func (m *Source) XXX_DiscardUnknown()

func (*Source) XXX_Marshal

func (m *Source) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Source) XXX_Merge

func (m *Source) XXX_Merge(src proto.Message)

func (*Source) XXX_Size

func (m *Source) XXX_Size() int

func (*Source) XXX_Unmarshal

func (m *Source) XXX_Unmarshal(b []byte) error

type UpdateFindingRequest

type UpdateFindingRequest struct {
	// The finding resource to update or create if it does not already exist.
	// parent, security_marks, and update_time will be ignored.
	//
	// In the case of creation, the finding id portion of the name must
	// alphanumeric and less than or equal to 32 characters and greater than 0
	// characters in length.
	Finding *Finding `protobuf:"bytes,1,opt,name=finding,proto3" json:"finding,omitempty"`
	// The FieldMask to use when updating the finding resource. This field is
	// ignored if the finding does not already exist and the finding is created.
	UpdateMask           *field_mask.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
	XXX_NoUnkeyedLiteral struct{}              `json:"-"`
	XXX_unrecognized     []byte                `json:"-"`
	XXX_sizecache        int32                 `json:"-"`
}

Request message for updating or creating a finding.

func (*UpdateFindingRequest) Descriptor

func (*UpdateFindingRequest) Descriptor() ([]byte, []int)

func (*UpdateFindingRequest) GetFinding

func (m *UpdateFindingRequest) GetFinding() *Finding

func (*UpdateFindingRequest) GetUpdateMask

func (m *UpdateFindingRequest) GetUpdateMask() *field_mask.FieldMask

func (*UpdateFindingRequest) ProtoMessage

func (*UpdateFindingRequest) ProtoMessage()

func (*UpdateFindingRequest) Reset

func (m *UpdateFindingRequest) Reset()

func (*UpdateFindingRequest) String

func (m *UpdateFindingRequest) String() string

func (*UpdateFindingRequest) XXX_DiscardUnknown

func (m *UpdateFindingRequest) XXX_DiscardUnknown()

func (*UpdateFindingRequest) XXX_Marshal

func (m *UpdateFindingRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*UpdateFindingRequest) XXX_Merge

func (m *UpdateFindingRequest) XXX_Merge(src proto.Message)

func (*UpdateFindingRequest) XXX_Size

func (m *UpdateFindingRequest) XXX_Size() int

func (*UpdateFindingRequest) XXX_Unmarshal

func (m *UpdateFindingRequest) XXX_Unmarshal(b []byte) error

type UpdateOrganizationSettingsRequest

type UpdateOrganizationSettingsRequest struct {
	// The organization settings resource to update.
	OrganizationSettings *OrganizationSettings `protobuf:"bytes,1,opt,name=organization_settings,json=organizationSettings,proto3" json:"organization_settings,omitempty"`
	// The FieldMask to use when updating the settings resource.
	UpdateMask           *field_mask.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
	XXX_NoUnkeyedLiteral struct{}              `json:"-"`
	XXX_unrecognized     []byte                `json:"-"`
	XXX_sizecache        int32                 `json:"-"`
}

Request message for updating an organization's settings.

func (*UpdateOrganizationSettingsRequest) Descriptor

func (*UpdateOrganizationSettingsRequest) Descriptor() ([]byte, []int)

func (*UpdateOrganizationSettingsRequest) GetOrganizationSettings

func (m *UpdateOrganizationSettingsRequest) GetOrganizationSettings() *OrganizationSettings

func (*UpdateOrganizationSettingsRequest) GetUpdateMask

func (*UpdateOrganizationSettingsRequest) ProtoMessage

func (*UpdateOrganizationSettingsRequest) ProtoMessage()

func (*UpdateOrganizationSettingsRequest) Reset

func (*UpdateOrganizationSettingsRequest) String

func (*UpdateOrganizationSettingsRequest) XXX_DiscardUnknown

func (m *UpdateOrganizationSettingsRequest) XXX_DiscardUnknown()

func (*UpdateOrganizationSettingsRequest) XXX_Marshal

func (m *UpdateOrganizationSettingsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*UpdateOrganizationSettingsRequest) XXX_Merge

func (*UpdateOrganizationSettingsRequest) XXX_Size

func (m *UpdateOrganizationSettingsRequest) XXX_Size() int

func (*UpdateOrganizationSettingsRequest) XXX_Unmarshal

func (m *UpdateOrganizationSettingsRequest) XXX_Unmarshal(b []byte) error

type UpdateSecurityMarksRequest

type UpdateSecurityMarksRequest struct {
	// The security marks resource to update.
	SecurityMarks *SecurityMarks `protobuf:"bytes,1,opt,name=security_marks,json=securityMarks,proto3" json:"security_marks,omitempty"`
	// The FieldMask to use when updating the security marks resource.
	UpdateMask *field_mask.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
	// The time at which the updated SecurityMarks take effect.
	StartTime            *timestamp.Timestamp `protobuf:"bytes,3,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"`
	XXX_NoUnkeyedLiteral struct{}             `json:"-"`
	XXX_unrecognized     []byte               `json:"-"`
	XXX_sizecache        int32                `json:"-"`
}

Request message for updating a SecurityMarks resource.

func (*UpdateSecurityMarksRequest) Descriptor

func (*UpdateSecurityMarksRequest) Descriptor() ([]byte, []int)

func (*UpdateSecurityMarksRequest) GetSecurityMarks

func (m *UpdateSecurityMarksRequest) GetSecurityMarks() *SecurityMarks

func (*UpdateSecurityMarksRequest) GetStartTime

func (m *UpdateSecurityMarksRequest) GetStartTime() *timestamp.Timestamp

func (*UpdateSecurityMarksRequest) GetUpdateMask

func (m *UpdateSecurityMarksRequest) GetUpdateMask() *field_mask.FieldMask

func (*UpdateSecurityMarksRequest) ProtoMessage

func (*UpdateSecurityMarksRequest) ProtoMessage()

func (*UpdateSecurityMarksRequest) Reset

func (m *UpdateSecurityMarksRequest) Reset()

func (*UpdateSecurityMarksRequest) String

func (m *UpdateSecurityMarksRequest) String() string

func (*UpdateSecurityMarksRequest) XXX_DiscardUnknown

func (m *UpdateSecurityMarksRequest) XXX_DiscardUnknown()

func (*UpdateSecurityMarksRequest) XXX_Marshal

func (m *UpdateSecurityMarksRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*UpdateSecurityMarksRequest) XXX_Merge

func (m *UpdateSecurityMarksRequest) XXX_Merge(src proto.Message)

func (*UpdateSecurityMarksRequest) XXX_Size

func (m *UpdateSecurityMarksRequest) XXX_Size() int

func (*UpdateSecurityMarksRequest) XXX_Unmarshal

func (m *UpdateSecurityMarksRequest) XXX_Unmarshal(b []byte) error

type UpdateSourceRequest

type UpdateSourceRequest struct {
	// The source resource to update.
	Source *Source `protobuf:"bytes,1,opt,name=source,proto3" json:"source,omitempty"`
	// The FieldMask to use when updating the source resource.
	UpdateMask           *field_mask.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
	XXX_NoUnkeyedLiteral struct{}              `json:"-"`
	XXX_unrecognized     []byte                `json:"-"`
	XXX_sizecache        int32                 `json:"-"`
}

Request message for updating a source.

func (*UpdateSourceRequest) Descriptor

func (*UpdateSourceRequest) Descriptor() ([]byte, []int)

func (*UpdateSourceRequest) GetSource

func (m *UpdateSourceRequest) GetSource() *Source

func (*UpdateSourceRequest) GetUpdateMask

func (m *UpdateSourceRequest) GetUpdateMask() *field_mask.FieldMask

func (*UpdateSourceRequest) ProtoMessage

func (*UpdateSourceRequest) ProtoMessage()

func (*UpdateSourceRequest) Reset

func (m *UpdateSourceRequest) Reset()

func (*UpdateSourceRequest) String

func (m *UpdateSourceRequest) String() string

func (*UpdateSourceRequest) XXX_DiscardUnknown

func (m *UpdateSourceRequest) XXX_DiscardUnknown()

func (*UpdateSourceRequest) XXX_Marshal

func (m *UpdateSourceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*UpdateSourceRequest) XXX_Merge

func (m *UpdateSourceRequest) XXX_Merge(src proto.Message)

func (*UpdateSourceRequest) XXX_Size

func (m *UpdateSourceRequest) XXX_Size() int

func (*UpdateSourceRequest) XXX_Unmarshal

func (m *UpdateSourceRequest) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

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