Skip to content

Commit

Permalink
docs(samples): add example tags to generated samples (#436)
Browse files Browse the repository at this point in the history
- [ ] Regenerate this pull request now.

PiperOrigin-RevId: 408439482

Source-Link: googleapis/googleapis@b9f6184

Source-Link: googleapis/googleapis-gen@eb888bc
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZWI4ODhiYzIxNGVmYzdiZjQzYmY0NjM0YjQ3MDI1NDU2NWE2NTlhNSJ9
  • Loading branch information
gcf-owl-bot[bot] authored Nov 10, 2021
1 parent 7e0a394 commit d9f4f5c
Show file tree
Hide file tree
Showing 73 changed files with 1,946 additions and 1,916 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@
"img.shields.io"
],
"silent": true,
"concurrency": 10
"concurrency": 5
}
Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,7 @@ message Resource {
// The first folder is the deepest nested folder, and the last folder is the
// folder directly under the Organization.
repeated Folder folders = 7 [(google.api.field_behavior) = OUTPUT_ONLY];

// The human readable name of the resource.
string display_name = 8;
}
Original file line number Diff line number Diff line change
Expand Up @@ -1108,6 +1108,7 @@ message ListFindingsRequest {
// * resource.project_display_name: `=`, `:`
// * resource.type: `=`, `:`
// * resource.folders.resource_folder: `=`, `:`
// * resource.display_name: `=`, `:`
string filter = 2;

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

// The full resource type of the resource.
string type = 6;

// Contains a Folder message for each folder in the assets ancestry.
// The first folder is the deepest nested folder, and the last folder is
// the folder directly under the Organization.
repeated Folder folders = 7;

// The human readable name of the resource.
string display_name = 8;
}

// The change in state of the finding.
Expand Down
18 changes: 18 additions & 0 deletions packages/google-cloud-securitycenter/protos/protos.d.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

66 changes: 66 additions & 0 deletions packages/google-cloud-securitycenter/protos/protos.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions packages/google-cloud-securitycenter/protos/protos.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,15 @@ function main(parent, findingId, finding) {
* Required. The Finding being created. The name and security_marks will be ignored as
* they are both output only fields on this resource.
*/
// const finding = ''
// const finding = {}

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

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

async function createFinding() {
async function callCreateFinding() {
// Construct request
const request = {
parent,
Expand All @@ -55,7 +55,7 @@ function main(parent, findingId, finding) {
console.log(response);
}

createFinding();
callCreateFinding();
// [END securitycenter_v1_generated_SecurityCenter_CreateFinding_async]
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,15 @@ function main(parent, configId, notificationConfig) {
* Required. The notification config being created. The name and the service account
* will be ignored as they are both output only fields on this resource.
*/
// const notificationConfig = ''
// const notificationConfig = {}

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

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

async function createNotificationConfig() {
async function callCreateNotificationConfig() {
// Construct request
const request = {
parent,
Expand All @@ -58,7 +58,7 @@ function main(parent, configId, notificationConfig) {
console.log(response);
}

createNotificationConfig();
callCreateNotificationConfig();
// [END securitycenter_v1_generated_SecurityCenter_CreateNotificationConfig_async]
}

Expand Down
Loading

0 comments on commit d9f4f5c

Please sign in to comment.