Skip to content

Commit

Permalink
docs: update jsdoc to make datetime usage more clear (#124)
Browse files Browse the repository at this point in the history
  • Loading branch information
yoshi-automation authored and JustinBeckwith committed Jul 19, 2019
1 parent 3983ed9 commit 97077ef
Show file tree
Hide file tree
Showing 4 changed files with 173 additions and 25 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -282,8 +282,20 @@ message GroupAssetsRequest {
//
// The following field and operator combinations are supported:
// name | '='
// update_time | '>', '<', '>=', '<=', '='
// create_time | '>', '<', '>=', '<=', '='
// update_time | '=', '>', '<', '>=', '<='
//
// Usage: This should be milliseconds since epoch or an RFC3339 string.
// Examples:
// "update_time = \"2019-06-10T16:07:18-07:00\""
// "update_time = 1560208038000"
//
// create_time | '=', '>', '<', '>=', '<='
//
// Usage: This should be milliseconds since epoch or an RFC3339 string.
// Examples:
// "create_time = \"2019-06-10T16:07:18-07:00\""
// "create_time = 1560208038000"
//
// iam_policy.policy_blob | '=', ':'
// resource_properties | '=', ':', '>', '<', '>=', '<='
// security_marks | '=', ':'
Expand Down Expand Up @@ -416,7 +428,13 @@ message GroupFindingsRequest {
// state | '=', ':'
// category | '=', ':'
// external_uri | '=', ':'
// event_time | `>`, `<`, `>=`, `<=`
// event_time | `=`, `>`, `<`, `>=`, `<=`
//
// Usage: This should be milliseconds since epoch or an RFC3339 string.
// Examples:
// "event_time = \"2019-06-10T16:07:18-07:00\""
// "event_time = 1560208038000"
//
// security_marks | '=', ':'
// source_properties | '=', ':', `>`, `<`, `>=`, `<=`
//
Expand Down Expand Up @@ -572,7 +590,20 @@ message ListAssetsRequest {
//
// The following are the allowed field and operator combinations:
// name | `=`
// update_time | `>`, `<`, `>=`, `<=`
// update_time | `=`, `>`, `<`, `>=`, `<=`
//
// Usage: This should be milliseconds since epoch or an RFC3339 string.
// Examples:
// "update_time = \"2019-06-10T16:07:18-07:00\""
// "update_time = 1560208038000"
//
// create_time | `=`, `>`, `<`, `>=`, `<=`
//
// Usage: This should be milliseconds since epoch or an RFC3339 string.
// Examples:
// "create_time = \"2019-06-10T16:07:18-07:00\""
// "create_time = 1560208038000"
//
// iam_policy.policy_blob | '=', ':'
// resource_properties | '=', ':', `>`, `<`, `>=`, `<=`
// security_marks | '=', ':'
Expand Down Expand Up @@ -740,7 +771,13 @@ message ListFindingsRequest {
// state | '=', ':'
// category | '=', ':'
// external_uri | '=', ':'
// event_time | `>`, `<`, `>=`, `<=`
// event_time | `=`, `>`, `<`, `>=`, `<=`
//
// Usage: This should be milliseconds since epoch or an RFC3339 string.
// Examples:
// "event_time = \"2019-06-10T16:07:18-07:00\""
// "event_time = 1560208038000"
//
// security_marks | '=', ':'
// source_properties | '=', ':', `>`, `<`, `>=`, `<=`
//
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,20 @@ const GetSourceRequest = {
*
* The following field and operator combinations are supported:
* name | '='
* update_time | '>', '<', '>=', '<=', '='
* create_time | '>', '<', '>=', '<=', '='
* update_time | '=', '>', '<', '>=', '<='
*
* Usage: This should be milliseconds since epoch or an RFC3339 string.
* Examples:
* "update_time = \"2019-06-10T16:07:18-07:00\""
* "update_time = 1560208038000"
*
* create_time | '=', '>', '<', '>=', '<='
*
* Usage: This should be milliseconds since epoch or an RFC3339 string.
* Examples:
* "create_time = \"2019-06-10T16:07:18-07:00\""
* "create_time = 1560208038000"
*
* iam_policy.policy_blob | '=', ':'
* resource_properties | '=', ':', '>', '<', '>=', '<='
* security_marks | '=', ':'
Expand Down Expand Up @@ -284,7 +296,13 @@ const GroupAssetsResponse = {
* state | '=', ':'
* category | '=', ':'
* external_uri | '=', ':'
* event_time | `>`, `<`, `>=`, `<=`
* event_time | `=`, `>`, `<`, `>=`, `<=`
*
* Usage: This should be milliseconds since epoch or an RFC3339 string.
* Examples:
* "event_time = \"2019-06-10T16:07:18-07:00\""
* "event_time = 1560208038000"
*
* security_marks | '=', ':'
* source_properties | '=', ':', `>`, `<`, `>=`, `<=`
*
Expand Down Expand Up @@ -488,7 +506,20 @@ const ListSourcesResponse = {
*
* The following are the allowed field and operator combinations:
* name | `=`
* update_time | `>`, `<`, `>=`, `<=`
* update_time | `=`, `>`, `<`, `>=`, `<=`
*
* Usage: This should be milliseconds since epoch or an RFC3339 string.
* Examples:
* "update_time = \"2019-06-10T16:07:18-07:00\""
* "update_time = 1560208038000"
*
* create_time | `=`, `>`, `<`, `>=`, `<=`
*
* Usage: This should be milliseconds since epoch or an RFC3339 string.
* Examples:
* "create_time = \"2019-06-10T16:07:18-07:00\""
* "create_time = 1560208038000"
*
* iam_policy.policy_blob | '=', ':'
* resource_properties | '=', ':', `>`, `<`, `>=`, `<=`
* security_marks | '=', ':'
Expand Down Expand Up @@ -706,7 +737,13 @@ const ListAssetsResponse = {
* state | '=', ':'
* category | '=', ':'
* external_uri | '=', ':'
* event_time | `>`, `<`, `>=`, `<=`
* event_time | `=`, `>`, `<`, `>=`, `<=`
*
* Usage: This should be milliseconds since epoch or an RFC3339 string.
* Examples:
* "event_time = \"2019-06-10T16:07:18-07:00\""
* "event_time = 1560208038000"
*
* security_marks | '=', ':'
* source_properties | '=', ':', `>`, `<`, `>=`, `<=`
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -656,8 +656,20 @@ class SecurityCenterClient {
*
* The following field and operator combinations are supported:
* name | '='
* update_time | '>', '<', '>=', '<=', '='
* create_time | '>', '<', '>=', '<=', '='
* update_time | '=', '>', '<', '>=', '<='
*
* Usage: This should be milliseconds since epoch or an RFC3339 string.
* Examples:
* "update_time = \"2019-06-10T16:07:18-07:00\""
* "update_time = 1560208038000"
*
* create_time | '=', '>', '<', '>=', '<='
*
* Usage: This should be milliseconds since epoch or an RFC3339 string.
* Examples:
* "create_time = \"2019-06-10T16:07:18-07:00\""
* "create_time = 1560208038000"
*
* iam_policy.policy_blob | '=', ':'
* resource_properties | '=', ':', '>', '<', '>=', '<='
* security_marks | '=', ':'
Expand Down Expand Up @@ -871,8 +883,20 @@ class SecurityCenterClient {
*
* The following field and operator combinations are supported:
* name | '='
* update_time | '>', '<', '>=', '<=', '='
* create_time | '>', '<', '>=', '<=', '='
* update_time | '=', '>', '<', '>=', '<='
*
* Usage: This should be milliseconds since epoch or an RFC3339 string.
* Examples:
* "update_time = \"2019-06-10T16:07:18-07:00\""
* "update_time = 1560208038000"
*
* create_time | '=', '>', '<', '>=', '<='
*
* Usage: This should be milliseconds since epoch or an RFC3339 string.
* Examples:
* "create_time = \"2019-06-10T16:07:18-07:00\""
* "create_time = 1560208038000"
*
* iam_policy.policy_blob | '=', ':'
* resource_properties | '=', ':', '>', '<', '>=', '<='
* security_marks | '=', ':'
Expand Down Expand Up @@ -1024,7 +1048,13 @@ class SecurityCenterClient {
* state | '=', ':'
* category | '=', ':'
* external_uri | '=', ':'
* event_time | `>`, `<`, `>=`, `<=`
* event_time | `=`, `>`, `<`, `>=`, `<=`
*
* Usage: This should be milliseconds since epoch or an RFC3339 string.
* Examples:
* "event_time = \"2019-06-10T16:07:18-07:00\""
* "event_time = 1560208038000"
*
* security_marks | '=', ':'
* source_properties | '=', ':', `>`, `<`, `>=`, `<=`
*
Expand Down Expand Up @@ -1236,7 +1266,13 @@ class SecurityCenterClient {
* state | '=', ':'
* category | '=', ':'
* external_uri | '=', ':'
* event_time | `>`, `<`, `>=`, `<=`
* event_time | `=`, `>`, `<`, `>=`, `<=`
*
* Usage: This should be milliseconds since epoch or an RFC3339 string.
* Examples:
* "event_time = \"2019-06-10T16:07:18-07:00\""
* "event_time = 1560208038000"
*
* security_marks | '=', ':'
* source_properties | '=', ':', `>`, `<`, `>=`, `<=`
*
Expand Down Expand Up @@ -1357,7 +1393,20 @@ class SecurityCenterClient {
*
* The following are the allowed field and operator combinations:
* name | `=`
* update_time | `>`, `<`, `>=`, `<=`
* update_time | `=`, `>`, `<`, `>=`, `<=`
*
* Usage: This should be milliseconds since epoch or an RFC3339 string.
* Examples:
* "update_time = \"2019-06-10T16:07:18-07:00\""
* "update_time = 1560208038000"
*
* create_time | `=`, `>`, `<`, `>=`, `<=`
*
* Usage: This should be milliseconds since epoch or an RFC3339 string.
* Examples:
* "create_time = \"2019-06-10T16:07:18-07:00\""
* "create_time = 1560208038000"
*
* iam_policy.policy_blob | '=', ':'
* resource_properties | '=', ':', `>`, `<`, `>=`, `<=`
* security_marks | '=', ':'
Expand Down Expand Up @@ -1570,7 +1619,20 @@ class SecurityCenterClient {
*
* The following are the allowed field and operator combinations:
* name | `=`
* update_time | `>`, `<`, `>=`, `<=`
* update_time | `=`, `>`, `<`, `>=`, `<=`
*
* Usage: This should be milliseconds since epoch or an RFC3339 string.
* Examples:
* "update_time = \"2019-06-10T16:07:18-07:00\""
* "update_time = 1560208038000"
*
* create_time | `=`, `>`, `<`, `>=`, `<=`
*
* Usage: This should be milliseconds since epoch or an RFC3339 string.
* Examples:
* "create_time = \"2019-06-10T16:07:18-07:00\""
* "create_time = 1560208038000"
*
* iam_policy.policy_blob | '=', ':'
* resource_properties | '=', ':', `>`, `<`, `>=`, `<=`
* security_marks | '=', ':'
Expand Down Expand Up @@ -1725,7 +1787,13 @@ class SecurityCenterClient {
* state | '=', ':'
* category | '=', ':'
* external_uri | '=', ':'
* event_time | `>`, `<`, `>=`, `<=`
* event_time | `=`, `>`, `<`, `>=`, `<=`
*
* Usage: This should be milliseconds since epoch or an RFC3339 string.
* Examples:
* "event_time = \"2019-06-10T16:07:18-07:00\""
* "event_time = 1560208038000"
*
* security_marks | '=', ':'
* source_properties | '=', ':', `>`, `<`, `>=`, `<=`
*
Expand Down Expand Up @@ -1936,7 +2004,13 @@ class SecurityCenterClient {
* state | '=', ':'
* category | '=', ':'
* external_uri | '=', ':'
* event_time | `>`, `<`, `>=`, `<=`
* event_time | `=`, `>`, `<`, `>=`, `<=`
*
* Usage: This should be milliseconds since epoch or an RFC3339 string.
* Examples:
* "event_time = \"2019-06-10T16:07:18-07:00\""
* "event_time = 1560208038000"
*
* security_marks | '=', ':'
* source_properties | '=', ':', `>`, `<`, `>=`, `<=`
*
Expand Down
10 changes: 5 additions & 5 deletions packages/google-cloud-securitycenter/synth.metadata
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
{
"updateTime": "2019-07-16T21:57:58.657213Z",
"updateTime": "2019-07-19T11:21:50.473296Z",
"sources": [
{
"generator": {
"name": "artman",
"version": "0.30.0",
"dockerImage": "googleapis/artman@sha256:a44d9fb6fe826ca0ea7d6f7be23c596346bed82ee513a0043f3c068279717439"
"version": "0.30.1",
"dockerImage": "googleapis/artman@sha256:f1a2e851e5e012c59e1da4125480bb19878f86a4e7fac4f375f2e819956b5aa3"
}
},
{
"git": {
"name": "googleapis",
"remote": "https://github.com/googleapis/googleapis.git",
"sha": "96d5a05171e99b6a2378eb0a3423f765351878b7",
"internalRef": "258424288"
"sha": "f78612e8d008b9678252da84c035da12e92c0093",
"internalRef": "258869625"
}
},
{
Expand Down

0 comments on commit 97077ef

Please sign in to comment.