Documentation ¶
Index ¶
- Variables
- func RegisterSecurityCenterServer(s *grpc.Server, srv SecurityCenterServer)
- type Asset
- func (*Asset) Descriptor() ([]byte, []int)
- func (m *Asset) GetCreateTime() *timestamp.Timestamp
- func (m *Asset) GetIamPolicy() *Asset_IamPolicy
- func (m *Asset) GetName() string
- func (m *Asset) GetResourceProperties() map[string]*_struct.Value
- func (m *Asset) GetSecurityCenterProperties() *Asset_SecurityCenterProperties
- func (m *Asset) GetSecurityMarks() *SecurityMarks
- func (m *Asset) GetUpdateTime() *timestamp.Timestamp
- func (*Asset) ProtoMessage()
- func (m *Asset) Reset()
- func (m *Asset) String() string
- func (m *Asset) XXX_DiscardUnknown()
- func (m *Asset) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Asset) XXX_Merge(src proto.Message)
- func (m *Asset) XXX_Size() int
- func (m *Asset) XXX_Unmarshal(b []byte) error
- type Asset_IamPolicy
- func (*Asset_IamPolicy) Descriptor() ([]byte, []int)
- func (m *Asset_IamPolicy) GetPolicyBlob() string
- func (*Asset_IamPolicy) ProtoMessage()
- func (m *Asset_IamPolicy) Reset()
- func (m *Asset_IamPolicy) String() string
- func (m *Asset_IamPolicy) XXX_DiscardUnknown()
- func (m *Asset_IamPolicy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Asset_IamPolicy) XXX_Merge(src proto.Message)
- func (m *Asset_IamPolicy) XXX_Size() int
- func (m *Asset_IamPolicy) XXX_Unmarshal(b []byte) error
- type Asset_SecurityCenterProperties
- func (*Asset_SecurityCenterProperties) Descriptor() ([]byte, []int)
- func (m *Asset_SecurityCenterProperties) GetResourceName() string
- func (m *Asset_SecurityCenterProperties) GetResourceOwners() []string
- func (m *Asset_SecurityCenterProperties) GetResourceParent() string
- func (m *Asset_SecurityCenterProperties) GetResourceProject() string
- func (m *Asset_SecurityCenterProperties) GetResourceType() string
- func (*Asset_SecurityCenterProperties) ProtoMessage()
- func (m *Asset_SecurityCenterProperties) Reset()
- func (m *Asset_SecurityCenterProperties) String() string
- func (m *Asset_SecurityCenterProperties) XXX_DiscardUnknown()
- func (m *Asset_SecurityCenterProperties) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Asset_SecurityCenterProperties) XXX_Merge(src proto.Message)
- func (m *Asset_SecurityCenterProperties) XXX_Size() int
- func (m *Asset_SecurityCenterProperties) XXX_Unmarshal(b []byte) error
- type CreateFindingRequest
- func (*CreateFindingRequest) Descriptor() ([]byte, []int)
- func (m *CreateFindingRequest) GetFinding() *Finding
- func (m *CreateFindingRequest) GetFindingId() string
- func (m *CreateFindingRequest) GetParent() string
- func (*CreateFindingRequest) ProtoMessage()
- func (m *CreateFindingRequest) Reset()
- func (m *CreateFindingRequest) String() string
- func (m *CreateFindingRequest) XXX_DiscardUnknown()
- func (m *CreateFindingRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CreateFindingRequest) XXX_Merge(src proto.Message)
- func (m *CreateFindingRequest) XXX_Size() int
- func (m *CreateFindingRequest) XXX_Unmarshal(b []byte) error
- type CreateNotificationConfigRequest
- func (*CreateNotificationConfigRequest) Descriptor() ([]byte, []int)
- func (m *CreateNotificationConfigRequest) GetConfigId() string
- func (m *CreateNotificationConfigRequest) GetNotificationConfig() *NotificationConfig
- func (m *CreateNotificationConfigRequest) GetParent() string
- func (*CreateNotificationConfigRequest) ProtoMessage()
- func (m *CreateNotificationConfigRequest) Reset()
- func (m *CreateNotificationConfigRequest) String() string
- func (m *CreateNotificationConfigRequest) XXX_DiscardUnknown()
- func (m *CreateNotificationConfigRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CreateNotificationConfigRequest) XXX_Merge(src proto.Message)
- func (m *CreateNotificationConfigRequest) XXX_Size() int
- func (m *CreateNotificationConfigRequest) XXX_Unmarshal(b []byte) error
- type CreateSourceRequest
- func (*CreateSourceRequest) Descriptor() ([]byte, []int)
- func (m *CreateSourceRequest) GetParent() string
- func (m *CreateSourceRequest) GetSource() *Source
- func (*CreateSourceRequest) ProtoMessage()
- func (m *CreateSourceRequest) Reset()
- func (m *CreateSourceRequest) String() string
- func (m *CreateSourceRequest) XXX_DiscardUnknown()
- func (m *CreateSourceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CreateSourceRequest) XXX_Merge(src proto.Message)
- func (m *CreateSourceRequest) XXX_Size() int
- func (m *CreateSourceRequest) XXX_Unmarshal(b []byte) error
- type DeleteNotificationConfigRequest
- func (*DeleteNotificationConfigRequest) Descriptor() ([]byte, []int)
- func (m *DeleteNotificationConfigRequest) GetName() string
- func (*DeleteNotificationConfigRequest) ProtoMessage()
- func (m *DeleteNotificationConfigRequest) Reset()
- func (m *DeleteNotificationConfigRequest) String() string
- func (m *DeleteNotificationConfigRequest) XXX_DiscardUnknown()
- func (m *DeleteNotificationConfigRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DeleteNotificationConfigRequest) XXX_Merge(src proto.Message)
- func (m *DeleteNotificationConfigRequest) XXX_Size() int
- func (m *DeleteNotificationConfigRequest) XXX_Unmarshal(b []byte) error
- type Finding
- func (*Finding) Descriptor() ([]byte, []int)
- func (m *Finding) GetCategory() string
- func (m *Finding) GetCreateTime() *timestamp.Timestamp
- func (m *Finding) GetEventTime() *timestamp.Timestamp
- func (m *Finding) GetExternalUri() string
- func (m *Finding) GetName() string
- func (m *Finding) GetParent() string
- func (m *Finding) GetResourceName() string
- func (m *Finding) GetSecurityMarks() *SecurityMarks
- func (m *Finding) GetSourceProperties() map[string]*_struct.Value
- func (m *Finding) GetState() Finding_State
- func (*Finding) ProtoMessage()
- func (m *Finding) Reset()
- func (m *Finding) String() string
- func (m *Finding) XXX_DiscardUnknown()
- func (m *Finding) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Finding) XXX_Merge(src proto.Message)
- func (m *Finding) XXX_Size() int
- func (m *Finding) XXX_Unmarshal(b []byte) error
- type Finding_State
- type GetNotificationConfigRequest
- func (*GetNotificationConfigRequest) Descriptor() ([]byte, []int)
- func (m *GetNotificationConfigRequest) GetName() string
- func (*GetNotificationConfigRequest) ProtoMessage()
- func (m *GetNotificationConfigRequest) Reset()
- func (m *GetNotificationConfigRequest) String() string
- func (m *GetNotificationConfigRequest) XXX_DiscardUnknown()
- func (m *GetNotificationConfigRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetNotificationConfigRequest) XXX_Merge(src proto.Message)
- func (m *GetNotificationConfigRequest) XXX_Size() int
- func (m *GetNotificationConfigRequest) XXX_Unmarshal(b []byte) error
- type GetOrganizationSettingsRequest
- func (*GetOrganizationSettingsRequest) Descriptor() ([]byte, []int)
- func (m *GetOrganizationSettingsRequest) GetName() string
- func (*GetOrganizationSettingsRequest) ProtoMessage()
- func (m *GetOrganizationSettingsRequest) Reset()
- func (m *GetOrganizationSettingsRequest) String() string
- func (m *GetOrganizationSettingsRequest) XXX_DiscardUnknown()
- func (m *GetOrganizationSettingsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetOrganizationSettingsRequest) XXX_Merge(src proto.Message)
- func (m *GetOrganizationSettingsRequest) XXX_Size() int
- func (m *GetOrganizationSettingsRequest) XXX_Unmarshal(b []byte) error
- type GetSourceRequest
- func (*GetSourceRequest) Descriptor() ([]byte, []int)
- func (m *GetSourceRequest) GetName() string
- func (*GetSourceRequest) ProtoMessage()
- func (m *GetSourceRequest) Reset()
- func (m *GetSourceRequest) String() string
- func (m *GetSourceRequest) XXX_DiscardUnknown()
- func (m *GetSourceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetSourceRequest) XXX_Merge(src proto.Message)
- func (m *GetSourceRequest) XXX_Size() int
- func (m *GetSourceRequest) XXX_Unmarshal(b []byte) error
- type GroupAssetsRequest
- func (*GroupAssetsRequest) Descriptor() ([]byte, []int)
- func (m *GroupAssetsRequest) GetCompareDuration() *duration.Duration
- func (m *GroupAssetsRequest) GetFilter() string
- func (m *GroupAssetsRequest) GetGroupBy() string
- func (m *GroupAssetsRequest) GetPageSize() int32
- func (m *GroupAssetsRequest) GetPageToken() string
- func (m *GroupAssetsRequest) GetParent() string
- func (m *GroupAssetsRequest) GetReadTime() *timestamp.Timestamp
- func (*GroupAssetsRequest) ProtoMessage()
- func (m *GroupAssetsRequest) Reset()
- func (m *GroupAssetsRequest) String() string
- func (m *GroupAssetsRequest) XXX_DiscardUnknown()
- func (m *GroupAssetsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GroupAssetsRequest) XXX_Merge(src proto.Message)
- func (m *GroupAssetsRequest) XXX_Size() int
- func (m *GroupAssetsRequest) XXX_Unmarshal(b []byte) error
- type GroupAssetsResponse
- func (*GroupAssetsResponse) Descriptor() ([]byte, []int)
- func (m *GroupAssetsResponse) GetGroupByResults() []*GroupResult
- func (m *GroupAssetsResponse) GetNextPageToken() string
- func (m *GroupAssetsResponse) GetReadTime() *timestamp.Timestamp
- func (m *GroupAssetsResponse) GetTotalSize() int32
- func (*GroupAssetsResponse) ProtoMessage()
- func (m *GroupAssetsResponse) Reset()
- func (m *GroupAssetsResponse) String() string
- func (m *GroupAssetsResponse) XXX_DiscardUnknown()
- func (m *GroupAssetsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GroupAssetsResponse) XXX_Merge(src proto.Message)
- func (m *GroupAssetsResponse) XXX_Size() int
- func (m *GroupAssetsResponse) XXX_Unmarshal(b []byte) error
- type GroupFindingsRequest
- func (*GroupFindingsRequest) Descriptor() ([]byte, []int)
- func (m *GroupFindingsRequest) GetCompareDuration() *duration.Duration
- func (m *GroupFindingsRequest) GetFilter() string
- func (m *GroupFindingsRequest) GetGroupBy() string
- func (m *GroupFindingsRequest) GetPageSize() int32
- func (m *GroupFindingsRequest) GetPageToken() string
- func (m *GroupFindingsRequest) GetParent() string
- func (m *GroupFindingsRequest) GetReadTime() *timestamp.Timestamp
- func (*GroupFindingsRequest) ProtoMessage()
- func (m *GroupFindingsRequest) Reset()
- func (m *GroupFindingsRequest) String() string
- func (m *GroupFindingsRequest) XXX_DiscardUnknown()
- func (m *GroupFindingsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GroupFindingsRequest) XXX_Merge(src proto.Message)
- func (m *GroupFindingsRequest) XXX_Size() int
- func (m *GroupFindingsRequest) XXX_Unmarshal(b []byte) error
- type GroupFindingsResponse
- func (*GroupFindingsResponse) Descriptor() ([]byte, []int)
- func (m *GroupFindingsResponse) GetGroupByResults() []*GroupResult
- func (m *GroupFindingsResponse) GetNextPageToken() string
- func (m *GroupFindingsResponse) GetReadTime() *timestamp.Timestamp
- func (m *GroupFindingsResponse) GetTotalSize() int32
- func (*GroupFindingsResponse) ProtoMessage()
- func (m *GroupFindingsResponse) Reset()
- func (m *GroupFindingsResponse) String() string
- func (m *GroupFindingsResponse) XXX_DiscardUnknown()
- func (m *GroupFindingsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GroupFindingsResponse) XXX_Merge(src proto.Message)
- func (m *GroupFindingsResponse) XXX_Size() int
- func (m *GroupFindingsResponse) XXX_Unmarshal(b []byte) error
- type GroupResult
- func (*GroupResult) Descriptor() ([]byte, []int)
- func (m *GroupResult) GetCount() int64
- func (m *GroupResult) GetProperties() map[string]*_struct.Value
- func (*GroupResult) ProtoMessage()
- func (m *GroupResult) Reset()
- func (m *GroupResult) String() string
- func (m *GroupResult) XXX_DiscardUnknown()
- func (m *GroupResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GroupResult) XXX_Merge(src proto.Message)
- func (m *GroupResult) XXX_Size() int
- func (m *GroupResult) XXX_Unmarshal(b []byte) error
- type ListAssetsRequest
- func (*ListAssetsRequest) Descriptor() ([]byte, []int)
- func (m *ListAssetsRequest) GetCompareDuration() *duration.Duration
- func (m *ListAssetsRequest) GetFieldMask() *field_mask.FieldMask
- func (m *ListAssetsRequest) GetFilter() string
- func (m *ListAssetsRequest) GetOrderBy() string
- func (m *ListAssetsRequest) GetPageSize() int32
- func (m *ListAssetsRequest) GetPageToken() string
- func (m *ListAssetsRequest) GetParent() string
- func (m *ListAssetsRequest) GetReadTime() *timestamp.Timestamp
- func (*ListAssetsRequest) ProtoMessage()
- func (m *ListAssetsRequest) Reset()
- func (m *ListAssetsRequest) String() string
- func (m *ListAssetsRequest) XXX_DiscardUnknown()
- func (m *ListAssetsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ListAssetsRequest) XXX_Merge(src proto.Message)
- func (m *ListAssetsRequest) XXX_Size() int
- func (m *ListAssetsRequest) XXX_Unmarshal(b []byte) error
- type ListAssetsResponse
- func (*ListAssetsResponse) Descriptor() ([]byte, []int)
- func (m *ListAssetsResponse) GetListAssetsResults() []*ListAssetsResponse_ListAssetsResult
- func (m *ListAssetsResponse) GetNextPageToken() string
- func (m *ListAssetsResponse) GetReadTime() *timestamp.Timestamp
- func (m *ListAssetsResponse) GetTotalSize() int32
- func (*ListAssetsResponse) ProtoMessage()
- func (m *ListAssetsResponse) Reset()
- func (m *ListAssetsResponse) String() string
- func (m *ListAssetsResponse) XXX_DiscardUnknown()
- func (m *ListAssetsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ListAssetsResponse) XXX_Merge(src proto.Message)
- func (m *ListAssetsResponse) XXX_Size() int
- func (m *ListAssetsResponse) XXX_Unmarshal(b []byte) error
- type ListAssetsResponse_ListAssetsResult
- func (*ListAssetsResponse_ListAssetsResult) Descriptor() ([]byte, []int)
- func (m *ListAssetsResponse_ListAssetsResult) GetAsset() *Asset
- func (m *ListAssetsResponse_ListAssetsResult) GetStateChange() ListAssetsResponse_ListAssetsResult_StateChange
- func (*ListAssetsResponse_ListAssetsResult) ProtoMessage()
- func (m *ListAssetsResponse_ListAssetsResult) Reset()
- func (m *ListAssetsResponse_ListAssetsResult) String() string
- func (m *ListAssetsResponse_ListAssetsResult) XXX_DiscardUnknown()
- func (m *ListAssetsResponse_ListAssetsResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ListAssetsResponse_ListAssetsResult) XXX_Merge(src proto.Message)
- func (m *ListAssetsResponse_ListAssetsResult) XXX_Size() int
- func (m *ListAssetsResponse_ListAssetsResult) XXX_Unmarshal(b []byte) error
- type ListAssetsResponse_ListAssetsResult_StateChange
- type ListFindingsRequest
- func (*ListFindingsRequest) Descriptor() ([]byte, []int)
- func (m *ListFindingsRequest) GetCompareDuration() *duration.Duration
- func (m *ListFindingsRequest) GetFieldMask() *field_mask.FieldMask
- func (m *ListFindingsRequest) GetFilter() string
- func (m *ListFindingsRequest) GetOrderBy() string
- func (m *ListFindingsRequest) GetPageSize() int32
- func (m *ListFindingsRequest) GetPageToken() string
- func (m *ListFindingsRequest) GetParent() string
- func (m *ListFindingsRequest) GetReadTime() *timestamp.Timestamp
- func (*ListFindingsRequest) ProtoMessage()
- func (m *ListFindingsRequest) Reset()
- func (m *ListFindingsRequest) String() string
- func (m *ListFindingsRequest) XXX_DiscardUnknown()
- func (m *ListFindingsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ListFindingsRequest) XXX_Merge(src proto.Message)
- func (m *ListFindingsRequest) XXX_Size() int
- func (m *ListFindingsRequest) XXX_Unmarshal(b []byte) error
- type ListFindingsResponse
- func (*ListFindingsResponse) Descriptor() ([]byte, []int)
- func (m *ListFindingsResponse) GetListFindingsResults() []*ListFindingsResponse_ListFindingsResult
- func (m *ListFindingsResponse) GetNextPageToken() string
- func (m *ListFindingsResponse) GetReadTime() *timestamp.Timestamp
- func (m *ListFindingsResponse) GetTotalSize() int32
- func (*ListFindingsResponse) ProtoMessage()
- func (m *ListFindingsResponse) Reset()
- func (m *ListFindingsResponse) String() string
- func (m *ListFindingsResponse) XXX_DiscardUnknown()
- func (m *ListFindingsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ListFindingsResponse) XXX_Merge(src proto.Message)
- func (m *ListFindingsResponse) XXX_Size() int
- func (m *ListFindingsResponse) XXX_Unmarshal(b []byte) error
- type ListFindingsResponse_ListFindingsResult
- func (*ListFindingsResponse_ListFindingsResult) Descriptor() ([]byte, []int)
- func (m *ListFindingsResponse_ListFindingsResult) GetFinding() *Finding
- func (m *ListFindingsResponse_ListFindingsResult) GetStateChange() ListFindingsResponse_ListFindingsResult_StateChange
- func (*ListFindingsResponse_ListFindingsResult) ProtoMessage()
- func (m *ListFindingsResponse_ListFindingsResult) Reset()
- func (m *ListFindingsResponse_ListFindingsResult) String() string
- func (m *ListFindingsResponse_ListFindingsResult) XXX_DiscardUnknown()
- func (m *ListFindingsResponse_ListFindingsResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ListFindingsResponse_ListFindingsResult) XXX_Merge(src proto.Message)
- func (m *ListFindingsResponse_ListFindingsResult) XXX_Size() int
- func (m *ListFindingsResponse_ListFindingsResult) XXX_Unmarshal(b []byte) error
- type ListFindingsResponse_ListFindingsResult_StateChange
- type ListNotificationConfigsRequest
- func (*ListNotificationConfigsRequest) Descriptor() ([]byte, []int)
- func (m *ListNotificationConfigsRequest) GetPageSize() int32
- func (m *ListNotificationConfigsRequest) GetPageToken() string
- func (m *ListNotificationConfigsRequest) GetParent() string
- func (*ListNotificationConfigsRequest) ProtoMessage()
- func (m *ListNotificationConfigsRequest) Reset()
- func (m *ListNotificationConfigsRequest) String() string
- func (m *ListNotificationConfigsRequest) XXX_DiscardUnknown()
- func (m *ListNotificationConfigsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ListNotificationConfigsRequest) XXX_Merge(src proto.Message)
- func (m *ListNotificationConfigsRequest) XXX_Size() int
- func (m *ListNotificationConfigsRequest) XXX_Unmarshal(b []byte) error
- type ListNotificationConfigsResponse
- func (*ListNotificationConfigsResponse) Descriptor() ([]byte, []int)
- func (m *ListNotificationConfigsResponse) GetNextPageToken() string
- func (m *ListNotificationConfigsResponse) GetNotificationConfigs() []*NotificationConfig
- func (*ListNotificationConfigsResponse) ProtoMessage()
- func (m *ListNotificationConfigsResponse) Reset()
- func (m *ListNotificationConfigsResponse) String() string
- func (m *ListNotificationConfigsResponse) XXX_DiscardUnknown()
- func (m *ListNotificationConfigsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ListNotificationConfigsResponse) XXX_Merge(src proto.Message)
- func (m *ListNotificationConfigsResponse) XXX_Size() int
- func (m *ListNotificationConfigsResponse) XXX_Unmarshal(b []byte) error
- type ListSourcesRequest
- func (*ListSourcesRequest) Descriptor() ([]byte, []int)
- func (m *ListSourcesRequest) GetPageSize() int32
- func (m *ListSourcesRequest) GetPageToken() string
- func (m *ListSourcesRequest) GetParent() string
- func (*ListSourcesRequest) ProtoMessage()
- func (m *ListSourcesRequest) Reset()
- func (m *ListSourcesRequest) String() string
- func (m *ListSourcesRequest) XXX_DiscardUnknown()
- func (m *ListSourcesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ListSourcesRequest) XXX_Merge(src proto.Message)
- func (m *ListSourcesRequest) XXX_Size() int
- func (m *ListSourcesRequest) XXX_Unmarshal(b []byte) error
- type ListSourcesResponse
- func (*ListSourcesResponse) Descriptor() ([]byte, []int)
- func (m *ListSourcesResponse) GetNextPageToken() string
- func (m *ListSourcesResponse) GetSources() []*Source
- func (*ListSourcesResponse) ProtoMessage()
- func (m *ListSourcesResponse) Reset()
- func (m *ListSourcesResponse) String() string
- func (m *ListSourcesResponse) XXX_DiscardUnknown()
- func (m *ListSourcesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ListSourcesResponse) XXX_Merge(src proto.Message)
- func (m *ListSourcesResponse) XXX_Size() int
- func (m *ListSourcesResponse) XXX_Unmarshal(b []byte) error
- type NotificationConfig
- func (*NotificationConfig) Descriptor() ([]byte, []int)
- func (m *NotificationConfig) GetDescription() string
- func (m *NotificationConfig) GetEventType() NotificationConfig_EventType
- func (m *NotificationConfig) GetName() string
- func (m *NotificationConfig) GetNotifyConfig() isNotificationConfig_NotifyConfig
- func (m *NotificationConfig) GetPubsubTopic() string
- func (m *NotificationConfig) GetServiceAccount() string
- func (m *NotificationConfig) GetStreamingConfig() *NotificationConfig_StreamingConfig
- func (*NotificationConfig) ProtoMessage()
- func (m *NotificationConfig) Reset()
- func (m *NotificationConfig) String() string
- func (m *NotificationConfig) XXX_DiscardUnknown()
- func (m *NotificationConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *NotificationConfig) XXX_Merge(src proto.Message)
- func (*NotificationConfig) XXX_OneofWrappers() []interface{}
- func (m *NotificationConfig) XXX_Size() int
- func (m *NotificationConfig) XXX_Unmarshal(b []byte) error
- type NotificationConfig_EventType
- type NotificationConfig_StreamingConfig
- func (*NotificationConfig_StreamingConfig) Descriptor() ([]byte, []int)
- func (m *NotificationConfig_StreamingConfig) GetFilter() string
- func (*NotificationConfig_StreamingConfig) ProtoMessage()
- func (m *NotificationConfig_StreamingConfig) Reset()
- func (m *NotificationConfig_StreamingConfig) String() string
- func (m *NotificationConfig_StreamingConfig) XXX_DiscardUnknown()
- func (m *NotificationConfig_StreamingConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *NotificationConfig_StreamingConfig) XXX_Merge(src proto.Message)
- func (m *NotificationConfig_StreamingConfig) XXX_Size() int
- func (m *NotificationConfig_StreamingConfig) XXX_Unmarshal(b []byte) error
- type NotificationConfig_StreamingConfig_
- type NotificationMessage
- func (*NotificationMessage) Descriptor() ([]byte, []int)
- func (m *NotificationMessage) GetEvent() isNotificationMessage_Event
- func (m *NotificationMessage) GetFinding() *Finding
- func (m *NotificationMessage) GetNotificationConfigName() string
- func (*NotificationMessage) ProtoMessage()
- func (m *NotificationMessage) Reset()
- func (m *NotificationMessage) String() string
- func (m *NotificationMessage) XXX_DiscardUnknown()
- func (m *NotificationMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *NotificationMessage) XXX_Merge(src proto.Message)
- func (*NotificationMessage) XXX_OneofWrappers() []interface{}
- func (m *NotificationMessage) XXX_Size() int
- func (m *NotificationMessage) XXX_Unmarshal(b []byte) error
- type NotificationMessage_Finding
- type OrganizationSettings
- func (*OrganizationSettings) Descriptor() ([]byte, []int)
- func (m *OrganizationSettings) GetAssetDiscoveryConfig() *OrganizationSettings_AssetDiscoveryConfig
- func (m *OrganizationSettings) GetEnableAssetDiscovery() bool
- func (m *OrganizationSettings) GetName() string
- func (*OrganizationSettings) ProtoMessage()
- func (m *OrganizationSettings) Reset()
- func (m *OrganizationSettings) String() string
- func (m *OrganizationSettings) XXX_DiscardUnknown()
- func (m *OrganizationSettings) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *OrganizationSettings) XXX_Merge(src proto.Message)
- func (m *OrganizationSettings) XXX_Size() int
- func (m *OrganizationSettings) XXX_Unmarshal(b []byte) error
- type OrganizationSettings_AssetDiscoveryConfig
- func (*OrganizationSettings_AssetDiscoveryConfig) Descriptor() ([]byte, []int)
- func (m *OrganizationSettings_AssetDiscoveryConfig) GetInclusionMode() OrganizationSettings_AssetDiscoveryConfig_InclusionMode
- func (m *OrganizationSettings_AssetDiscoveryConfig) GetProjectIds() []string
- func (*OrganizationSettings_AssetDiscoveryConfig) ProtoMessage()
- func (m *OrganizationSettings_AssetDiscoveryConfig) Reset()
- func (m *OrganizationSettings_AssetDiscoveryConfig) String() string
- func (m *OrganizationSettings_AssetDiscoveryConfig) XXX_DiscardUnknown()
- func (m *OrganizationSettings_AssetDiscoveryConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *OrganizationSettings_AssetDiscoveryConfig) XXX_Merge(src proto.Message)
- func (m *OrganizationSettings_AssetDiscoveryConfig) XXX_Size() int
- func (m *OrganizationSettings_AssetDiscoveryConfig) XXX_Unmarshal(b []byte) error
- type OrganizationSettings_AssetDiscoveryConfig_InclusionMode
- type RunAssetDiscoveryRequest
- func (*RunAssetDiscoveryRequest) Descriptor() ([]byte, []int)
- func (m *RunAssetDiscoveryRequest) GetParent() string
- func (*RunAssetDiscoveryRequest) ProtoMessage()
- func (m *RunAssetDiscoveryRequest) Reset()
- func (m *RunAssetDiscoveryRequest) String() string
- func (m *RunAssetDiscoveryRequest) XXX_DiscardUnknown()
- func (m *RunAssetDiscoveryRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RunAssetDiscoveryRequest) XXX_Merge(src proto.Message)
- func (m *RunAssetDiscoveryRequest) XXX_Size() int
- func (m *RunAssetDiscoveryRequest) XXX_Unmarshal(b []byte) error
- type RunAssetDiscoveryResponse
- func (*RunAssetDiscoveryResponse) Descriptor() ([]byte, []int)
- func (m *RunAssetDiscoveryResponse) GetDuration() *duration.Duration
- func (m *RunAssetDiscoveryResponse) GetState() RunAssetDiscoveryResponse_State
- func (*RunAssetDiscoveryResponse) ProtoMessage()
- func (m *RunAssetDiscoveryResponse) Reset()
- func (m *RunAssetDiscoveryResponse) String() string
- func (m *RunAssetDiscoveryResponse) XXX_DiscardUnknown()
- func (m *RunAssetDiscoveryResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RunAssetDiscoveryResponse) XXX_Merge(src proto.Message)
- func (m *RunAssetDiscoveryResponse) XXX_Size() int
- func (m *RunAssetDiscoveryResponse) XXX_Unmarshal(b []byte) error
- type RunAssetDiscoveryResponse_State
- type SecurityCenterClient
- type SecurityCenterServer
- type SecurityMarks
- func (*SecurityMarks) Descriptor() ([]byte, []int)
- func (m *SecurityMarks) GetMarks() map[string]string
- func (m *SecurityMarks) GetName() string
- func (*SecurityMarks) ProtoMessage()
- func (m *SecurityMarks) Reset()
- func (m *SecurityMarks) String() string
- func (m *SecurityMarks) XXX_DiscardUnknown()
- func (m *SecurityMarks) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SecurityMarks) XXX_Merge(src proto.Message)
- func (m *SecurityMarks) XXX_Size() int
- func (m *SecurityMarks) XXX_Unmarshal(b []byte) error
- type SetFindingStateRequest
- func (*SetFindingStateRequest) Descriptor() ([]byte, []int)
- func (m *SetFindingStateRequest) GetName() string
- func (m *SetFindingStateRequest) GetStartTime() *timestamp.Timestamp
- func (m *SetFindingStateRequest) GetState() Finding_State
- func (*SetFindingStateRequest) ProtoMessage()
- func (m *SetFindingStateRequest) Reset()
- func (m *SetFindingStateRequest) String() string
- func (m *SetFindingStateRequest) XXX_DiscardUnknown()
- func (m *SetFindingStateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SetFindingStateRequest) XXX_Merge(src proto.Message)
- func (m *SetFindingStateRequest) XXX_Size() int
- func (m *SetFindingStateRequest) XXX_Unmarshal(b []byte) error
- type Source
- func (*Source) Descriptor() ([]byte, []int)
- func (m *Source) GetDescription() string
- func (m *Source) GetDisplayName() string
- func (m *Source) GetName() string
- func (*Source) ProtoMessage()
- func (m *Source) Reset()
- func (m *Source) String() string
- func (m *Source) XXX_DiscardUnknown()
- func (m *Source) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Source) XXX_Merge(src proto.Message)
- func (m *Source) XXX_Size() int
- func (m *Source) XXX_Unmarshal(b []byte) error
- type UnimplementedSecurityCenterServer
- func (*UnimplementedSecurityCenterServer) CreateFinding(ctx context.Context, req *CreateFindingRequest) (*Finding, error)
- func (*UnimplementedSecurityCenterServer) CreateNotificationConfig(ctx context.Context, req *CreateNotificationConfigRequest) (*NotificationConfig, error)
- func (*UnimplementedSecurityCenterServer) CreateSource(ctx context.Context, req *CreateSourceRequest) (*Source, error)
- func (*UnimplementedSecurityCenterServer) DeleteNotificationConfig(ctx context.Context, req *DeleteNotificationConfigRequest) (*empty.Empty, error)
- func (*UnimplementedSecurityCenterServer) GetIamPolicy(ctx context.Context, req *v1.GetIamPolicyRequest) (*v1.Policy, error)
- func (*UnimplementedSecurityCenterServer) GetNotificationConfig(ctx context.Context, req *GetNotificationConfigRequest) (*NotificationConfig, error)
- func (*UnimplementedSecurityCenterServer) GetOrganizationSettings(ctx context.Context, req *GetOrganizationSettingsRequest) (*OrganizationSettings, error)
- func (*UnimplementedSecurityCenterServer) GetSource(ctx context.Context, req *GetSourceRequest) (*Source, error)
- func (*UnimplementedSecurityCenterServer) GroupAssets(ctx context.Context, req *GroupAssetsRequest) (*GroupAssetsResponse, error)
- func (*UnimplementedSecurityCenterServer) GroupFindings(ctx context.Context, req *GroupFindingsRequest) (*GroupFindingsResponse, error)
- func (*UnimplementedSecurityCenterServer) ListAssets(ctx context.Context, req *ListAssetsRequest) (*ListAssetsResponse, error)
- func (*UnimplementedSecurityCenterServer) ListFindings(ctx context.Context, req *ListFindingsRequest) (*ListFindingsResponse, error)
- func (*UnimplementedSecurityCenterServer) ListNotificationConfigs(ctx context.Context, req *ListNotificationConfigsRequest) (*ListNotificationConfigsResponse, error)
- func (*UnimplementedSecurityCenterServer) ListSources(ctx context.Context, req *ListSourcesRequest) (*ListSourcesResponse, error)
- func (*UnimplementedSecurityCenterServer) RunAssetDiscovery(ctx context.Context, req *RunAssetDiscoveryRequest) (*longrunning.Operation, error)
- func (*UnimplementedSecurityCenterServer) SetFindingState(ctx context.Context, req *SetFindingStateRequest) (*Finding, error)
- func (*UnimplementedSecurityCenterServer) SetIamPolicy(ctx context.Context, req *v1.SetIamPolicyRequest) (*v1.Policy, error)
- func (*UnimplementedSecurityCenterServer) TestIamPermissions(ctx context.Context, req *v1.TestIamPermissionsRequest) (*v1.TestIamPermissionsResponse, error)
- func (*UnimplementedSecurityCenterServer) UpdateFinding(ctx context.Context, req *UpdateFindingRequest) (*Finding, error)
- func (*UnimplementedSecurityCenterServer) UpdateNotificationConfig(ctx context.Context, req *UpdateNotificationConfigRequest) (*NotificationConfig, error)
- func (*UnimplementedSecurityCenterServer) UpdateOrganizationSettings(ctx context.Context, req *UpdateOrganizationSettingsRequest) (*OrganizationSettings, error)
- func (*UnimplementedSecurityCenterServer) UpdateSecurityMarks(ctx context.Context, req *UpdateSecurityMarksRequest) (*SecurityMarks, error)
- func (*UnimplementedSecurityCenterServer) UpdateSource(ctx context.Context, req *UpdateSourceRequest) (*Source, error)
- type UpdateFindingRequest
- func (*UpdateFindingRequest) Descriptor() ([]byte, []int)
- func (m *UpdateFindingRequest) GetFinding() *Finding
- func (m *UpdateFindingRequest) GetUpdateMask() *field_mask.FieldMask
- func (*UpdateFindingRequest) ProtoMessage()
- func (m *UpdateFindingRequest) Reset()
- func (m *UpdateFindingRequest) String() string
- func (m *UpdateFindingRequest) XXX_DiscardUnknown()
- func (m *UpdateFindingRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *UpdateFindingRequest) XXX_Merge(src proto.Message)
- func (m *UpdateFindingRequest) XXX_Size() int
- func (m *UpdateFindingRequest) XXX_Unmarshal(b []byte) error
- type UpdateNotificationConfigRequest
- func (*UpdateNotificationConfigRequest) Descriptor() ([]byte, []int)
- func (m *UpdateNotificationConfigRequest) GetNotificationConfig() *NotificationConfig
- func (m *UpdateNotificationConfigRequest) GetUpdateMask() *field_mask.FieldMask
- func (*UpdateNotificationConfigRequest) ProtoMessage()
- func (m *UpdateNotificationConfigRequest) Reset()
- func (m *UpdateNotificationConfigRequest) String() string
- func (m *UpdateNotificationConfigRequest) XXX_DiscardUnknown()
- func (m *UpdateNotificationConfigRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *UpdateNotificationConfigRequest) XXX_Merge(src proto.Message)
- func (m *UpdateNotificationConfigRequest) XXX_Size() int
- func (m *UpdateNotificationConfigRequest) XXX_Unmarshal(b []byte) error
- type UpdateOrganizationSettingsRequest
- func (*UpdateOrganizationSettingsRequest) Descriptor() ([]byte, []int)
- func (m *UpdateOrganizationSettingsRequest) GetOrganizationSettings() *OrganizationSettings
- func (m *UpdateOrganizationSettingsRequest) GetUpdateMask() *field_mask.FieldMask
- func (*UpdateOrganizationSettingsRequest) ProtoMessage()
- func (m *UpdateOrganizationSettingsRequest) Reset()
- func (m *UpdateOrganizationSettingsRequest) String() string
- func (m *UpdateOrganizationSettingsRequest) XXX_DiscardUnknown()
- func (m *UpdateOrganizationSettingsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *UpdateOrganizationSettingsRequest) XXX_Merge(src proto.Message)
- func (m *UpdateOrganizationSettingsRequest) XXX_Size() int
- func (m *UpdateOrganizationSettingsRequest) XXX_Unmarshal(b []byte) error
- type UpdateSecurityMarksRequest
- func (*UpdateSecurityMarksRequest) Descriptor() ([]byte, []int)
- func (m *UpdateSecurityMarksRequest) GetSecurityMarks() *SecurityMarks
- func (m *UpdateSecurityMarksRequest) GetStartTime() *timestamp.Timestamp
- func (m *UpdateSecurityMarksRequest) GetUpdateMask() *field_mask.FieldMask
- func (*UpdateSecurityMarksRequest) ProtoMessage()
- func (m *UpdateSecurityMarksRequest) Reset()
- func (m *UpdateSecurityMarksRequest) String() string
- func (m *UpdateSecurityMarksRequest) XXX_DiscardUnknown()
- func (m *UpdateSecurityMarksRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *UpdateSecurityMarksRequest) XXX_Merge(src proto.Message)
- func (m *UpdateSecurityMarksRequest) XXX_Size() int
- func (m *UpdateSecurityMarksRequest) XXX_Unmarshal(b []byte) error
- type UpdateSourceRequest
- func (*UpdateSourceRequest) Descriptor() ([]byte, []int)
- func (m *UpdateSourceRequest) GetSource() *Source
- func (m *UpdateSourceRequest) GetUpdateMask() *field_mask.FieldMask
- func (*UpdateSourceRequest) ProtoMessage()
- func (m *UpdateSourceRequest) Reset()
- func (m *UpdateSourceRequest) String() string
- func (m *UpdateSourceRequest) XXX_DiscardUnknown()
- func (m *UpdateSourceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *UpdateSourceRequest) XXX_Merge(src proto.Message)
- func (m *UpdateSourceRequest) XXX_Size() int
- func (m *UpdateSourceRequest) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
var Finding_State_name = map[int32]string{
0: "STATE_UNSPECIFIED",
1: "ACTIVE",
2: "INACTIVE",
}
var Finding_State_value = map[string]int32{
"STATE_UNSPECIFIED": 0,
"ACTIVE": 1,
"INACTIVE": 2,
}
var ListAssetsResponse_ListAssetsResult_StateChange_name = map[int32]string{
0: "UNUSED",
1: "ADDED",
2: "REMOVED",
3: "ACTIVE",
}
var ListAssetsResponse_ListAssetsResult_StateChange_value = map[string]int32{
"UNUSED": 0,
"ADDED": 1,
"REMOVED": 2,
"ACTIVE": 3,
}
var ListFindingsResponse_ListFindingsResult_StateChange_name = map[int32]string{
0: "UNUSED",
1: "CHANGED",
2: "UNCHANGED",
3: "ADDED",
4: "REMOVED",
}
var ListFindingsResponse_ListFindingsResult_StateChange_value = map[string]int32{
"UNUSED": 0,
"CHANGED": 1,
"UNCHANGED": 2,
"ADDED": 3,
"REMOVED": 4,
}
var NotificationConfig_EventType_name = map[int32]string{
0: "EVENT_TYPE_UNSPECIFIED",
1: "FINDING",
}
var NotificationConfig_EventType_value = map[string]int32{
"EVENT_TYPE_UNSPECIFIED": 0,
"FINDING": 1,
}
var OrganizationSettings_AssetDiscoveryConfig_InclusionMode_name = map[int32]string{
0: "INCLUSION_MODE_UNSPECIFIED",
1: "INCLUDE_ONLY",
2: "EXCLUDE",
}
var OrganizationSettings_AssetDiscoveryConfig_InclusionMode_value = map[string]int32{
"INCLUSION_MODE_UNSPECIFIED": 0,
"INCLUDE_ONLY": 1,
"EXCLUDE": 2,
}
var RunAssetDiscoveryResponse_State_name = map[int32]string{
0: "STATE_UNSPECIFIED",
1: "COMPLETED",
2: "SUPERSEDED",
3: "TERMINATED",
}
var RunAssetDiscoveryResponse_State_value = map[string]int32{
"STATE_UNSPECIFIED": 0,
"COMPLETED": 1,
"SUPERSEDED": 2,
"TERMINATED": 3,
}
Functions ¶
func RegisterSecurityCenterServer ¶
func RegisterSecurityCenterServer(s *grpc.Server, srv SecurityCenterServer)
Types ¶
type Asset ¶
type Asset struct { // The relative resource name of this asset. See: // https://cloud.google.com/apis/design/resource_names#relative_resource_name // Example: // "organizations/123/assets/456". Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // Cloud SCC managed properties. These properties are managed by // Cloud SCC and cannot be modified by the user. SecurityCenterProperties *Asset_SecurityCenterProperties `` /* 135-byte string literal not displayed */ // Resource managed properties. These properties are managed and defined by // the GCP resource and cannot be modified by the user. ResourceProperties map[string]*_struct.Value `` /* 203-byte string literal not displayed */ // User specified security marks. These marks are entirely managed by the user // and come from the SecurityMarks resource that belongs to the asset. SecurityMarks *SecurityMarks `protobuf:"bytes,8,opt,name=security_marks,json=securityMarks,proto3" json:"security_marks,omitempty"` // The time at which the asset was created in Cloud SCC. CreateTime *timestamp.Timestamp `protobuf:"bytes,9,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // The time at which the asset was last updated, added, or deleted in Cloud // SCC. UpdateTime *timestamp.Timestamp `protobuf:"bytes,10,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` // IAM Policy information associated with the GCP resource described by the // Cloud SCC asset. This information is managed and defined by the GCP // resource and cannot be modified by the user. IamPolicy *Asset_IamPolicy `protobuf:"bytes,11,opt,name=iam_policy,json=iamPolicy,proto3" json:"iam_policy,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Cloud Security Command Center's (Cloud SCC) representation of a Google Cloud Platform (GCP) resource.
The Asset is a Cloud SCC resource that captures information about a single GCP resource. All modifications to an Asset are only within the context of Cloud SCC and don't affect the referenced GCP resource.
func (*Asset) Descriptor ¶
func (*Asset) GetCreateTime ¶
func (*Asset) GetIamPolicy ¶
func (m *Asset) GetIamPolicy() *Asset_IamPolicy
func (*Asset) GetResourceProperties ¶
func (*Asset) GetSecurityCenterProperties ¶
func (m *Asset) GetSecurityCenterProperties() *Asset_SecurityCenterProperties
func (*Asset) GetSecurityMarks ¶
func (m *Asset) GetSecurityMarks() *SecurityMarks
func (*Asset) GetUpdateTime ¶
func (*Asset) ProtoMessage ¶
func (*Asset) ProtoMessage()
func (*Asset) XXX_DiscardUnknown ¶
func (m *Asset) XXX_DiscardUnknown()
func (*Asset) XXX_Marshal ¶
func (*Asset) XXX_Unmarshal ¶
type Asset_IamPolicy ¶
type Asset_IamPolicy struct { // The JSON representation of the Policy associated with the asset. // See https://cloud.google.com/iam/reference/rest/v1p1alpha1/Policy for // format details. PolicyBlob string `protobuf:"bytes,1,opt,name=policy_blob,json=policyBlob,proto3" json:"policy_blob,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
IAM Policy information associated with the GCP resource described by the Cloud SCC asset. This information is managed and defined by the GCP resource and cannot be modified by the user.
func (*Asset_IamPolicy) Descriptor ¶
func (*Asset_IamPolicy) Descriptor() ([]byte, []int)
func (*Asset_IamPolicy) GetPolicyBlob ¶
func (m *Asset_IamPolicy) GetPolicyBlob() string
func (*Asset_IamPolicy) ProtoMessage ¶
func (*Asset_IamPolicy) ProtoMessage()
func (*Asset_IamPolicy) Reset ¶
func (m *Asset_IamPolicy) Reset()
func (*Asset_IamPolicy) String ¶
func (m *Asset_IamPolicy) String() string
func (*Asset_IamPolicy) XXX_DiscardUnknown ¶
func (m *Asset_IamPolicy) XXX_DiscardUnknown()
func (*Asset_IamPolicy) XXX_Marshal ¶
func (m *Asset_IamPolicy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*Asset_IamPolicy) XXX_Merge ¶
func (m *Asset_IamPolicy) XXX_Merge(src proto.Message)
func (*Asset_IamPolicy) XXX_Size ¶
func (m *Asset_IamPolicy) XXX_Size() int
func (*Asset_IamPolicy) XXX_Unmarshal ¶
func (m *Asset_IamPolicy) XXX_Unmarshal(b []byte) error
type Asset_SecurityCenterProperties ¶
type Asset_SecurityCenterProperties struct { // The full resource name of the GCP 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 GCP resource. Examples include: APPLICATION, // PROJECT, and ORGANIZATION. This is a case insensitive field defined by // Cloud SCC and/or the producer of the resource and is immutable // after create time. ResourceType string `protobuf:"bytes,2,opt,name=resource_type,json=resourceType,proto3" json:"resource_type,omitempty"` // The full resource name of the immediate parent of the resource. See: // https://cloud.google.com/apis/design/resource_names#full_resource_name ResourceParent string `protobuf:"bytes,3,opt,name=resource_parent,json=resourceParent,proto3" json:"resource_parent,omitempty"` // The full resource name of the project the resource belongs to. See: // https://cloud.google.com/apis/design/resource_names#full_resource_name ResourceProject string `protobuf:"bytes,4,opt,name=resource_project,json=resourceProject,proto3" json:"resource_project,omitempty"` // Owners of the Google Cloud resource. ResourceOwners []string `protobuf:"bytes,5,rep,name=resource_owners,json=resourceOwners,proto3" json:"resource_owners,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Cloud SCC managed properties. These properties are managed by Cloud SCC and cannot be modified by the user.
func (*Asset_SecurityCenterProperties) Descriptor ¶
func (*Asset_SecurityCenterProperties) Descriptor() ([]byte, []int)
func (*Asset_SecurityCenterProperties) GetResourceName ¶
func (m *Asset_SecurityCenterProperties) GetResourceName() string
func (*Asset_SecurityCenterProperties) GetResourceOwners ¶
func (m *Asset_SecurityCenterProperties) GetResourceOwners() []string
func (*Asset_SecurityCenterProperties) GetResourceParent ¶
func (m *Asset_SecurityCenterProperties) GetResourceParent() string
func (*Asset_SecurityCenterProperties) GetResourceProject ¶
func (m *Asset_SecurityCenterProperties) GetResourceProject() string
func (*Asset_SecurityCenterProperties) GetResourceType ¶
func (m *Asset_SecurityCenterProperties) GetResourceType() string
func (*Asset_SecurityCenterProperties) ProtoMessage ¶
func (*Asset_SecurityCenterProperties) ProtoMessage()
func (*Asset_SecurityCenterProperties) Reset ¶
func (m *Asset_SecurityCenterProperties) Reset()
func (*Asset_SecurityCenterProperties) String ¶
func (m *Asset_SecurityCenterProperties) String() string
func (*Asset_SecurityCenterProperties) XXX_DiscardUnknown ¶
func (m *Asset_SecurityCenterProperties) XXX_DiscardUnknown()
func (*Asset_SecurityCenterProperties) XXX_Marshal ¶
func (m *Asset_SecurityCenterProperties) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*Asset_SecurityCenterProperties) XXX_Merge ¶
func (m *Asset_SecurityCenterProperties) XXX_Merge(src proto.Message)
func (*Asset_SecurityCenterProperties) XXX_Size ¶
func (m *Asset_SecurityCenterProperties) XXX_Size() int
func (*Asset_SecurityCenterProperties) XXX_Unmarshal ¶
func (m *Asset_SecurityCenterProperties) XXX_Unmarshal(b []byte) error
type CreateFindingRequest ¶
type CreateFindingRequest struct { // Resource name of the new finding's parent. Its format should be // "organizations/[organization_id]/sources/[source_id]". Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` // Unique identifier provided by the client within the parent scope. // It must be alphanumeric and less than or equal to 32 characters and // greater than 0 characters in length. FindingId string `protobuf:"bytes,2,opt,name=finding_id,json=findingId,proto3" json:"finding_id,omitempty"` // The Finding being created. The name and security_marks will be ignored as // they are both output only fields on this resource. Finding *Finding `protobuf:"bytes,3,opt,name=finding,proto3" json:"finding,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Request message for creating a finding.
func (*CreateFindingRequest) Descriptor ¶
func (*CreateFindingRequest) Descriptor() ([]byte, []int)
func (*CreateFindingRequest) GetFinding ¶
func (m *CreateFindingRequest) GetFinding() *Finding
func (*CreateFindingRequest) GetFindingId ¶
func (m *CreateFindingRequest) GetFindingId() string
func (*CreateFindingRequest) GetParent ¶
func (m *CreateFindingRequest) GetParent() string
func (*CreateFindingRequest) ProtoMessage ¶
func (*CreateFindingRequest) ProtoMessage()
func (*CreateFindingRequest) Reset ¶
func (m *CreateFindingRequest) Reset()
func (*CreateFindingRequest) String ¶
func (m *CreateFindingRequest) String() string
func (*CreateFindingRequest) XXX_DiscardUnknown ¶
func (m *CreateFindingRequest) XXX_DiscardUnknown()
func (*CreateFindingRequest) XXX_Marshal ¶
func (m *CreateFindingRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CreateFindingRequest) XXX_Merge ¶
func (m *CreateFindingRequest) XXX_Merge(src proto.Message)
func (*CreateFindingRequest) XXX_Size ¶
func (m *CreateFindingRequest) XXX_Size() int
func (*CreateFindingRequest) XXX_Unmarshal ¶
func (m *CreateFindingRequest) XXX_Unmarshal(b []byte) error
type CreateNotificationConfigRequest ¶
type CreateNotificationConfigRequest struct { // 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"` // 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"` // 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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Request message for creating a notification config.
func (*CreateNotificationConfigRequest) Descriptor ¶
func (*CreateNotificationConfigRequest) Descriptor() ([]byte, []int)
func (*CreateNotificationConfigRequest) GetConfigId ¶
func (m *CreateNotificationConfigRequest) GetConfigId() string
func (*CreateNotificationConfigRequest) GetNotificationConfig ¶
func (m *CreateNotificationConfigRequest) GetNotificationConfig() *NotificationConfig
func (*CreateNotificationConfigRequest) GetParent ¶
func (m *CreateNotificationConfigRequest) GetParent() string
func (*CreateNotificationConfigRequest) ProtoMessage ¶
func (*CreateNotificationConfigRequest) ProtoMessage()
func (*CreateNotificationConfigRequest) Reset ¶
func (m *CreateNotificationConfigRequest) Reset()
func (*CreateNotificationConfigRequest) String ¶
func (m *CreateNotificationConfigRequest) String() string
func (*CreateNotificationConfigRequest) XXX_DiscardUnknown ¶
func (m *CreateNotificationConfigRequest) XXX_DiscardUnknown()
func (*CreateNotificationConfigRequest) XXX_Marshal ¶
func (m *CreateNotificationConfigRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CreateNotificationConfigRequest) XXX_Merge ¶
func (m *CreateNotificationConfigRequest) XXX_Merge(src proto.Message)
func (*CreateNotificationConfigRequest) XXX_Size ¶
func (m *CreateNotificationConfigRequest) XXX_Size() int
func (*CreateNotificationConfigRequest) XXX_Unmarshal ¶
func (m *CreateNotificationConfigRequest) XXX_Unmarshal(b []byte) error
type CreateSourceRequest ¶
type CreateSourceRequest struct { // Resource name of the new source's parent. Its format should be // "organizations/[organization_id]". Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` // The Source being created, only the display_name and description will be // used. All other fields will be ignored. Source *Source `protobuf:"bytes,2,opt,name=source,proto3" json:"source,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Request message for creating a source.
func (*CreateSourceRequest) Descriptor ¶
func (*CreateSourceRequest) Descriptor() ([]byte, []int)
func (*CreateSourceRequest) GetParent ¶
func (m *CreateSourceRequest) GetParent() string
func (*CreateSourceRequest) GetSource ¶
func (m *CreateSourceRequest) GetSource() *Source
func (*CreateSourceRequest) ProtoMessage ¶
func (*CreateSourceRequest) ProtoMessage()
func (*CreateSourceRequest) Reset ¶
func (m *CreateSourceRequest) Reset()
func (*CreateSourceRequest) String ¶
func (m *CreateSourceRequest) String() string
func (*CreateSourceRequest) XXX_DiscardUnknown ¶
func (m *CreateSourceRequest) XXX_DiscardUnknown()
func (*CreateSourceRequest) XXX_Marshal ¶
func (m *CreateSourceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CreateSourceRequest) XXX_Merge ¶
func (m *CreateSourceRequest) XXX_Merge(src proto.Message)
func (*CreateSourceRequest) XXX_Size ¶
func (m *CreateSourceRequest) XXX_Size() int
func (*CreateSourceRequest) XXX_Unmarshal ¶
func (m *CreateSourceRequest) XXX_Unmarshal(b []byte) error
type DeleteNotificationConfigRequest ¶
type DeleteNotificationConfigRequest struct { // 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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Request message for deleting a notification config.
func (*DeleteNotificationConfigRequest) Descriptor ¶
func (*DeleteNotificationConfigRequest) Descriptor() ([]byte, []int)
func (*DeleteNotificationConfigRequest) GetName ¶
func (m *DeleteNotificationConfigRequest) GetName() string
func (*DeleteNotificationConfigRequest) ProtoMessage ¶
func (*DeleteNotificationConfigRequest) ProtoMessage()
func (*DeleteNotificationConfigRequest) Reset ¶
func (m *DeleteNotificationConfigRequest) Reset()
func (*DeleteNotificationConfigRequest) String ¶
func (m *DeleteNotificationConfigRequest) String() string
func (*DeleteNotificationConfigRequest) XXX_DiscardUnknown ¶
func (m *DeleteNotificationConfigRequest) XXX_DiscardUnknown()
func (*DeleteNotificationConfigRequest) XXX_Marshal ¶
func (m *DeleteNotificationConfigRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DeleteNotificationConfigRequest) XXX_Merge ¶
func (m *DeleteNotificationConfigRequest) XXX_Merge(src proto.Message)
func (*DeleteNotificationConfigRequest) XXX_Size ¶
func (m *DeleteNotificationConfigRequest) XXX_Size() int
func (*DeleteNotificationConfigRequest) XXX_Unmarshal ¶
func (m *DeleteNotificationConfigRequest) XXX_Unmarshal(b []byte) error
type Finding ¶
type Finding struct { // The relative resource name of this finding. See: // https://cloud.google.com/apis/design/resource_names#relative_resource_name // Example: // "organizations/123/sources/456/findings/789" Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // The relative resource name of the source the finding belongs to. See: // https://cloud.google.com/apis/design/resource_names#relative_resource_name // This field is immutable after creation time. // For example: // "organizations/123/sources/456" Parent string `protobuf:"bytes,2,opt,name=parent,proto3" json:"parent,omitempty"` // The full resource name of the Google Cloud Platform (GCP) resource this // finding is for. See: // https://cloud.google.com/apis/design/resource_names#full_resource_name // This field is immutable after creation time. ResourceName string `protobuf:"bytes,3,opt,name=resource_name,json=resourceName,proto3" json:"resource_name,omitempty"` // The state of the finding. State Finding_State `protobuf:"varint,4,opt,name=state,proto3,enum=google.cloud.securitycenter.v1p1alpha1.Finding_State" json:"state,omitempty"` // The additional taxonomy group within findings from a given source. // This field is immutable after creation time. // Example: "XSS_FLASH_INJECTION" Category string `protobuf:"bytes,5,opt,name=category,proto3" json:"category,omitempty"` // The URI that, if available, points to a web page outside of Cloud SCC // where additional information about the finding can be found. This field is // guaranteed to be either empty or a well formed URL. ExternalUri string `protobuf:"bytes,6,opt,name=external_uri,json=externalUri,proto3" json:"external_uri,omitempty"` // Source specific properties. These properties are managed by the source // that writes the finding. The key names in the source_properties map must be // between 1 and 255 characters, and must start with a letter and contain // alphanumeric characters or underscores only. SourceProperties map[string]*_struct.Value `` /* 197-byte string literal not displayed */ // Output only. User specified security marks. These marks are entirely // managed by the user and come from the SecurityMarks resource that belongs // to the finding. SecurityMarks *SecurityMarks `protobuf:"bytes,8,opt,name=security_marks,json=securityMarks,proto3" json:"security_marks,omitempty"` // The time at which the event took place. For example, if the finding // represents an open firewall it would capture the time the detector believes // the firewall became open. The accuracy is determined by the detector. EventTime *timestamp.Timestamp `protobuf:"bytes,9,opt,name=event_time,json=eventTime,proto3" json:"event_time,omitempty"` // The time at which the finding was created in Cloud SCC. CreateTime *timestamp.Timestamp `protobuf:"bytes,10,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Cloud Security Command Center (Cloud SCC) finding.
A finding is a record of assessment data (security, risk, health or privacy) ingested into Cloud SCC for presentation, notification, analysis, policy testing, and enforcement. For example, an XSS vulnerability in an App Engine application is a finding.
func (*Finding) Descriptor ¶
func (*Finding) GetCategory ¶
func (*Finding) GetCreateTime ¶
func (*Finding) GetEventTime ¶
func (*Finding) GetExternalUri ¶
func (*Finding) GetResourceName ¶
func (*Finding) GetSecurityMarks ¶
func (m *Finding) GetSecurityMarks() *SecurityMarks
func (*Finding) GetSourceProperties ¶
func (*Finding) GetState ¶
func (m *Finding) GetState() Finding_State
func (*Finding) ProtoMessage ¶
func (*Finding) ProtoMessage()
func (*Finding) XXX_DiscardUnknown ¶
func (m *Finding) XXX_DiscardUnknown()
func (*Finding) XXX_Marshal ¶
func (*Finding) XXX_Unmarshal ¶
type Finding_State ¶
type Finding_State int32
The state of the finding.
const ( // Unspecified state. Finding_STATE_UNSPECIFIED Finding_State = 0 // The finding requires attention and has not been addressed yet. Finding_ACTIVE Finding_State = 1 // The finding has been fixed, triaged as a non-issue or otherwise addressed // and is no longer active. Finding_INACTIVE Finding_State = 2 )
func (Finding_State) EnumDescriptor ¶
func (Finding_State) EnumDescriptor() ([]byte, []int)
func (Finding_State) String ¶
func (x Finding_State) String() string
type GetNotificationConfigRequest ¶
type GetNotificationConfigRequest struct { // 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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Request message for getting a notification config.
func (*GetNotificationConfigRequest) Descriptor ¶
func (*GetNotificationConfigRequest) Descriptor() ([]byte, []int)
func (*GetNotificationConfigRequest) GetName ¶
func (m *GetNotificationConfigRequest) GetName() string
func (*GetNotificationConfigRequest) ProtoMessage ¶
func (*GetNotificationConfigRequest) ProtoMessage()
func (*GetNotificationConfigRequest) Reset ¶
func (m *GetNotificationConfigRequest) Reset()
func (*GetNotificationConfigRequest) String ¶
func (m *GetNotificationConfigRequest) String() string
func (*GetNotificationConfigRequest) XXX_DiscardUnknown ¶
func (m *GetNotificationConfigRequest) XXX_DiscardUnknown()
func (*GetNotificationConfigRequest) XXX_Marshal ¶
func (m *GetNotificationConfigRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetNotificationConfigRequest) XXX_Merge ¶
func (m *GetNotificationConfigRequest) XXX_Merge(src proto.Message)
func (*GetNotificationConfigRequest) XXX_Size ¶
func (m *GetNotificationConfigRequest) XXX_Size() int
func (*GetNotificationConfigRequest) XXX_Unmarshal ¶
func (m *GetNotificationConfigRequest) XXX_Unmarshal(b []byte) error
type GetOrganizationSettingsRequest ¶
type GetOrganizationSettingsRequest struct { // Name of the organization to get organization settings for. Its format is // "organizations/[organization_id]/organizationSettings". Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Request message for getting organization settings.
func (*GetOrganizationSettingsRequest) Descriptor ¶
func (*GetOrganizationSettingsRequest) Descriptor() ([]byte, []int)
func (*GetOrganizationSettingsRequest) GetName ¶
func (m *GetOrganizationSettingsRequest) GetName() string
func (*GetOrganizationSettingsRequest) ProtoMessage ¶
func (*GetOrganizationSettingsRequest) ProtoMessage()
func (*GetOrganizationSettingsRequest) Reset ¶
func (m *GetOrganizationSettingsRequest) Reset()
func (*GetOrganizationSettingsRequest) String ¶
func (m *GetOrganizationSettingsRequest) String() string
func (*GetOrganizationSettingsRequest) XXX_DiscardUnknown ¶
func (m *GetOrganizationSettingsRequest) XXX_DiscardUnknown()
func (*GetOrganizationSettingsRequest) XXX_Marshal ¶
func (m *GetOrganizationSettingsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetOrganizationSettingsRequest) XXX_Merge ¶
func (m *GetOrganizationSettingsRequest) XXX_Merge(src proto.Message)
func (*GetOrganizationSettingsRequest) XXX_Size ¶
func (m *GetOrganizationSettingsRequest) XXX_Size() int
func (*GetOrganizationSettingsRequest) XXX_Unmarshal ¶
func (m *GetOrganizationSettingsRequest) XXX_Unmarshal(b []byte) error
type GetSourceRequest ¶
type GetSourceRequest struct { // Relative resource name of the source. Its format is // "organizations/[organization_id]/source/[source_id]". Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Request message for getting a source.
func (*GetSourceRequest) Descriptor ¶
func (*GetSourceRequest) Descriptor() ([]byte, []int)
func (*GetSourceRequest) GetName ¶
func (m *GetSourceRequest) GetName() string
func (*GetSourceRequest) ProtoMessage ¶
func (*GetSourceRequest) ProtoMessage()
func (*GetSourceRequest) Reset ¶
func (m *GetSourceRequest) Reset()
func (*GetSourceRequest) String ¶
func (m *GetSourceRequest) String() string
func (*GetSourceRequest) XXX_DiscardUnknown ¶
func (m *GetSourceRequest) XXX_DiscardUnknown()
func (*GetSourceRequest) XXX_Marshal ¶
func (m *GetSourceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetSourceRequest) XXX_Merge ¶
func (m *GetSourceRequest) XXX_Merge(src proto.Message)
func (*GetSourceRequest) XXX_Size ¶
func (m *GetSourceRequest) XXX_Size() int
func (*GetSourceRequest) XXX_Unmarshal ¶
func (m *GetSourceRequest) XXX_Unmarshal(b []byte) error
type GroupAssetsRequest ¶
type GroupAssetsRequest struct { // Name of the organization to groupBy. Its format is // "organizations/[organization_id]". Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` // Expression that defines the filter to apply across assets. // The expression is a list of zero or more restrictions combined via logical // operators `AND` and `OR`. // Parentheses are supported, and `OR` has higher precedence than `AND`. // // Restrictions have the form `<field> <operator> <value>` and may have a `-` // character in front of them to indicate negation. The fields map to those // defined in the Asset resource. Examples include: // // * name // * security_center_properties.resource_name // * resource_properties.a_property // * security_marks.marks.marka // // The supported operators are: // // * `=` for all value types. // * `>`, `<`, `>=`, `<=` for integer values. // * `:`, meaning substring matching, for strings. // // The supported value types are: // // * string literals in quotes. // * integer literals without quotes. // * boolean literals `true` and `false` without quotes. // // The following field and operator combinations are supported: // // * name: `=` // * update_time: `>`, `<`, `>=`, `<=`, `=` // * create_time: `>`, `<`, `>=`, `<=`, `=` // * iam_policy.policy_blob: `=`, `:` // * resource_properties: `=`, `:`, `>`, `<`, `>=`, `<=` // * security_marks: `=`, `:` // * security_center_properties.resource_name: `=`, `:` // * security_center_properties.resource_type: `=`, `:` // * security_center_properties.resource_parent: `=`, `:` // * security_center_properties.resource_project: `=`, `:` // * security_center_properties.resource_owners: `=`, `:` // // For example, `resource_properties.size = 100` is a valid filter string. Filter string `protobuf:"bytes,2,opt,name=filter,proto3" json:"filter,omitempty"` // Expression that defines what assets fields to use for grouping. The string // value should follow SQL syntax: comma separated list of fields. For // example: // "security_center_properties.resource_project,security_center_properties.project". // // The following fields are supported when compare_duration is not set: // // * security_center_properties.resource_project // * security_center_properties.resource_type // * security_center_properties.resource_parent // // The following fields are supported when compare_duration is set: // // * security_center_properties.resource_type GroupBy string `protobuf:"bytes,3,opt,name=group_by,json=groupBy,proto3" json:"group_by,omitempty"` // When compare_duration is set, the GroupResult's "state_change" property is // updated to indicate whether the asset was added, removed, or remained // present during the compare_duration period of time that precedes the // read_time. This is the time between (read_time - compare_duration) and // read_time. // // The state change value is derived based on the presence of the asset at the // two points in time. Intermediate state changes between the two times don't // affect the result. For example, the results aren't affected if the asset is // removed and re-created again. // // Possible "state_change" values when compare_duration is specified: // // * "ADDED": indicates that the asset was not present at the start of // compare_duration, but present at reference_time. // * "REMOVED": indicates that the asset was present at the start of // compare_duration, but not present at reference_time. // * "ACTIVE": indicates that the asset was present at both the // start and the end of the time period defined by // compare_duration and reference_time. // // If compare_duration is not specified, then the only possible state_change // is "UNUSED", which will be the state_change set for all assets present at // read_time. // // If this field is set then `state_change` must be a specified field in // `group_by`. CompareDuration *duration.Duration `protobuf:"bytes,4,opt,name=compare_duration,json=compareDuration,proto3" json:"compare_duration,omitempty"` // Time used as a reference point when filtering assets. The filter is limited // to assets existing at the supplied time and their values are those at that // specific time. Absence of this field will default to the API's version of // NOW. ReadTime *timestamp.Timestamp `protobuf:"bytes,5,opt,name=read_time,json=readTime,proto3" json:"read_time,omitempty"` // The value returned by the last `GroupAssetsResponse`; indicates // that this is a continuation of a prior `GroupAssets` call, and that the // system should return the next page of data. PageToken string `protobuf:"bytes,7,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` // The maximum number of results to return in a single response. Default is // 10, minimum is 1, maximum is 1000. PageSize int32 `protobuf:"varint,8,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Request message for grouping by assets.
func (*GroupAssetsRequest) Descriptor ¶
func (*GroupAssetsRequest) Descriptor() ([]byte, []int)
func (*GroupAssetsRequest) GetCompareDuration ¶
func (m *GroupAssetsRequest) GetCompareDuration() *duration.Duration
func (*GroupAssetsRequest) GetFilter ¶
func (m *GroupAssetsRequest) GetFilter() string
func (*GroupAssetsRequest) GetGroupBy ¶
func (m *GroupAssetsRequest) GetGroupBy() string
func (*GroupAssetsRequest) GetPageSize ¶
func (m *GroupAssetsRequest) GetPageSize() int32
func (*GroupAssetsRequest) GetPageToken ¶
func (m *GroupAssetsRequest) GetPageToken() string
func (*GroupAssetsRequest) GetParent ¶
func (m *GroupAssetsRequest) GetParent() string
func (*GroupAssetsRequest) GetReadTime ¶
func (m *GroupAssetsRequest) GetReadTime() *timestamp.Timestamp
func (*GroupAssetsRequest) ProtoMessage ¶
func (*GroupAssetsRequest) ProtoMessage()
func (*GroupAssetsRequest) Reset ¶
func (m *GroupAssetsRequest) Reset()
func (*GroupAssetsRequest) String ¶
func (m *GroupAssetsRequest) String() string
func (*GroupAssetsRequest) XXX_DiscardUnknown ¶
func (m *GroupAssetsRequest) XXX_DiscardUnknown()
func (*GroupAssetsRequest) XXX_Marshal ¶
func (m *GroupAssetsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GroupAssetsRequest) XXX_Merge ¶
func (m *GroupAssetsRequest) XXX_Merge(src proto.Message)
func (*GroupAssetsRequest) XXX_Size ¶
func (m *GroupAssetsRequest) XXX_Size() int
func (*GroupAssetsRequest) XXX_Unmarshal ¶
func (m *GroupAssetsRequest) XXX_Unmarshal(b []byte) error
type GroupAssetsResponse ¶
type GroupAssetsResponse struct { // Group results. There exists an element for each existing unique // combination of property/values. The element contains a count for the number // of times those specific property/values appear. GroupByResults []*GroupResult `protobuf:"bytes,1,rep,name=group_by_results,json=groupByResults,proto3" json:"group_by_results,omitempty"` // Time used for executing the groupBy request. ReadTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=read_time,json=readTime,proto3" json:"read_time,omitempty"` // Token to retrieve the next page of results, or empty if there are no more // results. NextPageToken string `protobuf:"bytes,3,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` // The total number of results matching the query. TotalSize int32 `protobuf:"varint,4,opt,name=total_size,json=totalSize,proto3" json:"total_size,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Response message for grouping by assets.
func (*GroupAssetsResponse) Descriptor ¶
func (*GroupAssetsResponse) Descriptor() ([]byte, []int)
func (*GroupAssetsResponse) GetGroupByResults ¶
func (m *GroupAssetsResponse) GetGroupByResults() []*GroupResult
func (*GroupAssetsResponse) GetNextPageToken ¶
func (m *GroupAssetsResponse) GetNextPageToken() string
func (*GroupAssetsResponse) GetReadTime ¶
func (m *GroupAssetsResponse) GetReadTime() *timestamp.Timestamp
func (*GroupAssetsResponse) GetTotalSize ¶
func (m *GroupAssetsResponse) GetTotalSize() int32
func (*GroupAssetsResponse) ProtoMessage ¶
func (*GroupAssetsResponse) ProtoMessage()
func (*GroupAssetsResponse) Reset ¶
func (m *GroupAssetsResponse) Reset()
func (*GroupAssetsResponse) String ¶
func (m *GroupAssetsResponse) String() string
func (*GroupAssetsResponse) XXX_DiscardUnknown ¶
func (m *GroupAssetsResponse) XXX_DiscardUnknown()
func (*GroupAssetsResponse) XXX_Marshal ¶
func (m *GroupAssetsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GroupAssetsResponse) XXX_Merge ¶
func (m *GroupAssetsResponse) XXX_Merge(src proto.Message)
func (*GroupAssetsResponse) XXX_Size ¶
func (m *GroupAssetsResponse) XXX_Size() int
func (*GroupAssetsResponse) XXX_Unmarshal ¶
func (m *GroupAssetsResponse) XXX_Unmarshal(b []byte) error
type GroupFindingsRequest ¶
type GroupFindingsRequest struct { // Name of the source to groupBy. Its format is // "organizations/[organization_id]/sources/[source_id]". To groupBy across // all sources provide a source_id of `-`. For example: // organizations/123/sources/- Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` // Expression that defines the filter to apply across findings. // The expression is a list of one or more restrictions combined via logical // operators `AND` and `OR`. // Parentheses are supported, and `OR` has higher precedence than `AND`. // // Restrictions have the form `<field> <operator> <value>` and may have a `-` // character in front of them to indicate negation. Examples include: // // * name // * source_properties.a_property // * security_marks.marks.marka // // The supported operators are: // // * `=` for all value types. // * `>`, `<`, `>=`, `<=` for integer values. // * `:`, meaning substring matching, for strings. // // The supported value types are: // // * string literals in quotes. // * integer literals without quotes. // * boolean literals `true` and `false` without quotes. // // The following field and operator combinations are supported: // // * name: `=` // * parent: `=`, `:` // * resource_name: `=`, `:` // * state: `=`, `:` // * category: `=`, `:` // * external_uri: `=`, `:` // * event_time: `>`, `<`, `>=`, `<=` // * security_marks: `=`, `:` // * source_properties: `=`, `:`, `>`, `<`, `>=`, `<=` // // For example, `source_properties.size = 100` is a valid filter string. Filter string `protobuf:"bytes,2,opt,name=filter,proto3" json:"filter,omitempty"` // Expression that defines what assets fields to use for grouping (including // `state_change`). The string value should follow SQL syntax: comma separated // list of fields. For example: "parent,resource_name". // // The following fields are supported: // // * resource_name // * category // * state // * parent // // The following fields are supported when compare_duration is set: // // * state_change GroupBy string `protobuf:"bytes,3,opt,name=group_by,json=groupBy,proto3" json:"group_by,omitempty"` // Time used as a reference point when filtering findings. The filter is // limited to findings existing at the supplied time and their values are // those at that specific time. Absence of this field will default to the // API's version of NOW. ReadTime *timestamp.Timestamp `protobuf:"bytes,4,opt,name=read_time,json=readTime,proto3" json:"read_time,omitempty"` // When compare_duration is set, the GroupResult's "state_change" attribute is // updated to indicate whether the finding had its state changed, the // finding's state remained unchanged, or if the finding was added during the // compare_duration period of time that precedes the read_time. This is the // time between (read_time - compare_duration) and read_time. // // The state_change value is derived based on the presence and state of the // finding at the two points in time. Intermediate state changes between the // two times don't affect the result. For example, the results aren't affected // if the finding is made inactive and then active again. // // Possible "state_change" values when compare_duration is specified: // // * "CHANGED": indicates that the finding was present at the start of // compare_duration, but changed its state at read_time. // * "UNCHANGED": indicates that the finding was present at the start of // compare_duration and did not change state at read_time. // * "ADDED": indicates that the finding was not present at the start // of compare_duration, but was present at read_time. // // If compare_duration is not specified, then the only possible state_change // is "UNUSED", which will be the state_change set for all findings present // at read_time. // // If this field is set then `state_change` must be a specified field in // `group_by`. CompareDuration *duration.Duration `protobuf:"bytes,5,opt,name=compare_duration,json=compareDuration,proto3" json:"compare_duration,omitempty"` // The value returned by the last `GroupFindingsResponse`; indicates // that this is a continuation of a prior `GroupFindings` call, and // that the system should return the next page of data. PageToken string `protobuf:"bytes,7,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` // The maximum number of results to return in a single response. Default is // 10, minimum is 1, maximum is 1000. PageSize int32 `protobuf:"varint,8,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Request message for grouping by findings.
func (*GroupFindingsRequest) Descriptor ¶
func (*GroupFindingsRequest) Descriptor() ([]byte, []int)
func (*GroupFindingsRequest) GetCompareDuration ¶
func (m *GroupFindingsRequest) GetCompareDuration() *duration.Duration
func (*GroupFindingsRequest) GetFilter ¶
func (m *GroupFindingsRequest) GetFilter() string
func (*GroupFindingsRequest) GetGroupBy ¶
func (m *GroupFindingsRequest) GetGroupBy() string
func (*GroupFindingsRequest) GetPageSize ¶
func (m *GroupFindingsRequest) GetPageSize() int32
func (*GroupFindingsRequest) GetPageToken ¶
func (m *GroupFindingsRequest) GetPageToken() string
func (*GroupFindingsRequest) GetParent ¶
func (m *GroupFindingsRequest) GetParent() string
func (*GroupFindingsRequest) GetReadTime ¶
func (m *GroupFindingsRequest) GetReadTime() *timestamp.Timestamp
func (*GroupFindingsRequest) ProtoMessage ¶
func (*GroupFindingsRequest) ProtoMessage()
func (*GroupFindingsRequest) Reset ¶
func (m *GroupFindingsRequest) Reset()
func (*GroupFindingsRequest) String ¶
func (m *GroupFindingsRequest) String() string
func (*GroupFindingsRequest) XXX_DiscardUnknown ¶
func (m *GroupFindingsRequest) XXX_DiscardUnknown()
func (*GroupFindingsRequest) XXX_Marshal ¶
func (m *GroupFindingsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GroupFindingsRequest) XXX_Merge ¶
func (m *GroupFindingsRequest) XXX_Merge(src proto.Message)
func (*GroupFindingsRequest) XXX_Size ¶
func (m *GroupFindingsRequest) XXX_Size() int
func (*GroupFindingsRequest) XXX_Unmarshal ¶
func (m *GroupFindingsRequest) XXX_Unmarshal(b []byte) error
type GroupFindingsResponse ¶
type GroupFindingsResponse struct { // Group results. There exists an element for each existing unique // combination of property/values. The element contains a count for the number // of times those specific property/values appear. GroupByResults []*GroupResult `protobuf:"bytes,1,rep,name=group_by_results,json=groupByResults,proto3" json:"group_by_results,omitempty"` // Time used for executing the groupBy request. ReadTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=read_time,json=readTime,proto3" json:"read_time,omitempty"` // Token to retrieve the next page of results, or empty if there are no more // results. NextPageToken string `protobuf:"bytes,3,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` // The total number of results matching the query. TotalSize int32 `protobuf:"varint,4,opt,name=total_size,json=totalSize,proto3" json:"total_size,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Response message for group by findings.
func (*GroupFindingsResponse) Descriptor ¶
func (*GroupFindingsResponse) Descriptor() ([]byte, []int)
func (*GroupFindingsResponse) GetGroupByResults ¶
func (m *GroupFindingsResponse) GetGroupByResults() []*GroupResult
func (*GroupFindingsResponse) GetNextPageToken ¶
func (m *GroupFindingsResponse) GetNextPageToken() string
func (*GroupFindingsResponse) GetReadTime ¶
func (m *GroupFindingsResponse) GetReadTime() *timestamp.Timestamp
func (*GroupFindingsResponse) GetTotalSize ¶
func (m *GroupFindingsResponse) GetTotalSize() int32
func (*GroupFindingsResponse) ProtoMessage ¶
func (*GroupFindingsResponse) ProtoMessage()
func (*GroupFindingsResponse) Reset ¶
func (m *GroupFindingsResponse) Reset()
func (*GroupFindingsResponse) String ¶
func (m *GroupFindingsResponse) String() string
func (*GroupFindingsResponse) XXX_DiscardUnknown ¶
func (m *GroupFindingsResponse) XXX_DiscardUnknown()
func (*GroupFindingsResponse) XXX_Marshal ¶
func (m *GroupFindingsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GroupFindingsResponse) XXX_Merge ¶
func (m *GroupFindingsResponse) XXX_Merge(src proto.Message)
func (*GroupFindingsResponse) XXX_Size ¶
func (m *GroupFindingsResponse) XXX_Size() int
func (*GroupFindingsResponse) XXX_Unmarshal ¶
func (m *GroupFindingsResponse) XXX_Unmarshal(b []byte) error
type GroupResult ¶
type GroupResult struct { // Properties matching the groupBy fields in the request. Properties map[string]*_struct.Value `` /* 161-byte string literal not displayed */ // Total count of resources for the given properties. Count int64 `protobuf:"varint,2,opt,name=count,proto3" json:"count,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Result containing the properties and count of a groupBy request.
func (*GroupResult) Descriptor ¶
func (*GroupResult) Descriptor() ([]byte, []int)
func (*GroupResult) GetCount ¶
func (m *GroupResult) GetCount() int64
func (*GroupResult) GetProperties ¶
func (m *GroupResult) GetProperties() map[string]*_struct.Value
func (*GroupResult) ProtoMessage ¶
func (*GroupResult) ProtoMessage()
func (*GroupResult) Reset ¶
func (m *GroupResult) Reset()
func (*GroupResult) String ¶
func (m *GroupResult) String() string
func (*GroupResult) XXX_DiscardUnknown ¶
func (m *GroupResult) XXX_DiscardUnknown()
func (*GroupResult) XXX_Marshal ¶
func (m *GroupResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GroupResult) XXX_Merge ¶
func (m *GroupResult) XXX_Merge(src proto.Message)
func (*GroupResult) XXX_Size ¶
func (m *GroupResult) XXX_Size() int
func (*GroupResult) XXX_Unmarshal ¶
func (m *GroupResult) XXX_Unmarshal(b []byte) error
type ListAssetsRequest ¶
type ListAssetsRequest struct { // Name of the organization assets should belong to. Its format is // "organizations/[organization_id]". Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` // Expression that defines the filter to apply across assets. // The expression is a list of zero or more restrictions combined via logical // operators `AND` and `OR`. // Parentheses are supported, and `OR` has higher precedence than `AND`. // // Restrictions have the form `<field> <operator> <value>` and may have a `-` // character in front of them to indicate negation. The fields map to those // defined in the Asset resource. Examples include: // // * name // * security_center_properties.resource_name // * resource_properties.a_property // * security_marks.marks.marka // // The supported operators are: // // * `=` for all value types. // * `>`, `<`, `>=`, `<=` for integer values. // * `:`, meaning substring matching, for strings. // // The supported value types are: // // * string literals in quotes. // * integer literals without quotes. // * boolean literals `true` and `false` without quotes. // // The following are the allowed field and operator combinations: // // * name: `=` // * update_time: `>`, `<`, `>=`, `<=` // * iam_policy.policy_blob: `=`, `:` // * resource_properties: `=`, `:`, `>`, `<`, `>=`, `<=` // * security_marks: `=`, `:` // * security_center_properties.resource_name: `=`, `:` // * security_center_properties.resource_type: `=`, `:` // * security_center_properties.resource_parent: `=`, `:` // * security_center_properties.resource_project: `=`, `:` // * security_center_properties.resource_owners: `=`, `:` // // For example, `resource_properties.size = 100` is a valid filter string. Filter string `protobuf:"bytes,2,opt,name=filter,proto3" json:"filter,omitempty"` // Expression that defines what fields and order to use for sorting. The // string value should follow SQL syntax: comma separated list of fields. For // example: "name,resource_properties.a_property". The default sorting order // is ascending. To specify descending order for a field, a suffix " desc" // should be appended to the field name. For example: "name // desc,resource_properties.a_property". Redundant space characters in the // syntax are insignificant. "name desc,resource_properties.a_property" and " // name desc , resource_properties.a_property " are equivalent. // // The following fields are supported: // name // update_time // resource_properties // security_marks // security_center_properties.resource_name // security_center_properties.resource_parent // security_center_properties.resource_project // security_center_properties.resource_type OrderBy string `protobuf:"bytes,3,opt,name=order_by,json=orderBy,proto3" json:"order_by,omitempty"` // Time used as a reference point when filtering assets. The filter is limited // to assets existing at the supplied time and their values are those at that // specific time. Absence of this field will default to the API's version of // NOW. ReadTime *timestamp.Timestamp `protobuf:"bytes,4,opt,name=read_time,json=readTime,proto3" json:"read_time,omitempty"` // When compare_duration is set, the ListAssetsResult's "state_change" // attribute is updated to indicate whether the asset was added, removed, or // remained present during the compare_duration period of time that precedes // the read_time. This is the time between (read_time - compare_duration) and // read_time. // // The state_change value is derived based on the presence of the asset at the // two points in time. Intermediate state changes between the two times don't // affect the result. For example, the results aren't affected if the asset is // removed and re-created again. // // Possible "state_change" values when compare_duration is specified: // // * "ADDED": indicates that the asset was not present at the start of // compare_duration, but present at read_time. // * "REMOVED": indicates that the asset was present at the start of // compare_duration, but not present at read_time. // * "ACTIVE": indicates that the asset was present at both the // start and the end of the time period defined by // compare_duration and read_time. // // If compare_duration is not specified, then the only possible state_change // is "UNUSED", which will be the state_change set for all assets present at // read_time. CompareDuration *duration.Duration `protobuf:"bytes,5,opt,name=compare_duration,json=compareDuration,proto3" json:"compare_duration,omitempty"` // Optional. A field mask to specify the ListAssetsResult fields to be listed in the // response. // An empty field mask will list all fields. FieldMask *field_mask.FieldMask `protobuf:"bytes,7,opt,name=field_mask,json=fieldMask,proto3" json:"field_mask,omitempty"` // The value returned by the last `ListAssetsResponse`; indicates // that this is a continuation of a prior `ListAssets` call, and // that the system should return the next page of data. PageToken string `protobuf:"bytes,8,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` // The maximum number of results to return in a single response. Default is // 10, minimum is 1, maximum is 1000. PageSize int32 `protobuf:"varint,9,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Request message for listing assets.
func (*ListAssetsRequest) Descriptor ¶
func (*ListAssetsRequest) Descriptor() ([]byte, []int)
func (*ListAssetsRequest) GetCompareDuration ¶
func (m *ListAssetsRequest) GetCompareDuration() *duration.Duration
func (*ListAssetsRequest) GetFieldMask ¶
func (m *ListAssetsRequest) GetFieldMask() *field_mask.FieldMask
func (*ListAssetsRequest) GetFilter ¶
func (m *ListAssetsRequest) GetFilter() string
func (*ListAssetsRequest) GetOrderBy ¶
func (m *ListAssetsRequest) GetOrderBy() string
func (*ListAssetsRequest) GetPageSize ¶
func (m *ListAssetsRequest) GetPageSize() int32
func (*ListAssetsRequest) GetPageToken ¶
func (m *ListAssetsRequest) GetPageToken() string
func (*ListAssetsRequest) GetParent ¶
func (m *ListAssetsRequest) GetParent() string
func (*ListAssetsRequest) GetReadTime ¶
func (m *ListAssetsRequest) GetReadTime() *timestamp.Timestamp
func (*ListAssetsRequest) ProtoMessage ¶
func (*ListAssetsRequest) ProtoMessage()
func (*ListAssetsRequest) Reset ¶
func (m *ListAssetsRequest) Reset()
func (*ListAssetsRequest) String ¶
func (m *ListAssetsRequest) String() string
func (*ListAssetsRequest) XXX_DiscardUnknown ¶
func (m *ListAssetsRequest) XXX_DiscardUnknown()
func (*ListAssetsRequest) XXX_Marshal ¶
func (m *ListAssetsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ListAssetsRequest) XXX_Merge ¶
func (m *ListAssetsRequest) XXX_Merge(src proto.Message)
func (*ListAssetsRequest) XXX_Size ¶
func (m *ListAssetsRequest) XXX_Size() int
func (*ListAssetsRequest) XXX_Unmarshal ¶
func (m *ListAssetsRequest) XXX_Unmarshal(b []byte) error
type ListAssetsResponse ¶
type ListAssetsResponse struct { // Assets matching the list request. ListAssetsResults []*ListAssetsResponse_ListAssetsResult `protobuf:"bytes,1,rep,name=list_assets_results,json=listAssetsResults,proto3" json:"list_assets_results,omitempty"` // Time used for executing the list request. ReadTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=read_time,json=readTime,proto3" json:"read_time,omitempty"` // Token to retrieve the next page of results, or empty if there are no more // results. NextPageToken string `protobuf:"bytes,3,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` // The total number of assets matching the query. TotalSize int32 `protobuf:"varint,4,opt,name=total_size,json=totalSize,proto3" json:"total_size,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Response message for listing assets.
func (*ListAssetsResponse) Descriptor ¶
func (*ListAssetsResponse) Descriptor() ([]byte, []int)
func (*ListAssetsResponse) GetListAssetsResults ¶
func (m *ListAssetsResponse) GetListAssetsResults() []*ListAssetsResponse_ListAssetsResult
func (*ListAssetsResponse) GetNextPageToken ¶
func (m *ListAssetsResponse) GetNextPageToken() string
func (*ListAssetsResponse) GetReadTime ¶
func (m *ListAssetsResponse) GetReadTime() *timestamp.Timestamp
func (*ListAssetsResponse) GetTotalSize ¶
func (m *ListAssetsResponse) GetTotalSize() int32
func (*ListAssetsResponse) ProtoMessage ¶
func (*ListAssetsResponse) ProtoMessage()
func (*ListAssetsResponse) Reset ¶
func (m *ListAssetsResponse) Reset()
func (*ListAssetsResponse) String ¶
func (m *ListAssetsResponse) String() string
func (*ListAssetsResponse) XXX_DiscardUnknown ¶
func (m *ListAssetsResponse) XXX_DiscardUnknown()
func (*ListAssetsResponse) XXX_Marshal ¶
func (m *ListAssetsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ListAssetsResponse) XXX_Merge ¶
func (m *ListAssetsResponse) XXX_Merge(src proto.Message)
func (*ListAssetsResponse) XXX_Size ¶
func (m *ListAssetsResponse) XXX_Size() int
func (*ListAssetsResponse) XXX_Unmarshal ¶
func (m *ListAssetsResponse) XXX_Unmarshal(b []byte) error
type ListAssetsResponse_ListAssetsResult ¶
type ListAssetsResponse_ListAssetsResult struct { // Asset matching the search request. Asset *Asset `protobuf:"bytes,1,opt,name=asset,proto3" json:"asset,omitempty"` // State change of the asset between the points in time. StateChange ListAssetsResponse_ListAssetsResult_StateChange `` /* 187-byte string literal not displayed */ XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Result containing the Asset and its State.
func (*ListAssetsResponse_ListAssetsResult) Descriptor ¶
func (*ListAssetsResponse_ListAssetsResult) Descriptor() ([]byte, []int)
func (*ListAssetsResponse_ListAssetsResult) GetAsset ¶
func (m *ListAssetsResponse_ListAssetsResult) GetAsset() *Asset
func (*ListAssetsResponse_ListAssetsResult) GetStateChange ¶
func (m *ListAssetsResponse_ListAssetsResult) GetStateChange() ListAssetsResponse_ListAssetsResult_StateChange
func (*ListAssetsResponse_ListAssetsResult) ProtoMessage ¶
func (*ListAssetsResponse_ListAssetsResult) ProtoMessage()
func (*ListAssetsResponse_ListAssetsResult) Reset ¶
func (m *ListAssetsResponse_ListAssetsResult) Reset()
func (*ListAssetsResponse_ListAssetsResult) String ¶
func (m *ListAssetsResponse_ListAssetsResult) String() string
func (*ListAssetsResponse_ListAssetsResult) XXX_DiscardUnknown ¶
func (m *ListAssetsResponse_ListAssetsResult) XXX_DiscardUnknown()
func (*ListAssetsResponse_ListAssetsResult) XXX_Marshal ¶
func (m *ListAssetsResponse_ListAssetsResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ListAssetsResponse_ListAssetsResult) XXX_Merge ¶
func (m *ListAssetsResponse_ListAssetsResult) XXX_Merge(src proto.Message)
func (*ListAssetsResponse_ListAssetsResult) XXX_Size ¶
func (m *ListAssetsResponse_ListAssetsResult) XXX_Size() int
func (*ListAssetsResponse_ListAssetsResult) XXX_Unmarshal ¶
func (m *ListAssetsResponse_ListAssetsResult) XXX_Unmarshal(b []byte) error
type 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
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) EnumDescriptor ¶
func (ListAssetsResponse_ListAssetsResult_StateChange) EnumDescriptor() ([]byte, []int)
func (ListAssetsResponse_ListAssetsResult_StateChange) String ¶
func (x ListAssetsResponse_ListAssetsResult_StateChange) String() string
type ListFindingsRequest ¶
type ListFindingsRequest struct { // Name of the source the findings belong to. Its format is // "organizations/[organization_id]/sources/[source_id]". To list across all // sources provide a source_id of `-`. For example: // organizations/123/sources/- Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` // Expression that defines the filter to apply across findings. // The expression is a list of one or more restrictions combined via logical // operators `AND` and `OR`. // Parentheses are supported, and `OR` has higher precedence than `AND`. // // Restrictions have the form `<field> <operator> <value>` and may have a `-` // character in front of them to indicate negation. Examples include: // // * name // * source_properties.a_property // * security_marks.marks.marka // // The supported operators are: // // * `=` for all value types. // * `>`, `<`, `>=`, `<=` for integer values. // * `:`, meaning substring matching, for strings. // // The supported value types are: // // * string literals in quotes. // * integer literals without quotes. // * boolean literals `true` and `false` without quotes. // // The following field and operator combinations are supported: // // name: `=` // parent: `=`, `:` // resource_name: `=`, `:` // state: `=`, `:` // category: `=`, `:` // external_uri: `=`, `:` // event_time: `>`, `<`, `>=`, `<=` // security_marks: `=`, `:` // source_properties: `=`, `:`, `>`, `<`, `>=`, `<=` // // For example, `source_properties.size = 100` is a valid filter string. Filter string `protobuf:"bytes,2,opt,name=filter,proto3" json:"filter,omitempty"` // Expression that defines what fields and order to use for sorting. The // string value should follow SQL syntax: comma separated list of fields. For // example: "name,resource_properties.a_property". The default sorting order // is ascending. To specify descending order for a field, a suffix " desc" // should be appended to the field name. For example: "name // desc,source_properties.a_property". Redundant space characters in the // syntax are insignificant. "name desc,source_properties.a_property" and " // name desc , source_properties.a_property " are equivalent. // // The following fields are supported: // name // parent // state // category // resource_name // event_time // source_properties // security_marks OrderBy string `protobuf:"bytes,3,opt,name=order_by,json=orderBy,proto3" json:"order_by,omitempty"` // Time used as a reference point when filtering findings. The filter is // limited to findings existing at the supplied time and their values are // those at that specific time. Absence of this field will default to the // API's version of NOW. ReadTime *timestamp.Timestamp `protobuf:"bytes,4,opt,name=read_time,json=readTime,proto3" json:"read_time,omitempty"` // When compare_duration is set, the ListFindingsResult's "state_change" // attribute is updated to indicate whether the finding had its state changed, // the finding's state remained unchanged, or if the finding was added in any // state during the compare_duration period of time that precedes the // read_time. This is the time between (read_time - compare_duration) and // read_time. // // The state_change value is derived based on the presence and state of the // finding at the two points in time. Intermediate state changes between the // two times don't affect the result. For example, the results aren't affected // if the finding is made inactive and then active again. // // Possible "state_change" values when compare_duration is specified: // // * "CHANGED": indicates that the finding was present at the start of // compare_duration, but changed its state at read_time. // * "UNCHANGED": indicates that the finding was present at the start of // compare_duration and did not change state at read_time. // * "ADDED": indicates that the finding was not present at the start // of compare_duration, but was present at read_time. // // If compare_duration is not specified, then the only possible state_change // is "UNUSED", which will be the state_change set for all findings present at // read_time. CompareDuration *duration.Duration `protobuf:"bytes,5,opt,name=compare_duration,json=compareDuration,proto3" json:"compare_duration,omitempty"` // Optional. A field mask to specify the Finding fields to be listed in the response. // An empty field mask will list all fields. FieldMask *field_mask.FieldMask `protobuf:"bytes,7,opt,name=field_mask,json=fieldMask,proto3" json:"field_mask,omitempty"` // The value returned by the last `ListFindingsResponse`; indicates // that this is a continuation of a prior `ListFindings` call, and // that the system should return the next page of data. PageToken string `protobuf:"bytes,8,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` // The maximum number of results to return in a single response. Default is // 10, minimum is 1, maximum is 1000. PageSize int32 `protobuf:"varint,9,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Request message for listing findings.
func (*ListFindingsRequest) Descriptor ¶
func (*ListFindingsRequest) Descriptor() ([]byte, []int)
func (*ListFindingsRequest) GetCompareDuration ¶
func (m *ListFindingsRequest) GetCompareDuration() *duration.Duration
func (*ListFindingsRequest) GetFieldMask ¶
func (m *ListFindingsRequest) GetFieldMask() *field_mask.FieldMask
func (*ListFindingsRequest) GetFilter ¶
func (m *ListFindingsRequest) GetFilter() string
func (*ListFindingsRequest) GetOrderBy ¶
func (m *ListFindingsRequest) GetOrderBy() string
func (*ListFindingsRequest) GetPageSize ¶
func (m *ListFindingsRequest) GetPageSize() int32
func (*ListFindingsRequest) GetPageToken ¶
func (m *ListFindingsRequest) GetPageToken() string
func (*ListFindingsRequest) GetParent ¶
func (m *ListFindingsRequest) GetParent() string
func (*ListFindingsRequest) GetReadTime ¶
func (m *ListFindingsRequest) GetReadTime() *timestamp.Timestamp
func (*ListFindingsRequest) ProtoMessage ¶
func (*ListFindingsRequest) ProtoMessage()
func (*ListFindingsRequest) Reset ¶
func (m *ListFindingsRequest) Reset()
func (*ListFindingsRequest) String ¶
func (m *ListFindingsRequest) String() string
func (*ListFindingsRequest) XXX_DiscardUnknown ¶
func (m *ListFindingsRequest) XXX_DiscardUnknown()
func (*ListFindingsRequest) XXX_Marshal ¶
func (m *ListFindingsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ListFindingsRequest) XXX_Merge ¶
func (m *ListFindingsRequest) XXX_Merge(src proto.Message)
func (*ListFindingsRequest) XXX_Size ¶
func (m *ListFindingsRequest) XXX_Size() int
func (*ListFindingsRequest) XXX_Unmarshal ¶
func (m *ListFindingsRequest) XXX_Unmarshal(b []byte) error
type ListFindingsResponse ¶
type ListFindingsResponse struct { // Findings matching the list request. 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 *timestamp.Timestamp `protobuf:"bytes,2,opt,name=read_time,json=readTime,proto3" json:"read_time,omitempty"` // Token to retrieve the next page of results, or empty if there are no more // results. NextPageToken string `protobuf:"bytes,3,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` // The total number of findings matching the query. TotalSize int32 `protobuf:"varint,4,opt,name=total_size,json=totalSize,proto3" json:"total_size,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Response message for listing findings.
func (*ListFindingsResponse) Descriptor ¶
func (*ListFindingsResponse) Descriptor() ([]byte, []int)
func (*ListFindingsResponse) GetListFindingsResults ¶
func (m *ListFindingsResponse) GetListFindingsResults() []*ListFindingsResponse_ListFindingsResult
func (*ListFindingsResponse) GetNextPageToken ¶
func (m *ListFindingsResponse) GetNextPageToken() string
func (*ListFindingsResponse) GetReadTime ¶
func (m *ListFindingsResponse) GetReadTime() *timestamp.Timestamp
func (*ListFindingsResponse) GetTotalSize ¶
func (m *ListFindingsResponse) GetTotalSize() int32
func (*ListFindingsResponse) ProtoMessage ¶
func (*ListFindingsResponse) ProtoMessage()
func (*ListFindingsResponse) Reset ¶
func (m *ListFindingsResponse) Reset()
func (*ListFindingsResponse) String ¶
func (m *ListFindingsResponse) String() string
func (*ListFindingsResponse) XXX_DiscardUnknown ¶
func (m *ListFindingsResponse) XXX_DiscardUnknown()
func (*ListFindingsResponse) XXX_Marshal ¶
func (m *ListFindingsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ListFindingsResponse) XXX_Merge ¶
func (m *ListFindingsResponse) XXX_Merge(src proto.Message)
func (*ListFindingsResponse) XXX_Size ¶
func (m *ListFindingsResponse) XXX_Size() int
func (*ListFindingsResponse) XXX_Unmarshal ¶
func (m *ListFindingsResponse) XXX_Unmarshal(b []byte) error
type ListFindingsResponse_ListFindingsResult ¶
type ListFindingsResponse_ListFindingsResult struct { // Finding matching the search request. Finding *Finding `protobuf:"bytes,1,opt,name=finding,proto3" json:"finding,omitempty"` // State change of the finding between the points in time. StateChange ListFindingsResponse_ListFindingsResult_StateChange `` /* 191-byte string literal not displayed */ XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Result containing the Finding and its StateChange.
func (*ListFindingsResponse_ListFindingsResult) Descriptor ¶
func (*ListFindingsResponse_ListFindingsResult) Descriptor() ([]byte, []int)
func (*ListFindingsResponse_ListFindingsResult) GetFinding ¶
func (m *ListFindingsResponse_ListFindingsResult) GetFinding() *Finding
func (*ListFindingsResponse_ListFindingsResult) GetStateChange ¶
func (m *ListFindingsResponse_ListFindingsResult) GetStateChange() ListFindingsResponse_ListFindingsResult_StateChange
func (*ListFindingsResponse_ListFindingsResult) ProtoMessage ¶
func (*ListFindingsResponse_ListFindingsResult) ProtoMessage()
func (*ListFindingsResponse_ListFindingsResult) Reset ¶
func (m *ListFindingsResponse_ListFindingsResult) Reset()
func (*ListFindingsResponse_ListFindingsResult) String ¶
func (m *ListFindingsResponse_ListFindingsResult) String() string
func (*ListFindingsResponse_ListFindingsResult) XXX_DiscardUnknown ¶
func (m *ListFindingsResponse_ListFindingsResult) XXX_DiscardUnknown()
func (*ListFindingsResponse_ListFindingsResult) XXX_Marshal ¶
func (m *ListFindingsResponse_ListFindingsResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ListFindingsResponse_ListFindingsResult) XXX_Merge ¶
func (m *ListFindingsResponse_ListFindingsResult) XXX_Merge(src proto.Message)
func (*ListFindingsResponse_ListFindingsResult) XXX_Size ¶
func (m *ListFindingsResponse_ListFindingsResult) XXX_Size() int
func (*ListFindingsResponse_ListFindingsResult) XXX_Unmarshal ¶
func (m *ListFindingsResponse_ListFindingsResult) XXX_Unmarshal(b []byte) error
type 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
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) EnumDescriptor ¶
func (ListFindingsResponse_ListFindingsResult_StateChange) EnumDescriptor() ([]byte, []int)
func (ListFindingsResponse_ListFindingsResult_StateChange) String ¶
func (x ListFindingsResponse_ListFindingsResult_StateChange) String() string
type ListNotificationConfigsRequest ¶
type ListNotificationConfigsRequest struct { // 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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Request message for listing notification configs.
func (*ListNotificationConfigsRequest) Descriptor ¶
func (*ListNotificationConfigsRequest) Descriptor() ([]byte, []int)
func (*ListNotificationConfigsRequest) GetPageSize ¶
func (m *ListNotificationConfigsRequest) GetPageSize() int32
func (*ListNotificationConfigsRequest) GetPageToken ¶
func (m *ListNotificationConfigsRequest) GetPageToken() string
func (*ListNotificationConfigsRequest) GetParent ¶
func (m *ListNotificationConfigsRequest) GetParent() string
func (*ListNotificationConfigsRequest) ProtoMessage ¶
func (*ListNotificationConfigsRequest) ProtoMessage()
func (*ListNotificationConfigsRequest) Reset ¶
func (m *ListNotificationConfigsRequest) Reset()
func (*ListNotificationConfigsRequest) String ¶
func (m *ListNotificationConfigsRequest) String() string
func (*ListNotificationConfigsRequest) XXX_DiscardUnknown ¶
func (m *ListNotificationConfigsRequest) XXX_DiscardUnknown()
func (*ListNotificationConfigsRequest) XXX_Marshal ¶
func (m *ListNotificationConfigsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ListNotificationConfigsRequest) XXX_Merge ¶
func (m *ListNotificationConfigsRequest) XXX_Merge(src proto.Message)
func (*ListNotificationConfigsRequest) XXX_Size ¶
func (m *ListNotificationConfigsRequest) XXX_Size() int
func (*ListNotificationConfigsRequest) XXX_Unmarshal ¶
func (m *ListNotificationConfigsRequest) XXX_Unmarshal(b []byte) error
type 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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Response message for listing notification configs.
func (*ListNotificationConfigsResponse) Descriptor ¶
func (*ListNotificationConfigsResponse) Descriptor() ([]byte, []int)
func (*ListNotificationConfigsResponse) GetNextPageToken ¶
func (m *ListNotificationConfigsResponse) GetNextPageToken() string
func (*ListNotificationConfigsResponse) GetNotificationConfigs ¶
func (m *ListNotificationConfigsResponse) GetNotificationConfigs() []*NotificationConfig
func (*ListNotificationConfigsResponse) ProtoMessage ¶
func (*ListNotificationConfigsResponse) ProtoMessage()
func (*ListNotificationConfigsResponse) Reset ¶
func (m *ListNotificationConfigsResponse) Reset()
func (*ListNotificationConfigsResponse) String ¶
func (m *ListNotificationConfigsResponse) String() string
func (*ListNotificationConfigsResponse) XXX_DiscardUnknown ¶
func (m *ListNotificationConfigsResponse) XXX_DiscardUnknown()
func (*ListNotificationConfigsResponse) XXX_Marshal ¶
func (m *ListNotificationConfigsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ListNotificationConfigsResponse) XXX_Merge ¶
func (m *ListNotificationConfigsResponse) XXX_Merge(src proto.Message)
func (*ListNotificationConfigsResponse) XXX_Size ¶
func (m *ListNotificationConfigsResponse) XXX_Size() int
func (*ListNotificationConfigsResponse) XXX_Unmarshal ¶
func (m *ListNotificationConfigsResponse) XXX_Unmarshal(b []byte) error
type ListSourcesRequest ¶
type ListSourcesRequest struct { // Resource name of the parent of sources to list. Its format should be // "organizations/[organization_id]". Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` // The value returned by the last `ListSourcesResponse`; indicates // that this is a continuation of a prior `ListSources` call, and // that the system should return the next page of data. PageToken string `protobuf:"bytes,2,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` // The maximum number of results to return in a single response. Default is // 10, minimum is 1, maximum is 1000. PageSize int32 `protobuf:"varint,7,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Request message for listing sources.
func (*ListSourcesRequest) Descriptor ¶
func (*ListSourcesRequest) Descriptor() ([]byte, []int)
func (*ListSourcesRequest) GetPageSize ¶
func (m *ListSourcesRequest) GetPageSize() int32
func (*ListSourcesRequest) GetPageToken ¶
func (m *ListSourcesRequest) GetPageToken() string
func (*ListSourcesRequest) GetParent ¶
func (m *ListSourcesRequest) GetParent() string
func (*ListSourcesRequest) ProtoMessage ¶
func (*ListSourcesRequest) ProtoMessage()
func (*ListSourcesRequest) Reset ¶
func (m *ListSourcesRequest) Reset()
func (*ListSourcesRequest) String ¶
func (m *ListSourcesRequest) String() string
func (*ListSourcesRequest) XXX_DiscardUnknown ¶
func (m *ListSourcesRequest) XXX_DiscardUnknown()
func (*ListSourcesRequest) XXX_Marshal ¶
func (m *ListSourcesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ListSourcesRequest) XXX_Merge ¶
func (m *ListSourcesRequest) XXX_Merge(src proto.Message)
func (*ListSourcesRequest) XXX_Size ¶
func (m *ListSourcesRequest) XXX_Size() int
func (*ListSourcesRequest) XXX_Unmarshal ¶
func (m *ListSourcesRequest) XXX_Unmarshal(b []byte) error
type ListSourcesResponse ¶
type ListSourcesResponse struct { // Sources belonging to the requested parent. Sources []*Source `protobuf:"bytes,1,rep,name=sources,proto3" json:"sources,omitempty"` // Token to retrieve the next page of results, or empty if there are no more // results. NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Response message for listing sources.
func (*ListSourcesResponse) Descriptor ¶
func (*ListSourcesResponse) Descriptor() ([]byte, []int)
func (*ListSourcesResponse) GetNextPageToken ¶
func (m *ListSourcesResponse) GetNextPageToken() string
func (*ListSourcesResponse) GetSources ¶
func (m *ListSourcesResponse) GetSources() []*Source
func (*ListSourcesResponse) ProtoMessage ¶
func (*ListSourcesResponse) ProtoMessage()
func (*ListSourcesResponse) Reset ¶
func (m *ListSourcesResponse) Reset()
func (*ListSourcesResponse) String ¶
func (m *ListSourcesResponse) String() string
func (*ListSourcesResponse) XXX_DiscardUnknown ¶
func (m *ListSourcesResponse) XXX_DiscardUnknown()
func (*ListSourcesResponse) XXX_Marshal ¶
func (m *ListSourcesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ListSourcesResponse) XXX_Merge ¶
func (m *ListSourcesResponse) XXX_Merge(src proto.Message)
func (*ListSourcesResponse) XXX_Size ¶
func (m *ListSourcesResponse) XXX_Size() int
func (*ListSourcesResponse) XXX_Unmarshal ¶
func (m *ListSourcesResponse) XXX_Unmarshal(b []byte) error
type NotificationConfig ¶
type NotificationConfig struct { // The relative resource name of this notification config. See: // https://cloud.google.com/apis/design/resource_names#relative_resource_name // Example: // "organizations/123/notificationConfigs/notify_public_bucket". Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // The description of the notification config (max of 1024 characters). Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` // The type of events the config is for, e.g. FINDING. EventType NotificationConfig_EventType `` /* 162-byte string literal not displayed */ // The PubSub topic to send notifications to. Its format is // "projects/[project_id]/topics/[topic]". PubsubTopic string `protobuf:"bytes,4,opt,name=pubsub_topic,json=pubsubTopic,proto3" json:"pubsub_topic,omitempty"` // Output only. The service account that needs "pubsub.topics.publish" // permission to publish to the PubSub topic. ServiceAccount string `protobuf:"bytes,5,opt,name=service_account,json=serviceAccount,proto3" json:"service_account,omitempty"` // The config for triggering notifications. // // Types that are valid to be assigned to NotifyConfig: // *NotificationConfig_StreamingConfig_ NotifyConfig isNotificationConfig_NotifyConfig `protobuf_oneof:"notify_config"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Cloud Security Command Center (Cloud SCC) notification configs.
A notification config is a Cloud SCC 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)
func (*NotificationConfig) GetDescription ¶
func (m *NotificationConfig) GetDescription() string
func (*NotificationConfig) GetEventType ¶
func (m *NotificationConfig) GetEventType() NotificationConfig_EventType
func (*NotificationConfig) GetName ¶
func (m *NotificationConfig) GetName() string
func (*NotificationConfig) GetNotifyConfig ¶
func (m *NotificationConfig) GetNotifyConfig() isNotificationConfig_NotifyConfig
func (*NotificationConfig) GetPubsubTopic ¶
func (m *NotificationConfig) GetPubsubTopic() string
func (*NotificationConfig) GetServiceAccount ¶
func (m *NotificationConfig) GetServiceAccount() string
func (*NotificationConfig) GetStreamingConfig ¶
func (m *NotificationConfig) GetStreamingConfig() *NotificationConfig_StreamingConfig
func (*NotificationConfig) ProtoMessage ¶
func (*NotificationConfig) ProtoMessage()
func (*NotificationConfig) Reset ¶
func (m *NotificationConfig) Reset()
func (*NotificationConfig) String ¶
func (m *NotificationConfig) String() string
func (*NotificationConfig) XXX_DiscardUnknown ¶
func (m *NotificationConfig) XXX_DiscardUnknown()
func (*NotificationConfig) XXX_Marshal ¶
func (m *NotificationConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*NotificationConfig) XXX_Merge ¶
func (m *NotificationConfig) XXX_Merge(src proto.Message)
func (*NotificationConfig) XXX_OneofWrappers ¶
func (*NotificationConfig) XXX_OneofWrappers() []interface{}
XXX_OneofWrappers is for the internal use of the proto package.
func (*NotificationConfig) XXX_Size ¶
func (m *NotificationConfig) XXX_Size() int
func (*NotificationConfig) XXX_Unmarshal ¶
func (m *NotificationConfig) XXX_Unmarshal(b []byte) error
type NotificationConfig_EventType ¶
type NotificationConfig_EventType int32
The type of events.
const ( // Unspecified event type. NotificationConfig_EVENT_TYPE_UNSPECIFIED NotificationConfig_EventType = 0 // Events for findings. NotificationConfig_FINDING NotificationConfig_EventType = 1 )
func (NotificationConfig_EventType) EnumDescriptor ¶
func (NotificationConfig_EventType) EnumDescriptor() ([]byte, []int)
func (NotificationConfig_EventType) String ¶
func (x NotificationConfig_EventType) String() string
type NotificationConfig_StreamingConfig ¶
type NotificationConfig_StreamingConfig struct { // Expression that defines the filter to apply across create/update events // of assets or findings as specified by the event type. 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 `<field> <operator> <value>` and may have a // `-` character in front of them to indicate negation. The fields map to // those defined in the corresponding resource. // // The supported operators are: // // * `=` for all value types. // * `>`, `<`, `>=`, `<=` for integer values. // * `:`, meaning substring matching, for strings. // // The supported value types are: // // * string literals in quotes. // * integer literals without quotes. // * boolean literals `true` and `false` without quotes. Filter string `protobuf:"bytes,1,opt,name=filter,proto3" json:"filter,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
The config for streaming-based notifications, which send each event as soon as it is detected.
func (*NotificationConfig_StreamingConfig) Descriptor ¶
func (*NotificationConfig_StreamingConfig) Descriptor() ([]byte, []int)
func (*NotificationConfig_StreamingConfig) GetFilter ¶
func (m *NotificationConfig_StreamingConfig) GetFilter() string
func (*NotificationConfig_StreamingConfig) ProtoMessage ¶
func (*NotificationConfig_StreamingConfig) ProtoMessage()
func (*NotificationConfig_StreamingConfig) Reset ¶
func (m *NotificationConfig_StreamingConfig) Reset()
func (*NotificationConfig_StreamingConfig) String ¶
func (m *NotificationConfig_StreamingConfig) String() string
func (*NotificationConfig_StreamingConfig) XXX_DiscardUnknown ¶
func (m *NotificationConfig_StreamingConfig) XXX_DiscardUnknown()
func (*NotificationConfig_StreamingConfig) XXX_Marshal ¶
func (m *NotificationConfig_StreamingConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*NotificationConfig_StreamingConfig) XXX_Merge ¶
func (m *NotificationConfig_StreamingConfig) XXX_Merge(src proto.Message)
func (*NotificationConfig_StreamingConfig) XXX_Size ¶
func (m *NotificationConfig_StreamingConfig) XXX_Size() int
func (*NotificationConfig_StreamingConfig) XXX_Unmarshal ¶
func (m *NotificationConfig_StreamingConfig) XXX_Unmarshal(b []byte) error
type NotificationConfig_StreamingConfig_ ¶
type NotificationConfig_StreamingConfig_ struct {
StreamingConfig *NotificationConfig_StreamingConfig `protobuf:"bytes,6,opt,name=streaming_config,json=streamingConfig,proto3,oneof"`
}
type NotificationMessage ¶
type NotificationMessage struct { // Name of the notification config that generated current notification. NotificationConfigName string `` /* 129-byte string literal not displayed */ // Notification Event. // // Types that are valid to be assigned to Event: // *NotificationMessage_Finding Event isNotificationMessage_Event `protobuf_oneof:"event"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Cloud SCC's Notification
func (*NotificationMessage) Descriptor ¶
func (*NotificationMessage) Descriptor() ([]byte, []int)
func (*NotificationMessage) GetEvent ¶
func (m *NotificationMessage) GetEvent() isNotificationMessage_Event
func (*NotificationMessage) GetFinding ¶
func (m *NotificationMessage) GetFinding() *Finding
func (*NotificationMessage) GetNotificationConfigName ¶
func (m *NotificationMessage) GetNotificationConfigName() string
func (*NotificationMessage) ProtoMessage ¶
func (*NotificationMessage) ProtoMessage()
func (*NotificationMessage) Reset ¶
func (m *NotificationMessage) Reset()
func (*NotificationMessage) String ¶
func (m *NotificationMessage) String() string
func (*NotificationMessage) XXX_DiscardUnknown ¶
func (m *NotificationMessage) XXX_DiscardUnknown()
func (*NotificationMessage) XXX_Marshal ¶
func (m *NotificationMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*NotificationMessage) XXX_Merge ¶
func (m *NotificationMessage) XXX_Merge(src proto.Message)
func (*NotificationMessage) XXX_OneofWrappers ¶
func (*NotificationMessage) XXX_OneofWrappers() []interface{}
XXX_OneofWrappers is for the internal use of the proto package.
func (*NotificationMessage) XXX_Size ¶
func (m *NotificationMessage) XXX_Size() int
func (*NotificationMessage) XXX_Unmarshal ¶
func (m *NotificationMessage) XXX_Unmarshal(b []byte) error
type NotificationMessage_Finding ¶
type NotificationMessage_Finding struct {
Finding *Finding `protobuf:"bytes,2,opt,name=finding,proto3,oneof"`
}
type OrganizationSettings ¶
type OrganizationSettings struct { // The relative resource name of the settings. See: // https://cloud.google.com/apis/design/resource_names#relative_resource_name // Example: // "organizations/123/organizationSettings". Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // A flag 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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
User specified settings that are attached to the Cloud Security Command Center (Cloud SCC) organization.
func (*OrganizationSettings) Descriptor ¶
func (*OrganizationSettings) Descriptor() ([]byte, []int)
func (*OrganizationSettings) GetAssetDiscoveryConfig ¶
func (m *OrganizationSettings) GetAssetDiscoveryConfig() *OrganizationSettings_AssetDiscoveryConfig
func (*OrganizationSettings) GetEnableAssetDiscovery ¶
func (m *OrganizationSettings) GetEnableAssetDiscovery() bool
func (*OrganizationSettings) GetName ¶
func (m *OrganizationSettings) GetName() string
func (*OrganizationSettings) ProtoMessage ¶
func (*OrganizationSettings) ProtoMessage()
func (*OrganizationSettings) Reset ¶
func (m *OrganizationSettings) Reset()
func (*OrganizationSettings) String ¶
func (m *OrganizationSettings) String() string
func (*OrganizationSettings) XXX_DiscardUnknown ¶
func (m *OrganizationSettings) XXX_DiscardUnknown()
func (*OrganizationSettings) XXX_Marshal ¶
func (m *OrganizationSettings) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*OrganizationSettings) XXX_Merge ¶
func (m *OrganizationSettings) XXX_Merge(src proto.Message)
func (*OrganizationSettings) XXX_Size ¶
func (m *OrganizationSettings) XXX_Size() int
func (*OrganizationSettings) XXX_Unmarshal ¶
func (m *OrganizationSettings) XXX_Unmarshal(b []byte) error
type OrganizationSettings_AssetDiscoveryConfig ¶
type OrganizationSettings_AssetDiscoveryConfig struct { // The project ids to use for filtering asset discovery. ProjectIds []string `protobuf:"bytes,1,rep,name=project_ids,json=projectIds,proto3" json:"project_ids,omitempty"` // The mode to use for filtering asset discovery. InclusionMode OrganizationSettings_AssetDiscoveryConfig_InclusionMode `` /* 201-byte string literal not displayed */ XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
The configuration used for Asset Discovery runs.
func (*OrganizationSettings_AssetDiscoveryConfig) Descriptor ¶
func (*OrganizationSettings_AssetDiscoveryConfig) Descriptor() ([]byte, []int)
func (*OrganizationSettings_AssetDiscoveryConfig) GetInclusionMode ¶
func (m *OrganizationSettings_AssetDiscoveryConfig) GetInclusionMode() OrganizationSettings_AssetDiscoveryConfig_InclusionMode
func (*OrganizationSettings_AssetDiscoveryConfig) GetProjectIds ¶
func (m *OrganizationSettings_AssetDiscoveryConfig) GetProjectIds() []string
func (*OrganizationSettings_AssetDiscoveryConfig) ProtoMessage ¶
func (*OrganizationSettings_AssetDiscoveryConfig) ProtoMessage()
func (*OrganizationSettings_AssetDiscoveryConfig) Reset ¶
func (m *OrganizationSettings_AssetDiscoveryConfig) Reset()
func (*OrganizationSettings_AssetDiscoveryConfig) String ¶
func (m *OrganizationSettings_AssetDiscoveryConfig) String() string
func (*OrganizationSettings_AssetDiscoveryConfig) XXX_DiscardUnknown ¶
func (m *OrganizationSettings_AssetDiscoveryConfig) XXX_DiscardUnknown()
func (*OrganizationSettings_AssetDiscoveryConfig) XXX_Marshal ¶
func (m *OrganizationSettings_AssetDiscoveryConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*OrganizationSettings_AssetDiscoveryConfig) XXX_Merge ¶
func (m *OrganizationSettings_AssetDiscoveryConfig) XXX_Merge(src proto.Message)
func (*OrganizationSettings_AssetDiscoveryConfig) XXX_Size ¶
func (m *OrganizationSettings_AssetDiscoveryConfig) XXX_Size() int
func (*OrganizationSettings_AssetDiscoveryConfig) XXX_Unmarshal ¶
func (m *OrganizationSettings_AssetDiscoveryConfig) XXX_Unmarshal(b []byte) error
type OrganizationSettings_AssetDiscoveryConfig_InclusionMode ¶
type OrganizationSettings_AssetDiscoveryConfig_InclusionMode int32
The mode of inclusion when running Asset Discovery. Asset discovery can be limited by explicitly identifying projects to be included or excluded. If INCLUDE_ONLY is set, then only those projects within the organization and their children are discovered during asset discovery. If EXCLUDE is set, then projects 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.
const ( // Unspecified. Setting the mode with this value will disable // inclusion/exclusion filtering for Asset Discovery. OrganizationSettings_AssetDiscoveryConfig_INCLUSION_MODE_UNSPECIFIED OrganizationSettings_AssetDiscoveryConfig_InclusionMode = 0 // Asset Discovery will capture only the resources within the projects // specified. All other resources will be ignored. OrganizationSettings_AssetDiscoveryConfig_INCLUDE_ONLY OrganizationSettings_AssetDiscoveryConfig_InclusionMode = 1 // Asset Discovery will ignore all resources under the projects specified. // All other resources will be retrieved. OrganizationSettings_AssetDiscoveryConfig_EXCLUDE OrganizationSettings_AssetDiscoveryConfig_InclusionMode = 2 )
func (OrganizationSettings_AssetDiscoveryConfig_InclusionMode) EnumDescriptor ¶
func (OrganizationSettings_AssetDiscoveryConfig_InclusionMode) EnumDescriptor() ([]byte, []int)
func (OrganizationSettings_AssetDiscoveryConfig_InclusionMode) String ¶
func (x OrganizationSettings_AssetDiscoveryConfig_InclusionMode) String() string
type RunAssetDiscoveryRequest ¶
type RunAssetDiscoveryRequest struct { // Name of the organization to run asset discovery for. Its format is // "organizations/[organization_id]". Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Request message for running asset discovery for an organization.
func (*RunAssetDiscoveryRequest) Descriptor ¶
func (*RunAssetDiscoveryRequest) Descriptor() ([]byte, []int)
func (*RunAssetDiscoveryRequest) GetParent ¶
func (m *RunAssetDiscoveryRequest) GetParent() string
func (*RunAssetDiscoveryRequest) ProtoMessage ¶
func (*RunAssetDiscoveryRequest) ProtoMessage()
func (*RunAssetDiscoveryRequest) Reset ¶
func (m *RunAssetDiscoveryRequest) Reset()
func (*RunAssetDiscoveryRequest) String ¶
func (m *RunAssetDiscoveryRequest) String() string
func (*RunAssetDiscoveryRequest) XXX_DiscardUnknown ¶
func (m *RunAssetDiscoveryRequest) XXX_DiscardUnknown()
func (*RunAssetDiscoveryRequest) XXX_Marshal ¶
func (m *RunAssetDiscoveryRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*RunAssetDiscoveryRequest) XXX_Merge ¶
func (m *RunAssetDiscoveryRequest) XXX_Merge(src proto.Message)
func (*RunAssetDiscoveryRequest) XXX_Size ¶
func (m *RunAssetDiscoveryRequest) XXX_Size() int
func (*RunAssetDiscoveryRequest) XXX_Unmarshal ¶
func (m *RunAssetDiscoveryRequest) XXX_Unmarshal(b []byte) error
type RunAssetDiscoveryResponse ¶
type RunAssetDiscoveryResponse struct { // The state of an asset discovery run. State RunAssetDiscoveryResponse_State `` /* 140-byte string literal not displayed */ // The duration between asset discovery run start and end Duration *duration.Duration `protobuf:"bytes,2,opt,name=duration,proto3" json:"duration,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Response of asset discovery run
func (*RunAssetDiscoveryResponse) Descriptor ¶
func (*RunAssetDiscoveryResponse) Descriptor() ([]byte, []int)
func (*RunAssetDiscoveryResponse) GetDuration ¶
func (m *RunAssetDiscoveryResponse) GetDuration() *duration.Duration
func (*RunAssetDiscoveryResponse) GetState ¶
func (m *RunAssetDiscoveryResponse) GetState() RunAssetDiscoveryResponse_State
func (*RunAssetDiscoveryResponse) ProtoMessage ¶
func (*RunAssetDiscoveryResponse) ProtoMessage()
func (*RunAssetDiscoveryResponse) Reset ¶
func (m *RunAssetDiscoveryResponse) Reset()
func (*RunAssetDiscoveryResponse) String ¶
func (m *RunAssetDiscoveryResponse) String() string
func (*RunAssetDiscoveryResponse) XXX_DiscardUnknown ¶
func (m *RunAssetDiscoveryResponse) XXX_DiscardUnknown()
func (*RunAssetDiscoveryResponse) XXX_Marshal ¶
func (m *RunAssetDiscoveryResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*RunAssetDiscoveryResponse) XXX_Merge ¶
func (m *RunAssetDiscoveryResponse) XXX_Merge(src proto.Message)
func (*RunAssetDiscoveryResponse) XXX_Size ¶
func (m *RunAssetDiscoveryResponse) XXX_Size() int
func (*RunAssetDiscoveryResponse) XXX_Unmarshal ¶
func (m *RunAssetDiscoveryResponse) XXX_Unmarshal(b []byte) error
type RunAssetDiscoveryResponse_State ¶
type RunAssetDiscoveryResponse_State int32
The state of an asset discovery run.
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) EnumDescriptor ¶
func (RunAssetDiscoveryResponse_State) EnumDescriptor() ([]byte, []int)
func (RunAssetDiscoveryResponse_State) String ¶
func (x RunAssetDiscoveryResponse_State) String() string
type SecurityCenterClient ¶
type SecurityCenterClient interface { // Creates a source. CreateSource(ctx context.Context, in *CreateSourceRequest, opts ...grpc.CallOption) (*Source, error) // Creates a finding. The corresponding source must exist for finding creation // to succeed. CreateFinding(ctx context.Context, in *CreateFindingRequest, opts ...grpc.CallOption) (*Finding, error) // Creates a notification config. CreateNotificationConfig(ctx context.Context, in *CreateNotificationConfigRequest, opts ...grpc.CallOption) (*NotificationConfig, error) // Deletes a notification config. DeleteNotificationConfig(ctx context.Context, in *DeleteNotificationConfigRequest, opts ...grpc.CallOption) (*empty.Empty, error) // Gets the access control policy on the specified Source. GetIamPolicy(ctx context.Context, in *v1.GetIamPolicyRequest, opts ...grpc.CallOption) (*v1.Policy, error) // Gets a notification config. GetNotificationConfig(ctx context.Context, in *GetNotificationConfigRequest, opts ...grpc.CallOption) (*NotificationConfig, 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: /v1p1alpha1/organizations/123/sources/-/findings GroupFindings(ctx context.Context, in *GroupFindingsRequest, opts ...grpc.CallOption) (*GroupFindingsResponse, error) // Lists an organization's assets. ListAssets(ctx context.Context, in *ListAssetsRequest, opts ...grpc.CallOption) (*ListAssetsResponse, error) // Lists an organization or source's findings. // // To list across all sources provide a `-` as the source id. // Example: /v1p1alpha1/organizations/123/sources/-/findings ListFindings(ctx context.Context, in *ListFindingsRequest, opts ...grpc.CallOption) (*ListFindingsResponse, error) // Lists notification configs. ListNotificationConfigs(ctx context.Context, in *ListNotificationConfigsRequest, opts ...grpc.CallOption) (*ListNotificationConfigsResponse, error) // Lists all sources belonging to an organization. ListSources(ctx context.Context, in *ListSourcesRequest, opts ...grpc.CallOption) (*ListSourcesResponse, error) // Runs asset discovery. The discovery is tracked with a long-running // operation. // // This API can only be called with limited frequency for an organization. If // it is called too frequently the caller will receive a TOO_MANY_REQUESTS // error. RunAssetDiscovery(ctx context.Context, in *RunAssetDiscoveryRequest, opts ...grpc.CallOption) (*longrunning.Operation, error) // Updates the state of a finding. SetFindingState(ctx context.Context, in *SetFindingStateRequest, opts ...grpc.CallOption) (*Finding, error) // Sets the access control policy on the specified Source. SetIamPolicy(ctx context.Context, in *v1.SetIamPolicyRequest, opts ...grpc.CallOption) (*v1.Policy, error) // Returns the permissions that a caller has on the specified source. TestIamPermissions(ctx context.Context, in *v1.TestIamPermissionsRequest, opts ...grpc.CallOption) (*v1.TestIamPermissionsResponse, error) // Creates or updates a finding. The corresponding source must exist for a // finding creation to succeed. UpdateFinding(ctx context.Context, in *UpdateFindingRequest, opts ...grpc.CallOption) (*Finding, error) // Updates a notification config. UpdateNotificationConfig(ctx context.Context, in *UpdateNotificationConfigRequest, opts ...grpc.CallOption) (*NotificationConfig, error) // Updates an organization's settings. UpdateOrganizationSettings(ctx context.Context, in *UpdateOrganizationSettingsRequest, opts ...grpc.CallOption) (*OrganizationSettings, error) // Updates a source. UpdateSource(ctx context.Context, in *UpdateSourceRequest, opts ...grpc.CallOption) (*Source, error) // Updates security marks. UpdateSecurityMarks(ctx context.Context, in *UpdateSecurityMarksRequest, opts ...grpc.CallOption) (*SecurityMarks, error) }
SecurityCenterClient is the client API for SecurityCenter service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewSecurityCenterClient ¶
func NewSecurityCenterClient(cc *grpc.ClientConn) SecurityCenterClient
type SecurityCenterServer ¶
type SecurityCenterServer interface { // Creates a source. CreateSource(context.Context, *CreateSourceRequest) (*Source, error) // Creates a finding. The corresponding source must exist for finding creation // to succeed. CreateFinding(context.Context, *CreateFindingRequest) (*Finding, error) // Creates a notification config. CreateNotificationConfig(context.Context, *CreateNotificationConfigRequest) (*NotificationConfig, error) // Deletes a notification config. DeleteNotificationConfig(context.Context, *DeleteNotificationConfigRequest) (*empty.Empty, error) // Gets the access control policy on the specified Source. GetIamPolicy(context.Context, *v1.GetIamPolicyRequest) (*v1.Policy, error) // Gets a notification config. GetNotificationConfig(context.Context, *GetNotificationConfigRequest) (*NotificationConfig, 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: /v1p1alpha1/organizations/123/sources/-/findings GroupFindings(context.Context, *GroupFindingsRequest) (*GroupFindingsResponse, error) // Lists an organization's assets. ListAssets(context.Context, *ListAssetsRequest) (*ListAssetsResponse, error) // Lists an organization or source's findings. // // To list across all sources provide a `-` as the source id. // Example: /v1p1alpha1/organizations/123/sources/-/findings ListFindings(context.Context, *ListFindingsRequest) (*ListFindingsResponse, error) // Lists notification configs. ListNotificationConfigs(context.Context, *ListNotificationConfigsRequest) (*ListNotificationConfigsResponse, error) // Lists all sources belonging to an organization. ListSources(context.Context, *ListSourcesRequest) (*ListSourcesResponse, error) // Runs asset discovery. The discovery is tracked with a long-running // operation. // // This API can only be called with limited frequency for an organization. If // it is called too frequently the caller will receive a TOO_MANY_REQUESTS // error. RunAssetDiscovery(context.Context, *RunAssetDiscoveryRequest) (*longrunning.Operation, error) // Updates the state of a finding. SetFindingState(context.Context, *SetFindingStateRequest) (*Finding, error) // Sets the access control policy on the specified Source. SetIamPolicy(context.Context, *v1.SetIamPolicyRequest) (*v1.Policy, error) // Returns the permissions that a caller has on the specified source. TestIamPermissions(context.Context, *v1.TestIamPermissionsRequest) (*v1.TestIamPermissionsResponse, error) // Creates or updates a finding. The corresponding source must exist for a // finding creation to succeed. UpdateFinding(context.Context, *UpdateFindingRequest) (*Finding, error) // Updates a notification config. UpdateNotificationConfig(context.Context, *UpdateNotificationConfigRequest) (*NotificationConfig, error) // Updates an organization's settings. UpdateOrganizationSettings(context.Context, *UpdateOrganizationSettingsRequest) (*OrganizationSettings, error) // Updates a source. UpdateSource(context.Context, *UpdateSourceRequest) (*Source, error) // Updates security marks. UpdateSecurityMarks(context.Context, *UpdateSecurityMarksRequest) (*SecurityMarks, error) }
SecurityCenterServer is the server API for SecurityCenter service.
type SecurityMarks ¶
type SecurityMarks struct { // The relative resource name of the SecurityMarks. See: // https://cloud.google.com/apis/design/resource_names#relative_resource_name // Examples: // "organizations/123/assets/456/securityMarks" // "organizations/123/sources/456/findings/789/securityMarks". Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // Mutable user specified security marks belonging to the parent resource. // Constraints are as follows: // - Keys and values are treated as case insensitive // - Keys must be between 1 - 256 characters (inclusive) // - Keys must be letters, numbers, underscores, or dashes // - Values have leading and trailing whitespace trimmed, remaining // characters must be between 1 - 4096 characters (inclusive) Marks map[string]string `` /* 151-byte string literal not displayed */ XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
User specified security marks that are attached to the parent Cloud Security Command Center (Cloud SCC) resource. Security marks are scoped within a Cloud SCC 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)
func (*SecurityMarks) GetMarks ¶
func (m *SecurityMarks) GetMarks() map[string]string
func (*SecurityMarks) GetName ¶
func (m *SecurityMarks) GetName() string
func (*SecurityMarks) ProtoMessage ¶
func (*SecurityMarks) ProtoMessage()
func (*SecurityMarks) Reset ¶
func (m *SecurityMarks) Reset()
func (*SecurityMarks) String ¶
func (m *SecurityMarks) String() string
func (*SecurityMarks) XXX_DiscardUnknown ¶
func (m *SecurityMarks) XXX_DiscardUnknown()
func (*SecurityMarks) XXX_Marshal ¶
func (m *SecurityMarks) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SecurityMarks) XXX_Merge ¶
func (m *SecurityMarks) XXX_Merge(src proto.Message)
func (*SecurityMarks) XXX_Size ¶
func (m *SecurityMarks) XXX_Size() int
func (*SecurityMarks) XXX_Unmarshal ¶
func (m *SecurityMarks) XXX_Unmarshal(b []byte) error
type SetFindingStateRequest ¶
type SetFindingStateRequest struct { // The relative resource name of the finding. See: // https://cloud.google.com/apis/design/resource_names#relative_resource_name // Example: // "organizations/123/sources/456/finding/789". Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // The desired State of the finding. State Finding_State `protobuf:"varint,2,opt,name=state,proto3,enum=google.cloud.securitycenter.v1p1alpha1.Finding_State" json:"state,omitempty"` // The time at which the updated state takes effect. StartTime *timestamp.Timestamp `protobuf:"bytes,3,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Request message for updating a finding's state.
func (*SetFindingStateRequest) Descriptor ¶
func (*SetFindingStateRequest) Descriptor() ([]byte, []int)
func (*SetFindingStateRequest) GetName ¶
func (m *SetFindingStateRequest) GetName() string
func (*SetFindingStateRequest) GetStartTime ¶
func (m *SetFindingStateRequest) GetStartTime() *timestamp.Timestamp
func (*SetFindingStateRequest) GetState ¶
func (m *SetFindingStateRequest) GetState() Finding_State
func (*SetFindingStateRequest) ProtoMessage ¶
func (*SetFindingStateRequest) ProtoMessage()
func (*SetFindingStateRequest) Reset ¶
func (m *SetFindingStateRequest) Reset()
func (*SetFindingStateRequest) String ¶
func (m *SetFindingStateRequest) String() string
func (*SetFindingStateRequest) XXX_DiscardUnknown ¶
func (m *SetFindingStateRequest) XXX_DiscardUnknown()
func (*SetFindingStateRequest) XXX_Marshal ¶
func (m *SetFindingStateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SetFindingStateRequest) XXX_Merge ¶
func (m *SetFindingStateRequest) XXX_Merge(src proto.Message)
func (*SetFindingStateRequest) XXX_Size ¶
func (m *SetFindingStateRequest) XXX_Size() int
func (*SetFindingStateRequest) XXX_Unmarshal ¶
func (m *SetFindingStateRequest) XXX_Unmarshal(b []byte) error
type Source ¶
type Source struct { // The relative resource name of this source. See: // https://cloud.google.com/apis/design/resource_names#relative_resource_name // Example: // "organizations/123/sources/456" Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // The source's display name. // A source's display name must be unique amongst its siblings, 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: // "Cloud 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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Cloud Security Command Center's (Cloud SCC) 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 ¶
func (*Source) GetDescription ¶
func (*Source) GetDisplayName ¶
func (*Source) ProtoMessage ¶
func (*Source) ProtoMessage()
func (*Source) XXX_DiscardUnknown ¶
func (m *Source) XXX_DiscardUnknown()
func (*Source) XXX_Marshal ¶
func (*Source) XXX_Unmarshal ¶
type UnimplementedSecurityCenterServer ¶
type UnimplementedSecurityCenterServer struct { }
UnimplementedSecurityCenterServer can be embedded to have forward compatible implementations.
func (*UnimplementedSecurityCenterServer) CreateFinding ¶
func (*UnimplementedSecurityCenterServer) CreateFinding(ctx context.Context, req *CreateFindingRequest) (*Finding, error)
func (*UnimplementedSecurityCenterServer) CreateNotificationConfig ¶
func (*UnimplementedSecurityCenterServer) CreateNotificationConfig(ctx context.Context, req *CreateNotificationConfigRequest) (*NotificationConfig, error)
func (*UnimplementedSecurityCenterServer) CreateSource ¶
func (*UnimplementedSecurityCenterServer) CreateSource(ctx context.Context, req *CreateSourceRequest) (*Source, error)
func (*UnimplementedSecurityCenterServer) DeleteNotificationConfig ¶
func (*UnimplementedSecurityCenterServer) DeleteNotificationConfig(ctx context.Context, req *DeleteNotificationConfigRequest) (*empty.Empty, error)
func (*UnimplementedSecurityCenterServer) GetIamPolicy ¶
func (*UnimplementedSecurityCenterServer) GetIamPolicy(ctx context.Context, req *v1.GetIamPolicyRequest) (*v1.Policy, error)
func (*UnimplementedSecurityCenterServer) GetNotificationConfig ¶
func (*UnimplementedSecurityCenterServer) GetNotificationConfig(ctx context.Context, req *GetNotificationConfigRequest) (*NotificationConfig, error)
func (*UnimplementedSecurityCenterServer) GetOrganizationSettings ¶
func (*UnimplementedSecurityCenterServer) GetOrganizationSettings(ctx context.Context, req *GetOrganizationSettingsRequest) (*OrganizationSettings, error)
func (*UnimplementedSecurityCenterServer) GetSource ¶
func (*UnimplementedSecurityCenterServer) GetSource(ctx context.Context, req *GetSourceRequest) (*Source, error)
func (*UnimplementedSecurityCenterServer) GroupAssets ¶
func (*UnimplementedSecurityCenterServer) GroupAssets(ctx context.Context, req *GroupAssetsRequest) (*GroupAssetsResponse, error)
func (*UnimplementedSecurityCenterServer) GroupFindings ¶
func (*UnimplementedSecurityCenterServer) GroupFindings(ctx context.Context, req *GroupFindingsRequest) (*GroupFindingsResponse, error)
func (*UnimplementedSecurityCenterServer) ListAssets ¶
func (*UnimplementedSecurityCenterServer) ListAssets(ctx context.Context, req *ListAssetsRequest) (*ListAssetsResponse, error)
func (*UnimplementedSecurityCenterServer) ListFindings ¶
func (*UnimplementedSecurityCenterServer) ListFindings(ctx context.Context, req *ListFindingsRequest) (*ListFindingsResponse, error)
func (*UnimplementedSecurityCenterServer) ListNotificationConfigs ¶
func (*UnimplementedSecurityCenterServer) ListNotificationConfigs(ctx context.Context, req *ListNotificationConfigsRequest) (*ListNotificationConfigsResponse, error)
func (*UnimplementedSecurityCenterServer) ListSources ¶
func (*UnimplementedSecurityCenterServer) ListSources(ctx context.Context, req *ListSourcesRequest) (*ListSourcesResponse, error)
func (*UnimplementedSecurityCenterServer) RunAssetDiscovery ¶
func (*UnimplementedSecurityCenterServer) RunAssetDiscovery(ctx context.Context, req *RunAssetDiscoveryRequest) (*longrunning.Operation, error)
func (*UnimplementedSecurityCenterServer) SetFindingState ¶
func (*UnimplementedSecurityCenterServer) SetFindingState(ctx context.Context, req *SetFindingStateRequest) (*Finding, error)
func (*UnimplementedSecurityCenterServer) SetIamPolicy ¶
func (*UnimplementedSecurityCenterServer) SetIamPolicy(ctx context.Context, req *v1.SetIamPolicyRequest) (*v1.Policy, error)
func (*UnimplementedSecurityCenterServer) TestIamPermissions ¶
func (*UnimplementedSecurityCenterServer) TestIamPermissions(ctx context.Context, req *v1.TestIamPermissionsRequest) (*v1.TestIamPermissionsResponse, error)
func (*UnimplementedSecurityCenterServer) UpdateFinding ¶
func (*UnimplementedSecurityCenterServer) UpdateFinding(ctx context.Context, req *UpdateFindingRequest) (*Finding, error)
func (*UnimplementedSecurityCenterServer) UpdateNotificationConfig ¶
func (*UnimplementedSecurityCenterServer) UpdateNotificationConfig(ctx context.Context, req *UpdateNotificationConfigRequest) (*NotificationConfig, error)
func (*UnimplementedSecurityCenterServer) UpdateOrganizationSettings ¶
func (*UnimplementedSecurityCenterServer) UpdateOrganizationSettings(ctx context.Context, req *UpdateOrganizationSettingsRequest) (*OrganizationSettings, error)
func (*UnimplementedSecurityCenterServer) UpdateSecurityMarks ¶
func (*UnimplementedSecurityCenterServer) UpdateSecurityMarks(ctx context.Context, req *UpdateSecurityMarksRequest) (*SecurityMarks, error)
func (*UnimplementedSecurityCenterServer) UpdateSource ¶
func (*UnimplementedSecurityCenterServer) UpdateSource(ctx context.Context, req *UpdateSourceRequest) (*Source, error)
type UpdateFindingRequest ¶
type UpdateFindingRequest struct { // The finding resource to update or create if it does not already exist. // parent, security_marks, and update_time will be ignored. // // In the case of creation, the finding id portion of the name must be // 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. // // When updating a finding, an empty mask is treated as updating all mutable // fields and replacing source_properties. Individual source_properties can // be added/updated by using "source_properties.<property key>" in the field // mask. UpdateMask *field_mask.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Request message for updating or creating a finding.
func (*UpdateFindingRequest) Descriptor ¶
func (*UpdateFindingRequest) Descriptor() ([]byte, []int)
func (*UpdateFindingRequest) GetFinding ¶
func (m *UpdateFindingRequest) GetFinding() *Finding
func (*UpdateFindingRequest) GetUpdateMask ¶
func (m *UpdateFindingRequest) GetUpdateMask() *field_mask.FieldMask
func (*UpdateFindingRequest) ProtoMessage ¶
func (*UpdateFindingRequest) ProtoMessage()
func (*UpdateFindingRequest) Reset ¶
func (m *UpdateFindingRequest) Reset()
func (*UpdateFindingRequest) String ¶
func (m *UpdateFindingRequest) String() string
func (*UpdateFindingRequest) XXX_DiscardUnknown ¶
func (m *UpdateFindingRequest) XXX_DiscardUnknown()
func (*UpdateFindingRequest) XXX_Marshal ¶
func (m *UpdateFindingRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*UpdateFindingRequest) XXX_Merge ¶
func (m *UpdateFindingRequest) XXX_Merge(src proto.Message)
func (*UpdateFindingRequest) XXX_Size ¶
func (m *UpdateFindingRequest) XXX_Size() int
func (*UpdateFindingRequest) XXX_Unmarshal ¶
func (m *UpdateFindingRequest) XXX_Unmarshal(b []byte) error
type UpdateNotificationConfigRequest ¶
type UpdateNotificationConfigRequest struct { // The notification config to update. NotificationConfig *NotificationConfig `protobuf:"bytes,1,opt,name=notification_config,json=notificationConfig,proto3" json:"notification_config,omitempty"` // The FieldMask to use when updating the notification config. // // If empty all mutable fields will be updated. UpdateMask *field_mask.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Request message for updating a notification config.
func (*UpdateNotificationConfigRequest) Descriptor ¶
func (*UpdateNotificationConfigRequest) Descriptor() ([]byte, []int)
func (*UpdateNotificationConfigRequest) GetNotificationConfig ¶
func (m *UpdateNotificationConfigRequest) GetNotificationConfig() *NotificationConfig
func (*UpdateNotificationConfigRequest) GetUpdateMask ¶
func (m *UpdateNotificationConfigRequest) GetUpdateMask() *field_mask.FieldMask
func (*UpdateNotificationConfigRequest) ProtoMessage ¶
func (*UpdateNotificationConfigRequest) ProtoMessage()
func (*UpdateNotificationConfigRequest) Reset ¶
func (m *UpdateNotificationConfigRequest) Reset()
func (*UpdateNotificationConfigRequest) String ¶
func (m *UpdateNotificationConfigRequest) String() string
func (*UpdateNotificationConfigRequest) XXX_DiscardUnknown ¶
func (m *UpdateNotificationConfigRequest) XXX_DiscardUnknown()
func (*UpdateNotificationConfigRequest) XXX_Marshal ¶
func (m *UpdateNotificationConfigRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*UpdateNotificationConfigRequest) XXX_Merge ¶
func (m *UpdateNotificationConfigRequest) XXX_Merge(src proto.Message)
func (*UpdateNotificationConfigRequest) XXX_Size ¶
func (m *UpdateNotificationConfigRequest) XXX_Size() int
func (*UpdateNotificationConfigRequest) XXX_Unmarshal ¶
func (m *UpdateNotificationConfigRequest) XXX_Unmarshal(b []byte) error
type UpdateOrganizationSettingsRequest ¶
type UpdateOrganizationSettingsRequest struct { // The organization settings resource to update. OrganizationSettings *OrganizationSettings `protobuf:"bytes,1,opt,name=organization_settings,json=organizationSettings,proto3" json:"organization_settings,omitempty"` // The FieldMask to use when updating the settings resource. // // If empty all mutable fields will be updated. UpdateMask *field_mask.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Request message for updating an organization's settings.
func (*UpdateOrganizationSettingsRequest) Descriptor ¶
func (*UpdateOrganizationSettingsRequest) Descriptor() ([]byte, []int)
func (*UpdateOrganizationSettingsRequest) GetOrganizationSettings ¶
func (m *UpdateOrganizationSettingsRequest) GetOrganizationSettings() *OrganizationSettings
func (*UpdateOrganizationSettingsRequest) GetUpdateMask ¶
func (m *UpdateOrganizationSettingsRequest) GetUpdateMask() *field_mask.FieldMask
func (*UpdateOrganizationSettingsRequest) ProtoMessage ¶
func (*UpdateOrganizationSettingsRequest) ProtoMessage()
func (*UpdateOrganizationSettingsRequest) Reset ¶
func (m *UpdateOrganizationSettingsRequest) Reset()
func (*UpdateOrganizationSettingsRequest) String ¶
func (m *UpdateOrganizationSettingsRequest) String() string
func (*UpdateOrganizationSettingsRequest) XXX_DiscardUnknown ¶
func (m *UpdateOrganizationSettingsRequest) XXX_DiscardUnknown()
func (*UpdateOrganizationSettingsRequest) XXX_Marshal ¶
func (m *UpdateOrganizationSettingsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*UpdateOrganizationSettingsRequest) XXX_Merge ¶
func (m *UpdateOrganizationSettingsRequest) XXX_Merge(src proto.Message)
func (*UpdateOrganizationSettingsRequest) XXX_Size ¶
func (m *UpdateOrganizationSettingsRequest) XXX_Size() int
func (*UpdateOrganizationSettingsRequest) XXX_Unmarshal ¶
func (m *UpdateOrganizationSettingsRequest) XXX_Unmarshal(b []byte) error
type UpdateSecurityMarksRequest ¶
type UpdateSecurityMarksRequest struct { // The security marks resource to update. SecurityMarks *SecurityMarks `protobuf:"bytes,1,opt,name=security_marks,json=securityMarks,proto3" json:"security_marks,omitempty"` // The FieldMask to use when updating the security marks resource. // // The field mask must not contain duplicate fields. // If empty or set to "marks", all marks will be replaced. Individual // marks can be updated using "marks.<mark_key>". UpdateMask *field_mask.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` // The time at which the updated SecurityMarks take effect. // If not set uses current server time. Updates will be applied to the // SecurityMarks that are active immediately preceding this time. StartTime *timestamp.Timestamp `protobuf:"bytes,3,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Request message for updating a SecurityMarks resource.
func (*UpdateSecurityMarksRequest) Descriptor ¶
func (*UpdateSecurityMarksRequest) Descriptor() ([]byte, []int)
func (*UpdateSecurityMarksRequest) GetSecurityMarks ¶
func (m *UpdateSecurityMarksRequest) GetSecurityMarks() *SecurityMarks
func (*UpdateSecurityMarksRequest) GetStartTime ¶
func (m *UpdateSecurityMarksRequest) GetStartTime() *timestamp.Timestamp
func (*UpdateSecurityMarksRequest) GetUpdateMask ¶
func (m *UpdateSecurityMarksRequest) GetUpdateMask() *field_mask.FieldMask
func (*UpdateSecurityMarksRequest) ProtoMessage ¶
func (*UpdateSecurityMarksRequest) ProtoMessage()
func (*UpdateSecurityMarksRequest) Reset ¶
func (m *UpdateSecurityMarksRequest) Reset()
func (*UpdateSecurityMarksRequest) String ¶
func (m *UpdateSecurityMarksRequest) String() string
func (*UpdateSecurityMarksRequest) XXX_DiscardUnknown ¶
func (m *UpdateSecurityMarksRequest) XXX_DiscardUnknown()
func (*UpdateSecurityMarksRequest) XXX_Marshal ¶
func (m *UpdateSecurityMarksRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*UpdateSecurityMarksRequest) XXX_Merge ¶
func (m *UpdateSecurityMarksRequest) XXX_Merge(src proto.Message)
func (*UpdateSecurityMarksRequest) XXX_Size ¶
func (m *UpdateSecurityMarksRequest) XXX_Size() int
func (*UpdateSecurityMarksRequest) XXX_Unmarshal ¶
func (m *UpdateSecurityMarksRequest) XXX_Unmarshal(b []byte) error
type UpdateSourceRequest ¶
type UpdateSourceRequest struct { // The source resource to update. Source *Source `protobuf:"bytes,1,opt,name=source,proto3" json:"source,omitempty"` // The FieldMask to use when updating the source resource. // // If empty all mutable fields will be updated. UpdateMask *field_mask.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Request message for updating a source.
func (*UpdateSourceRequest) Descriptor ¶
func (*UpdateSourceRequest) Descriptor() ([]byte, []int)
func (*UpdateSourceRequest) GetSource ¶
func (m *UpdateSourceRequest) GetSource() *Source
func (*UpdateSourceRequest) GetUpdateMask ¶
func (m *UpdateSourceRequest) GetUpdateMask() *field_mask.FieldMask
func (*UpdateSourceRequest) ProtoMessage ¶
func (*UpdateSourceRequest) ProtoMessage()
func (*UpdateSourceRequest) Reset ¶
func (m *UpdateSourceRequest) Reset()
func (*UpdateSourceRequest) String ¶
func (m *UpdateSourceRequest) String() string
func (*UpdateSourceRequest) XXX_DiscardUnknown ¶
func (m *UpdateSourceRequest) XXX_DiscardUnknown()
func (*UpdateSourceRequest) XXX_Marshal ¶
func (m *UpdateSourceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*UpdateSourceRequest) XXX_Merge ¶
func (m *UpdateSourceRequest) XXX_Merge(src proto.Message)
func (*UpdateSourceRequest) XXX_Size ¶
func (m *UpdateSourceRequest) XXX_Size() int
func (*UpdateSourceRequest) XXX_Unmarshal ¶
func (m *UpdateSourceRequest) XXX_Unmarshal(b []byte) error