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.
Finding_Severity_name, Finding_Severity_value
var (
Finding_Severity_name = map[int32]string{
0: "SEVERITY_UNSPECIFIED",
1: "CRITICAL",
2: "HIGH",
3: "MEDIUM",
4: "LOW",
}
Finding_Severity_value = map[string]int32{
"SEVERITY_UNSPECIFIED": 0,
"CRITICAL": 1,
"HIGH": 2,
"MEDIUM": 3,
"LOW": 4,
}
)
Enum value maps for Finding_Severity.
NotificationConfig_EventType_name, NotificationConfig_EventType_value
var (
NotificationConfig_EventType_name = map[int32]string{
0: "EVENT_TYPE_UNSPECIFIED",
1: "FINDING",
}
NotificationConfig_EventType_value = map[string]int32{
"EVENT_TYPE_UNSPECIFIED": 0,
"FINDING": 1,
}
)
Enum value maps for NotificationConfig_EventType.
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_StateChange_name, ListAssetsResponse_ListAssetsResult_StateChange_value
var (
ListAssetsResponse_ListAssetsResult_StateChange_name = map[int32]string{
0: "UNUSED",
1: "ADDED",
2: "REMOVED",
3: "ACTIVE",
}
ListAssetsResponse_ListAssetsResult_StateChange_value = map[string]int32{
"UNUSED": 0,
"ADDED": 1,
"REMOVED": 2,
"ACTIVE": 3,
}
)
Enum value maps for ListAssetsResponse_ListAssetsResult_StateChange.
ListFindingsResponse_ListFindingsResult_StateChange_name, ListFindingsResponse_ListFindingsResult_StateChange_value
var (
ListFindingsResponse_ListFindingsResult_StateChange_name = map[int32]string{
0: "UNUSED",
1: "CHANGED",
2: "UNCHANGED",
3: "ADDED",
4: "REMOVED",
}
ListFindingsResponse_ListFindingsResult_StateChange_value = map[string]int32{
"UNUSED": 0,
"CHANGED": 1,
"UNCHANGED": 2,
"ADDED": 3,
"REMOVED": 4,
}
)
Enum value maps for ListFindingsResponse_ListFindingsResult_StateChange.
File_google_cloud_securitycenter_v1p1beta1_asset_proto
var File_google_cloud_securitycenter_v1p1beta1_asset_proto protoreflect.FileDescriptor
File_google_cloud_securitycenter_v1p1beta1_finding_proto
var File_google_cloud_securitycenter_v1p1beta1_finding_proto protoreflect.FileDescriptor
File_google_cloud_securitycenter_v1p1beta1_folder_proto
var File_google_cloud_securitycenter_v1p1beta1_folder_proto protoreflect.FileDescriptor
File_google_cloud_securitycenter_v1p1beta1_notification_config_proto
var File_google_cloud_securitycenter_v1p1beta1_notification_config_proto protoreflect.FileDescriptor
File_google_cloud_securitycenter_v1p1beta1_notification_message_proto
var File_google_cloud_securitycenter_v1p1beta1_notification_message_proto protoreflect.FileDescriptor
File_google_cloud_securitycenter_v1p1beta1_organization_settings_proto
var File_google_cloud_securitycenter_v1p1beta1_organization_settings_proto protoreflect.FileDescriptor
File_google_cloud_securitycenter_v1p1beta1_resource_proto
var File_google_cloud_securitycenter_v1p1beta1_resource_proto protoreflect.FileDescriptor
File_google_cloud_securitycenter_v1p1beta1_run_asset_discovery_response_proto
var File_google_cloud_securitycenter_v1p1beta1_run_asset_discovery_response_proto protoreflect.FileDescriptor
File_google_cloud_securitycenter_v1p1beta1_security_marks_proto
var File_google_cloud_securitycenter_v1p1beta1_security_marks_proto protoreflect.FileDescriptor
File_google_cloud_securitycenter_v1p1beta1_securitycenter_service_proto
var File_google_cloud_securitycenter_v1p1beta1_securitycenter_service_proto protoreflect.FileDescriptor
File_google_cloud_securitycenter_v1p1beta1_source_proto
var File_google_cloud_securitycenter_v1p1beta1_source_proto protoreflect.FileDescriptor
Functions
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"`
IamPolicy *Asset_IamPolicy `protobuf:"bytes,11,opt,name=iam_policy,json=iamPolicy,proto3" json:"iam_policy,omitempty"`
CanonicalName string `protobuf:"bytes,13,opt,name=canonical_name,json=canonicalName,proto3" json:"canonical_name,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) GetCanonicalName
func (*Asset) GetCreateTime
func (x *Asset) GetCreateTime() *timestamppb.Timestamp
func (*Asset) GetIamPolicy
func (x *Asset) GetIamPolicy() *Asset_IamPolicy
func (*Asset) GetName
func (*Asset) GetResourceProperties
func (*Asset) GetSecurityCenterProperties
func (x *Asset) GetSecurityCenterProperties() *Asset_SecurityCenterProperties
func (*Asset) GetSecurityMarks
func (x *Asset) GetSecurityMarks() *SecurityMarks
func (*Asset) GetUpdateTime
func (x *Asset) GetUpdateTime() *timestamppb.Timestamp
func (*Asset) ProtoMessage
func (*Asset) ProtoMessage()
func (*Asset) ProtoReflect
func (x *Asset) ProtoReflect() protoreflect.Message
func (*Asset) Reset
func (x *Asset) Reset()
func (*Asset) String
Asset_IamPolicy
type Asset_IamPolicy struct {
// The JSON representation of the Policy associated with the asset.
// See https://cloud.google.com/iam/docs/reference/rest/v1/Policy for
// format details.
PolicyBlob string `protobuf:"bytes,1,opt,name=policy_blob,json=policyBlob,proto3" json:"policy_blob,omitempty"`
// contains filtered or unexported fields
}
Cloud IAM Policy information associated with the Google Cloud resource described by the Security Command Center asset. This information is managed and defined by the Google Cloud resource and cannot be modified by the user.
func (*Asset_IamPolicy) Descriptor
func (*Asset_IamPolicy) Descriptor() ([]byte, []int)
Deprecated: Use Asset_IamPolicy.ProtoReflect.Descriptor instead.
func (*Asset_IamPolicy) GetPolicyBlob
func (x *Asset_IamPolicy) GetPolicyBlob() string
func (*Asset_IamPolicy) ProtoMessage
func (*Asset_IamPolicy) ProtoMessage()
func (*Asset_IamPolicy) ProtoReflect
func (x *Asset_IamPolicy) ProtoReflect() protoreflect.Message
func (*Asset_IamPolicy) Reset
func (x *Asset_IamPolicy) Reset()
func (*Asset_IamPolicy) String
func (x *Asset_IamPolicy) String() string
Asset_SecurityCenterProperties
type Asset_SecurityCenterProperties struct {
ResourceName string `protobuf:"bytes,1,opt,name=resource_name,json=resourceName,proto3" json:"resource_name,omitempty"`
ResourceType string `protobuf:"bytes,2,opt,name=resource_type,json=resourceType,proto3" json:"resource_type,omitempty"`
ResourceParent string `protobuf:"bytes,3,opt,name=resource_parent,json=resourceParent,proto3" json:"resource_parent,omitempty"`
ResourceProject string `protobuf:"bytes,4,opt,name=resource_project,json=resourceProject,proto3" json:"resource_project,omitempty"`
ResourceOwners []string `protobuf:"bytes,5,rep,name=resource_owners,json=resourceOwners,proto3" json:"resource_owners,omitempty"`
ResourceDisplayName string `protobuf:"bytes,6,opt,name=resource_display_name,json=resourceDisplayName,proto3" json:"resource_display_name,omitempty"`
ResourceParentDisplayName string "" /* 140 byte string literal not displayed */
ResourceProjectDisplayName string "" /* 143 byte string literal not displayed */
Folders []*Folder `protobuf:"bytes,10,rep,name=folders,proto3" json:"folders,omitempty"`
}
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) GetFolders
func (x *Asset_SecurityCenterProperties) GetFolders() []*Folder
func (*Asset_SecurityCenterProperties) GetResourceDisplayName
func (x *Asset_SecurityCenterProperties) GetResourceDisplayName() string
func (*Asset_SecurityCenterProperties) GetResourceName
func (x *Asset_SecurityCenterProperties) GetResourceName() string
func (*Asset_SecurityCenterProperties) GetResourceOwners
func (x *Asset_SecurityCenterProperties) GetResourceOwners() []string
func (*Asset_SecurityCenterProperties) GetResourceParent
func (x *Asset_SecurityCenterProperties) GetResourceParent() string
func (*Asset_SecurityCenterProperties) GetResourceParentDisplayName
func (x *Asset_SecurityCenterProperties) GetResourceParentDisplayName() string
func (*Asset_SecurityCenterProperties) GetResourceProject
func (x *Asset_SecurityCenterProperties) GetResourceProject() string
func (*Asset_SecurityCenterProperties) GetResourceProjectDisplayName
func (x *Asset_SecurityCenterProperties) GetResourceProjectDisplayName() string
func (*Asset_SecurityCenterProperties) GetResourceType
func (x *Asset_SecurityCenterProperties) GetResourceType() string
func (*Asset_SecurityCenterProperties) ProtoMessage
func (*Asset_SecurityCenterProperties) ProtoMessage()
func (*Asset_SecurityCenterProperties) ProtoReflect
func (x *Asset_SecurityCenterProperties) ProtoReflect() protoreflect.Message
func (*Asset_SecurityCenterProperties) Reset
func (x *Asset_SecurityCenterProperties) Reset()
func (*Asset_SecurityCenterProperties) String
func (x *Asset_SecurityCenterProperties) String() string
CreateFindingRequest
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.
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() *Finding
func (*CreateFindingRequest) GetFindingId
func (x *CreateFindingRequest) GetFindingId() string
func (*CreateFindingRequest) GetParent
func (x *CreateFindingRequest) GetParent() string
func (*CreateFindingRequest) ProtoMessage
func (*CreateFindingRequest) ProtoMessage()
func (*CreateFindingRequest) ProtoReflect
func (x *CreateFindingRequest) ProtoReflect() protoreflect.Message
func (*CreateFindingRequest) Reset
func (x *CreateFindingRequest) Reset()
func (*CreateFindingRequest) String
func (x *CreateFindingRequest) String() string
CreateNotificationConfigRequest
type CreateNotificationConfigRequest struct {
// Required. Resource name of the new notification config's parent. Its format is
// "organizations/[organization_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 between 1 and 128 characters, and contains alphanumeric
// characters, underscores or hyphens only.
ConfigId string `protobuf:"bytes,2,opt,name=config_id,json=configId,proto3" json:"config_id,omitempty"`
// Required. The notification config being created. The name and the service account
// will be ignored as they are both output only fields on this resource.
NotificationConfig *NotificationConfig `protobuf:"bytes,3,opt,name=notification_config,json=notificationConfig,proto3" json:"notification_config,omitempty"`
// contains filtered or unexported fields
}
Request message for creating a notification config.
func (*CreateNotificationConfigRequest) Descriptor
func (*CreateNotificationConfigRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateNotificationConfigRequest.ProtoReflect.Descriptor instead.
func (*CreateNotificationConfigRequest) GetConfigId
func (x *CreateNotificationConfigRequest) GetConfigId() string
func (*CreateNotificationConfigRequest) GetNotificationConfig
func (x *CreateNotificationConfigRequest) GetNotificationConfig() *NotificationConfig
func (*CreateNotificationConfigRequest) GetParent
func (x *CreateNotificationConfigRequest) GetParent() string
func (*CreateNotificationConfigRequest) ProtoMessage
func (*CreateNotificationConfigRequest) ProtoMessage()
func (*CreateNotificationConfigRequest) ProtoReflect
func (x *CreateNotificationConfigRequest) ProtoReflect() protoreflect.Message
func (*CreateNotificationConfigRequest) Reset
func (x *CreateNotificationConfigRequest) Reset()
func (*CreateNotificationConfigRequest) String
func (x *CreateNotificationConfigRequest) String() string
CreateSourceRequest
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() string
func (*CreateSourceRequest) GetSource
func (x *CreateSourceRequest) GetSource() *Source
func (*CreateSourceRequest) ProtoMessage
func (*CreateSourceRequest) ProtoMessage()
func (*CreateSourceRequest) ProtoReflect
func (x *CreateSourceRequest) ProtoReflect() protoreflect.Message
func (*CreateSourceRequest) Reset
func (x *CreateSourceRequest) Reset()
func (*CreateSourceRequest) String
func (x *CreateSourceRequest) String() string
DeleteNotificationConfigRequest
type DeleteNotificationConfigRequest struct {
// Required. Name of the notification config to delete. Its format is
// "organizations/[organization_id]/notificationConfigs/[config_id]".
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}
Request message for deleting a notification config.
func (*DeleteNotificationConfigRequest) Descriptor
func (*DeleteNotificationConfigRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteNotificationConfigRequest.ProtoReflect.Descriptor instead.
func (*DeleteNotificationConfigRequest) GetName
func (x *DeleteNotificationConfigRequest) GetName() string
func (*DeleteNotificationConfigRequest) ProtoMessage
func (*DeleteNotificationConfigRequest) ProtoMessage()
func (*DeleteNotificationConfigRequest) ProtoReflect
func (x *DeleteNotificationConfigRequest) ProtoReflect() protoreflect.Message
func (*DeleteNotificationConfigRequest) Reset
func (x *DeleteNotificationConfigRequest) Reset()
func (*DeleteNotificationConfigRequest) String
func (x *DeleteNotificationConfigRequest) String() string
Finding
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.v1p1beta1.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"`
Severity Finding_Severity "" /* 131 byte string literal not displayed */
CanonicalName string `protobuf:"bytes,14,opt,name=canonical_name,json=canonicalName,proto3" json:"canonical_name,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) GetCanonicalName
func (*Finding) GetCategory
func (*Finding) GetCreateTime
func (x *Finding) GetCreateTime() *timestamppb.Timestamp
func (*Finding) GetEventTime
func (x *Finding) GetEventTime() *timestamppb.Timestamp
func (*Finding) GetExternalUri
func (*Finding) GetName
func (*Finding) GetParent
func (*Finding) GetResourceName
func (*Finding) GetSecurityMarks
func (x *Finding) GetSecurityMarks() *SecurityMarks
func (*Finding) GetSeverity
func (x *Finding) GetSeverity() Finding_Severity
func (*Finding) GetSourceProperties
func (*Finding) GetState
func (x *Finding) GetState() Finding_State
func (*Finding) ProtoMessage
func (*Finding) ProtoMessage()
func (*Finding) ProtoReflect
func (x *Finding) ProtoReflect() protoreflect.Message
func (*Finding) Reset
func (x *Finding) Reset()
func (*Finding) String
Finding_Severity
type Finding_Severity int32
The severity of the finding. This field is managed by the source that writes the finding.
Finding_SEVERITY_UNSPECIFIED, Finding_CRITICAL, Finding_HIGH, Finding_MEDIUM, Finding_LOW
const (
// No severity specified. The default value.
Finding_SEVERITY_UNSPECIFIED Finding_Severity = 0
// Critical severity.
Finding_CRITICAL Finding_Severity = 1
// High severity.
Finding_HIGH Finding_Severity = 2
// Medium severity.
Finding_MEDIUM Finding_Severity = 3
// Low severity.
Finding_LOW Finding_Severity = 4
)
func (Finding_Severity) Descriptor
func (Finding_Severity) Descriptor() protoreflect.EnumDescriptor
func (Finding_Severity) Enum
func (x Finding_Severity) Enum() *Finding_Severity
func (Finding_Severity) EnumDescriptor
func (Finding_Severity) EnumDescriptor() ([]byte, []int)
Deprecated: Use Finding_Severity.Descriptor instead.
func (Finding_Severity) Number
func (x Finding_Severity) Number() protoreflect.EnumNumber
func (Finding_Severity) String
func (x Finding_Severity) String() string
func (Finding_Severity) Type
func (Finding_Severity) Type() protoreflect.EnumType
Finding_State
type Finding_State int32
The 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.EnumDescriptor
func (Finding_State) Enum
func (x Finding_State) Enum() *Finding_State
func (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.EnumNumber
func (Finding_State) String
func (x Finding_State) String() string
func (Finding_State) Type
func (Finding_State) Type() protoreflect.EnumType
Folder
type Folder struct {
ResourceFolder string `protobuf:"bytes,1,opt,name=resource_folder,json=resourceFolder,proto3" json:"resource_folder,omitempty"`
ResourceFolderDisplayName string "" /* 140 byte string literal not displayed */
}
Message that contains the resource name and display name of a folder resource.
func (*Folder) Descriptor
Deprecated: Use Folder.ProtoReflect.Descriptor instead.
func (*Folder) GetResourceFolder
func (*Folder) GetResourceFolderDisplayName
func (*Folder) ProtoMessage
func (*Folder) ProtoMessage()
func (*Folder) ProtoReflect
func (x *Folder) ProtoReflect() protoreflect.Message
func (*Folder) Reset
func (x *Folder) Reset()
func (*Folder) String
GetNotificationConfigRequest
type GetNotificationConfigRequest struct {
// Required. Name of the notification config to get. Its format is
// "organizations/[organization_id]/notificationConfigs/[config_id]".
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}
Request message for getting a notification config.
func (*GetNotificationConfigRequest) Descriptor
func (*GetNotificationConfigRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetNotificationConfigRequest.ProtoReflect.Descriptor instead.
func (*GetNotificationConfigRequest) GetName
func (x *GetNotificationConfigRequest) GetName() string
func (*GetNotificationConfigRequest) ProtoMessage
func (*GetNotificationConfigRequest) ProtoMessage()
func (*GetNotificationConfigRequest) ProtoReflect
func (x *GetNotificationConfigRequest) ProtoReflect() protoreflect.Message
func (*GetNotificationConfigRequest) Reset
func (x *GetNotificationConfigRequest) Reset()
func (*GetNotificationConfigRequest) String
func (x *GetNotificationConfigRequest) String() string
GetOrganizationSettingsRequest
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() string
func (*GetOrganizationSettingsRequest) ProtoMessage
func (*GetOrganizationSettingsRequest) ProtoMessage()
func (*GetOrganizationSettingsRequest) ProtoReflect
func (x *GetOrganizationSettingsRequest) ProtoReflect() protoreflect.Message
func (*GetOrganizationSettingsRequest) Reset
func (x *GetOrganizationSettingsRequest) Reset()
func (*GetOrganizationSettingsRequest) String
func (x *GetOrganizationSettingsRequest) String() string
GetSourceRequest
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() string
func (*GetSourceRequest) ProtoMessage
func (*GetSourceRequest) ProtoMessage()
func (*GetSourceRequest) ProtoReflect
func (x *GetSourceRequest) ProtoReflect() protoreflect.Message
func (*GetSourceRequest) Reset
func (x *GetSourceRequest) Reset()
func (*GetSourceRequest) String
func (x *GetSourceRequest) String() string
GroupAssetsRequest
type GroupAssetsRequest struct {
// Required. Name of the organization to groupBy. Its format is
// "organizations/[organization_id], folders/[folder_id], or
// projects/[project_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 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.Duration
func (*GroupAssetsRequest) GetFilter
func (x *GroupAssetsRequest) GetFilter() string
func (*GroupAssetsRequest) GetGroupBy
func (x *GroupAssetsRequest) GetGroupBy() string
func (*GroupAssetsRequest) GetPageSize
func (x *GroupAssetsRequest) GetPageSize() int32
func (*GroupAssetsRequest) GetPageToken
func (x *GroupAssetsRequest) GetPageToken() string
func (*GroupAssetsRequest) GetParent
func (x *GroupAssetsRequest) GetParent() string
func (*GroupAssetsRequest) GetReadTime
func (x *GroupAssetsRequest) GetReadTime() *timestamppb.Timestamp
func (*GroupAssetsRequest) ProtoMessage
func (*GroupAssetsRequest) ProtoMessage()
func (*GroupAssetsRequest) ProtoReflect
func (x *GroupAssetsRequest) ProtoReflect() protoreflect.Message
func (*GroupAssetsRequest) Reset
func (x *GroupAssetsRequest) Reset()
func (*GroupAssetsRequest) String
func (x *GroupAssetsRequest) String() string
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 *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 results 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 grouping by assets.
func (*GroupAssetsResponse) Descriptor
func (*GroupAssetsResponse) Descriptor() ([]byte, []int)
Deprecated: Use GroupAssetsResponse.ProtoReflect.Descriptor instead.
func (*GroupAssetsResponse) GetGroupByResults
func (x *GroupAssetsResponse) GetGroupByResults() []*GroupResult
func (*GroupAssetsResponse) GetNextPageToken
func (x *GroupAssetsResponse) GetNextPageToken() string
func (*GroupAssetsResponse) GetReadTime
func (x *GroupAssetsResponse) GetReadTime() *timestamppb.Timestamp
func (*GroupAssetsResponse) GetTotalSize
func (x *GroupAssetsResponse) GetTotalSize() int32
func (*GroupAssetsResponse) ProtoMessage
func (*GroupAssetsResponse) ProtoMessage()
func (*GroupAssetsResponse) ProtoReflect
func (x *GroupAssetsResponse) ProtoReflect() protoreflect.Message
func (*GroupAssetsResponse) Reset
func (x *GroupAssetsResponse) Reset()
func (*GroupAssetsResponse) String
func (x *GroupAssetsResponse) String() string
GroupFindingsRequest
type GroupFindingsRequest struct {
// Required. Name of the source to groupBy. Its format is
// "organizations/[organization_id]/sources/[source_id]",
// folders/[folder_id]/sources/[source_id], or
// projects/[project_id]/sources/[source_id]. To groupBy across all sources
// provide a source_id of `-`. For example:
// organizations/{organization_id}/sources/-, folders/{folder_id}/sources/-,
// or projects/{project_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 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) GetCompareDuration
func (x *GroupFindingsRequest) GetCompareDuration() *durationpb.Duration
func (*GroupFindingsRequest) GetFilter
func (x *GroupFindingsRequest) GetFilter() string
func (*GroupFindingsRequest) GetGroupBy
func (x *GroupFindingsRequest) GetGroupBy() string
func (*GroupFindingsRequest) GetPageSize
func (x *GroupFindingsRequest) GetPageSize() int32
func (*GroupFindingsRequest) GetPageToken
func (x *GroupFindingsRequest) GetPageToken() string
func (*GroupFindingsRequest) GetParent
func (x *GroupFindingsRequest) GetParent() string
func (*GroupFindingsRequest) GetReadTime
func (x *GroupFindingsRequest) GetReadTime() *timestamppb.Timestamp
func (*GroupFindingsRequest) ProtoMessage
func (*GroupFindingsRequest) ProtoMessage()
func (*GroupFindingsRequest) ProtoReflect
func (x *GroupFindingsRequest) ProtoReflect() protoreflect.Message
func (*GroupFindingsRequest) Reset
func (x *GroupFindingsRequest) Reset()
func (*GroupFindingsRequest) String
func (x *GroupFindingsRequest) String() string
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 *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 results 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 group by findings.
func (*GroupFindingsResponse) Descriptor
func (*GroupFindingsResponse) Descriptor() ([]byte, []int)
Deprecated: Use GroupFindingsResponse.ProtoReflect.Descriptor instead.
func (*GroupFindingsResponse) GetGroupByResults
func (x *GroupFindingsResponse) GetGroupByResults() []*GroupResult
func (*GroupFindingsResponse) GetNextPageToken
func (x *GroupFindingsResponse) GetNextPageToken() string
func (*GroupFindingsResponse) GetReadTime
func (x *GroupFindingsResponse) GetReadTime() *timestamppb.Timestamp
func (*GroupFindingsResponse) GetTotalSize
func (x *GroupFindingsResponse) GetTotalSize() int32
func (*GroupFindingsResponse) ProtoMessage
func (*GroupFindingsResponse) ProtoMessage()
func (*GroupFindingsResponse) ProtoReflect
func (x *GroupFindingsResponse) ProtoReflect() protoreflect.Message
func (*GroupFindingsResponse) Reset
func (x *GroupFindingsResponse) Reset()
func (*GroupFindingsResponse) String
func (x *GroupFindingsResponse) String() string
GroupResult
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() int64
func (*GroupResult) GetProperties
func (x *GroupResult) GetProperties() map[string]*structpb.Value
func (*GroupResult) ProtoMessage
func (*GroupResult) ProtoMessage()
func (*GroupResult) ProtoReflect
func (x *GroupResult) ProtoReflect() protoreflect.Message
func (*GroupResult) Reset
func (x *GroupResult) Reset()
func (*GroupResult) String
func (x *GroupResult) String() string
ListAssetsRequest
type ListAssetsRequest struct {
// Required. Name of the organization assets should belong to. Its format is
// "organizations/[organization_id], folders/[folder_id], or
// projects/[project_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 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.Duration
func (*ListAssetsRequest) GetFieldMask
func (x *ListAssetsRequest) GetFieldMask() *fieldmaskpb.FieldMask
func (*ListAssetsRequest) GetFilter
func (x *ListAssetsRequest) GetFilter() string
func (*ListAssetsRequest) GetOrderBy
func (x *ListAssetsRequest) GetOrderBy() string
func (*ListAssetsRequest) GetPageSize
func (x *ListAssetsRequest) GetPageSize() int32
func (*ListAssetsRequest) GetPageToken
func (x *ListAssetsRequest) GetPageToken() string
func (*ListAssetsRequest) GetParent
func (x *ListAssetsRequest) GetParent() string
func (*ListAssetsRequest) GetReadTime
func (x *ListAssetsRequest) GetReadTime() *timestamppb.Timestamp
func (*ListAssetsRequest) ProtoMessage
func (*ListAssetsRequest) ProtoMessage()
func (*ListAssetsRequest) ProtoReflect
func (x *ListAssetsRequest) ProtoReflect() protoreflect.Message
func (*ListAssetsRequest) Reset
func (x *ListAssetsRequest) Reset()
func (*ListAssetsRequest) String
func (x *ListAssetsRequest) String() string
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 *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_ListAssetsResult
func (*ListAssetsResponse) GetNextPageToken
func (x *ListAssetsResponse) GetNextPageToken() string
func (*ListAssetsResponse) GetReadTime
func (x *ListAssetsResponse) GetReadTime() *timestamppb.Timestamp
func (*ListAssetsResponse) GetTotalSize
func (x *ListAssetsResponse) GetTotalSize() int32
func (*ListAssetsResponse) ProtoMessage
func (*ListAssetsResponse) ProtoMessage()
func (*ListAssetsResponse) ProtoReflect
func (x *ListAssetsResponse) ProtoReflect() protoreflect.Message
func (*ListAssetsResponse) Reset
func (x *ListAssetsResponse) Reset()
func (*ListAssetsResponse) String
func (x *ListAssetsResponse) String() string
ListAssetsResponse_ListAssetsResult
type ListAssetsResponse_ListAssetsResult struct {
Asset *Asset `protobuf:"bytes,1,opt,name=asset,proto3" json:"asset,omitempty"`
StateChange ListAssetsResponse_ListAssetsResult_StateChange "" /* 186 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() *Asset
func (*ListAssetsResponse_ListAssetsResult) GetStateChange
func (x *ListAssetsResponse_ListAssetsResult) GetStateChange() ListAssetsResponse_ListAssetsResult_StateChange
func (*ListAssetsResponse_ListAssetsResult) ProtoMessage
func (*ListAssetsResponse_ListAssetsResult) ProtoMessage()
func (*ListAssetsResponse_ListAssetsResult) ProtoReflect
func (x *ListAssetsResponse_ListAssetsResult) ProtoReflect() protoreflect.Message
func (*ListAssetsResponse_ListAssetsResult) Reset
func (x *ListAssetsResponse_ListAssetsResult) Reset()
func (*ListAssetsResponse_ListAssetsResult) String
func (x *ListAssetsResponse_ListAssetsResult) String() string
ListAssetsResponse_ListAssetsResult_StateChange
type ListAssetsResponse_ListAssetsResult_StateChange int32
The change in 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 change will be: UNUSED
ListAssetsResponse_ListAssetsResult_UNUSED, ListAssetsResponse_ListAssetsResult_ADDED, ListAssetsResponse_ListAssetsResult_REMOVED, ListAssetsResponse_ListAssetsResult_ACTIVE
const (
// State change is unused, this is the canonical default for this enum.
ListAssetsResponse_ListAssetsResult_UNUSED ListAssetsResponse_ListAssetsResult_StateChange = 0
// Asset was added between the points in time.
ListAssetsResponse_ListAssetsResult_ADDED ListAssetsResponse_ListAssetsResult_StateChange = 1
// Asset was removed between the points in time.
ListAssetsResponse_ListAssetsResult_REMOVED ListAssetsResponse_ListAssetsResult_StateChange = 2
// Asset was present at both point(s) in time.
ListAssetsResponse_ListAssetsResult_ACTIVE ListAssetsResponse_ListAssetsResult_StateChange = 3
)
func (ListAssetsResponse_ListAssetsResult_StateChange) Descriptor
func (ListAssetsResponse_ListAssetsResult_StateChange) Descriptor() protoreflect.EnumDescriptor
func (ListAssetsResponse_ListAssetsResult_StateChange) Enum
func (x ListAssetsResponse_ListAssetsResult_StateChange) Enum() *ListAssetsResponse_ListAssetsResult_StateChange
func (ListAssetsResponse_ListAssetsResult_StateChange) EnumDescriptor
func (ListAssetsResponse_ListAssetsResult_StateChange) EnumDescriptor() ([]byte, []int)
Deprecated: Use ListAssetsResponse_ListAssetsResult_StateChange.Descriptor instead.
func (ListAssetsResponse_ListAssetsResult_StateChange) Number
func (x ListAssetsResponse_ListAssetsResult_StateChange) Number() protoreflect.EnumNumber
func (ListAssetsResponse_ListAssetsResult_StateChange) String
func (x ListAssetsResponse_ListAssetsResult_StateChange) String() string
func (ListAssetsResponse_ListAssetsResult_StateChange) Type
ListFindingsRequest
type ListFindingsRequest struct {
// Required. Name of the source the findings belong to. Its format is
// "organizations/[organization_id]/sources/[source_id],
// folders/[folder_id]/sources/[source_id], or
// projects/[project_id]/sources/[source_id]". To list across all sources
// provide a source_id of `-`. For example:
// organizations/{organization_id}/sources/-, folders/{folder_id}/sources/- or
// projects/{projects_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 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) GetCompareDuration
func (x *ListFindingsRequest) GetCompareDuration() *durationpb.Duration
func (*ListFindingsRequest) GetFieldMask
func (x *ListFindingsRequest) GetFieldMask() *fieldmaskpb.FieldMask
func (*ListFindingsRequest) GetFilter
func (x *ListFindingsRequest) GetFilter() string
func (*ListFindingsRequest) GetOrderBy
func (x *ListFindingsRequest) GetOrderBy() string
func (*ListFindingsRequest) GetPageSize
func (x *ListFindingsRequest) GetPageSize() int32
func (*ListFindingsRequest) GetPageToken
func (x *ListFindingsRequest) GetPageToken() string
func (*ListFindingsRequest) GetParent
func (x *ListFindingsRequest) GetParent() string
func (*ListFindingsRequest) GetReadTime
func (x *ListFindingsRequest) GetReadTime() *timestamppb.Timestamp
func (*ListFindingsRequest) ProtoMessage
func (*ListFindingsRequest) ProtoMessage()
func (*ListFindingsRequest) ProtoReflect
func (x *ListFindingsRequest) ProtoReflect() protoreflect.Message
func (*ListFindingsRequest) Reset
func (x *ListFindingsRequest) Reset()
func (*ListFindingsRequest) String
func (x *ListFindingsRequest) String() string
ListFindingsResponse
type ListFindingsResponse struct {
// Findings matching the list request.
ListFindingsResults []*ListFindingsResponse_ListFindingsResult `protobuf:"bytes,1,rep,name=list_findings_results,json=listFindingsResults,proto3" json:"list_findings_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 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) GetListFindingsResults
func (x *ListFindingsResponse) GetListFindingsResults() []*ListFindingsResponse_ListFindingsResult
func (*ListFindingsResponse) GetNextPageToken
func (x *ListFindingsResponse) GetNextPageToken() string
func (*ListFindingsResponse) GetReadTime
func (x *ListFindingsResponse) GetReadTime() *timestamppb.Timestamp
func (*ListFindingsResponse) GetTotalSize
func (x *ListFindingsResponse) GetTotalSize() int32
func (*ListFindingsResponse) ProtoMessage
func (*ListFindingsResponse) ProtoMessage()
func (*ListFindingsResponse) ProtoReflect
func (x *ListFindingsResponse) ProtoReflect() protoreflect.Message
func (*ListFindingsResponse) Reset
func (x *ListFindingsResponse) Reset()
func (*ListFindingsResponse) String
func (x *ListFindingsResponse) String() string
ListFindingsResponse_ListFindingsResult
type ListFindingsResponse_ListFindingsResult struct {
Finding *Finding `protobuf:"bytes,1,opt,name=finding,proto3" json:"finding,omitempty"`
StateChange ListFindingsResponse_ListFindingsResult_StateChange "" /* 190 byte string literal not displayed */
Resource *ListFindingsResponse_ListFindingsResult_Resource `protobuf:"bytes,3,opt,name=resource,proto3" json:"resource,omitempty"`
}
Result containing the Finding and its StateChange.
func (*ListFindingsResponse_ListFindingsResult) Descriptor
func (*ListFindingsResponse_ListFindingsResult) Descriptor() ([]byte, []int)
Deprecated: Use ListFindingsResponse_ListFindingsResult.ProtoReflect.Descriptor instead.
func (*ListFindingsResponse_ListFindingsResult) GetFinding
func (x *ListFindingsResponse_ListFindingsResult) GetFinding() *Finding
func (*ListFindingsResponse_ListFindingsResult) GetResource
func (x *ListFindingsResponse_ListFindingsResult) GetResource() *ListFindingsResponse_ListFindingsResult_Resource
func (*ListFindingsResponse_ListFindingsResult) GetStateChange
func (x *ListFindingsResponse_ListFindingsResult) GetStateChange() ListFindingsResponse_ListFindingsResult_StateChange
func (*ListFindingsResponse_ListFindingsResult) ProtoMessage
func (*ListFindingsResponse_ListFindingsResult) ProtoMessage()
func (*ListFindingsResponse_ListFindingsResult) ProtoReflect
func (x *ListFindingsResponse_ListFindingsResult) ProtoReflect() protoreflect.Message
func (*ListFindingsResponse_ListFindingsResult) Reset
func (x *ListFindingsResponse_ListFindingsResult) Reset()
func (*ListFindingsResponse_ListFindingsResult) String
func (x *ListFindingsResponse_ListFindingsResult) String() string
ListFindingsResponse_ListFindingsResult_Resource
type ListFindingsResponse_ListFindingsResult_Resource struct {
// The full resource name of the resource. See:
// https://cloud.google.com/apis/design/resource_names#full_resource_name
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// The full resource name of project that the resource belongs to.
ProjectName string `protobuf:"bytes,2,opt,name=project_name,json=projectName,proto3" json:"project_name,omitempty"`
// The human readable name of project that the resource belongs to.
ProjectDisplayName string `protobuf:"bytes,3,opt,name=project_display_name,json=projectDisplayName,proto3" json:"project_display_name,omitempty"`
// The full resource name of resource's parent.
ParentName string `protobuf:"bytes,4,opt,name=parent_name,json=parentName,proto3" json:"parent_name,omitempty"`
// The human readable name of resource's parent.
ParentDisplayName string `protobuf:"bytes,5,opt,name=parent_display_name,json=parentDisplayName,proto3" json:"parent_display_name,omitempty"`
// Contains a Folder message for each folder in the assets ancestry.
// The first folder is the deepest nested folder, and the last folder is
// the folder directly under the Organization.
Folders []*Folder `protobuf:"bytes,10,rep,name=folders,proto3" json:"folders,omitempty"`
// contains filtered or unexported fields
}
Information related to the Google Cloud resource that is associated with this finding.
func (*ListFindingsResponse_ListFindingsResult_Resource) Descriptor
func (*ListFindingsResponse_ListFindingsResult_Resource) Descriptor() ([]byte, []int)
Deprecated: Use ListFindingsResponse_ListFindingsResult_Resource.ProtoReflect.Descriptor instead.
func (*ListFindingsResponse_ListFindingsResult_Resource) GetFolders
func (x *ListFindingsResponse_ListFindingsResult_Resource) GetFolders() []*Folder
func (*ListFindingsResponse_ListFindingsResult_Resource) GetName
func (x *ListFindingsResponse_ListFindingsResult_Resource) GetName() string
func (*ListFindingsResponse_ListFindingsResult_Resource) GetParentDisplayName
func (x *ListFindingsResponse_ListFindingsResult_Resource) GetParentDisplayName() string
func (*ListFindingsResponse_ListFindingsResult_Resource) GetParentName
func (x *ListFindingsResponse_ListFindingsResult_Resource) GetParentName() string
func (*ListFindingsResponse_ListFindingsResult_Resource) GetProjectDisplayName
func (x *ListFindingsResponse_ListFindingsResult_Resource) GetProjectDisplayName() string
func (*ListFindingsResponse_ListFindingsResult_Resource) GetProjectName
func (x *ListFindingsResponse_ListFindingsResult_Resource) GetProjectName() string
func (*ListFindingsResponse_ListFindingsResult_Resource) ProtoMessage
func (*ListFindingsResponse_ListFindingsResult_Resource) ProtoMessage()
func (*ListFindingsResponse_ListFindingsResult_Resource) ProtoReflect
func (x *ListFindingsResponse_ListFindingsResult_Resource) ProtoReflect() protoreflect.Message
func (*ListFindingsResponse_ListFindingsResult_Resource) Reset
func (x *ListFindingsResponse_ListFindingsResult_Resource) Reset()
func (*ListFindingsResponse_ListFindingsResult_Resource) String
func (x *ListFindingsResponse_ListFindingsResult_Resource) String() string
ListFindingsResponse_ListFindingsResult_StateChange
type ListFindingsResponse_ListFindingsResult_StateChange int32
The change in state of the finding.
When querying across two points in time this describes the change in the finding between the two points: CHANGED, UNCHANGED, ADDED, or REMOVED. Findings can not be deleted, so REMOVED implies that the finding at timestamp does not match the filter specified, but it did at timestamp - compare_duration. If there was no compare_duration supplied in the request the state change will be: UNUSED
ListFindingsResponse_ListFindingsResult_UNUSED, ListFindingsResponse_ListFindingsResult_CHANGED, ListFindingsResponse_ListFindingsResult_UNCHANGED, ListFindingsResponse_ListFindingsResult_ADDED, ListFindingsResponse_ListFindingsResult_REMOVED
const (
// State change is unused, this is the canonical default for this enum.
ListFindingsResponse_ListFindingsResult_UNUSED ListFindingsResponse_ListFindingsResult_StateChange = 0
// The finding has changed state in some way between the points in time
// and existed at both points.
ListFindingsResponse_ListFindingsResult_CHANGED ListFindingsResponse_ListFindingsResult_StateChange = 1
// The finding has not changed state between the points in time and
// existed at both points.
ListFindingsResponse_ListFindingsResult_UNCHANGED ListFindingsResponse_ListFindingsResult_StateChange = 2
// The finding was created between the points in time.
ListFindingsResponse_ListFindingsResult_ADDED ListFindingsResponse_ListFindingsResult_StateChange = 3
// The finding at timestamp does not match the filter specified, but it
// did at timestamp - compare_duration.
ListFindingsResponse_ListFindingsResult_REMOVED ListFindingsResponse_ListFindingsResult_StateChange = 4
)
func (ListFindingsResponse_ListFindingsResult_StateChange) Descriptor
func (ListFindingsResponse_ListFindingsResult_StateChange) Descriptor() protoreflect.EnumDescriptor
func (ListFindingsResponse_ListFindingsResult_StateChange) Enum
func (x ListFindingsResponse_ListFindingsResult_StateChange) Enum() *ListFindingsResponse_ListFindingsResult_StateChange
func (ListFindingsResponse_ListFindingsResult_StateChange) EnumDescriptor
func (ListFindingsResponse_ListFindingsResult_StateChange) EnumDescriptor() ([]byte, []int)
Deprecated: Use ListFindingsResponse_ListFindingsResult_StateChange.Descriptor instead.
func (ListFindingsResponse_ListFindingsResult_StateChange) Number
func (x ListFindingsResponse_ListFindingsResult_StateChange) Number() protoreflect.EnumNumber
func (ListFindingsResponse_ListFindingsResult_StateChange) String
func (x ListFindingsResponse_ListFindingsResult_StateChange) String() string
func (ListFindingsResponse_ListFindingsResult_StateChange) Type
ListNotificationConfigsRequest
type ListNotificationConfigsRequest struct {
// Required. Name of the organization to list notification configs.
// Its format is "organizations/[organization_id]".
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// The value returned by the last `ListNotificationConfigsResponse`; indicates
// that this is a continuation of a prior `ListNotificationConfigs` 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,3,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
// contains filtered or unexported fields
}
Request message for listing notification configs.
func (*ListNotificationConfigsRequest) Descriptor
func (*ListNotificationConfigsRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListNotificationConfigsRequest.ProtoReflect.Descriptor instead.
func (*ListNotificationConfigsRequest) GetPageSize
func (x *ListNotificationConfigsRequest) GetPageSize() int32
func (*ListNotificationConfigsRequest) GetPageToken
func (x *ListNotificationConfigsRequest) GetPageToken() string
func (*ListNotificationConfigsRequest) GetParent
func (x *ListNotificationConfigsRequest) GetParent() string
func (*ListNotificationConfigsRequest) ProtoMessage
func (*ListNotificationConfigsRequest) ProtoMessage()
func (*ListNotificationConfigsRequest) ProtoReflect
func (x *ListNotificationConfigsRequest) ProtoReflect() protoreflect.Message
func (*ListNotificationConfigsRequest) Reset
func (x *ListNotificationConfigsRequest) Reset()
func (*ListNotificationConfigsRequest) String
func (x *ListNotificationConfigsRequest) String() string
ListNotificationConfigsResponse
type ListNotificationConfigsResponse struct {
// Notification configs belonging to the requested parent.
NotificationConfigs []*NotificationConfig `protobuf:"bytes,1,rep,name=notification_configs,json=notificationConfigs,proto3" json:"notification_configs,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 notification configs.
func (*ListNotificationConfigsResponse) Descriptor
func (*ListNotificationConfigsResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListNotificationConfigsResponse.ProtoReflect.Descriptor instead.
func (*ListNotificationConfigsResponse) GetNextPageToken
func (x *ListNotificationConfigsResponse) GetNextPageToken() string
func (*ListNotificationConfigsResponse) GetNotificationConfigs
func (x *ListNotificationConfigsResponse) GetNotificationConfigs() []*NotificationConfig
func (*ListNotificationConfigsResponse) ProtoMessage
func (*ListNotificationConfigsResponse) ProtoMessage()
func (*ListNotificationConfigsResponse) ProtoReflect
func (x *ListNotificationConfigsResponse) ProtoReflect() protoreflect.Message
func (*ListNotificationConfigsResponse) Reset
func (x *ListNotificationConfigsResponse) Reset()
func (*ListNotificationConfigsResponse) String
func (x *ListNotificationConfigsResponse) String() string
ListSourcesRequest
type ListSourcesRequest struct {
// Required. Resource name of the parent of sources to list. Its format should be
// "organizations/[organization_id], folders/[folder_id], or
// projects/[project_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() int32
func (*ListSourcesRequest) GetPageToken
func (x *ListSourcesRequest) GetPageToken() string
func (*ListSourcesRequest) GetParent
func (x *ListSourcesRequest) GetParent() string
func (*ListSourcesRequest) ProtoMessage
func (*ListSourcesRequest) ProtoMessage()
func (*ListSourcesRequest) ProtoReflect
func (x *ListSourcesRequest) ProtoReflect() protoreflect.Message
func (*ListSourcesRequest) Reset
func (x *ListSourcesRequest) Reset()
func (*ListSourcesRequest) String
func (x *ListSourcesRequest) String() string
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"`
// 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() string
func (*ListSourcesResponse) GetSources
func (x *ListSourcesResponse) GetSources() []*Source
func (*ListSourcesResponse) ProtoMessage
func (*ListSourcesResponse) ProtoMessage()
func (*ListSourcesResponse) ProtoReflect
func (x *ListSourcesResponse) ProtoReflect() protoreflect.Message
func (*ListSourcesResponse) Reset
func (x *ListSourcesResponse) Reset()
func (*ListSourcesResponse) String
func (x *ListSourcesResponse) String() string
NotificationConfig
type NotificationConfig struct {
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
EventType NotificationConfig_EventType "" /* 161 byte string literal not displayed */
PubsubTopic string `protobuf:"bytes,4,opt,name=pubsub_topic,json=pubsubTopic,proto3" json:"pubsub_topic,omitempty"`
ServiceAccount string `protobuf:"bytes,5,opt,name=service_account,json=serviceAccount,proto3" json:"service_account,omitempty"`
NotifyConfig isNotificationConfig_NotifyConfig `protobuf_oneof:"notify_config"`
}
Security Command Center notification configs.
A notification config is a Security Command Center resource that contains the configuration to send notifications for create/update events of findings, assets and etc.
func (*NotificationConfig) Descriptor
func (*NotificationConfig) Descriptor() ([]byte, []int)
Deprecated: Use NotificationConfig.ProtoReflect.Descriptor instead.
func (*NotificationConfig) GetDescription
func (x *NotificationConfig) GetDescription() string
func (*NotificationConfig) GetEventType
func (x *NotificationConfig) GetEventType() NotificationConfig_EventType
func (*NotificationConfig) GetName
func (x *NotificationConfig) GetName() string
func (*NotificationConfig) GetNotifyConfig
func (m *NotificationConfig) GetNotifyConfig() isNotificationConfig_NotifyConfig
func (*NotificationConfig) GetPubsubTopic
func (x *NotificationConfig) GetPubsubTopic() string
func (*NotificationConfig) GetServiceAccount
func (x *NotificationConfig) GetServiceAccount() string
func (*NotificationConfig) GetStreamingConfig
func (x *NotificationConfig) GetStreamingConfig() *NotificationConfig_StreamingConfig
func (*NotificationConfig) ProtoMessage
func (*NotificationConfig) ProtoMessage()
func (*NotificationConfig) ProtoReflect
func (x *NotificationConfig) ProtoReflect() protoreflect.Message
func (*NotificationConfig) Reset
func (x *NotificationConfig) Reset()
func (*NotificationConfig) String
func (x *NotificationConfig) String() string
NotificationConfig_EventType
type NotificationConfig_EventType int32
The type of events.
NotificationConfig_EVENT_TYPE_UNSPECIFIED, NotificationConfig_FINDING
const (
// Unspecified event type.
NotificationConfig_EVENT_TYPE_UNSPECIFIED NotificationConfig_EventType = 0
// Events for findings.
NotificationConfig_FINDING NotificationConfig_EventType = 1
)
func (NotificationConfig_EventType) Descriptor
func (NotificationConfig_EventType) Descriptor()