| 1 |
// Copyright 2022 Google LLC |
| 2 |
// |
| 3 |
// Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 |
// you may not use this file except in compliance with the License. |
| 5 |
// You may obtain a copy of the License at |
| 6 |
// |
| 7 |
// http://www.apache.org/licenses/LICENSE-2.0 |
| 8 |
// |
| 9 |
// Unless required by applicable law or agreed to in writing, software |
| 10 |
// distributed under the License is distributed on an "AS IS" BASIS, |
| 11 |
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 |
// See the License for the specific language governing permissions and |
| 13 |
// limitations under the License. |
| 14 |
|
| 15 |
// Code generated by aliasgen. DO NOT EDIT. |
| 16 |
|
| 17 |
// Package securitycenter aliases all exported identifiers in package |
| 18 |
// "cloud.google.com/go/securitycenter/apiv1beta1/securitycenterpb". |
| 19 |
// |
| 20 |
// Deprecated: Please use types in: cloud.google.com/go/securitycenter/apiv1beta1/securitycenterpb. |
| 21 |
// Please read https://github.com/googleapis/google-cloud-go/blob/main/migration.md |
| 22 |
// for more details. |
| 23 |
package securitycenter |
| 24 |
|
| 25 |
import ( |
| 26 |
src "cloud.google.com/go/securitycenter/apiv1beta1/securitycenterpb" |
| 27 |
grpc "google.golang.org/grpc" |
| 28 |
) |
| 29 |
|
| 30 |
// Deprecated: Please use consts in: cloud.google.com/go/securitycenter/apiv1beta1/securitycenterpb |
| 31 |
const ( |
| 32 |
Finding_ACTIVE = src.Finding_ACTIVE |
| 33 |
Finding_INACTIVE = src.Finding_INACTIVE |
| 34 |
Finding_STATE_UNSPECIFIED = src.Finding_STATE_UNSPECIFIED |
| 35 |
ListAssetsResponse_ListAssetsResult_ACTIVE = src.ListAssetsResponse_ListAssetsResult_ACTIVE |
| 36 |
ListAssetsResponse_ListAssetsResult_ADDED = src.ListAssetsResponse_ListAssetsResult_ADDED |
| 37 |
ListAssetsResponse_ListAssetsResult_REMOVED = src.ListAssetsResponse_ListAssetsResult_REMOVED |
| 38 |
ListAssetsResponse_ListAssetsResult_STATE_UNSPECIFIED = src.ListAssetsResponse_ListAssetsResult_STATE_UNSPECIFIED |
| 39 |
ListAssetsResponse_ListAssetsResult_UNUSED = src.ListAssetsResponse_ListAssetsResult_UNUSED |
| 40 |
OrganizationSettings_AssetDiscoveryConfig_EXCLUDE = src.OrganizationSettings_AssetDiscoveryConfig_EXCLUDE |
| 41 |
OrganizationSettings_AssetDiscoveryConfig_INCLUDE_ONLY = src.OrganizationSettings_AssetDiscoveryConfig_INCLUDE_ONLY |
| 42 |
OrganizationSettings_AssetDiscoveryConfig_INCLUSION_MODE_UNSPECIFIED = src.OrganizationSettings_AssetDiscoveryConfig_INCLUSION_MODE_UNSPECIFIED |
| 43 |
RunAssetDiscoveryResponse_COMPLETED = src.RunAssetDiscoveryResponse_COMPLETED |
| 44 |
RunAssetDiscoveryResponse_STATE_UNSPECIFIED = src.RunAssetDiscoveryResponse_STATE_UNSPECIFIED |
| 45 |
RunAssetDiscoveryResponse_SUPERSEDED = src.RunAssetDiscoveryResponse_SUPERSEDED |
| 46 |
RunAssetDiscoveryResponse_TERMINATED = src.RunAssetDiscoveryResponse_TERMINATED |
| 47 |
) |
| 48 |
|
| 49 |
// Deprecated: Please use vars in: cloud.google.com/go/securitycenter/apiv1beta1/securitycenterpb |
| 50 |
var ( |
| 51 |
File_google_cloud_securitycenter_v1beta1_asset_proto = src.File_google_cloud_securitycenter_v1beta1_asset_proto |
| 52 |
File_google_cloud_securitycenter_v1beta1_finding_proto = src.File_google_cloud_securitycenter_v1beta1_finding_proto |
| 53 |
File_google_cloud_securitycenter_v1beta1_organization_settings_proto = src.File_google_cloud_securitycenter_v1beta1_organization_settings_proto |
| 54 |
File_google_cloud_securitycenter_v1beta1_run_asset_discovery_response_proto = src.File_google_cloud_securitycenter_v1beta1_run_asset_discovery_response_proto |
| 55 |
File_google_cloud_securitycenter_v1beta1_security_marks_proto = src.File_google_cloud_securitycenter_v1beta1_security_marks_proto |
| 56 |
File_google_cloud_securitycenter_v1beta1_securitycenter_service_proto = src.File_google_cloud_securitycenter_v1beta1_securitycenter_service_proto |
| 57 |
File_google_cloud_securitycenter_v1beta1_source_proto = src.File_google_cloud_securitycenter_v1beta1_source_proto |
| 58 |
Finding_State_name = src.Finding_State_name |
| 59 |
Finding_State_value = src.Finding_State_value |
| 60 |
ListAssetsResponse_ListAssetsResult_State_name = src.ListAssetsResponse_ListAssetsResult_State_name |
| 61 |
ListAssetsResponse_ListAssetsResult_State_value = src.ListAssetsResponse_ListAssetsResult_State_value |
| 62 |
OrganizationSettings_AssetDiscoveryConfig_InclusionMode_name = src.OrganizationSettings_AssetDiscoveryConfig_InclusionMode_name |
| 63 |
OrganizationSettings_AssetDiscoveryConfig_InclusionMode_value = src.OrganizationSettings_AssetDiscoveryConfig_InclusionMode_value |
| 64 |
RunAssetDiscoveryResponse_State_name = src.RunAssetDiscoveryResponse_State_name |
| 65 |
RunAssetDiscoveryResponse_State_value = src.RunAssetDiscoveryResponse_State_value |
| 66 |
) |
| 67 |
|
| 68 |
// Security Command Center representation of a Google Cloud resource. The |
| 69 |
// Asset is a Security Command Center resource that captures information about |
| 70 |
// a single Google Cloud resource. All modifications to an Asset are only |
| 71 |
// within the context of Security Command Center and don't affect the |
| 72 |
// referenced Google Cloud resource. |
| 73 |
// |
| 74 |
// Deprecated: Please use types in: cloud.google.com/go/securitycenter/apiv1beta1/securitycenterpb |
| 75 |
type Asset = src.Asset |
| 76 |
|
| 77 |
// Security Command Center managed properties. These properties are managed by |
| 78 |
// Security Command Center and cannot be modified by the user. |
| 79 |
// |
| 80 |
// Deprecated: Please use types in: cloud.google.com/go/securitycenter/apiv1beta1/securitycenterpb |
| 81 |
type Asset_SecurityCenterProperties = src.Asset_SecurityCenterProperties |
| 82 |
|
| 83 |
// Request message for creating a finding. |
| 84 |
// |
| 85 |
// Deprecated: Please use types in: cloud.google.com/go/securitycenter/apiv1beta1/securitycenterpb |
| 86 |
type CreateFindingRequest = src.CreateFindingRequest |
| 87 |
|
| 88 |
// Request message for creating a source. |
| 89 |
// |
| 90 |
// Deprecated: Please use types in: cloud.google.com/go/securitycenter/apiv1beta1/securitycenterpb |
| 91 |
type CreateSourceRequest = src.CreateSourceRequest |
| 92 |
|
| 93 |
// Security Command Center finding. A finding is a record of assessment data |
| 94 |
// (security, risk, health or privacy) ingested into Security Command Center |
| 95 |
// for presentation, notification, analysis, policy testing, and enforcement. |
| 96 |
// For example, an XSS vulnerability in an App Engine application is a finding. |
| 97 |
// |
| 98 |
// Deprecated: Please use types in: cloud.google.com/go/securitycenter/apiv1beta1/securitycenterpb |
| 99 |
type Finding = src.Finding |
| 100 |
|
| 101 |
// The state of the finding. |
| 102 |
// |
| 103 |
// Deprecated: Please use types in: cloud.google.com/go/securitycenter/apiv1beta1/securitycenterpb |
| 104 |
type Finding_State = src.Finding_State |
| 105 |
|
| 106 |
// Request message for getting organization settings. |
| 107 |
// |
| 108 |
// Deprecated: Please use types in: cloud.google.com/go/securitycenter/apiv1beta1/securitycenterpb |
| 109 |
type GetOrganizationSettingsRequest = src.GetOrganizationSettingsRequest |
| 110 |
|
| 111 |
// Request message for getting a source. |
| 112 |
// |
| 113 |
// Deprecated: Please use types in: cloud.google.com/go/securitycenter/apiv1beta1/securitycenterpb |
| 114 |
type GetSourceRequest = src.GetSourceRequest |
| 115 |
|
| 116 |
// Request message for grouping by assets. |
| 117 |
// |
| 118 |
// Deprecated: Please use types in: cloud.google.com/go/securitycenter/apiv1beta1/securitycenterpb |
| 119 |
type GroupAssetsRequest = src.GroupAssetsRequest |
| 120 |
|
| 121 |
// Response message for grouping by assets. |
| 122 |
// |
| 123 |
// Deprecated: Please use types in: cloud.google.com/go/securitycenter/apiv1beta1/securitycenterpb |
| 124 |
type GroupAssetsResponse = src.GroupAssetsResponse |
| 125 |
|
| 126 |
// Request message for grouping by findings. |
| 127 |
// |
| 128 |
// Deprecated: Please use types in: cloud.google.com/go/securitycenter/apiv1beta1/securitycenterpb |
| 129 |
type GroupFindingsRequest = src.GroupFindingsRequest |
| 130 |
|
| 131 |
// Response message for group by findings. |
| 132 |
// |
| 133 |
// Deprecated: Please use types in: cloud.google.com/go/securitycenter/apiv1beta1/securitycenterpb |
| 134 |
type GroupFindingsResponse = src.GroupFindingsResponse |
| 135 |
|
| 136 |
// Result containing the properties and count of a groupBy request. |
| 137 |
// |
| 138 |
// Deprecated: Please use types in: cloud.google.com/go/securitycenter/apiv1beta1/securitycenterpb |
| 139 |
type GroupResult = src.GroupResult |
| 140 |
|
| 141 |
// Request message for listing assets. |
| 142 |
// |
| 143 |
// Deprecated: Please use types in: cloud.google.com/go/securitycenter/apiv1beta1/securitycenterpb |
| 144 |
type ListAssetsRequest = src.ListAssetsRequest |
| 145 |
|
| 146 |
// Response message for listing assets. |
| 147 |
// |
| 148 |
// Deprecated: Please use types in: cloud.google.com/go/securitycenter/apiv1beta1/securitycenterpb |
| 149 |
type ListAssetsResponse = src.ListAssetsResponse |
| 150 |
|
| 151 |
// Result containing the Asset and its State. |
| 152 |
// |
| 153 |
// Deprecated: Please use types in: cloud.google.com/go/securitycenter/apiv1beta1/securitycenterpb |
| 154 |
type ListAssetsResponse_ListAssetsResult = src.ListAssetsResponse_ListAssetsResult |
| 155 |
|
| 156 |
// State of the asset. When querying across two points in time this describes |
| 157 |
// the change between the two points: ADDED, REMOVED, or ACTIVE. If there was |
| 158 |
// no compare_duration supplied in the request the state should be: UNUSED |
| 159 |
// |
| 160 |
// Deprecated: Please use types in: cloud.google.com/go/securitycenter/apiv1beta1/securitycenterpb |
| 161 |
type ListAssetsResponse_ListAssetsResult_State = src.ListAssetsResponse_ListAssetsResult_State |
| 162 |
|
| 163 |
// Request message for listing findings. |
| 164 |
// |
| 165 |
// Deprecated: Please use types in: cloud.google.com/go/securitycenter/apiv1beta1/securitycenterpb |
| 166 |
type ListFindingsRequest = src.ListFindingsRequest |
| 167 |
|
| 168 |
// Response message for listing findings. |
| 169 |
// |
| 170 |
// Deprecated: Please use types in: cloud.google.com/go/securitycenter/apiv1beta1/securitycenterpb |
| 171 |
type ListFindingsResponse = src.ListFindingsResponse |
| 172 |
|
| 173 |
// Request message for listing sources. |
| 174 |
// |
| 175 |
// Deprecated: Please use types in: cloud.google.com/go/securitycenter/apiv1beta1/securitycenterpb |
| 176 |
type ListSourcesRequest = src.ListSourcesRequest |
| 177 |
|
| 178 |
// Response message for listing sources. |
| 179 |
// |
| 180 |
// Deprecated: Please use types in: cloud.google.com/go/securitycenter/apiv1beta1/securitycenterpb |
| 181 |
type ListSourcesResponse = src.ListSourcesResponse |
| 182 |
|
| 183 |
// User specified settings that are attached to the Security Command Center |
| 184 |
// organization. |
| 185 |
// |
| 186 |
// Deprecated: Please use types in: cloud.google.com/go/securitycenter/apiv1beta1/securitycenterpb |
| 187 |
type OrganizationSettings = src.OrganizationSettings |
| 188 |
|
| 189 |
// The configuration used for Asset Discovery runs. |
| 190 |
// |
| 191 |
// Deprecated: Please use types in: cloud.google.com/go/securitycenter/apiv1beta1/securitycenterpb |
| 192 |
type OrganizationSettings_AssetDiscoveryConfig = src.OrganizationSettings_AssetDiscoveryConfig |
| 193 |
|
| 194 |
// The mode of inclusion when running Asset Discovery. Asset discovery can be |
| 195 |
// limited by explicitly identifying projects to be included or excluded. If |
| 196 |
// INCLUDE_ONLY is set, then only those projects within the organization and |
| 197 |
// their children are discovered during asset discovery. If EXCLUDE is set, |
| 198 |
// then projects that don't match those projects are discovered during asset |
| 199 |
// discovery. If neither are set, then all projects within the organization are |
| 200 |
// discovered during asset discovery. |
| 201 |
// |
| 202 |
// Deprecated: Please use types in: cloud.google.com/go/securitycenter/apiv1beta1/securitycenterpb |
| 203 |
type OrganizationSettings_AssetDiscoveryConfig_InclusionMode = src.OrganizationSettings_AssetDiscoveryConfig_InclusionMode |
| 204 |
|
| 205 |
// Request message for running asset discovery for an organization. |
| 206 |
// |
| 207 |
// Deprecated: Please use types in: cloud.google.com/go/securitycenter/apiv1beta1/securitycenterpb |
| 208 |
type RunAssetDiscoveryRequest = src.RunAssetDiscoveryRequest |
| 209 |
|
| 210 |
// Response of asset discovery run |
| 211 |
// |
| 212 |
// Deprecated: Please use types in: cloud.google.com/go/securitycenter/apiv1beta1/securitycenterpb |
| 213 |
type RunAssetDiscoveryResponse = src.RunAssetDiscoveryResponse |
| 214 |
|
| 215 |
// The state of an asset discovery run. |
| 216 |
// |
| 217 |
// Deprecated: Please use types in: cloud.google.com/go/securitycenter/apiv1beta1/securitycenterpb |
| 218 |
type RunAssetDiscoveryResponse_State = src.RunAssetDiscoveryResponse_State |
| 219 |
|
| 220 |
// SecurityCenterClient is the client API for SecurityCenter service. For |
| 221 |
// semantics around ctx use and closing/ending streaming RPCs, please refer to |
| 222 |
// https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. |
| 223 |
// |
| 224 |
// Deprecated: Please use types in: cloud.google.com/go/securitycenter/apiv1beta1/securitycenterpb |
| 225 |
type SecurityCenterClient = src.SecurityCenterClient |
| 226 |
|
| 227 |
// SecurityCenterServer is the server API for SecurityCenter service. |
| 228 |
// |
| 229 |
// Deprecated: Please use types in: cloud.google.com/go/securitycenter/apiv1beta1/securitycenterpb |
| 230 |
type SecurityCenterServer = src.SecurityCenterServer |
| 231 |
|
| 232 |
// User specified security marks that are attached to the parent Security |
| 233 |
// Command Center resource. Security marks are scoped within a Security Command |
| 234 |
// Center organization -- they can be modified and viewed by all users who have |
| 235 |
// proper permissions on the organization. |
| 236 |
// |
| 237 |
// Deprecated: Please use types in: cloud.google.com/go/securitycenter/apiv1beta1/securitycenterpb |
| 238 |
type SecurityMarks = src.SecurityMarks |
| 239 |
|
| 240 |
// Request message for updating a finding's state. |
| 241 |
// |
| 242 |
// Deprecated: Please use types in: cloud.google.com/go/securitycenter/apiv1beta1/securitycenterpb |
| 243 |
type SetFindingStateRequest = src.SetFindingStateRequest |
| 244 |
|
| 245 |
// Security Command Center finding source. A finding source is an entity or a |
| 246 |
// mechanism that can produce a finding. A source is like a container of |
| 247 |
// findings that come from the same scanner, logger, monitor, etc. |
| 248 |
// |
| 249 |
// Deprecated: Please use types in: cloud.google.com/go/securitycenter/apiv1beta1/securitycenterpb |
| 250 |
type Source = src.Source |
| 251 |
|
| 252 |
// UnimplementedSecurityCenterServer can be embedded to have forward |
| 253 |
// compatible implementations. |
| 254 |
// |
| 255 |
// Deprecated: Please use types in: cloud.google.com/go/securitycenter/apiv1beta1/securitycenterpb |
| 256 |
type UnimplementedSecurityCenterServer = src.UnimplementedSecurityCenterServer |
| 257 |
|
| 258 |
// Request message for updating or creating a finding. |
| 259 |
// |
| 260 |
// Deprecated: Please use types in: cloud.google.com/go/securitycenter/apiv1beta1/securitycenterpb |
| 261 |
type UpdateFindingRequest = src.UpdateFindingRequest |
| 262 |
|
| 263 |
// Request message for updating an organization's settings. |
| 264 |
// |
| 265 |
// Deprecated: Please use types in: cloud.google.com/go/securitycenter/apiv1beta1/securitycenterpb |
| 266 |
type UpdateOrganizationSettingsRequest = src.UpdateOrganizationSettingsRequest |
| 267 |
|
| 268 |
// Request message for updating a SecurityMarks resource. |
| 269 |
// |
| 270 |
// Deprecated: Please use types in: cloud.google.com/go/securitycenter/apiv1beta1/securitycenterpb |
| 271 |
type UpdateSecurityMarksRequest = src.UpdateSecurityMarksRequest |
| 272 |
|
| 273 |
// Request message for updating a source. |
| 274 |
// |
| 275 |
// Deprecated: Please use types in: cloud.google.com/go/securitycenter/apiv1beta1/securitycenterpb |
| 276 |
type UpdateSourceRequest = src.UpdateSourceRequest |
| 277 |
|
| 278 |
// Deprecated: Please use funcs in: cloud.google.com/go/securitycenter/apiv1beta1/securitycenterpb |
| 279 |
func NewSecurityCenterClient(cc grpc.ClientConnInterface) SecurityCenterClient { |
| 280 |
return src.NewSecurityCenterClient(cc) |
| 281 |
} |
| 282 |
|
| 283 |
// Deprecated: Please use funcs in: cloud.google.com/go/securitycenter/apiv1beta1/securitycenterpb |
| 284 |
func RegisterSecurityCenterServer(s *grpc.Server, srv SecurityCenterServer) { |
| 285 |
src.RegisterSecurityCenterServer(s, srv) |
| 286 |
} |