Skip to content

Commit

Permalink
docs(samples): add example tags to generated samples (#381)
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] committed Nov 10, 2021
1 parent 303f1d1 commit 6660b27
Show file tree
Hide file tree
Showing 68 changed files with 1,896 additions and 1,948 deletions.
2 changes: 1 addition & 1 deletion packages/google-cloud-talent/linkinator.config.json
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 @@ -28,15 +28,15 @@ function main(parent, company) {
/**
* Required. The company to be created.
*/
// const company = ''
// const company = {}

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

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

async function createCompany() {
async function callCreateCompany() {
// Construct request
const request = {
parent,
Expand All @@ -48,7 +48,7 @@ function main(parent, company) {
console.log(response);
}

createCompany();
callCreateCompany();
// [END jobs_v4_generated_CompanyService_CreateCompany_async]
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ function main(name) {
// Instantiates a client
const talentClient = new CompanyServiceClient();

async function deleteCompany() {
async function callDeleteCompany() {
// Construct request
const request = {
name,
Expand All @@ -44,7 +44,7 @@ function main(name) {
console.log(response);
}

deleteCompany();
callDeleteCompany();
// [END jobs_v4_generated_CompanyService_DeleteCompany_async]
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ function main(name) {
// Instantiates a client
const talentClient = new CompanyServiceClient();

async function getCompany() {
async function callGetCompany() {
// Construct request
const request = {
name,
Expand All @@ -44,7 +44,7 @@ function main(name) {
console.log(response);
}

getCompany();
callGetCompany();
// [END jobs_v4_generated_CompanyService_GetCompany_async]
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ function main(parent) {
/**
* Set to true if the companies requested must have open jobs.
* Defaults to false.
* If true, at most [page_size][google.cloud.talent.v4.ListCompaniesRequest.page_size] of companies are fetched, among which
* If true, at most page_size google.cloud.talent.v4.ListCompaniesRequest.page_size of companies are fetched, among which
* only those with open jobs are returned.
*/
// const requireOpenJobs = true
Expand All @@ -48,7 +48,7 @@ function main(parent) {
// Instantiates a client
const talentClient = new CompanyServiceClient();

async function listCompanies() {
async function callListCompanies() {
// Construct request
const request = {
parent,
Expand All @@ -61,7 +61,7 @@ function main(parent) {
}
}

listCompanies();
callListCompanies();
// [END jobs_v4_generated_CompanyService_ListCompanies_async]
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,23 +22,23 @@ function main(company) {
/**
* Required. The company resource to replace the current resource in the system.
*/
// const company = ''
// const company = {}
/**
* Strongly recommended for the best service experience.
* If [update_mask][google.cloud.talent.v4.UpdateCompanyRequest.update_mask] is provided, only the specified fields in
* [company][google.cloud.talent.v4.UpdateCompanyRequest.company] are updated. Otherwise all the fields are updated.
* If update_mask google.cloud.talent.v4.UpdateCompanyRequest.update_mask is provided, only the specified fields in
* company google.cloud.talent.v4.UpdateCompanyRequest.company are updated. Otherwise all the fields are updated.
* A field mask to specify the company fields to be updated. Only
* top level fields of [Company][google.cloud.talent.v4.Company] are supported.
* top level fields of Company google.cloud.talent.v4.Company are supported.
*/
// const updateMask = ''
// const updateMask = {}

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

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

async function updateCompany() {
async function callUpdateCompany() {
// Construct request
const request = {
company,
Expand All @@ -49,7 +49,7 @@ function main(company) {
console.log(response);
}

updateCompany();
callUpdateCompany();
// [END jobs_v4_generated_CompanyService_UpdateCompany_async]
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ function main(tenant, query, pageSize) {
* The list of languages of the query. This is
* the BCP-47 language code, such as "en-US" or "sr-Latn".
* For more information, see
* [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47).
* Tags for Identifying Languages (https://tools.ietf.org/html/bcp47).
* The maximum number of allowed characters is 255.
*/
// const languageCodes = 'abc123'
Expand All @@ -51,21 +51,21 @@ function main(tenant, query, pageSize) {
*/
// const company = 'abc123'
/**
* The scope of the completion. The defaults is [CompletionScope.PUBLIC][google.cloud.talent.v4.CompleteQueryRequest.CompletionScope.PUBLIC].
* The scope of the completion. The defaults is CompletionScope.PUBLIC google.cloud.talent.v4.CompleteQueryRequest.CompletionScope.PUBLIC.
*/
// const scope = ''
// const scope = {}
/**
* The completion topic. The default is [CompletionType.COMBINED][google.cloud.talent.v4.CompleteQueryRequest.CompletionType.COMBINED].
* The completion topic. The default is CompletionType.COMBINED google.cloud.talent.v4.CompleteQueryRequest.CompletionType.COMBINED.
*/
// const type = ''
// const type = {}

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

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

async function completeQuery() {
async function callCompleteQuery() {
// Construct request
const request = {
tenant,
Expand All @@ -78,7 +78,7 @@ function main(tenant, query, pageSize) {
console.log(response);
}

completeQuery();
callCompleteQuery();
// [END jobs_v4_generated_Completion_CompleteQuery_async]
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,15 @@ function main(parent, clientEvent) {
* Required. Events issued when end user interacts with customer's application that
* uses Cloud Talent Solution.
*/
// const clientEvent = ''
// const clientEvent = {}

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

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

async function createClientEvent() {
async function callCreateClientEvent() {
// Construct request
const request = {
parent,
Expand All @@ -49,7 +49,7 @@ function main(parent, clientEvent) {
console.log(response);
}

createClientEvent();
callCreateClientEvent();
// [END jobs_v4_generated_EventService_CreateClientEvent_async]
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ function main(parent, jobs) {
// Instantiates a client
const talentClient = new JobServiceClient();

async function batchCreateJobs() {
async function callBatchCreateJobs() {
// Construct request
const request = {
parent,
Expand All @@ -50,7 +50,7 @@ function main(parent, jobs) {
console.log(response);
}

batchCreateJobs();
callBatchCreateJobs();
// [END jobs_v4_generated_JobService_BatchCreateJobs_async]
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ function main(parent) {
// Instantiates a client
const talentClient = new JobServiceClient();

async function batchDeleteJobs() {
async function callBatchDeleteJobs() {
// Construct request
const request = {
parent,
Expand All @@ -52,7 +52,7 @@ function main(parent) {
console.log(response);
}

batchDeleteJobs();
callBatchDeleteJobs();
// [END jobs_v4_generated_JobService_BatchDeleteJobs_async]
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,25 +33,25 @@ function main(parent, jobs) {
/**
* Strongly recommended for the best service experience. Be aware that it will
* also increase latency when checking the status of a batch operation.
* If [update_mask][google.cloud.talent.v4.BatchUpdateJobsRequest.update_mask] is provided, only the specified fields in
* [Job][google.cloud.talent.v4.Job] are updated. Otherwise all the fields are updated.
* If update_mask google.cloud.talent.v4.BatchUpdateJobsRequest.update_mask is provided, only the specified fields in
* Job google.cloud.talent.v4.Job are updated. Otherwise all the fields are updated.
* A field mask to restrict the fields that are updated. Only
* top level fields of [Job][google.cloud.talent.v4.Job] are supported.
* If [update_mask][google.cloud.talent.v4.BatchUpdateJobsRequest.update_mask] is provided, The [Job][google.cloud.talent.v4.Job] inside
* [JobResult][JobOperationResult.JobResult]
* top level fields of Job google.cloud.talent.v4.Job are supported.
* If update_mask google.cloud.talent.v4.BatchUpdateJobsRequest.update_mask is provided, The Job google.cloud.talent.v4.Job inside
* JobResult JobOperationResult.JobResult
* will only contains fields that is updated, plus the Id of the Job.
* Otherwise, [Job][google.cloud.talent.v4.Job] will include all fields, which can yield a very
* Otherwise, Job google.cloud.talent.v4.Job will include all fields, which can yield a very
* large response.
*/
// const updateMask = ''
// const updateMask = {}

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

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

async function batchUpdateJobs() {
async function callBatchUpdateJobs() {
// Construct request
const request = {
parent,
Expand All @@ -64,7 +64,7 @@ function main(parent, jobs) {
console.log(response);
}

batchUpdateJobs();
callBatchUpdateJobs();
// [END jobs_v4_generated_JobService_BatchUpdateJobs_async]
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,15 @@ function main(parent, job) {
/**
* Required. The Job to be created.
*/
// const job = ''
// const job = {}

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

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

async function createJob() {
async function callCreateJob() {
// Construct request
const request = {
parent,
Expand All @@ -48,7 +48,7 @@ function main(parent, job) {
console.log(response);
}

createJob();
callCreateJob();
// [END jobs_v4_generated_JobService_CreateJob_async]
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ function main(name) {
// Instantiates a client
const talentClient = new JobServiceClient();

async function deleteJob() {
async function callDeleteJob() {
// Construct request
const request = {
name,
Expand All @@ -44,7 +44,7 @@ function main(name) {
console.log(response);
}

deleteJob();
callDeleteJob();
// [END jobs_v4_generated_JobService_DeleteJob_async]
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ function main(name) {
// Instantiates a client
const talentClient = new JobServiceClient();

async function getJob() {
async function callGetJob() {
// Construct request
const request = {
name,
Expand All @@ -44,7 +44,7 @@ function main(name) {
console.log(response);
}

getJob();
callGetJob();
// [END jobs_v4_generated_JobService_GetJob_async]
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,25 +51,25 @@ function main(parent, filter) {
// const pageToken = 'abc123'
/**
* The maximum number of jobs to be returned per page of results.
* 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
* 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
* page size is 1000. Otherwise, the maximum allowed page size is 100.
* Default is 100 if empty or a number < 1 is specified.
*/
// const pageSize = 1234
/**
* The desired job attributes returned for jobs in the
* search response. Defaults to [JobView.JOB_VIEW_FULL][google.cloud.talent.v4.JobView.JOB_VIEW_FULL] if no value is
* search response. Defaults to JobView.JOB_VIEW_FULL google.cloud.talent.v4.JobView.JOB_VIEW_FULL if no value is
* specified.
*/
// const jobView = ''
// const jobView = {}

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

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

async function listJobs() {
async function callListJobs() {
// Construct request
const request = {
parent,
Expand All @@ -83,7 +83,7 @@ function main(parent, filter) {
}
}

listJobs();
callListJobs();
// [END jobs_v4_generated_JobService_ListJobs_async]
}

Expand Down
Loading

0 comments on commit 6660b27

Please sign in to comment.