Variables
Finding_State_name, Finding_State_value
var (
Finding_State_name = map[int32]string{
0: "STATE_UNSPECIFIED",
1: "ACTIVE",
2: "INACTIVE",
}
Finding_State_value = map[string]int32{
"STATE_UNSPECIFIED": 0,
"ACTIVE": 1,
"INACTIVE": 2,
}
)Enum value maps for Finding_State.
OrganizationSettings_AssetDiscoveryConfig_InclusionMode_name, OrganizationSettings_AssetDiscoveryConfig_InclusionMode_value
var (
OrganizationSettings_AssetDiscoveryConfig_InclusionMode_name = map[int32]string{
0: "INCLUSION_MODE_UNSPECIFIED",
1: "INCLUDE_ONLY",
2: "EXCLUDE",
}
OrganizationSettings_AssetDiscoveryConfig_InclusionMode_value = map[string]int32{
"INCLUSION_MODE_UNSPECIFIED": 0,
"INCLUDE_ONLY": 1,
"EXCLUDE": 2,
}
)Enum value maps for OrganizationSettings_AssetDiscoveryConfig_InclusionMode.
RunAssetDiscoveryResponse_State_name, RunAssetDiscoveryResponse_State_value
var (
RunAssetDiscoveryResponse_State_name = map[int32]string{
0: "STATE_UNSPECIFIED",
1: "COMPLETED",
2: "SUPERSEDED",
3: "TERMINATED",
}
RunAssetDiscoveryResponse_State_value = map[string]int32{
"STATE_UNSPECIFIED": 0,
"COMPLETED": 1,
"SUPERSEDED": 2,
"TERMINATED": 3,
}
)Enum value maps for RunAssetDiscoveryResponse_State.
ListAssetsResponse_ListAssetsResult_State_name, ListAssetsResponse_ListAssetsResult_State_value
var (
ListAssetsResponse_ListAssetsResult_State_name = map[int32]string{
0: "STATE_UNSPECIFIED",
1: "UNUSED",
2: "ADDED",
3: "REMOVED",
4: "ACTIVE",
}
ListAssetsResponse_ListAssetsResult_State_value = map[string]int32{
"STATE_UNSPECIFIED": 0,
"UNUSED": 1,
"ADDED": 2,
"REMOVED": 3,
"ACTIVE": 4,
}
)Enum value maps for ListAssetsResponse_ListAssetsResult_State.
File_google_cloud_securitycenter_v1beta1_asset_proto
var File_google_cloud_securitycenter_v1beta1_asset_proto protoreflect.FileDescriptorFile_google_cloud_securitycenter_v1beta1_finding_proto
var File_google_cloud_securitycenter_v1beta1_finding_proto protoreflect.FileDescriptorFile_google_cloud_securitycenter_v1beta1_organization_settings_proto
var File_google_cloud_securitycenter_v1beta1_organization_settings_proto protoreflect.FileDescriptorFile_google_cloud_securitycenter_v1beta1_run_asset_discovery_response_proto
var File_google_cloud_securitycenter_v1beta1_run_asset_discovery_response_proto protoreflect.FileDescriptorFile_google_cloud_securitycenter_v1beta1_security_marks_proto
var File_google_cloud_securitycenter_v1beta1_security_marks_proto protoreflect.FileDescriptorFile_google_cloud_securitycenter_v1beta1_securitycenter_service_proto
var File_google_cloud_securitycenter_v1beta1_securitycenter_service_proto protoreflect.FileDescriptorFile_google_cloud_securitycenter_v1beta1_source_proto
var File_google_cloud_securitycenter_v1beta1_source_proto protoreflect.FileDescriptorFunctions
func RegisterSecurityCenterServer
func RegisterSecurityCenterServer(s *grpc.Server, srv SecurityCenterServer)Asset
type Asset struct {
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
SecurityCenterProperties *Asset_SecurityCenterProperties "" /* 135 byte string literal not displayed */
ResourceProperties map[string]*structpb.Value "" /* 203 byte string literal not displayed */
SecurityMarks *SecurityMarks `protobuf:"bytes,8,opt,name=security_marks,json=securityMarks,proto3" json:"security_marks,omitempty"`
CreateTime *timestamppb.Timestamp `protobuf:"bytes,9,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
UpdateTime *timestamppb.Timestamp `protobuf:"bytes,10,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
}Security Command Center representation of a Google Cloud resource.
The Asset is a Security Command Center resource that captures information about a single Google Cloud resource. All modifications to an Asset are only within the context of Security Command Center and don't affect the referenced Google Cloud resource.
func (*Asset) Descriptor
Deprecated: Use Asset.ProtoReflect.Descriptor instead.
func (*Asset) GetCreateTime
func (x *Asset) GetCreateTime() *timestamppb.Timestampfunc (*Asset) GetName
func (*Asset) GetResourceProperties
func (*Asset) GetSecurityCenterProperties
func (x *Asset) GetSecurityCenterProperties() *Asset_SecurityCenterPropertiesfunc (*Asset) GetSecurityMarks
func (x *Asset) GetSecurityMarks() *SecurityMarksfunc (*Asset) GetUpdateTime
func (x *Asset) GetUpdateTime() *timestamppb.Timestampfunc (*Asset) ProtoMessage
func (*Asset) ProtoMessage()func (*Asset) ProtoReflect
func (x *Asset) ProtoReflect() protoreflect.Messagefunc (*Asset) Reset
func (x *Asset) Reset()func (*Asset) String
Asset_SecurityCenterProperties
type Asset_SecurityCenterProperties struct {
// Immutable. The full resource name of the Google Cloud 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 Command 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"`
// contains filtered or unexported fields
}Security Command Center managed properties. These properties are managed by Security Command Center and cannot be modified by the user.
func (*Asset_SecurityCenterProperties) Descriptor
func (*Asset_SecurityCenterProperties) Descriptor() ([]byte, []int)Deprecated: Use Asset_SecurityCenterProperties.ProtoReflect.Descriptor instead.
func (*Asset_SecurityCenterProperties) GetResourceName
func (x *Asset_SecurityCenterProperties) GetResourceName() stringfunc (*Asset_SecurityCenterProperties) GetResourceOwners
func (x *Asset_SecurityCenterProperties) GetResourceOwners() []stringfunc (*Asset_SecurityCenterProperties) GetResourceParent
func (x *Asset_SecurityCenterProperties) GetResourceParent() stringfunc (*Asset_SecurityCenterProperties) GetResourceProject
func (x *Asset_SecurityCenterProperties) GetResourceProject() stringfunc (*Asset_SecurityCenterProperties) GetResourceType
func (x *Asset_SecurityCenterProperties) GetResourceType() stringfunc (*Asset_SecurityCenterProperties) ProtoMessage
func (*Asset_SecurityCenterProperties) ProtoMessage()func (*Asset_SecurityCenterProperties) ProtoReflect
func (x *Asset_SecurityCenterProperties) ProtoReflect() protoreflect.Messagefunc (*Asset_SecurityCenterProperties) Reset
func (x *Asset_SecurityCenterProperties) Reset()func (*Asset_SecurityCenterProperties) String
func (x *Asset_SecurityCenterProperties) String() stringCreateFindingRequest
type CreateFindingRequest struct {
// Required. 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"`
// Required. 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"`
// Required. 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"`
// contains filtered or unexported fields
}Request message for creating a finding.
func (*CreateFindingRequest) Descriptor
func (*CreateFindingRequest) Descriptor() ([]byte, []int)Deprecated: Use CreateFindingRequest.ProtoReflect.Descriptor instead.
func (*CreateFindingRequest) GetFinding
func (x *CreateFindingRequest) GetFinding() *Findingfunc (*CreateFindingRequest) GetFindingId
func (x *CreateFindingRequest) GetFindingId() stringfunc (*CreateFindingRequest) GetParent
func (x *CreateFindingRequest) GetParent() stringfunc (*CreateFindingRequest) ProtoMessage
func (*CreateFindingRequest) ProtoMessage()func (*CreateFindingRequest) ProtoReflect
func (x *CreateFindingRequest) ProtoReflect() protoreflect.Messagefunc (*CreateFindingRequest) Reset
func (x *CreateFindingRequest) Reset()func (*CreateFindingRequest) String
func (x *CreateFindingRequest) String() stringCreateSourceRequest
type CreateSourceRequest struct {
// Required. 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"`
// Required. 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"`
// contains filtered or unexported fields
}Request message for creating a source.
func (*CreateSourceRequest) Descriptor
func (*CreateSourceRequest) Descriptor() ([]byte, []int)Deprecated: Use CreateSourceRequest.ProtoReflect.Descriptor instead.
func (*CreateSourceRequest) GetParent
func (x *CreateSourceRequest) GetParent() stringfunc (*CreateSourceRequest) GetSource
func (x *CreateSourceRequest) GetSource() *Sourcefunc (*CreateSourceRequest) ProtoMessage
func (*CreateSourceRequest) ProtoMessage()func (*CreateSourceRequest) ProtoReflect
func (x *CreateSourceRequest) ProtoReflect() protoreflect.Messagefunc (*CreateSourceRequest) Reset
func (x *CreateSourceRequest) Reset()func (*CreateSourceRequest) String
func (x *CreateSourceRequest) String() stringFinding
type Finding struct {
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
Parent string `protobuf:"bytes,2,opt,name=parent,proto3" json:"parent,omitempty"`
ResourceName string `protobuf:"bytes,3,opt,name=resource_name,json=resourceName,proto3" json:"resource_name,omitempty"`
State Finding_State `protobuf:"varint,4,opt,name=state,proto3,enum=google.cloud.securitycenter.v1beta1.Finding_State" json:"state,omitempty"`
Category string `protobuf:"bytes,5,opt,name=category,proto3" json:"category,omitempty"`
ExternalUri string `protobuf:"bytes,6,opt,name=external_uri,json=externalUri,proto3" json:"external_uri,omitempty"`
SourceProperties map[string]*structpb.Value "" /* 197 byte string literal not displayed */
SecurityMarks *SecurityMarks `protobuf:"bytes,8,opt,name=security_marks,json=securityMarks,proto3" json:"security_marks,omitempty"`
EventTime *timestamppb.Timestamp `protobuf:"bytes,9,opt,name=event_time,json=eventTime,proto3" json:"event_time,omitempty"`
CreateTime *timestamppb.Timestamp `protobuf:"bytes,10,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
}Security Command Center finding.
A finding is a record of assessment data (security, risk, health or privacy) ingested into Security Command Center for presentation, notification, analysis, policy testing, and enforcement. For example, an XSS vulnerability in an App Engine application is a finding.
func (*Finding) Descriptor
Deprecated: Use Finding.ProtoReflect.Descriptor instead.
func (*Finding) GetCategory
func (*Finding) GetCreateTime
func (x *Finding) GetCreateTime() *timestamppb.Timestampfunc (*Finding) GetEventTime
func (x *Finding) GetEventTime() *timestamppb.Timestampfunc (*Finding) GetExternalUri
func (*Finding) GetName
func (*Finding) GetParent
func (*Finding) GetResourceName
func (*Finding) GetSecurityMarks
func (x *Finding) GetSecurityMarks() *SecurityMarksfunc (*Finding) GetSourceProperties
func (*Finding) GetState
func (x *Finding) GetState() Finding_Statefunc (*Finding) ProtoMessage
func (*Finding) ProtoMessage()func (*Finding) ProtoReflect
func (x *Finding) ProtoReflect() protoreflect.Messagefunc (*Finding) Reset
func (x *Finding) Reset()func (*Finding) String
Finding_State
type Finding_State int32The state of the finding.
Finding_STATE_UNSPECIFIED, Finding_ACTIVE, Finding_INACTIVE
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) Descriptor
func (Finding_State) Descriptor() protoreflect.EnumDescriptorfunc (Finding_State) Enum
func (x Finding_State) Enum() *Finding_Statefunc (Finding_State) EnumDescriptor
func (Finding_State) EnumDescriptor() ([]byte, []int)Deprecated: Use Finding_State.Descriptor instead.
func (Finding_State) Number
func (x Finding_State) Number() protoreflect.EnumNumberfunc (Finding_State) String
func (x Finding_State) String() stringfunc (Finding_State) Type
func (Finding_State) Type() protoreflect.EnumTypeGetOrganizationSettingsRequest
type GetOrganizationSettingsRequest struct {
// Required. 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"`
// contains filtered or unexported fields
}Request message for getting organization settings.
func (*GetOrganizationSettingsRequest) Descriptor
func (*GetOrganizationSettingsRequest) Descriptor() ([]byte, []int)Deprecated: Use GetOrganizationSettingsRequest.ProtoReflect.Descriptor instead.
func (*GetOrganizationSettingsRequest) GetName
func (x *GetOrganizationSettingsRequest) GetName() stringfunc (*GetOrganizationSettingsRequest) ProtoMessage
func (*GetOrganizationSettingsRequest) ProtoMessage()func (*GetOrganizationSettingsRequest) ProtoReflect
func (x *GetOrganizationSettingsRequest) ProtoReflect() protoreflect.Messagefunc (*GetOrganizationSettingsRequest) Reset
func (x *GetOrganizationSettingsRequest) Reset()func (*GetOrganizationSettingsRequest) String
func (x *GetOrganizationSettingsRequest) String() stringGetSourceRequest
type GetSourceRequest struct {
// Required. 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"`
// contains filtered or unexported fields
}Request message for getting a source.
func (*GetSourceRequest) Descriptor
func (*GetSourceRequest) Descriptor() ([]byte, []int)Deprecated: Use GetSourceRequest.ProtoReflect.Descriptor instead.
func (*GetSourceRequest) GetName
func (x *GetSourceRequest) GetName() stringfunc (*GetSourceRequest) ProtoMessage
func (*GetSourceRequest) ProtoMessage()func (*GetSourceRequest) ProtoReflect
func (x *GetSourceRequest) ProtoReflect() protoreflect.Messagefunc (*GetSourceRequest) Reset
func (x *GetSourceRequest) Reset()func (*GetSourceRequest) String
func (x *GetSourceRequest) String() stringGroupAssetsRequest
type GroupAssetsRequest struct {
// Required. 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 `Request message for grouping by assets.
func (*GroupAssetsRequest) Descriptor
func (*GroupAssetsRequest) Descriptor() ([]byte, []int)Deprecated: Use GroupAssetsRequest.ProtoReflect.Descriptor instead.
func (*GroupAssetsRequest) GetCompareDuration
func (x *GroupAssetsRequest) GetCompareDuration() *durationpb.Durationfunc (*GroupAssetsRequest) GetFilter
func (x *GroupAssetsRequest) GetFilter() stringfunc (*GroupAssetsRequest) GetGroupBy
func (x *GroupAssetsRequest) GetGroupBy() stringfunc (*GroupAssetsRequest) GetPageSize
func (x *GroupAssetsRequest) GetPageSize() int32func (*GroupAssetsRequest) GetPageToken
func (x *GroupAssetsRequest) GetPageToken() stringfunc (*GroupAssetsRequest) GetParent
func (x *GroupAssetsRequest) GetParent() stringfunc (*GroupAssetsRequest) GetReadTime
func (x *GroupAssetsRequest) GetReadTime() *timestamppb.Timestampfunc (*GroupAssetsRequest) ProtoMessage
func (*GroupAssetsRequest) ProtoMessage()func (*GroupAssetsRequest) ProtoReflect
func (x *GroupAssetsRequest) ProtoReflect() protoreflect.Messagefunc (*GroupAssetsRequest) Reset
func (x *GroupAssetsRequest) Reset()func (*GroupAssetsRequest) String
func (x *GroupAssetsRequest) String() stringGroupAssetsResponse
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 *timestamppb.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"`
// contains filtered or unexported fields
}Response message for grouping by assets.
func (*GroupAssetsResponse) Descriptor
func (*GroupAssetsResponse) Descriptor() ([]byte, []int)Deprecated: Use GroupAssetsResponse.ProtoReflect.Descriptor instead.
func (*GroupAssetsResponse) GetGroupByResults
func (x *GroupAssetsResponse) GetGroupByResults() []*GroupResultfunc (*GroupAssetsResponse) GetNextPageToken
func (x *GroupAssetsResponse) GetNextPageToken() stringfunc (*GroupAssetsResponse) GetReadTime
func (x *GroupAssetsResponse) GetReadTime() *timestamppb.Timestampfunc (*GroupAssetsResponse) ProtoMessage
func (*GroupAssetsResponse) ProtoMessage()func (*GroupAssetsResponse) ProtoReflect
func (x *GroupAssetsResponse) ProtoReflect() protoreflect.Messagefunc (*GroupAssetsResponse) Reset
func (x *GroupAssetsResponse) Reset()func (*GroupAssetsResponse) String
func (x *GroupAssetsResponse) String() stringGroupFindingsRequest
type GroupFindingsRequest struct {
// Required. 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/{organization_id}/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 `Request message for grouping by findings.
func (*GroupFindingsRequest) Descriptor
func (*GroupFindingsRequest) Descriptor() ([]byte, []int)Deprecated: Use GroupFindingsRequest.ProtoReflect.Descriptor instead.
func (*GroupFindingsRequest) GetFilter
func (x *GroupFindingsRequest) GetFilter() stringfunc (*GroupFindingsRequest) GetGroupBy
func (x *GroupFindingsRequest) GetGroupBy() stringfunc (*GroupFindingsRequest) GetPageSize
func (x *GroupFindingsRequest) GetPageSize() int32func (*GroupFindingsRequest) GetPageToken
func (x *GroupFindingsRequest) GetPageToken() stringfunc (*GroupFindingsRequest) GetParent
func (x *GroupFindingsRequest) GetParent() stringfunc (*GroupFindingsRequest) GetReadTime
func (x *GroupFindingsRequest) GetReadTime() *timestamppb.Timestampfunc (*GroupFindingsRequest) ProtoMessage
func (*GroupFindingsRequest) ProtoMessage()func (*GroupFindingsRequest) ProtoReflect
func (x *GroupFindingsRequest) ProtoReflect() protoreflect.Messagefunc (*GroupFindingsRequest) Reset
func (x *GroupFindingsRequest) Reset()func (*GroupFindingsRequest) String
func (x *GroupFindingsRequest) String() stringGroupFindingsResponse
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 *timestamppb.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"`
// contains filtered or unexported fields
}Response message for group by findings.
func (*GroupFindingsResponse) Descriptor
func (*GroupFindingsResponse) Descriptor() ([]byte, []int)Deprecated: Use GroupFindingsResponse.ProtoReflect.Descriptor instead.
func (*GroupFindingsResponse) GetGroupByResults
func (x *GroupFindingsResponse) GetGroupByResults() []*GroupResultfunc (*GroupFindingsResponse) GetNextPageToken
func (x *GroupFindingsResponse) GetNextPageToken() stringfunc (*GroupFindingsResponse) GetReadTime
func (x *GroupFindingsResponse) GetReadTime() *timestamppb.Timestampfunc (*GroupFindingsResponse) ProtoMessage
func (*GroupFindingsResponse) ProtoMessage()func (*GroupFindingsResponse) ProtoReflect
func (x *GroupFindingsResponse) ProtoReflect() protoreflect.Messagefunc (*GroupFindingsResponse) Reset
func (x *GroupFindingsResponse) Reset()func (*GroupFindingsResponse) String
func (x *GroupFindingsResponse) String() stringGroupResult
type GroupResult struct {
Properties map[string]*structpb.Value "" /* 161 byte string literal not displayed */
Count int64 `protobuf:"varint,2,opt,name=count,proto3" json:"count,omitempty"`
}Result containing the properties and count of a groupBy request.
func (*GroupResult) Descriptor
func (*GroupResult) Descriptor() ([]byte, []int)Deprecated: Use GroupResult.ProtoReflect.Descriptor instead.
func (*GroupResult) GetCount
func (x *GroupResult) GetCount() int64func (*GroupResult) GetProperties
func (x *GroupResult) GetProperties() map[string]*structpb.Valuefunc (*GroupResult) ProtoMessage
func (*GroupResult) ProtoMessage()func (*GroupResult) ProtoReflect
func (x *GroupResult) ProtoReflect() protoreflect.Messagefunc (*GroupResult) Reset
func (x *GroupResult) Reset()func (*GroupResult) String
func (x *GroupResult) String() stringListAssetsRequest
type ListAssetsRequest struct {
// Required. 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 `Request message for listing assets.
func (*ListAssetsRequest) Descriptor
func (*ListAssetsRequest) Descriptor() ([]byte, []int)Deprecated: Use ListAssetsRequest.ProtoReflect.Descriptor instead.
func (*ListAssetsRequest) GetCompareDuration
func (x *ListAssetsRequest) GetCompareDuration() *durationpb.Durationfunc (*ListAssetsRequest) GetFieldMask
func (x *ListAssetsRequest) GetFieldMask() *fieldmaskpb.FieldMaskfunc (*ListAssetsRequest) GetFilter
func (x *ListAssetsRequest) GetFilter() stringfunc (*ListAssetsRequest) GetOrderBy
func (x *ListAssetsRequest) GetOrderBy() stringfunc (*ListAssetsRequest) GetPageSize
func (x *ListAssetsRequest) GetPageSize() int32func (*ListAssetsRequest) GetPageToken
func (x *ListAssetsRequest) GetPageToken() stringfunc (*ListAssetsRequest) GetParent
func (x *ListAssetsRequest) GetParent() stringfunc (*ListAssetsRequest) GetReadTime
func (x *ListAssetsRequest) GetReadTime() *timestamppb.Timestampfunc (*ListAssetsRequest) ProtoMessage
func (*ListAssetsRequest) ProtoMessage()func (*ListAssetsRequest) ProtoReflect
func (x *ListAssetsRequest) ProtoReflect() protoreflect.Messagefunc (*ListAssetsRequest) Reset
func (x *ListAssetsRequest) Reset()func (*ListAssetsRequest) String
func (x *ListAssetsRequest) String() stringListAssetsResponse
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 *timestamppb.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"`
// contains filtered or unexported fields
}Response message for listing assets.
func (*ListAssetsResponse) Descriptor
func (*ListAssetsResponse) Descriptor() ([]byte, []int)Deprecated: Use ListAssetsResponse.ProtoReflect.Descriptor instead.
func (*ListAssetsResponse) GetListAssetsResults
func (x *ListAssetsResponse) GetListAssetsResults() []*ListAssetsResponse_ListAssetsResultfunc (*ListAssetsResponse) GetNextPageToken
func (x *ListAssetsResponse) GetNextPageToken() stringfunc (*ListAssetsResponse) GetReadTime
func (x *ListAssetsResponse) GetReadTime() *timestamppb.Timestampfunc (*ListAssetsResponse) GetTotalSize
func (x *ListAssetsResponse) GetTotalSize() int32func (*ListAssetsResponse) ProtoMessage
func (*ListAssetsResponse) ProtoMessage()func (*ListAssetsResponse) ProtoReflect
func (x *ListAssetsResponse) ProtoReflect() protoreflect.Messagefunc (*ListAssetsResponse) Reset
func (x *ListAssetsResponse) Reset()func (*ListAssetsResponse) String
func (x *ListAssetsResponse) String() stringListAssetsResponse_ListAssetsResult
type ListAssetsResponse_ListAssetsResult struct {
Asset *Asset `protobuf:"bytes,1,opt,name=asset,proto3" json:"asset,omitempty"`
State ListAssetsResponse_ListAssetsResult_State "" /* 147 byte string literal not displayed */
}Result containing the Asset and its State.
func (*ListAssetsResponse_ListAssetsResult) Descriptor
func (*ListAssetsResponse_ListAssetsResult) Descriptor() ([]byte, []int)Deprecated: Use ListAssetsResponse_ListAssetsResult.ProtoReflect.Descriptor instead.
func (*ListAssetsResponse_ListAssetsResult) GetAsset
func (x *ListAssetsResponse_ListAssetsResult) GetAsset() *Assetfunc (*ListAssetsResponse_ListAssetsResult) GetState
func (x *ListAssetsResponse_ListAssetsResult) GetState() ListAssetsResponse_ListAssetsResult_Statefunc (*ListAssetsResponse_ListAssetsResult) ProtoMessage
func (*ListAssetsResponse_ListAssetsResult) ProtoMessage()func (*ListAssetsResponse_ListAssetsResult) ProtoReflect
func (x *ListAssetsResponse_ListAssetsResult) ProtoReflect() protoreflect.Messagefunc (*ListAssetsResponse_ListAssetsResult) Reset
func (x *ListAssetsResponse_ListAssetsResult) Reset()func (*ListAssetsResponse_ListAssetsResult) String
func (x *ListAssetsResponse_ListAssetsResult) String() stringListAssetsResponse_ListAssetsResult_State
type ListAssetsResponse_ListAssetsResult_State int32State 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
ListAssetsResponse_ListAssetsResult_STATE_UNSPECIFIED, ListAssetsResponse_ListAssetsResult_UNUSED, ListAssetsResponse_ListAssetsResult_ADDED, ListAssetsResponse_ListAssetsResult_REMOVED, ListAssetsResponse_ListAssetsResult_ACTIVE
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) Descriptor
func (ListAssetsResponse_ListAssetsResult_State) Descriptor() protoreflect.EnumDescriptorfunc (ListAssetsResponse_ListAssetsResult_State) Enum
func (x ListAssetsResponse_ListAssetsResult_State) Enum() *ListAssetsResponse_ListAssetsResult_Statefunc (ListAssetsResponse_ListAssetsResult_State) EnumDescriptor
func (ListAssetsResponse_ListAssetsResult_State) EnumDescriptor() ([]byte, []int)Deprecated: Use ListAssetsResponse_ListAssetsResult_State.Descriptor instead.
func (ListAssetsResponse_ListAssetsResult_State) Number
func (x ListAssetsResponse_ListAssetsResult_State) Number() protoreflect.EnumNumberfunc (ListAssetsResponse_ListAssetsResult_State) String
func (x ListAssetsResponse_ListAssetsResult_State) String() stringfunc (ListAssetsResponse_ListAssetsResult_State) Type
func (ListAssetsResponse_ListAssetsResult_State) Type() protoreflect.EnumTypeListFindingsRequest
type ListFindingsRequest struct {
// Required. 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/{organization_id}/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 `Request message for listing findings.
func (*ListFindingsRequest) Descriptor
func (*ListFindingsRequest) Descriptor() ([]byte, []int)Deprecated: Use ListFindingsRequest.ProtoReflect.Descriptor instead.
func (*ListFindingsRequest) GetFieldMask
func (x *ListFindingsRequest) GetFieldMask() *fieldmaskpb.FieldMaskfunc (*ListFindingsRequest) GetFilter
func (x *ListFindingsRequest) GetFilter() stringfunc (*ListFindingsRequest) GetOrderBy
func (x *ListFindingsRequest) GetOrderBy() stringfunc (*ListFindingsRequest) GetPageSize
func (x *ListFindingsRequest) GetPageSize() int32func (*ListFindingsRequest) GetPageToken
func (x *ListFindingsRequest) GetPageToken() stringfunc (*ListFindingsRequest) GetParent
func (x *ListFindingsRequest) GetParent() stringfunc (*ListFindingsRequest) GetReadTime
func (x *ListFindingsRequest) GetReadTime() *timestamppb.Timestampfunc (*ListFindingsRequest) ProtoMessage
func (*ListFindingsRequest) ProtoMessage()func (*ListFindingsRequest) ProtoReflect
func (x *ListFindingsRequest) ProtoReflect() protoreflect.Messagefunc (*ListFindingsRequest) Reset
func (x *ListFindingsRequest) Reset()func (*ListFindingsRequest) String
func (x *ListFindingsRequest) String() stringListFindingsResponse
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 *timestamppb.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"`
// contains filtered or unexported fields
}Response message for listing findings.
func (*ListFindingsResponse) Descriptor
func (*ListFindingsResponse) Descriptor() ([]byte, []int)Deprecated: Use ListFindingsResponse.ProtoReflect.Descriptor instead.
func (*ListFindingsResponse) GetFindings
func (x *ListFindingsResponse) GetFindings() []*Findingfunc (*ListFindingsResponse) GetNextPageToken
func (x *ListFindingsResponse) GetNextPageToken() stringfunc (*ListFindingsResponse) GetReadTime
func (x *ListFindingsResponse) GetReadTime() *timestamppb.Timestampfunc (*ListFindingsResponse) GetTotalSize
func (x *ListFindingsResponse) GetTotalSize() int32func (*ListFindingsResponse) ProtoMessage
func (*ListFindingsResponse) ProtoMessage()func (*ListFindingsResponse) ProtoReflect
func (x *ListFindingsResponse) ProtoReflect() protoreflect.Messagefunc (*ListFindingsResponse) Reset
func (x *ListFindingsResponse) Reset()func (*ListFindingsResponse) String
func (x *ListFindingsResponse) String() stringListSourcesRequest
type ListSourcesRequest struct {
// Required. 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"`
// contains filtered or unexported fields
}Request message for listing sources.
func (*ListSourcesRequest) Descriptor
func (*ListSourcesRequest) Descriptor() ([]byte, []int)Deprecated: Use ListSourcesRequest.ProtoReflect.Descriptor instead.
func (*ListSourcesRequest) GetPageSize
func (x *ListSourcesRequest) GetPageSize() int32func (*ListSourcesRequest) GetPageToken
func (x *ListSourcesRequest) GetPageToken() stringfunc (*ListSourcesRequest) GetParent
func (x *ListSourcesRequest) GetParent() stringfunc (*ListSourcesRequest) ProtoMessage
func (*ListSourcesRequest) ProtoMessage()func (*ListSourcesRequest) ProtoReflect
func (x *ListSourcesRequest) ProtoReflect() protoreflect.Messagefunc (*ListSourcesRequest) Reset
func (x *ListSourcesRequest) Reset()func (*ListSourcesRequest) String
func (x *ListSourcesRequest) String() stringListSourcesResponse
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"`
// contains filtered or unexported fields
}Response message for listing sources.
func (*ListSourcesResponse) Descriptor
func (*ListSourcesResponse) Descriptor() ([]byte, []int)Deprecated: Use ListSourcesResponse.ProtoReflect.Descriptor instead.
func (*ListSourcesResponse) GetNextPageToken
func (x *ListSourcesResponse) GetNextPageToken() stringfunc (*ListSourcesResponse) GetSources
func (x *ListSourcesResponse) GetSources() []*Sourcefunc (*ListSourcesResponse) ProtoMessage
func (*ListSourcesResponse) ProtoMessage()func (*ListSourcesResponse) ProtoReflect
func (x *ListSourcesResponse) ProtoReflect() protoreflect.Messagefunc (*ListSourcesResponse) Reset
func (x *ListSourcesResponse) Reset()func (*ListSourcesResponse) String
func (x *ListSourcesResponse) String() stringOrganizationSettings
type OrganizationSettings struct {
// The relative resource name of the settings. See:
// https://cloud.google.com/apis/design/resource_names#relative_resource_name
// Example:
// "organizations/{organization_id}/organizationSettings".
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// A flag that indicates if 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"`
// contains filtered or unexported fields
}User specified settings that are attached to the Security Command Center organization.
func (*OrganizationSettings) Descriptor
func (*OrganizationSettings) Descriptor() ([]byte, []int)Deprecated: Use OrganizationSettings.ProtoReflect.Descriptor instead.
func (*OrganizationSettings) GetAssetDiscoveryConfig
func (x *OrganizationSettings) GetAssetDiscoveryConfig() *OrganizationSettings_AssetDiscoveryConfigfunc (*OrganizationSettings) GetEnableAssetDiscovery
func (x *OrganizationSettings) GetEnableAssetDiscovery() boolfunc (*OrganizationSettings) GetName
func (x *OrganizationSettings) GetName() stringfunc (*OrganizationSettings) ProtoMessage
func (*OrganizationSettings) ProtoMessage()func (*OrganizationSettings) ProtoReflect
func (x *OrganizationSettings) ProtoReflect() protoreflect.Messagefunc (*OrganizationSettings) Reset
func (x *OrganizationSettings) Reset()func (*OrganizationSettings) String
func (x *OrganizationSettings) String() stringOrganizationSettings_AssetDiscoveryConfig
type OrganizationSettings_AssetDiscoveryConfig struct {
ProjectIds []string `protobuf:"bytes,1,rep,name=project_ids,json=projectIds,proto3" json:"project_ids,omitempty"`
InclusionMode OrganizationSettings_AssetDiscoveryConfig_InclusionMode "" /* 198 byte string literal not displayed */
}The configuration used for Asset Discovery runs.
func (*OrganizationSettings_AssetDiscoveryConfig) Descriptor
func (*OrganizationSettings_AssetDiscoveryConfig) Descriptor() ([]byte, []int)Deprecated: Use OrganizationSettings_AssetDiscoveryConfig.ProtoReflect.Descriptor instead.
func (*OrganizationSettings_AssetDiscoveryConfig) GetInclusionMode
func (x *OrganizationSettings_AssetDiscoveryConfig) GetInclusionMode() OrganizationSettings_AssetDiscoveryConfig_InclusionModefunc (*OrganizationSettings_AssetDiscoveryConfig) GetProjectIds
func (x *OrganizationSettings_AssetDiscoveryConfig) GetProjectIds() []stringfunc (*OrganizationSettings_AssetDiscoveryConfig) ProtoMessage
func (*OrganizationSettings_AssetDiscoveryConfig) ProtoMessage()func (*OrganizationSettings_AssetDiscoveryConfig) ProtoReflect
func (x *OrganizationSettings_AssetDiscoveryConfig) ProtoReflect() protoreflect.Messagefunc (*OrganizationSettings_AssetDiscoveryConfig) Reset
func (x *OrganizationSettings_AssetDiscoveryConfig) Reset()func (*OrganizationSettings_AssetDiscoveryConfig) String
func (x *OrganizationSettings_AssetDiscoveryConfig) String() stringOrganizationSettings_AssetDiscoveryConfig_InclusionMode
type OrganizationSettings_AssetDiscoveryConfig_InclusionMode int32The 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 that don't match those projects are discovered during asset discovery. If neither are set, then all projects within the organization are discovered during asset discovery.
OrganizationSettings_AssetDiscoveryConfig_INCLUSION_MODE_UNSPECIFIED, OrganizationSettings_AssetDiscoveryConfig_INCLUDE_ONLY, OrganizationSettings_AssetDiscoveryConfig_EXCLUDE
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) Descriptor
func (OrganizationSettings_AssetDiscoveryConfig_InclusionMode) Descriptor() protoreflect.EnumDescriptorfunc (OrganizationSettings_AssetDiscoveryConfig_InclusionMode) Enum
func (x OrganizationSettings_AssetDiscoveryConfig_InclusionMode) Enum() *OrganizationSettings_AssetDiscoveryConfig_InclusionModefunc (OrganizationSettings_AssetDiscoveryConfig_InclusionMode) EnumDescriptor
func (OrganizationSettings_AssetDiscoveryConfig_InclusionMode) EnumDescriptor() ([]byte, []int)Deprecated: Use OrganizationSettings_AssetDiscoveryConfig_InclusionMode.Descriptor instead.
func (OrganizationSettings_AssetDiscoveryConfig_InclusionMode) Number
func (x OrganizationSettings_AssetDiscoveryConfig_InclusionMode) Number() protoreflect.EnumNumberfunc (OrganizationSettings_AssetDiscoveryConfig_InclusionMode) String
func (x OrganizationSettings_AssetDiscoveryConfig_InclusionMode) String() stringfunc (OrganizationSettings_AssetDiscoveryConfig_InclusionMode) Type
RunAssetDiscoveryRequest
type RunAssetDiscoveryRequest struct {
// Required. 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"`
// contains filtered or unexported fields
}Request message for running asset discovery for an organization.
func (*RunAssetDiscoveryRequest) Descriptor
func (*RunAssetDiscoveryRequest) Descriptor() ([]byte, []int)Deprecated: Use RunAssetDiscoveryRequest.ProtoReflect.Descriptor instead.
func (*RunAssetDiscoveryRequest) GetParent
func (x *RunAssetDiscoveryRequest) GetParent() stringfunc (*RunAssetDiscoveryRequest) ProtoMessage
func (*RunAssetDiscoveryRequest) ProtoMessage()func (*RunAssetDiscoveryRequest) ProtoReflect
func (x *RunAssetDiscoveryRequest) ProtoReflect() protoreflect.Messagefunc (*RunAssetDiscoveryRequest) Reset
func (x *RunAssetDiscoveryRequest) Reset()func (*RunAssetDiscoveryRequest) String
func (x *RunAssetDiscoveryRequest) String() stringRunAssetDiscoveryResponse
type RunAssetDiscoveryResponse struct {
State RunAssetDiscoveryResponse_State "" /* 137 byte string literal not displayed */
Duration *durationpb.Duration `protobuf:"bytes,2,opt,name=duration,proto3" json:"duration,omitempty"`
}Response of asset discovery run
func (*RunAssetDiscoveryResponse) Descriptor
func (*RunAssetDiscoveryResponse) Descriptor() ([]byte, []int)Deprecated: Use RunAssetDiscoveryResponse.ProtoReflect.Descriptor instead.
func (*RunAssetDiscoveryResponse) GetDuration
func (x *RunAssetDiscoveryResponse) GetDuration() *durationpb.Durationfunc (*RunAssetDiscoveryResponse) GetState
func (x *RunAssetDiscoveryResponse) GetState() RunAssetDiscoveryResponse_Statefunc (*RunAssetDiscoveryResponse) ProtoMessage
func (*RunAssetDiscoveryResponse) ProtoMessage()func (*RunAssetDiscoveryResponse) ProtoReflect
func (x *RunAssetDiscoveryResponse) ProtoReflect() protoreflect.Messagefunc (*RunAssetDiscoveryResponse) Reset
func (x *RunAssetDiscoveryResponse) Reset()func (*RunAssetDiscoveryResponse) String
func (x *RunAssetDiscoveryResponse) String() stringRunAssetDiscoveryResponse_State
type RunAssetDiscoveryResponse_State int32The state of an asset discovery run.
RunAssetDiscoveryResponse_STATE_UNSPECIFIED, RunAssetDiscoveryResponse_COMPLETED, RunAssetDiscoveryResponse_SUPERSEDED, RunAssetDiscoveryResponse_TERMINATED
const (
// Asset discovery run state was unspecified.
RunAssetDiscoveryResponse_STATE_UNSPECIFIED RunAssetDiscoveryResponse_State = 0
// Asset discovery run completed successfully.
RunAssetDiscoveryResponse_COMPLETED RunAssetDiscoveryResponse_State = 1
// Asset discovery run was cancelled with tasks still pending, as another
// run for the same organization was started with a higher priority.
RunAssetDiscoveryResponse_SUPERSEDED RunAssetDiscoveryResponse_State = 2
// Asset discovery run was killed and terminated.
RunAssetDiscoveryResponse_TERMINATED RunAssetDiscoveryResponse_State = 3
)func (RunAssetDiscoveryResponse_State) Descriptor
func (RunAssetDiscoveryResponse_State) Descriptor() protoreflect.EnumDescriptorfunc (RunAssetDiscoveryResponse_State) Enum
func (x RunAssetDiscoveryResponse_State) Enum() *RunAssetDiscoveryResponse_Statefunc (RunAssetDiscoveryResponse_State) EnumDescriptor
func (RunAssetDiscoveryResponse_State) EnumDescriptor() ([]byte, []int)Deprecated: Use RunAssetDiscoveryResponse_State.Descriptor instead.
func (RunAssetDiscoveryResponse_State) Number
func (x RunAssetDiscoveryResponse_State) Number() protoreflect.EnumNumberfunc (RunAssetDiscoveryResponse_State) String
func (x RunAssetDiscoveryResponse_State) String() stringfunc (RunAssetDiscoveryResponse_State) Type
func (RunAssetDiscoveryResponse_State) Type() protoreflect.EnumTypeSecurityCenterClient
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 *iampb.GetIamPolicyRequest, opts ...grpc.CallOption) (*iampb.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/{organization_id}/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 findings.
//
// To list across all sources provide a `-` as the source id.
// Example: /v1beta1/organizations/{organization_id}/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) (*longrunningpb.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 *iampb.SetIamPolicyRequest, opts ...grpc.CallOption) (*iampb.Policy, error)
// Returns the permissions that a caller has on the specified source.
TestIamPermissions(ctx context.Context, in *iampb.TestIamPermissionsRequest, opts ...grpc.CallOption) (*iampb.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.ClientConnInterface) SecurityCenterClientSecurityCenterServer
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, *iampb.GetIamPolicyRequest) (*iampb.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/{organization_id}/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 findings.
//
// To list across all sources provide a `-` as the source id.
// Example: /v1beta1/organizations/{organization_id}/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) (*longrunningpb.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, *iampb.SetIamPolicyRequest) (*iampb.Policy, error)
// Returns the permissions that a caller has on the specified source.
TestIamPermissions(context.Context, *iampb.TestIamPermissionsRequest) (*iampb.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.
SecurityMarks
type SecurityMarks struct {
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
Marks map[string]string "" /* 151 byte string literal not displayed */
}User specified security marks that are attached to the parent Security Command Center resource. Security marks are scoped within a Security Command Center organization -- they can be modified and viewed by all users who have proper permissions on the organization.
func (*SecurityMarks) Descriptor
func (*SecurityMarks) Descriptor() ([]byte, []int)Deprecated: Use SecurityMarks.ProtoReflect.Descriptor instead.
func (*SecurityMarks) GetMarks
func (x *SecurityMarks) GetMarks() map[string]stringfunc (*SecurityMarks) GetName
func (x *SecurityMarks) GetName() stringfunc (*SecurityMarks) ProtoMessage
func (*SecurityMarks) ProtoMessage()func (*SecurityMarks) ProtoReflect
func (x *SecurityMarks) ProtoReflect() protoreflect.Messagefunc (*SecurityMarks) Reset
func (x *SecurityMarks) Reset()func (*SecurityMarks) String
func (x *SecurityMarks) String() stringSetFindingStateRequest
type SetFindingStateRequest struct {
// Required. The relative resource name of the finding. See:
// https://cloud.google.com/apis/design/resource_names#relative_resource_name
// Example:
// "organizations/{organization_id}/sources/{source_id}/finding/{finding_id}".
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Required. 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"`
// Required. The time at which the updated state takes effect.
StartTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"`
// contains filtered or unexported fields
}Request message for updating a finding's state.
func (*SetFindingStateRequest) Descriptor
func (*SetFindingStateRequest) Descriptor() ([]byte, []int)Deprecated: Use SetFindingStateRequest.ProtoReflect.Descriptor instead.
func (*SetFindingStateRequest) GetName
func (x *SetFindingStateRequest) GetName() stringfunc (*SetFindingStateRequest) GetStartTime
func (x *SetFindingStateRequest) GetStartTime() *timestamppb.Timestampfunc (*SetFindingStateRequest) GetState
func (x *SetFindingStateRequest) GetState() Finding_Statefunc (*SetFindingStateRequest) ProtoMessage
func (*SetFindingStateRequest) ProtoMessage()func (*SetFindingStateRequest) ProtoReflect
func (x *SetFindingStateRequest) ProtoReflect() protoreflect.Messagefunc (*SetFindingStateRequest) Reset
func (x *SetFindingStateRequest) Reset()func (*SetFindingStateRequest) String
func (x *SetFindingStateRequest) String() stringSource
type Source struct {
// The relative resource name of this source. See:
// https://cloud.google.com/apis/design/resource_names#relative_resource_name
// Example:
// "organizations/{organization_id}/sources/{source_id}"
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, for example,
// two sources with the same parent can't share the same display name.
// The display name must have a length between 1 and 64 characters
// (inclusive).
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:
// "Web Security Scanner is a web security scanner for common
// vulnerabilities in 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"`
// contains filtered or unexported fields
}Security Command Center finding source. A finding source is an entity or a mechanism that can produce a finding. A source is like a container of findings that come from the same scanner, logger, monitor, etc.
func (*Source) Descriptor
Deprecated: Use Source.ProtoReflect.Descriptor instead.
func (*Source) GetDescription
func (*Source) GetDisplayName
func (*Source) GetName
func (*Source) ProtoMessage
func (*Source) ProtoMessage()func (*Source) ProtoReflect
func (x *Source) ProtoReflect() protoreflect.Messagefunc (*Source) Reset
func (x *Source) Reset()func (*Source) String
UnimplementedSecurityCenterServer
type UnimplementedSecurityCenterServer struct {
}UnimplementedSecurityCenterServer can be embedded to have forward compatible implementations.
func (*UnimplementedSecurityCenterServer) CreateFinding
func (*UnimplementedSecurityCenterServer) CreateFinding(context.Context, *CreateFindingRequest) (*Finding, error)func (*UnimplementedSecurityCenterServer) CreateSource
func (*UnimplementedSecurityCenterServer) CreateSource(context.Context, *CreateSourceRequest) (*Source, error)func (*UnimplementedSecurityCenterServer) GetIamPolicy
func (*UnimplementedSecurityCenterServer) GetIamPolicy(context.Context, *iampb.GetIamPolicyRequest) (*iampb.Policy, error)func (*UnimplementedSecurityCenterServer) GetOrganizationSettings
func (*UnimplementedSecurityCenterServer) GetOrganizationSettings(context.Context, *GetOrganizationSettingsRequest) (*OrganizationSettings, error)func (*UnimplementedSecurityCenterServer) GetSource
func (*UnimplementedSecurityCenterServer) GetSource(context.Context, *GetSourceRequest) (*Source, error)func (*UnimplementedSecurityCenterServer) GroupAssets
func (*UnimplementedSecurityCenterServer) GroupAssets(context.Context, *GroupAssetsRequest) (*GroupAssetsResponse, error)func (*UnimplementedSecurityCenterServer) GroupFindings
func (*UnimplementedSecurityCenterServer) GroupFindings(context.Context, *GroupFindingsRequest) (*GroupFindingsResponse, error)func (*UnimplementedSecurityCenterServer) ListAssets
func (*UnimplementedSecurityCenterServer) ListAssets(context.Context, *ListAssetsRequest) (*ListAssetsResponse, error)func (*UnimplementedSecurityCenterServer) ListFindings
func (*UnimplementedSecurityCenterServer) ListFindings(context.Context, *ListFindingsRequest) (*ListFindingsResponse, error)func (*UnimplementedSecurityCenterServer) ListSources
func (*UnimplementedSecurityCenterServer) ListSources(context.Context, *ListSourcesRequest) (*ListSourcesResponse, error)func (*UnimplementedSecurityCenterServer) RunAssetDiscovery
func (*UnimplementedSecurityCenterServer) RunAssetDiscovery(context.Context, *RunAssetDiscoveryRequest) (*longrunningpb.Operation, error)func (*UnimplementedSecurityCenterServer) SetFindingState
func (*UnimplementedSecurityCenterServer) SetFindingState(context.Context, *SetFindingStateRequest) (*Finding, error)func (*UnimplementedSecurityCenterServer) SetIamPolicy
func (*UnimplementedSecurityCenterServer) SetIamPolicy(context.Context, *iampb.SetIamPolicyRequest) (*iampb.Policy, error)func (*UnimplementedSecurityCenterServer) TestIamPermissions
func (*UnimplementedSecurityCenterServer) TestIamPermissions(context.Context, *iampb.TestIamPermissionsRequest) (*iampb.TestIamPermissionsResponse, error)func (*UnimplementedSecurityCenterServer) UpdateFinding
func (*UnimplementedSecurityCenterServer) UpdateFinding(context.Context, *UpdateFindingRequest) (*Finding, error)func (*UnimplementedSecurityCenterServer) UpdateOrganizationSettings
func (*UnimplementedSecurityCenterServer) UpdateOrganizationSettings(context.Context, *UpdateOrganizationSettingsRequest) (*OrganizationSettings, error)func (*UnimplementedSecurityCenterServer) UpdateSecurityMarks
func (*UnimplementedSecurityCenterServer) UpdateSecurityMarks(context.Context, *UpdateSecurityMarksRequest) (*SecurityMarks, error)func (*UnimplementedSecurityCenterServer) UpdateSource
func (*UnimplementedSecurityCenterServer) UpdateSource(context.Context, *UpdateSourceRequest) (*Source, error)UpdateFindingRequest
type UpdateFindingRequest struct {
// Required. 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 should
// not be specified when creating a finding.
UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
// contains filtered or unexported fields
}Request message for updating or creating a finding.
func (*UpdateFindingRequest) Descriptor
func (*UpdateFindingRequest) Descriptor() ([]byte, []int)Deprecated: Use UpdateFindingRequest.ProtoReflect.Descriptor instead.
func (*UpdateFindingRequest) GetFinding
func (x *UpdateFindingRequest) GetFinding() *Findingfunc (*UpdateFindingRequest) GetUpdateMask
func (x *UpdateFindingRequest) GetUpdateMask() *fieldmaskpb.FieldMaskfunc (*UpdateFindingRequest) ProtoMessage
func (*UpdateFindingRequest) ProtoMessage()func (*UpdateFindingRequest) ProtoReflect
func (x *UpdateFindingRequest) ProtoReflect() protoreflect.Messagefunc (*UpdateFindingRequest) Reset
func (x *UpdateFindingRequest) Reset()func (*UpdateFindingRequest) String
func (x *UpdateFindingRequest) String() stringUpdateOrganizationSettingsRequest
type UpdateOrganizationSettingsRequest struct {
// Required. 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 *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
// contains filtered or unexported fields
}Request message for updating an organization's settings.
func (*UpdateOrganizationSettingsRequest) Descriptor
func (*UpdateOrganizationSettingsRequest) Descriptor() ([]byte, []int)Deprecated: Use UpdateOrganizationSettingsRequest.ProtoReflect.Descriptor instead.
func (*UpdateOrganizationSettingsRequest) GetOrganizationSettings
func (x *UpdateOrganizationSettingsRequest) GetOrganizationSettings() *OrganizationSettingsfunc (*UpdateOrganizationSettingsRequest) GetUpdateMask
func (x *UpdateOrganizationSettingsRequest) GetUpdateMask() *fieldmaskpb.FieldMaskfunc (*UpdateOrganizationSettingsRequest) ProtoMessage
func (*UpdateOrganizationSettingsRequest) ProtoMessage()func (*UpdateOrganizationSettingsRequest) ProtoReflect
func (x *UpdateOrganizationSettingsRequest) ProtoReflect() protoreflect.Messagefunc (*UpdateOrganizationSettingsRequest) Reset
func (x *UpdateOrganizationSettingsRequest) Reset()func (*UpdateOrganizationSettingsRequest) String
func (x *UpdateOrganizationSettingsRequest) String() stringUpdateSecurityMarksRequest
type UpdateSecurityMarksRequest struct {
// Required. 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 *fieldmaskpb.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 *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"`
// contains filtered or unexported fields
}Request message for updating a SecurityMarks resource.
func (*UpdateSecurityMarksRequest) Descriptor
func (*UpdateSecurityMarksRequest) Descriptor() ([]byte, []int)Deprecated: Use UpdateSecurityMarksRequest.ProtoReflect.Descriptor instead.
func (*UpdateSecurityMarksRequest) GetSecurityMarks
func (x *UpdateSecurityMarksRequest) GetSecurityMarks() *SecurityMarksfunc (*UpdateSecurityMarksRequest) GetStartTime
func (x *UpdateSecurityMarksRequest) GetStartTime() *timestamppb.Timestampfunc (*UpdateSecurityMarksRequest) GetUpdateMask
func (x *UpdateSecurityMarksRequest) GetUpdateMask() *fieldmaskpb.FieldMaskfunc (*UpdateSecurityMarksRequest) ProtoMessage
func (*UpdateSecurityMarksRequest) ProtoMessage()func (*UpdateSecurityMarksRequest) ProtoReflect
func (x *UpdateSecurityMarksRequest) ProtoReflect() protoreflect.Messagefunc (*UpdateSecurityMarksRequest) Reset
func (x *UpdateSecurityMarksRequest) Reset()func (*UpdateSecurityMarksRequest) String
func (x *UpdateSecurityMarksRequest) String() stringUpdateSourceRequest
type UpdateSourceRequest struct {
// Required. 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 *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
// contains filtered or unexported fields
}Request message for updating a source.
func (*UpdateSourceRequest) Descriptor
func (*UpdateSourceRequest) Descriptor() ([]byte, []int)Deprecated: Use UpdateSourceRequest.ProtoReflect.Descriptor instead.
func (*UpdateSourceRequest) GetSource
func (x *UpdateSourceRequest) GetSource() *Sourcefunc (*UpdateSourceRequest) GetUpdateMask
func (x *UpdateSourceRequest) GetUpdateMask() *fieldmaskpb.FieldMaskfunc (*UpdateSourceRequest) ProtoMessage
func (*UpdateSourceRequest) ProtoMessage()func (*UpdateSourceRequest) ProtoReflect
func (x *UpdateSourceRequest) ProtoReflect() protoreflect.Messagefunc (*UpdateSourceRequest) Reset
func (x *UpdateSourceRequest) Reset()func (*UpdateSourceRequest) String
func (x *UpdateSourceRequest) String() string