Skip to content

Commit

Permalink
feat: Adding project/folder level parents to notification configs in …
Browse files Browse the repository at this point in the history
…SCC (#949)

- [ ] Regenerate this pull request now.

PiperOrigin-RevId: 481230115

Source-Link: https://togithub.com/googleapis/googleapis/commit/94efa50017258958b7ce637bab25d459c67de8e9

Source-Link: https://togithub.com/googleapis/googleapis-gen/commit/cf106b5c0d4f727a8bfc8e23749330421f40b817
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiY2YxMDZiNWMwZDRmNzI3YThiZmM4ZTIzNzQ5MzMwNDIxZjQwYjgxNyJ9
  • Loading branch information
gcf-owl-bot[bot] authored Oct 27, 2022
1 parent 1805a53 commit 17a6202
Show file tree
Hide file tree
Showing 50 changed files with 2,235 additions and 775 deletions.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"methods": ["createMuteConfig", "createMuteConfig", "createMuteConfig", "createMuteConfig", "createMuteConfig", "createMuteConfig", "createMuteConfig", "createMuteConfig", "createMuteConfig", "createMuteConfigCallable"]
},
"CreateNotificationConfig": {
"methods": ["createNotificationConfig", "createNotificationConfig", "createNotificationConfig", "createNotificationConfig", "createNotificationConfig", "createNotificationConfigCallable"]
"methods": ["createNotificationConfig", "createNotificationConfig", "createNotificationConfig", "createNotificationConfig", "createNotificationConfig", "createNotificationConfig", "createNotificationConfig", "createNotificationConfig", "createNotificationConfig", "createNotificationConfigCallable"]
},
"CreateSource": {
"methods": ["createSource", "createSource", "createSource", "createSourceCallable"]
Expand Down Expand Up @@ -74,7 +74,7 @@
"methods": ["listMuteConfigs", "listMuteConfigs", "listMuteConfigs", "listMuteConfigs", "listMuteConfigs", "listMuteConfigsPagedCallable", "listMuteConfigsCallable"]
},
"ListNotificationConfigs": {
"methods": ["listNotificationConfigs", "listNotificationConfigs", "listNotificationConfigs", "listNotificationConfigsPagedCallable", "listNotificationConfigsCallable"]
"methods": ["listNotificationConfigs", "listNotificationConfigs", "listNotificationConfigs", "listNotificationConfigs", "listNotificationConfigs", "listNotificationConfigsPagedCallable", "listNotificationConfigsCallable"]
},
"ListSources": {
"methods": ["listSources", "listSources", "listSources", "listSources", "listSources", "listSourcesPagedCallable", "listSourcesCallable"]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,9 @@ public class HttpJsonSecurityCenterStub extends SecurityCenterStub {
serializer.putPathParam(fields, "parent", request.getParent());
return fields;
})
.setAdditionalPaths(
"/v1/{parent=folders/*}/notificationConfigs",
"/v1/{parent=projects/*}/notificationConfigs")
.setQueryParamsExtractor(
request -> {
Map<String, List<String>> fields = new HashMap<>();
Expand Down Expand Up @@ -372,6 +375,9 @@ public class HttpJsonSecurityCenterStub extends SecurityCenterStub {
serializer.putPathParam(fields, "name", request.getName());
return fields;
})
.setAdditionalPaths(
"/v1/{name=folders/*/notificationConfigs/*}",
"/v1/{name=projects/*/notificationConfigs/*}")
.setQueryParamsExtractor(
request -> {
Map<String, List<String>> fields = new HashMap<>();
Expand Down Expand Up @@ -514,6 +520,9 @@ public class HttpJsonSecurityCenterStub extends SecurityCenterStub {
serializer.putPathParam(fields, "name", request.getName());
return fields;
})
.setAdditionalPaths(
"/v1/{name=folders/*/notificationConfigs/*}",
"/v1/{name=projects/*/notificationConfigs/*}")
.setQueryParamsExtractor(
request -> {
Map<String, List<String>> fields = new HashMap<>();
Expand Down Expand Up @@ -819,6 +828,9 @@ public class HttpJsonSecurityCenterStub extends SecurityCenterStub {
serializer.putPathParam(fields, "parent", request.getParent());
return fields;
})
.setAdditionalPaths(
"/v1/{parent=folders/*}/notificationConfigs",
"/v1/{parent=projects/*}/notificationConfigs")
.setQueryParamsExtractor(
request -> {
Map<String, List<String>> fields = new HashMap<>();
Expand Down Expand Up @@ -1209,6 +1221,9 @@ public class HttpJsonSecurityCenterStub extends SecurityCenterStub {
request.getNotificationConfig().getName());
return fields;
})
.setAdditionalPaths(
"/v1/{notificationConfig.name=folders/*/notificationConfigs/*}",
"/v1/{notificationConfig.name=projects/*/notificationConfigs/*}")
.setQueryParamsExtractor(
request -> {
Map<String, List<String>> fields = new HashMap<>();
Expand Down
Loading

0 comments on commit 17a6202

Please sign in to comment.