Skip to content

Commit

Permalink
docs(samples): add example tags to generated samples (#493)
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 86182eb commit fec2f18
Show file tree
Hide file tree
Showing 15 changed files with 283 additions and 283 deletions.
2 changes: 1 addition & 1 deletion packages/google-cloud-oslogin/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 @@ -32,7 +32,7 @@ function main(name) {
// Instantiates a client
const osloginClient = new OsLoginServiceClient();

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

deletePosixAccount();
callDeletePosixAccount();
// [END oslogin_v1_generated_OsLoginService_DeletePosixAccount_async]
}

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

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

deleteSshPublicKey();
callDeleteSshPublicKey();
// [END oslogin_v1_generated_OsLoginService_DeleteSshPublicKey_async]
}

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

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

getLoginProfile();
callGetLoginProfile();
// [END oslogin_v1_generated_OsLoginService_GetLoginProfile_async]
}

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

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

getSshPublicKey();
callGetSshPublicKey();
// [END oslogin_v1_generated_OsLoginService_GetSshPublicKey_async]
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ function main(parent) {
/**
* Optional. The SSH public key and expiration time.
*/
// const sshPublicKey = ''
// const sshPublicKey = {}
/**
* The project ID of the Google Cloud Platform project.
*/
Expand All @@ -38,7 +38,7 @@ function main(parent) {
// Instantiates a client
const osloginClient = new OsLoginServiceClient();

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

importSshPublicKey();
callImportSshPublicKey();
// [END oslogin_v1_generated_OsLoginService_ImportSshPublicKey_async]
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,19 +28,19 @@ function main(name, sshPublicKey) {
/**
* Required. The SSH public key and expiration time.
*/
// const sshPublicKey = ''
// const sshPublicKey = {}
/**
* Mask to control which fields get updated. Updates all if not present.
*/
// const updateMask = ''
// const updateMask = {}

// Imports the Oslogin library
const {OsLoginServiceClient} = require('@google-cloud/os-login').v1;

// Instantiates a client
const osloginClient = new OsLoginServiceClient();

async function updateSshPublicKey() {
async function callUpdateSshPublicKey() {
// Construct request
const request = {
name,
Expand All @@ -52,7 +52,7 @@ function main(name, sshPublicKey) {
console.log(response);
}

updateSshPublicKey();
callUpdateSshPublicKey();
// [END oslogin_v1_generated_OsLoginService_UpdateSshPublicKey_async]
}

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

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

deletePosixAccount();
callDeletePosixAccount();
// [END oslogin_v1beta_generated_OsLoginService_DeletePosixAccount_async]
}

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

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

deleteSshPublicKey();
callDeleteSshPublicKey();
// [END oslogin_v1beta_generated_OsLoginService_DeleteSshPublicKey_async]
}

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

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

getLoginProfile();
callGetLoginProfile();
// [END oslogin_v1beta_generated_OsLoginService_GetLoginProfile_async]
}

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

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

getSshPublicKey();
callGetSshPublicKey();
// [END oslogin_v1beta_generated_OsLoginService_GetSshPublicKey_async]
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ function main(sshPublicKey) {
/**
* Required. The SSH public key and expiration time.
*/
// const sshPublicKey = ''
// const sshPublicKey = {}
/**
* The project ID of the Google Cloud Platform project.
*/
Expand All @@ -38,7 +38,7 @@ function main(sshPublicKey) {
// Instantiates a client
const osloginClient = new OsLoginServiceClient();

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

importSshPublicKey();
callImportSshPublicKey();
// [END oslogin_v1beta_generated_OsLoginService_ImportSshPublicKey_async]
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,19 +28,19 @@ function main(name, sshPublicKey) {
/**
* Required. The SSH public key and expiration time.
*/
// const sshPublicKey = ''
// const sshPublicKey = {}
/**
* Mask to control which fields get updated. Updates all if not present.
*/
// const updateMask = ''
// const updateMask = {}

// Imports the Oslogin library
const {OsLoginServiceClient} = require('@google-cloud/os-login').v1beta;

// Instantiates a client
const osloginClient = new OsLoginServiceClient();

async function updateSshPublicKey() {
async function callUpdateSshPublicKey() {
// Construct request
const request = {
name,
Expand All @@ -52,7 +52,7 @@ function main(name, sshPublicKey) {
console.log(response);
}

updateSshPublicKey();
callUpdateSshPublicKey();
// [END oslogin_v1beta_generated_OsLoginService_UpdateSshPublicKey_async]
}

Expand Down
Loading

0 comments on commit fec2f18

Please sign in to comment.