Skip to content

Commit 25d413d

Browse files
yoshi-automationbusunkim96
authored andcommitted
Update docstrings (via synth). (googleapis#8711)
1 parent fef10c0 commit 25d413d

4 files changed

Lines changed: 120 additions & 32 deletions

File tree

securitycenter/google/cloud/securitycenter_v1/gapic/security_center_client.py

Lines changed: 45 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -744,10 +744,21 @@ def group_assets(
744744
- boolean literals ``true`` and ``false`` without quotes.
745745
746746
The following field and operator combinations are supported: name \| '='
747-
update\_time \| '>', '<', '>=', '<=', '=' create\_time \| '>', '<',
748-
'>=', '<=', '=' iam\_policy.policy\_blob \| '=', ':'
749-
resource\_properties \| '=', ':', '>', '<', '>=', '<=' security\_marks
750-
\| '=', ':' security\_center\_properties.resource\_name \| '=', ':'
747+
update\_time \| '=', '>', '<', '>=', '<='
748+
749+
Usage: This should be milliseconds since epoch or an RFC3339 string.
750+
Examples: "update\_time = "2019-06-10T16:07:18-07:00"" "update\_time =
751+
1560208038000"
752+
753+
create\_time \| '=', '>', '<', '>=', '<='
754+
755+
Usage: This should be milliseconds since epoch or an RFC3339 string.
756+
Examples: "create\_time = "2019-06-10T16:07:18-07:00"" "create\_time =
757+
1560208038000"
758+
759+
iam\_policy.policy\_blob \| '=', ':' resource\_properties \| '=', ':',
760+
'>', '<', '>=', '<=' security\_marks \| '=', ':'
761+
security\_center\_properties.resource\_name \| '=', ':'
751762
security\_center\_properties.resource\_type \| '=', ':'
752763
security\_center\_properties.resource\_parent \| '=', ':'
753764
security\_center\_properties.resource\_project \| '=', ':'
@@ -954,9 +965,15 @@ def group_findings(
954965
955966
The following field and operator combinations are supported: name \|
956967
``=`` parent \| '=', ':' resource\_name \| '=', ':' state \| '=', ':'
957-
category \| '=', ':' external\_uri \| '=', ':' event\_time \| ``>``,
958-
``<``, ``>=``, ``<=`` security\_marks \| '=', ':' source\_properties \|
959-
'=', ':', ``>``, ``<``, ``>=``, ``<=``
968+
category \| '=', ':' external\_uri \| '=', ':' event\_time \| ``=``,
969+
``>``, ``<``, ``>=``, ``<=``
970+
971+
Usage: This should be milliseconds since epoch or an RFC3339 string.
972+
Examples: "event\_time = "2019-06-10T16:07:18-07:00"" "event\_time =
973+
1560208038000"
974+
975+
security\_marks \| '=', ':' source\_properties \| '=', ':', ``>``,
976+
``<``, ``>=``, ``<=``
960977
961978
For example, ``source_properties.size = 100`` is a valid filter string.
962979
read_time (Union[dict, ~google.cloud.securitycenter_v1.types.Timestamp]): Time used as a reference point when filtering findings. The filter is
@@ -1137,7 +1154,18 @@ def list_assets(
11371154
- boolean literals ``true`` and ``false`` without quotes.
11381155
11391156
The following are the allowed field and operator combinations: name \|
1140-
``=`` update\_time \| ``>``, ``<``, ``>=``, ``<=``
1157+
``=`` update\_time \| ``=``, ``>``, ``<``, ``>=``, ``<=``
1158+
1159+
Usage: This should be milliseconds since epoch or an RFC3339 string.
1160+
Examples: "update\_time = "2019-06-10T16:07:18-07:00"" "update\_time =
1161+
1560208038000"
1162+
1163+
create\_time \| ``=``, ``>``, ``<``, ``>=``, ``<=``
1164+
1165+
Usage: This should be milliseconds since epoch or an RFC3339 string.
1166+
Examples: "create\_time = "2019-06-10T16:07:18-07:00"" "create\_time =
1167+
1560208038000"
1168+
11411169
iam\_policy.policy\_blob \| '=', ':' resource\_properties \| '=', ':',
11421170
``>``, ``<``, ``>=``, ``<=`` security\_marks \| '=', ':'
11431171
security\_center\_properties.resource\_name \| '=', ':'
@@ -1352,9 +1380,15 @@ def list_findings(
13521380
13531381
The following field and operator combinations are supported: name \|
13541382
``=`` parent \| '=', ':' resource\_name \| '=', ':' state \| '=', ':'
1355-
category \| '=', ':' external\_uri \| '=', ':' event\_time \| ``>``,
1356-
``<``, ``>=``, ``<=`` security\_marks \| '=', ':' source\_properties \|
1357-
'=', ':', ``>``, ``<``, ``>=``, ``<=``
1383+
category \| '=', ':' external\_uri \| '=', ':' event\_time \| ``=``,
1384+
``>``, ``<``, ``>=``, ``<=``
1385+
1386+
Usage: This should be milliseconds since epoch or an RFC3339 string.
1387+
Examples: "event\_time = "2019-06-10T16:07:18-07:00"" "event\_time =
1388+
1560208038000"
1389+
1390+
security\_marks \| '=', ':' source\_properties \| '=', ':', ``>``,
1391+
``<``, ``>=``, ``<=``
13581392
13591393
For example, ``source_properties.size = 100`` is a valid filter string.
13601394
order_by (str): Expression that defines what fields and order to use for sorting. The

securitycenter/google/cloud/securitycenter_v1/proto/securitycenter_service.proto

Lines changed: 42 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -282,8 +282,20 @@ message GroupAssetsRequest {
282282
//
283283
// The following field and operator combinations are supported:
284284
// name | '='
285-
// update_time | '>', '<', '>=', '<=', '='
286-
// create_time | '>', '<', '>=', '<=', '='
285+
// update_time | '=', '>', '<', '>=', '<='
286+
//
287+
// Usage: This should be milliseconds since epoch or an RFC3339 string.
288+
// Examples:
289+
// "update_time = \"2019-06-10T16:07:18-07:00\""
290+
// "update_time = 1560208038000"
291+
//
292+
// create_time | '=', '>', '<', '>=', '<='
293+
//
294+
// Usage: This should be milliseconds since epoch or an RFC3339 string.
295+
// Examples:
296+
// "create_time = \"2019-06-10T16:07:18-07:00\""
297+
// "create_time = 1560208038000"
298+
//
287299
// iam_policy.policy_blob | '=', ':'
288300
// resource_properties | '=', ':', '>', '<', '>=', '<='
289301
// security_marks | '=', ':'
@@ -416,7 +428,13 @@ message GroupFindingsRequest {
416428
// state | '=', ':'
417429
// category | '=', ':'
418430
// external_uri | '=', ':'
419-
// event_time | `>`, `<`, `>=`, `<=`
431+
// event_time | `=`, `>`, `<`, `>=`, `<=`
432+
//
433+
// Usage: This should be milliseconds since epoch or an RFC3339 string.
434+
// Examples:
435+
// "event_time = \"2019-06-10T16:07:18-07:00\""
436+
// "event_time = 1560208038000"
437+
//
420438
// security_marks | '=', ':'
421439
// source_properties | '=', ':', `>`, `<`, `>=`, `<=`
422440
//
@@ -572,7 +590,20 @@ message ListAssetsRequest {
572590
//
573591
// The following are the allowed field and operator combinations:
574592
// name | `=`
575-
// update_time | `>`, `<`, `>=`, `<=`
593+
// update_time | `=`, `>`, `<`, `>=`, `<=`
594+
//
595+
// Usage: This should be milliseconds since epoch or an RFC3339 string.
596+
// Examples:
597+
// "update_time = \"2019-06-10T16:07:18-07:00\""
598+
// "update_time = 1560208038000"
599+
//
600+
// create_time | `=`, `>`, `<`, `>=`, `<=`
601+
//
602+
// Usage: This should be milliseconds since epoch or an RFC3339 string.
603+
// Examples:
604+
// "create_time = \"2019-06-10T16:07:18-07:00\""
605+
// "create_time = 1560208038000"
606+
//
576607
// iam_policy.policy_blob | '=', ':'
577608
// resource_properties | '=', ':', `>`, `<`, `>=`, `<=`
578609
// security_marks | '=', ':'
@@ -740,7 +771,13 @@ message ListFindingsRequest {
740771
// state | '=', ':'
741772
// category | '=', ':'
742773
// external_uri | '=', ':'
743-
// event_time | `>`, `<`, `>=`, `<=`
774+
// event_time | `=`, `>`, `<`, `>=`, `<=`
775+
//
776+
// Usage: This should be milliseconds since epoch or an RFC3339 string.
777+
// Examples:
778+
// "event_time = \"2019-06-10T16:07:18-07:00\""
779+
// "event_time = 1560208038000"
780+
//
744781
// security_marks | '=', ':'
745782
// source_properties | '=', ':', `>`, `<`, `>=`, `<=`
746783
//

securitycenter/google/cloud/securitycenter_v1/proto/securitycenter_service_pb2.py

Lines changed: 28 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

securitycenter/synth.metadata

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
{
2-
"updateTime": "2019-07-12T12:33:10.588907Z",
2+
"updateTime": "2019-07-19T12:31:37.550299Z",
33
"sources": [
44
{
55
"generator": {
66
"name": "artman",
7-
"version": "0.29.4",
8-
"dockerImage": "googleapis/artman@sha256:63f21e83cb92680b7001dc381069e962c9e6dee314fd8365ac554c07c89221fb"
7+
"version": "0.30.1",
8+
"dockerImage": "googleapis/artman@sha256:f1a2e851e5e012c59e1da4125480bb19878f86a4e7fac4f375f2e819956b5aa3"
99
}
1010
},
1111
{
1212
"git": {
1313
"name": "googleapis",
1414
"remote": "https://github.com/googleapis/googleapis.git",
15-
"sha": "47bd0c2ba33c28dd624a65dad382e02bb61d1618",
16-
"internalRef": "257690259"
15+
"sha": "f78612e8d008b9678252da84c035da12e92c0093",
16+
"internalRef": "258869625"
1717
}
1818
},
1919
{

0 commit comments

Comments
 (0)