This repository has been archived by the owner on Sep 5, 2023. It is now read-only.
/
asset_pb2.py
610 lines (586 loc) · 22.4 KB
/
asset_pb2.py
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
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
# -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: google/cloud/securitycenter_v1/proto/asset.proto
import sys
_b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1"))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as _reflection
from google.protobuf import symbol_database as _symbol_database
# @@protoc_insertion_point(imports)
_sym_db = _symbol_database.Default()
from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2
from google.api import resource_pb2 as google_dot_api_dot_resource__pb2
from google.cloud.securitycenter_v1.proto import (
security_marks_pb2 as google_dot_cloud_dot_securitycenter__v1_dot_proto_dot_security__marks__pb2,
)
from google.protobuf import struct_pb2 as google_dot_protobuf_dot_struct__pb2
from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2
DESCRIPTOR = _descriptor.FileDescriptor(
name="google/cloud/securitycenter_v1/proto/asset.proto",
package="google.cloud.securitycenter.v1",
syntax="proto3",
serialized_options=_b(
'\n"com.google.cloud.securitycenter.v1P\001ZLgoogle.golang.org/genproto/googleapis/cloud/securitycenter/v1;securitycenter\252\002\036Google.Cloud.SecurityCenter.V1\312\002\036Google\\Cloud\\SecurityCenter\\V1\352\002!Google::Cloud::SecurityCenter::V1'
),
serialized_pb=_b(
'\n0google/cloud/securitycenter_v1/proto/asset.proto\x12\x1egoogle.cloud.securitycenter.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x19google/api/resource.proto\x1a\x39google/cloud/securitycenter_v1/proto/security_marks.proto\x1a\x1cgoogle/protobuf/struct.proto\x1a\x1fgoogle/protobuf/timestamp.proto"\x92\x07\n\x05\x41sset\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x62\n\x1asecurity_center_properties\x18\x02 \x01(\x0b\x32>.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties\x12Z\n\x13resource_properties\x18\x07 \x03(\x0b\x32=.google.cloud.securitycenter.v1.Asset.ResourcePropertiesEntry\x12\x45\n\x0esecurity_marks\x18\x08 \x01(\x0b\x32-.google.cloud.securitycenter.v1.SecurityMarks\x12/\n\x0b\x63reate_time\x18\t \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0bupdate_time\x18\n \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x43\n\niam_policy\x18\x0b \x01(\x0b\x32/.google.cloud.securitycenter.v1.Asset.IamPolicy\x1a\x80\x02\n\x18SecurityCenterProperties\x12\x15\n\rresource_name\x18\x01 \x01(\t\x12\x15\n\rresource_type\x18\x02 \x01(\t\x12\x17\n\x0fresource_parent\x18\x03 \x01(\t\x12\x18\n\x10resource_project\x18\x04 \x01(\t\x12\x17\n\x0fresource_owners\x18\x05 \x03(\t\x12\x1d\n\x15resource_display_name\x18\x06 \x01(\t\x12$\n\x1cresource_parent_display_name\x18\x07 \x01(\t\x12%\n\x1dresource_project_display_name\x18\x08 \x01(\t\x1a \n\tIamPolicy\x12\x13\n\x0bpolicy_blob\x18\x01 \x01(\t\x1aQ\n\x17ResourcePropertiesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12%\n\x05value\x18\x02 \x01(\x0b\x32\x16.google.protobuf.Value:\x02\x38\x01:U\xea\x41R\n#securitycenter.googleapis.com/Asset\x12+organizations/{organization}/assets/{asset}B\xda\x01\n"com.google.cloud.securitycenter.v1P\x01ZLgoogle.golang.org/genproto/googleapis/cloud/securitycenter/v1;securitycenter\xaa\x02\x1eGoogle.Cloud.SecurityCenter.V1\xca\x02\x1eGoogle\\Cloud\\SecurityCenter\\V1\xea\x02!Google::Cloud::SecurityCenter::V1b\x06proto3'
),
dependencies=[
google_dot_api_dot_annotations__pb2.DESCRIPTOR,
google_dot_api_dot_resource__pb2.DESCRIPTOR,
google_dot_cloud_dot_securitycenter__v1_dot_proto_dot_security__marks__pb2.DESCRIPTOR,
google_dot_protobuf_dot_struct__pb2.DESCRIPTOR,
google_dot_protobuf_dot_timestamp__pb2.DESCRIPTOR,
],
)
_ASSET_SECURITYCENTERPROPERTIES = _descriptor.Descriptor(
name="SecurityCenterProperties",
full_name="google.cloud.securitycenter.v1.Asset.SecurityCenterProperties",
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name="resource_name",
full_name="google.cloud.securitycenter.v1.Asset.SecurityCenterProperties.resource_name",
index=0,
number=1,
type=9,
cpp_type=9,
label=1,
has_default_value=False,
default_value=_b("").decode("utf-8"),
message_type=None,
enum_type=None,
containing_type=None,
is_extension=False,
extension_scope=None,
serialized_options=None,
file=DESCRIPTOR,
),
_descriptor.FieldDescriptor(
name="resource_type",
full_name="google.cloud.securitycenter.v1.Asset.SecurityCenterProperties.resource_type",
index=1,
number=2,
type=9,
cpp_type=9,
label=1,
has_default_value=False,
default_value=_b("").decode("utf-8"),
message_type=None,
enum_type=None,
containing_type=None,
is_extension=False,
extension_scope=None,
serialized_options=None,
file=DESCRIPTOR,
),
_descriptor.FieldDescriptor(
name="resource_parent",
full_name="google.cloud.securitycenter.v1.Asset.SecurityCenterProperties.resource_parent",
index=2,
number=3,
type=9,
cpp_type=9,
label=1,
has_default_value=False,
default_value=_b("").decode("utf-8"),
message_type=None,
enum_type=None,
containing_type=None,
is_extension=False,
extension_scope=None,
serialized_options=None,
file=DESCRIPTOR,
),
_descriptor.FieldDescriptor(
name="resource_project",
full_name="google.cloud.securitycenter.v1.Asset.SecurityCenterProperties.resource_project",
index=3,
number=4,
type=9,
cpp_type=9,
label=1,
has_default_value=False,
default_value=_b("").decode("utf-8"),
message_type=None,
enum_type=None,
containing_type=None,
is_extension=False,
extension_scope=None,
serialized_options=None,
file=DESCRIPTOR,
),
_descriptor.FieldDescriptor(
name="resource_owners",
full_name="google.cloud.securitycenter.v1.Asset.SecurityCenterProperties.resource_owners",
index=4,
number=5,
type=9,
cpp_type=9,
label=3,
has_default_value=False,
default_value=[],
message_type=None,
enum_type=None,
containing_type=None,
is_extension=False,
extension_scope=None,
serialized_options=None,
file=DESCRIPTOR,
),
_descriptor.FieldDescriptor(
name="resource_display_name",
full_name="google.cloud.securitycenter.v1.Asset.SecurityCenterProperties.resource_display_name",
index=5,
number=6,
type=9,
cpp_type=9,
label=1,
has_default_value=False,
default_value=_b("").decode("utf-8"),
message_type=None,
enum_type=None,
containing_type=None,
is_extension=False,
extension_scope=None,
serialized_options=None,
file=DESCRIPTOR,
),
_descriptor.FieldDescriptor(
name="resource_parent_display_name",
full_name="google.cloud.securitycenter.v1.Asset.SecurityCenterProperties.resource_parent_display_name",
index=6,
number=7,
type=9,
cpp_type=9,
label=1,
has_default_value=False,
default_value=_b("").decode("utf-8"),
message_type=None,
enum_type=None,
containing_type=None,
is_extension=False,
extension_scope=None,
serialized_options=None,
file=DESCRIPTOR,
),
_descriptor.FieldDescriptor(
name="resource_project_display_name",
full_name="google.cloud.securitycenter.v1.Asset.SecurityCenterProperties.resource_project_display_name",
index=7,
number=8,
type=9,
cpp_type=9,
label=1,
has_default_value=False,
default_value=_b("").decode("utf-8"),
message_type=None,
enum_type=None,
containing_type=None,
is_extension=False,
extension_scope=None,
serialized_options=None,
file=DESCRIPTOR,
),
],
extensions=[],
nested_types=[],
enum_types=[],
serialized_options=None,
is_extendable=False,
syntax="proto3",
extension_ranges=[],
oneofs=[],
serialized_start=718,
serialized_end=974,
)
_ASSET_IAMPOLICY = _descriptor.Descriptor(
name="IamPolicy",
full_name="google.cloud.securitycenter.v1.Asset.IamPolicy",
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name="policy_blob",
full_name="google.cloud.securitycenter.v1.Asset.IamPolicy.policy_blob",
index=0,
number=1,
type=9,
cpp_type=9,
label=1,
has_default_value=False,
default_value=_b("").decode("utf-8"),
message_type=None,
enum_type=None,
containing_type=None,
is_extension=False,
extension_scope=None,
serialized_options=None,
file=DESCRIPTOR,
),
],
extensions=[],
nested_types=[],
enum_types=[],
serialized_options=None,
is_extendable=False,
syntax="proto3",
extension_ranges=[],
oneofs=[],
serialized_start=976,
serialized_end=1008,
)
_ASSET_RESOURCEPROPERTIESENTRY = _descriptor.Descriptor(
name="ResourcePropertiesEntry",
full_name="google.cloud.securitycenter.v1.Asset.ResourcePropertiesEntry",
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name="key",
full_name="google.cloud.securitycenter.v1.Asset.ResourcePropertiesEntry.key",
index=0,
number=1,
type=9,
cpp_type=9,
label=1,
has_default_value=False,
default_value=_b("").decode("utf-8"),
message_type=None,
enum_type=None,
containing_type=None,
is_extension=False,
extension_scope=None,
serialized_options=None,
file=DESCRIPTOR,
),
_descriptor.FieldDescriptor(
name="value",
full_name="google.cloud.securitycenter.v1.Asset.ResourcePropertiesEntry.value",
index=1,
number=2,
type=11,
cpp_type=10,
label=1,
has_default_value=False,
default_value=None,
message_type=None,
enum_type=None,
containing_type=None,
is_extension=False,
extension_scope=None,
serialized_options=None,
file=DESCRIPTOR,
),
],
extensions=[],
nested_types=[],
enum_types=[],
serialized_options=_b("8\001"),
is_extendable=False,
syntax="proto3",
extension_ranges=[],
oneofs=[],
serialized_start=1010,
serialized_end=1091,
)
_ASSET = _descriptor.Descriptor(
name="Asset",
full_name="google.cloud.securitycenter.v1.Asset",
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name="name",
full_name="google.cloud.securitycenter.v1.Asset.name",
index=0,
number=1,
type=9,
cpp_type=9,
label=1,
has_default_value=False,
default_value=_b("").decode("utf-8"),
message_type=None,
enum_type=None,
containing_type=None,
is_extension=False,
extension_scope=None,
serialized_options=None,
file=DESCRIPTOR,
),
_descriptor.FieldDescriptor(
name="security_center_properties",
full_name="google.cloud.securitycenter.v1.Asset.security_center_properties",
index=1,
number=2,
type=11,
cpp_type=10,
label=1,
has_default_value=False,
default_value=None,
message_type=None,
enum_type=None,
containing_type=None,
is_extension=False,
extension_scope=None,
serialized_options=None,
file=DESCRIPTOR,
),
_descriptor.FieldDescriptor(
name="resource_properties",
full_name="google.cloud.securitycenter.v1.Asset.resource_properties",
index=2,
number=7,
type=11,
cpp_type=10,
label=3,
has_default_value=False,
default_value=[],
message_type=None,
enum_type=None,
containing_type=None,
is_extension=False,
extension_scope=None,
serialized_options=None,
file=DESCRIPTOR,
),
_descriptor.FieldDescriptor(
name="security_marks",
full_name="google.cloud.securitycenter.v1.Asset.security_marks",
index=3,
number=8,
type=11,
cpp_type=10,
label=1,
has_default_value=False,
default_value=None,
message_type=None,
enum_type=None,
containing_type=None,
is_extension=False,
extension_scope=None,
serialized_options=None,
file=DESCRIPTOR,
),
_descriptor.FieldDescriptor(
name="create_time",
full_name="google.cloud.securitycenter.v1.Asset.create_time",
index=4,
number=9,
type=11,
cpp_type=10,
label=1,
has_default_value=False,
default_value=None,
message_type=None,
enum_type=None,
containing_type=None,
is_extension=False,
extension_scope=None,
serialized_options=None,
file=DESCRIPTOR,
),
_descriptor.FieldDescriptor(
name="update_time",
full_name="google.cloud.securitycenter.v1.Asset.update_time",
index=5,
number=10,
type=11,
cpp_type=10,
label=1,
has_default_value=False,
default_value=None,
message_type=None,
enum_type=None,
containing_type=None,
is_extension=False,
extension_scope=None,
serialized_options=None,
file=DESCRIPTOR,
),
_descriptor.FieldDescriptor(
name="iam_policy",
full_name="google.cloud.securitycenter.v1.Asset.iam_policy",
index=6,
number=11,
type=11,
cpp_type=10,
label=1,
has_default_value=False,
default_value=None,
message_type=None,
enum_type=None,
containing_type=None,
is_extension=False,
extension_scope=None,
serialized_options=None,
file=DESCRIPTOR,
),
],
extensions=[],
nested_types=[
_ASSET_SECURITYCENTERPROPERTIES,
_ASSET_IAMPOLICY,
_ASSET_RESOURCEPROPERTIESENTRY,
],
enum_types=[],
serialized_options=_b(
"\352AR\n#securitycenter.googleapis.com/Asset\022+organizations/{organization}/assets/{asset}"
),
is_extendable=False,
syntax="proto3",
extension_ranges=[],
oneofs=[],
serialized_start=264,
serialized_end=1178,
)
_ASSET_SECURITYCENTERPROPERTIES.containing_type = _ASSET
_ASSET_IAMPOLICY.containing_type = _ASSET
_ASSET_RESOURCEPROPERTIESENTRY.fields_by_name[
"value"
].message_type = google_dot_protobuf_dot_struct__pb2._VALUE
_ASSET_RESOURCEPROPERTIESENTRY.containing_type = _ASSET
_ASSET.fields_by_name[
"security_center_properties"
].message_type = _ASSET_SECURITYCENTERPROPERTIES
_ASSET.fields_by_name[
"resource_properties"
].message_type = _ASSET_RESOURCEPROPERTIESENTRY
_ASSET.fields_by_name[
"security_marks"
].message_type = (
google_dot_cloud_dot_securitycenter__v1_dot_proto_dot_security__marks__pb2._SECURITYMARKS
)
_ASSET.fields_by_name[
"create_time"
].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP
_ASSET.fields_by_name[
"update_time"
].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP
_ASSET.fields_by_name["iam_policy"].message_type = _ASSET_IAMPOLICY
DESCRIPTOR.message_types_by_name["Asset"] = _ASSET
_sym_db.RegisterFileDescriptor(DESCRIPTOR)
Asset = _reflection.GeneratedProtocolMessageType(
"Asset",
(_message.Message,),
dict(
SecurityCenterProperties=_reflection.GeneratedProtocolMessageType(
"SecurityCenterProperties",
(_message.Message,),
dict(
DESCRIPTOR=_ASSET_SECURITYCENTERPROPERTIES,
__module__="google.cloud.securitycenter_v1.proto.asset_pb2",
__doc__="""Cloud SCC managed properties. These properties are managed
by Cloud SCC and cannot be modified by the user.
Attributes:
resource_name:
The full resource name of the GCP resource this asset
represents. This field is immutable after create time. See: ht
tps://cloud.google.com/apis/design/resource\_names#full\_resou
rce\_name
resource_type:
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.
resource_parent:
The full resource name of the immediate parent of the
resource. See: https://cloud.google.com/apis/design/resource\_
names#full\_resource\_name
resource_project:
The full resource name of the project the resource belongs to.
See: https://cloud.google.com/apis/design/resource\_names#full
\_resource\_name
resource_owners:
Owners of the Google Cloud resource.
resource_display_name:
The user defined display name for this resource.
resource_parent_display_name:
The user defined display name for the parent of this resource.
resource_project_display_name:
The user defined display name for the project of this
resource.
""",
# @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1.Asset.SecurityCenterProperties)
),
),
IamPolicy=_reflection.GeneratedProtocolMessageType(
"IamPolicy",
(_message.Message,),
dict(
DESCRIPTOR=_ASSET_IAMPOLICY,
__module__="google.cloud.securitycenter_v1.proto.asset_pb2",
__doc__="""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.
Attributes:
policy_blob:
The JSON representation of the Policy associated with the
asset. See
https://cloud.google.com/iam/reference/rest/v1/Policy for
format details.
""",
# @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1.Asset.IamPolicy)
),
),
ResourcePropertiesEntry=_reflection.GeneratedProtocolMessageType(
"ResourcePropertiesEntry",
(_message.Message,),
dict(
DESCRIPTOR=_ASSET_RESOURCEPROPERTIESENTRY,
__module__="google.cloud.securitycenter_v1.proto.asset_pb2"
# @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1.Asset.ResourcePropertiesEntry)
),
),
DESCRIPTOR=_ASSET,
__module__="google.cloud.securitycenter_v1.proto.asset_pb2",
__doc__="""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.
Attributes:
name:
The relative resource name of this asset. See: https://cloud.g
oogle.com/apis/design/resource\_names#relative\_resource\_name
Example:
"organizations/{organization\_id}/assets/{asset\_id}".
security_center_properties:
Cloud SCC managed properties. These properties are managed by
Cloud SCC and cannot be modified by the user.
resource_properties:
Resource managed properties. These properties are managed and
defined by the GCP resource and cannot be modified by the
user.
security_marks:
User specified security marks. These marks are entirely
managed by the user and come from the SecurityMarks resource
that belongs to the asset.
create_time:
The time at which the asset was created in Cloud SCC.
update_time:
The time at which the asset was last updated, added, or
deleted in Cloud SCC.
iam_policy:
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.
""",
# @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1.Asset)
),
)
_sym_db.RegisterMessage(Asset)
_sym_db.RegisterMessage(Asset.SecurityCenterProperties)
_sym_db.RegisterMessage(Asset.IamPolicy)
_sym_db.RegisterMessage(Asset.ResourcePropertiesEntry)
DESCRIPTOR._options = None
_ASSET_RESOURCEPROPERTIESENTRY._options = None
_ASSET._options = None
# @@protoc_insertion_point(module_scope)