Skip to content

Commit d9f4f5c

Browse files
docs(samples): add example tags to generated samples (#436)
- [ ] Regenerate this pull request now. PiperOrigin-RevId: 408439482 Source-Link: googleapis/googleapis@b9f6184 Source-Link: googleapis/googleapis-gen@eb888bc Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZWI4ODhiYzIxNGVmYzdiZjQzYmY0NjM0YjQ3MDI1NDU2NWE2NTlhNSJ9
1 parent 7e0a394 commit d9f4f5c

File tree

73 files changed

+1946
-1916
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

73 files changed

+1946
-1916
lines changed

packages/google-cloud-securitycenter/linkinator.config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@
66
"img.shields.io"
77
],
88
"silent": true,
9-
"concurrency": 10
9+
"concurrency": 5
1010
}

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,4 +53,7 @@ message Resource {
5353
// The first folder is the deepest nested folder, and the last folder is the
5454
// folder directly under the Organization.
5555
repeated Folder folders = 7 [(google.api.field_behavior) = OUTPUT_ONLY];
56+
57+
// The human readable name of the resource.
58+
string display_name = 8;
5659
}

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1108,6 +1108,7 @@ message ListFindingsRequest {
11081108
// * resource.project_display_name: `=`, `:`
11091109
// * resource.type: `=`, `:`
11101110
// * resource.folders.resource_folder: `=`, `:`
1111+
// * resource.display_name: `=`, `:`
11111112
string filter = 2;
11121113

11131114
// Expression that defines what fields and order to use for sorting. The
@@ -1205,10 +1206,16 @@ message ListFindingsResponse {
12051206
// The human readable name of resource's parent.
12061207
string parent_display_name = 5;
12071208

1209+
// The full resource type of the resource.
1210+
string type = 6;
1211+
12081212
// Contains a Folder message for each folder in the assets ancestry.
12091213
// The first folder is the deepest nested folder, and the last folder is
12101214
// the folder directly under the Organization.
12111215
repeated Folder folders = 7;
1216+
1217+
// The human readable name of the resource.
1218+
string display_name = 8;
12121219
}
12131220

12141221
// The change in state of the finding.

packages/google-cloud-securitycenter/protos/protos.d.ts

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

packages/google-cloud-securitycenter/protos/protos.js

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

packages/google-cloud-securitycenter/protos/protos.json

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

packages/google-cloud-securitycenter/samples/generated/v1/security_center.create_finding.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,15 +34,15 @@ function main(parent, findingId, finding) {
3434
* Required. The Finding being created. The name and security_marks will be ignored as
3535
* they are both output only fields on this resource.
3636
*/
37-
// const finding = ''
37+
// const finding = {}
3838

3939
// Imports the Securitycenter library
4040
const {SecurityCenterClient} = require('@google-cloud/security-center').v1;
4141

4242
// Instantiates a client
4343
const securitycenterClient = new SecurityCenterClient();
4444

45-
async function createFinding() {
45+
async function callCreateFinding() {
4646
// Construct request
4747
const request = {
4848
parent,
@@ -55,7 +55,7 @@ function main(parent, findingId, finding) {
5555
console.log(response);
5656
}
5757

58-
createFinding();
58+
callCreateFinding();
5959
// [END securitycenter_v1_generated_SecurityCenter_CreateFinding_async]
6060
}
6161

packages/google-cloud-securitycenter/samples/generated/v1/security_center.create_notification_config.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,15 +35,15 @@ function main(parent, configId, notificationConfig) {
3535
* Required. The notification config being created. The name and the service account
3636
* will be ignored as they are both output only fields on this resource.
3737
*/
38-
// const notificationConfig = ''
38+
// const notificationConfig = {}
3939

4040
// Imports the Securitycenter library
4141
const {SecurityCenterClient} = require('@google-cloud/security-center').v1;
4242

4343
// Instantiates a client
4444
const securitycenterClient = new SecurityCenterClient();
4545

46-
async function createNotificationConfig() {
46+
async function callCreateNotificationConfig() {
4747
// Construct request
4848
const request = {
4949
parent,
@@ -58,7 +58,7 @@ function main(parent, configId, notificationConfig) {
5858
console.log(response);
5959
}
6060

61-
createNotificationConfig();
61+
callCreateNotificationConfig();
6262
// [END securitycenter_v1_generated_SecurityCenter_CreateNotificationConfig_async]
6363
}
6464

0 commit comments

Comments
 (0)