Skip to content

Commit 6660b27

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

File tree

68 files changed

+1896
-1948
lines changed

Some content is hidden

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

68 files changed

+1896
-1948
lines changed

packages/google-cloud-talent/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-talent/samples/generated/v4/company_service.create_company.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,15 @@ function main(parent, company) {
2828
/**
2929
* Required. The company to be created.
3030
*/
31-
// const company = ''
31+
// const company = {}
3232

3333
// Imports the Talent library
3434
const {CompanyServiceClient} = require('@google-cloud/talent').v4;
3535

3636
// Instantiates a client
3737
const talentClient = new CompanyServiceClient();
3838

39-
async function createCompany() {
39+
async function callCreateCompany() {
4040
// Construct request
4141
const request = {
4242
parent,
@@ -48,7 +48,7 @@ function main(parent, company) {
4848
console.log(response);
4949
}
5050

51-
createCompany();
51+
callCreateCompany();
5252
// [END jobs_v4_generated_CompanyService_CreateCompany_async]
5353
}
5454

packages/google-cloud-talent/samples/generated/v4/company_service.delete_company.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ function main(name) {
3333
// Instantiates a client
3434
const talentClient = new CompanyServiceClient();
3535

36-
async function deleteCompany() {
36+
async function callDeleteCompany() {
3737
// Construct request
3838
const request = {
3939
name,
@@ -44,7 +44,7 @@ function main(name) {
4444
console.log(response);
4545
}
4646

47-
deleteCompany();
47+
callDeleteCompany();
4848
// [END jobs_v4_generated_CompanyService_DeleteCompany_async]
4949
}
5050

packages/google-cloud-talent/samples/generated/v4/company_service.get_company.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ function main(name) {
3333
// Instantiates a client
3434
const talentClient = new CompanyServiceClient();
3535

36-
async function getCompany() {
36+
async function callGetCompany() {
3737
// Construct request
3838
const request = {
3939
name,
@@ -44,7 +44,7 @@ function main(name) {
4444
console.log(response);
4545
}
4646

47-
getCompany();
47+
callGetCompany();
4848
// [END jobs_v4_generated_CompanyService_GetCompany_async]
4949
}
5050

packages/google-cloud-talent/samples/generated/v4/company_service.list_companies.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ function main(parent) {
3737
/**
3838
* Set to true if the companies requested must have open jobs.
3939
* Defaults to false.
40-
* If true, at most [page_size][google.cloud.talent.v4.ListCompaniesRequest.page_size] of companies are fetched, among which
40+
* If true, at most page_size google.cloud.talent.v4.ListCompaniesRequest.page_size of companies are fetched, among which
4141
* only those with open jobs are returned.
4242
*/
4343
// const requireOpenJobs = true
@@ -48,7 +48,7 @@ function main(parent) {
4848
// Instantiates a client
4949
const talentClient = new CompanyServiceClient();
5050

51-
async function listCompanies() {
51+
async function callListCompanies() {
5252
// Construct request
5353
const request = {
5454
parent,
@@ -61,7 +61,7 @@ function main(parent) {
6161
}
6262
}
6363

64-
listCompanies();
64+
callListCompanies();
6565
// [END jobs_v4_generated_CompanyService_ListCompanies_async]
6666
}
6767

packages/google-cloud-talent/samples/generated/v4/company_service.update_company.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,23 +22,23 @@ function main(company) {
2222
/**
2323
* Required. The company resource to replace the current resource in the system.
2424
*/
25-
// const company = ''
25+
// const company = {}
2626
/**
2727
* Strongly recommended for the best service experience.
28-
* If [update_mask][google.cloud.talent.v4.UpdateCompanyRequest.update_mask] is provided, only the specified fields in
29-
* [company][google.cloud.talent.v4.UpdateCompanyRequest.company] are updated. Otherwise all the fields are updated.
28+
* If update_mask google.cloud.talent.v4.UpdateCompanyRequest.update_mask is provided, only the specified fields in
29+
* company google.cloud.talent.v4.UpdateCompanyRequest.company are updated. Otherwise all the fields are updated.
3030
* A field mask to specify the company fields to be updated. Only
31-
* top level fields of [Company][google.cloud.talent.v4.Company] are supported.
31+
* top level fields of Company google.cloud.talent.v4.Company are supported.
3232
*/
33-
// const updateMask = ''
33+
// const updateMask = {}
3434

3535
// Imports the Talent library
3636
const {CompanyServiceClient} = require('@google-cloud/talent').v4;
3737

3838
// Instantiates a client
3939
const talentClient = new CompanyServiceClient();
4040

41-
async function updateCompany() {
41+
async function callUpdateCompany() {
4242
// Construct request
4343
const request = {
4444
company,
@@ -49,7 +49,7 @@ function main(company) {
4949
console.log(response);
5050
}
5151

52-
updateCompany();
52+
callUpdateCompany();
5353
// [END jobs_v4_generated_CompanyService_UpdateCompany_async]
5454
}
5555

packages/google-cloud-talent/samples/generated/v4/completion.complete_query.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ function main(tenant, query, pageSize) {
3434
* The list of languages of the query. This is
3535
* the BCP-47 language code, such as "en-US" or "sr-Latn".
3636
* For more information, see
37-
* [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47).
37+
* Tags for Identifying Languages (https://tools.ietf.org/html/bcp47).
3838
* The maximum number of allowed characters is 255.
3939
*/
4040
// const languageCodes = 'abc123'
@@ -51,21 +51,21 @@ function main(tenant, query, pageSize) {
5151
*/
5252
// const company = 'abc123'
5353
/**
54-
* The scope of the completion. The defaults is [CompletionScope.PUBLIC][google.cloud.talent.v4.CompleteQueryRequest.CompletionScope.PUBLIC].
54+
* The scope of the completion. The defaults is CompletionScope.PUBLIC google.cloud.talent.v4.CompleteQueryRequest.CompletionScope.PUBLIC.
5555
*/
56-
// const scope = ''
56+
// const scope = {}
5757
/**
58-
* The completion topic. The default is [CompletionType.COMBINED][google.cloud.talent.v4.CompleteQueryRequest.CompletionType.COMBINED].
58+
* The completion topic. The default is CompletionType.COMBINED google.cloud.talent.v4.CompleteQueryRequest.CompletionType.COMBINED.
5959
*/
60-
// const type = ''
60+
// const type = {}
6161

6262
// Imports the Talent library
6363
const {CompletionClient} = require('@google-cloud/talent').v4;
6464

6565
// Instantiates a client
6666
const talentClient = new CompletionClient();
6767

68-
async function completeQuery() {
68+
async function callCompleteQuery() {
6969
// Construct request
7070
const request = {
7171
tenant,
@@ -78,7 +78,7 @@ function main(tenant, query, pageSize) {
7878
console.log(response);
7979
}
8080

81-
completeQuery();
81+
callCompleteQuery();
8282
// [END jobs_v4_generated_Completion_CompleteQuery_async]
8383
}
8484

packages/google-cloud-talent/samples/generated/v4/event_service.create_client_event.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,15 +29,15 @@ function main(parent, clientEvent) {
2929
* Required. Events issued when end user interacts with customer's application that
3030
* uses Cloud Talent Solution.
3131
*/
32-
// const clientEvent = ''
32+
// const clientEvent = {}
3333

3434
// Imports the Talent library
3535
const {EventServiceClient} = require('@google-cloud/talent').v4;
3636

3737
// Instantiates a client
3838
const talentClient = new EventServiceClient();
3939

40-
async function createClientEvent() {
40+
async function callCreateClientEvent() {
4141
// Construct request
4242
const request = {
4343
parent,
@@ -49,7 +49,7 @@ function main(parent, clientEvent) {
4949
console.log(response);
5050
}
5151

52-
createClientEvent();
52+
callCreateClientEvent();
5353
// [END jobs_v4_generated_EventService_CreateClientEvent_async]
5454
}
5555

packages/google-cloud-talent/samples/generated/v4/job_service.batch_create_jobs.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ function main(parent, jobs) {
3737
// Instantiates a client
3838
const talentClient = new JobServiceClient();
3939

40-
async function batchCreateJobs() {
40+
async function callBatchCreateJobs() {
4141
// Construct request
4242
const request = {
4343
parent,
@@ -50,7 +50,7 @@ function main(parent, jobs) {
5050
console.log(response);
5151
}
5252

53-
batchCreateJobs();
53+
callBatchCreateJobs();
5454
// [END jobs_v4_generated_JobService_BatchCreateJobs_async]
5555
}
5656

packages/google-cloud-talent/samples/generated/v4/job_service.batch_delete_jobs.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ function main(parent) {
4040
// Instantiates a client
4141
const talentClient = new JobServiceClient();
4242

43-
async function batchDeleteJobs() {
43+
async function callBatchDeleteJobs() {
4444
// Construct request
4545
const request = {
4646
parent,
@@ -52,7 +52,7 @@ function main(parent) {
5252
console.log(response);
5353
}
5454

55-
batchDeleteJobs();
55+
callBatchDeleteJobs();
5656
// [END jobs_v4_generated_JobService_BatchDeleteJobs_async]
5757
}
5858

packages/google-cloud-talent/samples/generated/v4/job_service.batch_update_jobs.js

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -33,25 +33,25 @@ function main(parent, jobs) {
3333
/**
3434
* Strongly recommended for the best service experience. Be aware that it will
3535
* also increase latency when checking the status of a batch operation.
36-
* If [update_mask][google.cloud.talent.v4.BatchUpdateJobsRequest.update_mask] is provided, only the specified fields in
37-
* [Job][google.cloud.talent.v4.Job] are updated. Otherwise all the fields are updated.
36+
* If update_mask google.cloud.talent.v4.BatchUpdateJobsRequest.update_mask is provided, only the specified fields in
37+
* Job google.cloud.talent.v4.Job are updated. Otherwise all the fields are updated.
3838
* A field mask to restrict the fields that are updated. Only
39-
* top level fields of [Job][google.cloud.talent.v4.Job] are supported.
40-
* If [update_mask][google.cloud.talent.v4.BatchUpdateJobsRequest.update_mask] is provided, The [Job][google.cloud.talent.v4.Job] inside
41-
* [JobResult][JobOperationResult.JobResult]
39+
* top level fields of Job google.cloud.talent.v4.Job are supported.
40+
* If update_mask google.cloud.talent.v4.BatchUpdateJobsRequest.update_mask is provided, The Job google.cloud.talent.v4.Job inside
41+
* JobResult JobOperationResult.JobResult
4242
* will only contains fields that is updated, plus the Id of the Job.
43-
* Otherwise, [Job][google.cloud.talent.v4.Job] will include all fields, which can yield a very
43+
* Otherwise, Job google.cloud.talent.v4.Job will include all fields, which can yield a very
4444
* large response.
4545
*/
46-
// const updateMask = ''
46+
// const updateMask = {}
4747

4848
// Imports the Talent library
4949
const {JobServiceClient} = require('@google-cloud/talent').v4;
5050

5151
// Instantiates a client
5252
const talentClient = new JobServiceClient();
5353

54-
async function batchUpdateJobs() {
54+
async function callBatchUpdateJobs() {
5555
// Construct request
5656
const request = {
5757
parent,
@@ -64,7 +64,7 @@ function main(parent, jobs) {
6464
console.log(response);
6565
}
6666

67-
batchUpdateJobs();
67+
callBatchUpdateJobs();
6868
// [END jobs_v4_generated_JobService_BatchUpdateJobs_async]
6969
}
7070

packages/google-cloud-talent/samples/generated/v4/job_service.create_job.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,15 @@ function main(parent, job) {
2828
/**
2929
* Required. The Job to be created.
3030
*/
31-
// const job = ''
31+
// const job = {}
3232

3333
// Imports the Talent library
3434
const {JobServiceClient} = require('@google-cloud/talent').v4;
3535

3636
// Instantiates a client
3737
const talentClient = new JobServiceClient();
3838

39-
async function createJob() {
39+
async function callCreateJob() {
4040
// Construct request
4141
const request = {
4242
parent,
@@ -48,7 +48,7 @@ function main(parent, job) {
4848
console.log(response);
4949
}
5050

51-
createJob();
51+
callCreateJob();
5252
// [END jobs_v4_generated_JobService_CreateJob_async]
5353
}
5454

packages/google-cloud-talent/samples/generated/v4/job_service.delete_job.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ function main(name) {
3333
// Instantiates a client
3434
const talentClient = new JobServiceClient();
3535

36-
async function deleteJob() {
36+
async function callDeleteJob() {
3737
// Construct request
3838
const request = {
3939
name,
@@ -44,7 +44,7 @@ function main(name) {
4444
console.log(response);
4545
}
4646

47-
deleteJob();
47+
callDeleteJob();
4848
// [END jobs_v4_generated_JobService_DeleteJob_async]
4949
}
5050

packages/google-cloud-talent/samples/generated/v4/job_service.get_job.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ function main(name) {
3333
// Instantiates a client
3434
const talentClient = new JobServiceClient();
3535

36-
async function getJob() {
36+
async function callGetJob() {
3737
// Construct request
3838
const request = {
3939
name,
@@ -44,7 +44,7 @@ function main(name) {
4444
console.log(response);
4545
}
4646

47-
getJob();
47+
callGetJob();
4848
// [END jobs_v4_generated_JobService_GetJob_async]
4949
}
5050

packages/google-cloud-talent/samples/generated/v4/job_service.list_jobs.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,25 +51,25 @@ function main(parent, filter) {
5151
// const pageToken = 'abc123'
5252
/**
5353
* The maximum number of jobs to be returned per page of results.
54-
* If [job_view][google.cloud.talent.v4.ListJobsRequest.job_view] is set to [JobView.JOB_VIEW_ID_ONLY][google.cloud.talent.v4.JobView.JOB_VIEW_ID_ONLY], the maximum allowed
54+
* If job_view google.cloud.talent.v4.ListJobsRequest.job_view is set to JobView.JOB_VIEW_ID_ONLY google.cloud.talent.v4.JobView.JOB_VIEW_ID_ONLY, the maximum allowed
5555
* page size is 1000. Otherwise, the maximum allowed page size is 100.
5656
* Default is 100 if empty or a number < 1 is specified.
5757
*/
5858
// const pageSize = 1234
5959
/**
6060
* The desired job attributes returned for jobs in the
61-
* search response. Defaults to [JobView.JOB_VIEW_FULL][google.cloud.talent.v4.JobView.JOB_VIEW_FULL] if no value is
61+
* search response. Defaults to JobView.JOB_VIEW_FULL google.cloud.talent.v4.JobView.JOB_VIEW_FULL if no value is
6262
* specified.
6363
*/
64-
// const jobView = ''
64+
// const jobView = {}
6565

6666
// Imports the Talent library
6767
const {JobServiceClient} = require('@google-cloud/talent').v4;
6868

6969
// Instantiates a client
7070
const talentClient = new JobServiceClient();
7171

72-
async function listJobs() {
72+
async function callListJobs() {
7373
// Construct request
7474
const request = {
7575
parent,
@@ -83,7 +83,7 @@ function main(parent, filter) {
8383
}
8484
}
8585

86-
listJobs();
86+
callListJobs();
8787
// [END jobs_v4_generated_JobService_ListJobs_async]
8888
}
8989

0 commit comments

Comments
 (0)