Skip to content

Commit 28c3403

Browse files
yoshi-automationJustinBeckwith
authored andcommitted
fix: remove the having enum value from GroupFindingsRequest (#67)
BREAKING CHANGE: The `having` enum value has been removed from `GroupFindingsRequest`. This property was never meant to be exposed.
1 parent a189391 commit 28c3403

File tree

4 files changed

+11
-75
lines changed

4 files changed

+11
-75
lines changed

packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/securitycenter_service.proto

+8-20
Original file line numberDiff line numberDiff line change
@@ -331,11 +331,6 @@ message GroupAssetsRequest {
331331
// NOW.
332332
google.protobuf.Timestamp read_time = 5;
333333

334-
// Filter that specifies what fields to further filter on *after* the query
335-
// filter has been executed. Currently only 'state_change' is supported and
336-
// requires compare_duration to be specified.
337-
string having = 6;
338-
339334
// The value returned by the last `GroupAssetsResponse`; indicates
340335
// that this is a continuation of a prior `GroupAssets` call, and that the
341336
// system should return the next page of data.
@@ -344,6 +339,8 @@ message GroupAssetsRequest {
344339
// The maximum number of results to return in a single response. Default is
345340
// 10, minimum is 1, maximum is 1000.
346341
int32 page_size = 8;
342+
343+
reserved 6;
347344
}
348345

349346
// Response message for grouping by assets.
@@ -446,11 +443,6 @@ message GroupFindingsRequest {
446443
// `group_by`.
447444
google.protobuf.Duration compare_duration = 5;
448445

449-
// Filter that specifies what fields to further filter on *after* the query
450-
// filter has been executed. Currently only 'finding.state' and 'state_change'
451-
// are supported and requires compare_duration to be specified.
452-
string having = 6;
453-
454446
// The value returned by the last `GroupFindingsResponse`; indicates
455447
// that this is a continuation of a prior `GroupFindings` call, and
456448
// that the system should return the next page of data.
@@ -459,6 +451,8 @@ message GroupFindingsRequest {
459451
// The maximum number of results to return in a single response. Default is
460452
// 10, minimum is 1, maximum is 1000.
461453
int32 page_size = 8;
454+
455+
reserved 6;
462456
}
463457

464458
// Response message for group by findings.
@@ -591,11 +585,6 @@ message ListAssetsRequest {
591585
// read_time.
592586
google.protobuf.Duration compare_duration = 5;
593587

594-
// Filter that specifies what fields to further filter on *after* the query
595-
// filter has been executed. Currently only 'state_change' is supported and
596-
// requires compare_duration to be specified.
597-
string having = 6;
598-
599588
// Optional.
600589
//
601590
// A field mask to specify the ListAssetsResult fields to be listed in the
@@ -611,6 +600,8 @@ message ListAssetsRequest {
611600
// The maximum number of results to return in a single response. Default is
612601
// 10, minimum is 1, maximum is 1000.
613602
int32 page_size = 9;
603+
604+
reserved 6;
614605
}
615606

616607
// Response message for listing assets.
@@ -735,11 +726,6 @@ message ListFindingsRequest {
735726
// read_time.
736727
google.protobuf.Duration compare_duration = 5;
737728

738-
// Filter that specifies what fields to further filter on *after* the query
739-
// filter has been executed. Currently only 'finding.state' and 'state_change'
740-
// are supported and requires compare_duration to be specified.
741-
string having = 6;
742-
743729
// Optional.
744730
//
745731
// A field mask to specify the Finding fields to be listed in the response.
@@ -754,6 +740,8 @@ message ListFindingsRequest {
754740
// The maximum number of results to return in a single response. Default is
755741
// 10, minimum is 1, maximum is 1000.
756742
int32 page_size = 9;
743+
744+
reserved 6;
757745
}
758746

759747
// Response message for listing findings.

packages/google-cloud-securitycenter/src/v1/doc/google/cloud/securitycenter/v1/doc_securitycenter_service.js

-20
Original file line numberDiff line numberDiff line change
@@ -183,11 +183,6 @@ const GetSourceRequest = {
183183
*
184184
* This object should have the same structure as [Timestamp]{@link google.protobuf.Timestamp}
185185
*
186-
* @property {string} having
187-
* Filter that specifies what fields to further filter on *after* the query
188-
* filter has been executed. Currently only 'state_change' is supported and
189-
* requires compare_duration to be specified.
190-
*
191186
* @property {string} pageToken
192187
* The value returned by the last `GroupAssetsResponse`; indicates
193188
* that this is a continuation of a prior `GroupAssets` call, and that the
@@ -322,11 +317,6 @@ const GroupAssetsResponse = {
322317
*
323318
* This object should have the same structure as [Duration]{@link google.protobuf.Duration}
324319
*
325-
* @property {string} having
326-
* Filter that specifies what fields to further filter on *after* the query
327-
* filter has been executed. Currently only 'finding.state' and 'state_change'
328-
* are supported and requires compare_duration to be specified.
329-
*
330320
* @property {string} pageToken
331321
* The value returned by the last `GroupFindingsResponse`; indicates
332322
* that this is a continuation of a prior `GroupFindings` call, and
@@ -517,11 +507,6 @@ const ListSourcesResponse = {
517507
*
518508
* This object should have the same structure as [Duration]{@link google.protobuf.Duration}
519509
*
520-
* @property {string} having
521-
* Filter that specifies what fields to further filter on *after* the query
522-
* filter has been executed. Currently only 'state_change' is supported and
523-
* requires compare_duration to be specified.
524-
*
525510
* @property {Object} fieldMask
526511
* Optional.
527512
*
@@ -713,11 +698,6 @@ const ListAssetsResponse = {
713698
*
714699
* This object should have the same structure as [Duration]{@link google.protobuf.Duration}
715700
*
716-
* @property {string} having
717-
* Filter that specifies what fields to further filter on *after* the query
718-
* filter has been executed. Currently only 'finding.state' and 'state_change'
719-
* are supported and requires compare_duration to be specified.
720-
*
721701
* @property {Object} fieldMask
722702
* Optional.
723703
*

packages/google-cloud-securitycenter/src/v1/security_center_client.js

-32
Original file line numberDiff line numberDiff line change
@@ -642,10 +642,6 @@ class SecurityCenterClient {
642642
* NOW.
643643
*
644644
* This object should have the same structure as [Timestamp]{@link google.protobuf.Timestamp}
645-
* @param {string} [request.having]
646-
* Filter that specifies what fields to further filter on *after* the query
647-
* filter has been executed. Currently only 'state_change' is supported and
648-
* requires compare_duration to be specified.
649645
* @param {number} [request.pageSize]
650646
* The maximum number of resources contained in the underlying API
651647
* response. If page streaming is performed per-resource, this
@@ -841,10 +837,6 @@ class SecurityCenterClient {
841837
* NOW.
842838
*
843839
* This object should have the same structure as [Timestamp]{@link google.protobuf.Timestamp}
844-
* @param {string} [request.having]
845-
* Filter that specifies what fields to further filter on *after* the query
846-
* filter has been executed. Currently only 'state_change' is supported and
847-
* requires compare_duration to be specified.
848840
* @param {number} [request.pageSize]
849841
* The maximum number of resources contained in the underlying API
850842
* response. If page streaming is performed per-resource, this
@@ -976,10 +968,6 @@ class SecurityCenterClient {
976968
* `group_by`.
977969
*
978970
* This object should have the same structure as [Duration]{@link google.protobuf.Duration}
979-
* @param {string} [request.having]
980-
* Filter that specifies what fields to further filter on *after* the query
981-
* filter has been executed. Currently only 'finding.state' and 'state_change'
982-
* are supported and requires compare_duration to be specified.
983971
* @param {number} [request.pageSize]
984972
* The maximum number of resources contained in the underlying API
985973
* response. If page streaming is performed per-resource, this
@@ -1171,10 +1159,6 @@ class SecurityCenterClient {
11711159
* `group_by`.
11721160
*
11731161
* This object should have the same structure as [Duration]{@link google.protobuf.Duration}
1174-
* @param {string} [request.having]
1175-
* Filter that specifies what fields to further filter on *after* the query
1176-
* filter has been executed. Currently only 'finding.state' and 'state_change'
1177-
* are supported and requires compare_duration to be specified.
11781162
* @param {number} [request.pageSize]
11791163
* The maximum number of resources contained in the underlying API
11801164
* response. If page streaming is performed per-resource, this
@@ -1297,10 +1281,6 @@ class SecurityCenterClient {
12971281
* read_time.
12981282
*
12991283
* This object should have the same structure as [Duration]{@link google.protobuf.Duration}
1300-
* @param {string} [request.having]
1301-
* Filter that specifies what fields to further filter on *after* the query
1302-
* filter has been executed. Currently only 'state_change' is supported and
1303-
* requires compare_duration to be specified.
13041284
* @param {Object} [request.fieldMask]
13051285
* Optional.
13061286
*
@@ -1485,10 +1465,6 @@ class SecurityCenterClient {
14851465
* read_time.
14861466
*
14871467
* This object should have the same structure as [Duration]{@link google.protobuf.Duration}
1488-
* @param {string} [request.having]
1489-
* Filter that specifies what fields to further filter on *after* the query
1490-
* filter has been executed. Currently only 'state_change' is supported and
1491-
* requires compare_duration to be specified.
14921468
* @param {Object} [request.fieldMask]
14931469
* Optional.
14941470
*
@@ -1617,10 +1593,6 @@ class SecurityCenterClient {
16171593
* read_time.
16181594
*
16191595
* This object should have the same structure as [Duration]{@link google.protobuf.Duration}
1620-
* @param {string} [request.having]
1621-
* Filter that specifies what fields to further filter on *after* the query
1622-
* filter has been executed. Currently only 'finding.state' and 'state_change'
1623-
* are supported and requires compare_duration to be specified.
16241596
* @param {Object} [request.fieldMask]
16251597
* Optional.
16261598
*
@@ -1804,10 +1776,6 @@ class SecurityCenterClient {
18041776
* read_time.
18051777
*
18061778
* This object should have the same structure as [Duration]{@link google.protobuf.Duration}
1807-
* @param {string} [request.having]
1808-
* Filter that specifies what fields to further filter on *after* the query
1809-
* filter has been executed. Currently only 'finding.state' and 'state_change'
1810-
* are supported and requires compare_duration to be specified.
18111779
* @param {Object} [request.fieldMask]
18121780
* Optional.
18131781
*

packages/google-cloud-securitycenter/synth.metadata

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"updateTime": "2019-03-13T11:21:18.503485Z",
2+
"updateTime": "2019-03-14T11:20:21.875346Z",
33
"sources": [
44
{
55
"generator": {
@@ -12,8 +12,8 @@
1212
"git": {
1313
"name": "googleapis",
1414
"remote": "https://github.com/googleapis/googleapis.git",
15-
"sha": "e340f4a01ec287f7bb86e2331b5e98c473d10afd",
16-
"internalRef": "238151361"
15+
"sha": "d05a746ba27b89374c7407c88c0d5dabfb0afc7c",
16+
"internalRef": "238372434"
1717
}
1818
},
1919
{

0 commit comments

Comments
 (0)