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