Skip to content

Commit

Permalink
docs(samples): add example tags to generated samples (#14)
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 88b8a27 commit 75cd01f
Show file tree
Hide file tree
Showing 19 changed files with 423 additions and 471 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 @@ -27,7 +27,7 @@ function main() {
/**
* The environment to create.
*/
// const environment = ''
// const environment = {}

// Imports the Service library
const {EnvironmentsClient} =
Expand All @@ -36,7 +36,7 @@ function main() {
// Instantiates a client
const serviceClient = new EnvironmentsClient();

async function createEnvironment() {
async function callCreateEnvironment() {
// Construct request
const request = {};

Expand All @@ -46,7 +46,7 @@ function main() {
console.log(response);
}

createEnvironment();
callCreateEnvironment();
// [END composer_v1_generated_Environments_CreateEnvironment_async]
}

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

async function deleteEnvironment() {
async function callDeleteEnvironment() {
// Construct request
const request = {};

Expand All @@ -42,7 +42,7 @@ function main() {
console.log(response);
}

deleteEnvironment();
callDeleteEnvironment();
// [END composer_v1_generated_Environments_DeleteEnvironment_async]
}

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

async function getEnvironment() {
async function callGetEnvironment() {
// Construct request
const request = {};

Expand All @@ -41,7 +41,7 @@ function main() {
console.log(response);
}

getEnvironment();
callGetEnvironment();
// [END composer_v1_generated_Environments_GetEnvironment_async]
}

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

async function listEnvironments() {
async function callListEnvironments() {
// Construct request
const request = {};

Expand All @@ -51,7 +51,7 @@ function main() {
}
}

listEnvironments();
callListEnvironments();
// [END composer_v1_generated_Environments_ListEnvironments_async]
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ function main() {
* A patch environment. Fields specified by the `updateMask` will be copied
* from the patch environment into the environment under update.
*/
// const environment = ''
// const environment = {}
/**
* Required. A comma-separated list of paths, relative to `Environment`, of
* fields to update.
Expand Down Expand Up @@ -135,7 +135,7 @@ function main() {
* It is an error to provide both this mask and a mask specifying one or
* more individual environment variables.
*/
// const updateMask = ''
// const updateMask = {}

// Imports the Service library
const {EnvironmentsClient} =
Expand All @@ -144,7 +144,7 @@ function main() {
// Instantiates a client
const serviceClient = new EnvironmentsClient();

async function updateEnvironment() {
async function callUpdateEnvironment() {
// Construct request
const request = {};

Expand All @@ -154,7 +154,7 @@ function main() {
console.log(response);
}

updateEnvironment();
callUpdateEnvironment();
// [END composer_v1_generated_Environments_UpdateEnvironment_async]
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ function main() {
// Instantiates a client
const serviceClient = new ImageVersionsClient();

async function listImageVersions() {
async function callListImageVersions() {
// Construct request
const request = {};

Expand All @@ -55,7 +55,7 @@ function main() {
}
}

listImageVersions();
callListImageVersions();
// [END composer_v1_generated_ImageVersions_ListImageVersions_async]
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,15 @@ function main() {
* When used as input, the server also checks if the provided version is
* supported and denies the request for an unsupported version.
* The Cloud Composer portion of the version is a
* [semantic version](https://semver.org) or `latest`. When the patch version
* semantic version (https://semver.org) or `latest`. When the patch version
* is omitted, the current Cloud Composer patch version is selected.
* When `latest` is provided instead of an explicit version number,
* the server replaces `latest` with the current Cloud Composer version
* and stores that version number in the same field.
* The portion of the image version that follows `airflow-` is an
* official Apache Airflow repository
* [release name](https://github.com/apache/incubator-airflow/releases).
* See also [Version List]
* release name (https://github.com/apache/incubator-airflow/releases).
* See also Version List
* (/composer/docs/concepts/versioning/composer-versions).
*/
// const imageVersion = 'abc123'
Expand All @@ -53,7 +53,7 @@ function main() {
// Instantiates a client
const serviceClient = new EnvironmentsClient();

async function checkUpgrade() {
async function callCheckUpgrade() {
// Construct request
const request = {};

Expand All @@ -63,7 +63,7 @@ function main() {
console.log(response);
}

checkUpgrade();
callCheckUpgrade();
// [END composer_v1beta1_generated_Environments_CheckUpgrade_async]
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ function main() {
/**
* The environment to create.
*/
// const environment = ''
// const environment = {}

// Imports the Service library
const {EnvironmentsClient} =
Expand All @@ -36,7 +36,7 @@ function main() {
// Instantiates a client
const serviceClient = new EnvironmentsClient();

async function createEnvironment() {
async function callCreateEnvironment() {
// Construct request
const request = {};

Expand All @@ -46,7 +46,7 @@ function main() {
console.log(response);
}

createEnvironment();
callCreateEnvironment();
// [END composer_v1beta1_generated_Environments_CreateEnvironment_async]
}

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

async function deleteEnvironment() {
async function callDeleteEnvironment() {
// Construct request
const request = {};

Expand All @@ -42,7 +42,7 @@ function main() {
console.log(response);
}

deleteEnvironment();
callDeleteEnvironment();
// [END composer_v1beta1_generated_Environments_DeleteEnvironment_async]
}

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

async function getEnvironment() {
async function callGetEnvironment() {
// Construct request
const request = {};

Expand All @@ -41,7 +41,7 @@ function main() {
console.log(response);
}

getEnvironment();
callGetEnvironment();
// [END composer_v1beta1_generated_Environments_GetEnvironment_async]
}

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

async function listEnvironments() {
async function callListEnvironments() {
// Construct request
const request = {};

Expand All @@ -51,7 +51,7 @@ function main() {
}
}

listEnvironments();
callListEnvironments();
// [END composer_v1beta1_generated_Environments_ListEnvironments_async]
}

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

async function restartWebServer() {
async function callRestartWebServer() {
// Construct request
const request = {};

Expand All @@ -43,7 +43,7 @@ function main() {
console.log(response);
}

restartWebServer();
callRestartWebServer();
// [END composer_v1beta1_generated_Environments_RestartWebServer_async]
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ function main(updateMask) {
* A patch environment. Fields specified by the `updateMask` will be copied
* from the patch environment into the environment under update.
*/
// const environment = ''
// const environment = {}
/**
* Required. A comma-separated list of paths, relative to `Environment`, of
* fields to update.
Expand Down Expand Up @@ -135,8 +135,8 @@ function main(updateMask) {
* new image version. Additionally, the new image version cannot effect
* a version downgrade and must match the current image version's
* Composer major version and Airflow major and minor versions. Consult
* the [Cloud Composer Version
* List](https://cloud.google.com/composer/docs/concepts/versioning/composer-versions)
* the Cloud Composer Version
* List (https://cloud.google.com/composer/docs/concepts/versioning/composer-versions)
* for valid values.
* * `config.softwareConfig.schedulerCount`
* * Horizontally scale the number of schedulers in Airflow. A positive
Expand All @@ -151,7 +151,7 @@ function main(updateMask) {
* * Maintenance window during which Cloud Composer components may be
* under maintenance.
*/
// const updateMask = ''
// const updateMask = {}

// Imports the Service library
const {EnvironmentsClient} =
Expand All @@ -160,7 +160,7 @@ function main(updateMask) {
// Instantiates a client
const serviceClient = new EnvironmentsClient();

async function updateEnvironment() {
async function callUpdateEnvironment() {
// Construct request
const request = {
updateMask,
Expand All @@ -172,7 +172,7 @@ function main(updateMask) {
console.log(response);
}

updateEnvironment();
callUpdateEnvironment();
// [END composer_v1beta1_generated_Environments_UpdateEnvironment_async]
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ function main() {
// Instantiates a client
const serviceClient = new ImageVersionsClient();

async function listImageVersions() {
async function callListImageVersions() {
// Construct request
const request = {};

Expand All @@ -55,7 +55,7 @@ function main() {
}
}

listImageVersions();
callListImageVersions();
// [END composer_v1beta1_generated_ImageVersions_ListImageVersions_async]
}

Expand Down
Loading

0 comments on commit 75cd01f

Please sign in to comment.