Skip to content

Commit 346a822

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

7 files changed

+145
-149
lines changed

packages/google-monitoring-dashboard/linkinator.config.json

+1-1
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-monitoring-dashboard/samples/generated/v1/dashboards_service.create_dashboard.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ function main(parent, dashboard) {
2828
/**
2929
* Required. The initial dashboard specification.
3030
*/
31-
// const dashboard = ''
31+
// const dashboard = {}
3232
/**
3333
* If set, validate the request and preview the review, but do not actually
3434
* save it.
@@ -42,7 +42,7 @@ function main(parent, dashboard) {
4242
// Instantiates a client
4343
const dashboardClient = new DashboardsServiceClient();
4444

45-
async function createDashboard() {
45+
async function callCreateDashboard() {
4646
// Construct request
4747
const request = {
4848
parent,
@@ -54,7 +54,7 @@ function main(parent, dashboard) {
5454
console.log(response);
5555
}
5656

57-
createDashboard();
57+
callCreateDashboard();
5858
// [END monitoring_v1_generated_DashboardsService_CreateDashboard_async]
5959
}
6060

packages/google-monitoring-dashboard/samples/generated/v1/dashboards_service.delete_dashboard.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ function main(name) {
3232
// Instantiates a client
3333
const dashboardClient = new DashboardsServiceClient();
3434

35-
async function deleteDashboard() {
35+
async function callDeleteDashboard() {
3636
// Construct request
3737
const request = {
3838
name,
@@ -43,7 +43,7 @@ function main(name) {
4343
console.log(response);
4444
}
4545

46-
deleteDashboard();
46+
callDeleteDashboard();
4747
// [END monitoring_v1_generated_DashboardsService_DeleteDashboard_async]
4848
}
4949

packages/google-monitoring-dashboard/samples/generated/v1/dashboards_service.get_dashboard.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ function main(name) {
3434
// Instantiates a client
3535
const dashboardClient = new DashboardsServiceClient();
3636

37-
async function getDashboard() {
37+
async function callGetDashboard() {
3838
// Construct request
3939
const request = {
4040
name,
@@ -45,7 +45,7 @@ function main(name) {
4545
console.log(response);
4646
}
4747

48-
getDashboard();
48+
callGetDashboard();
4949
// [END monitoring_v1_generated_DashboardsService_GetDashboard_async]
5050
}
5151

packages/google-monitoring-dashboard/samples/generated/v1/dashboards_service.list_dashboards.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ function main(parent) {
4343
// Instantiates a client
4444
const dashboardClient = new DashboardsServiceClient();
4545

46-
async function listDashboards() {
46+
async function callListDashboards() {
4747
// Construct request
4848
const request = {
4949
parent,
@@ -56,7 +56,7 @@ function main(parent) {
5656
}
5757
}
5858

59-
listDashboards();
59+
callListDashboards();
6060
// [END monitoring_v1_generated_DashboardsService_ListDashboards_async]
6161
}
6262

packages/google-monitoring-dashboard/samples/generated/v1/dashboards_service.update_dashboard.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ function main(dashboard) {
2222
/**
2323
* Required. The dashboard that will replace the existing dashboard.
2424
*/
25-
// const dashboard = ''
25+
// const dashboard = {}
2626
/**
2727
* If set, validate the request and preview the review, but do not actually
2828
* save it.
@@ -36,7 +36,7 @@ function main(dashboard) {
3636
// Instantiates a client
3737
const dashboardClient = new DashboardsServiceClient();
3838

39-
async function updateDashboard() {
39+
async function callUpdateDashboard() {
4040
// Construct request
4141
const request = {
4242
dashboard,
@@ -47,7 +47,7 @@ function main(dashboard) {
4747
console.log(response);
4848
}
4949

50-
updateDashboard();
50+
callUpdateDashboard();
5151
// [END monitoring_v1_generated_DashboardsService_UpdateDashboard_async]
5252
}
5353

0 commit comments

Comments
 (0)