From f27e5b8be2373921f81be7d5490f81eb4b28f9ff Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Mon, 24 Feb 2025 09:30:13 +0100 Subject: [PATCH] chore: fix typos discovered by codespell --- CHANGELOG.md | 2 +- synthtool/gcp/common.py | 2 +- synthtool/gcp/gapic_bazel.py | 2 +- synthtool/gcp/gapic_generator.py | 2 +- synthtool/gcp/templates/python_samples/README.md | 4 ++-- synthtool/languages/python_mono_repo.py | 2 +- synthtool/protos/README.md | 2 +- synthtool/py_templating_instructions/README.md | 2 +- synthtool/sources/templates.py | 2 +- .../v2/protos/google/privacy/dlp/v2/dlp.proto | 4 ++-- .../owl-bot-staging/v2/src/v2/dlp_service_client.ts | 4 ++-- .../protos/google/privacy/dlp/v2/dlp.proto | 4 ++-- .../nodejs-dlp-with-staging/src/v2/dlp_service_client.ts | 4 ++-- .../nodejs-dlp/protos/google/privacy/dlp/v2/dlp.proto | 4 ++-- tests/fixtures/nodejs-dlp/src/v2/dlp_service_client.ts | 4 ++-- .../packages/dlp/esm/src/v2/dlp_service_client.ts | 4 ++-- .../generated/v1/dataproc_metastore.create_backup.js | 2 +- .../dlp/v2/protos/google/privacy/dlp/v2/dlp.proto | 4 ++-- .../owl-bot-staging/dlp/v2/src/v2/dlp_service_client.ts | 4 ++-- .../packages/dlp/protos/google/privacy/dlp/v2/dlp.proto | 4 ++-- .../packages/dlp/src/v2/dlp_service_client.ts | 4 ++-- tests/fixtures/php/php_asset/expected/Asset/owlbot.py | 2 +- .../Asset/samples/V1/AssetServiceClient/analyze_move.php | 2 +- .../expected/Asset/src/V1/AnalyzeMoveRequest.php | 8 ++++---- .../expected/Asset/src/V1/AssetServiceGrpcClient.php | 2 +- .../Asset/src/V1/Gapic/AssetServiceGapicClient.php | 2 +- .../BigQueryDestination/PartitionKey.php | 2 +- .../expected/Asset/src/V1/PartitionSpec/PartitionKey.php | 4 ++-- tests/fixtures/php/php_asset/src/Asset/owlbot.py | 2 +- .../Asset/samples/V1/AssetServiceClient/analyze_move.php | 2 +- .../php/php_asset/src/Asset/src/V1/AnalyzeMoveRequest.php | 8 ++++---- .../php_asset/src/Asset/src/V1/AssetServiceGrpcClient.php | 2 +- .../src/Asset/src/V1/Gapic/AssetServiceGapicClient.php | 2 +- .../BigQueryDestination/PartitionKey.php | 2 +- .../src/Asset/src/V1/PartitionSpec/PartitionKey.php | 4 ++-- .../src/Google/Cloud/Asset/V1/AnalyzeMoveRequest.php | 8 ++++---- .../src/Google/Cloud/Asset/V1/AssetServiceGrpcClient.php | 2 +- .../BigQueryDestination/PartitionKey.php | 2 +- .../Google/Cloud/Asset/V1/PartitionSpec/PartitionKey.php | 4 ++-- .../V1/samples/V1/AssetServiceClient/analyze_move.php | 2 +- .../Asset/V1/src/V1/Gapic/AssetServiceGapicClient.php | 2 +- tests/test_metadata.py | 2 +- 42 files changed, 66 insertions(+), 66 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9f9709af9..024ac77c1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -279,7 +279,7 @@ - Prefer https URLs for cloning from GitHub, add SYNTHTOOL_USE_SSH to use ssh ([#120](https://github.com/googleapis/synthtool/pull/120)) - Drop the PR template for nodejs ([#117](https://github.com/googleapis/synthtool/pull/117)) - Update github issue templates ([#116](https://github.com/googleapis/synthtool/pull/116)) -- Incude build/ in eslint ignore ([#115](https://github.com/googleapis/synthtool/pull/115)) +- Include build/ in eslint ignore ([#115](https://github.com/googleapis/synthtool/pull/115)) - feat: make npm link work for system tests ([#114](https://github.com/googleapis/synthtool/pull/114)) - fix: update nodejs issue templates ([#112](https://github.com/googleapis/synthtool/pull/112)) - feat(node): add node11 test env ([#110](https://github.com/googleapis/synthtool/pull/110)) diff --git a/synthtool/gcp/common.py b/synthtool/gcp/common.py index f104d0c93..471911b2f 100644 --- a/synthtool/gcp/common.py +++ b/synthtool/gcp/common.py @@ -530,7 +530,7 @@ def _load_repo_metadata( * `api_id` - The API ID associated with the service. Fully qualified identifier use to enable a service in the cloud platform (e.g. monitoring.googleapis.com) * `requires_billing` - Whether or not the API requires billing to be configured on the - customer's acocunt + customer's account Args: metadata_file (str, optional): Path to the metadata json file diff --git a/synthtool/gcp/gapic_bazel.py b/synthtool/gcp/gapic_bazel.py index 9e6ad58a9..83d00415a 100644 --- a/synthtool/gcp/gapic_bazel.py +++ b/synthtool/gcp/gapic_bazel.py @@ -223,7 +223,7 @@ def _generate_code( if not proto_output_path: proto_output_path = output_dir / "protos" if language == "python": - # place protos alongsize the *_pb2.py files + # place protos alongside the *_pb2.py files proto_output_path = ( output_dir / f"google/cloud/{service}_{version}/proto" ) diff --git a/synthtool/gcp/gapic_generator.py b/synthtool/gcp/gapic_generator.py index 4776e661f..77574f693 100644 --- a/synthtool/gcp/gapic_generator.py +++ b/synthtool/gcp/gapic_generator.py @@ -158,7 +158,7 @@ def _generate_code( # appropriate place. proto_output_path = genfiles / "protos" if language == "python": - # place protos alongsize the *_pb2.py files + # place protos alongside the *_pb2.py files proto_output_path = genfiles / f"google/cloud/{service}_{version}/proto" os.makedirs(proto_output_path, exist_ok=True) diff --git a/synthtool/gcp/templates/python_samples/README.md b/synthtool/gcp/templates/python_samples/README.md index 570259ebb..565638e6f 100644 --- a/synthtool/gcp/templates/python_samples/README.md +++ b/synthtool/gcp/templates/python_samples/README.md @@ -3,7 +3,7 @@ ## Python Samples for {{ metadata['repo']['name_pretty'] }} -This directory contains samples for {{ metadata['repo']['name_pretty'] }}, which may be used as a refererence for how to use this product. {% if metadata['repo']['custom_content'] is defined %} +This directory contains samples for {{ metadata['repo']['name_pretty'] }}, which may be used as a reference for how to use this product. {% if metadata['repo']['custom_content'] is defined %} {{ metadata['repo']['custom_content']}}{% endif %}{% if metadata['repo']['samples']|length %} Samples, quickstarts, and other documentation are available at cloud.google.com. {% for sample in range(metadata['repo']['samples']|length) %} @@ -18,7 +18,7 @@ Samples, quickstarts, and other documentation are available at str: def slugify(input: str) -> str: - """Converts Foo Bar into foo-bar, for use wih anchor links.""" + """Converts Foo Bar into foo-bar, for use with anchor links.""" input = re.sub(r"([() ]+)", "-", input.lower()) return re.sub(r"-$", "", input) diff --git a/tests/fixtures/nodejs-dlp-with-staging/owl-bot-staging/v2/protos/google/privacy/dlp/v2/dlp.proto b/tests/fixtures/nodejs-dlp-with-staging/owl-bot-staging/v2/protos/google/privacy/dlp/v2/dlp.proto index 3fb0c2193..6da7f4659 100644 --- a/tests/fixtures/nodejs-dlp-with-staging/owl-bot-staging/v2/protos/google/privacy/dlp/v2/dlp.proto +++ b/tests/fixtures/nodejs-dlp-with-staging/owl-bot-staging/v2/protos/google/privacy/dlp/v2/dlp.proto @@ -146,7 +146,7 @@ service DlpService { option (google.api.method_signature) = "parent"; } - // Creates an InspectTemplate for re-using frequently used configuration + // Creates an InspectTemplate for reusing frequently used configuration // for inspecting content, images, and storage. // See https://cloud.google.com/dlp/docs/creating-templates to learn more. rpc CreateInspectTemplate(CreateInspectTemplateRequest) returns (InspectTemplate) { @@ -245,7 +245,7 @@ service DlpService { option (google.api.method_signature) = "name"; } - // Creates a DeidentifyTemplate for re-using frequently used configuration + // Creates a DeidentifyTemplate for reusing frequently used configuration // for de-identifying content, images, and storage. // See https://cloud.google.com/dlp/docs/creating-templates-deid to learn // more. diff --git a/tests/fixtures/nodejs-dlp-with-staging/owl-bot-staging/v2/src/v2/dlp_service_client.ts b/tests/fixtures/nodejs-dlp-with-staging/owl-bot-staging/v2/src/v2/dlp_service_client.ts index 43fc2bba1..096975cef 100644 --- a/tests/fixtures/nodejs-dlp-with-staging/owl-bot-staging/v2/src/v2/dlp_service_client.ts +++ b/tests/fixtures/nodejs-dlp-with-staging/owl-bot-staging/v2/src/v2/dlp_service_client.ts @@ -917,7 +917,7 @@ export class DlpServiceClient { protos.google.privacy.dlp.v2.ICreateInspectTemplateRequest|null|undefined, {}|null|undefined>): void; /** - * Creates an InspectTemplate for re-using frequently used configuration + * Creates an InspectTemplate for reusing frequently used configuration * for inspecting content, images, and storage. * See https://cloud.google.com/dlp/docs/creating-templates to learn more. * @@ -1244,7 +1244,7 @@ export class DlpServiceClient { protos.google.privacy.dlp.v2.ICreateDeidentifyTemplateRequest|null|undefined, {}|null|undefined>): void; /** - * Creates a DeidentifyTemplate for re-using frequently used configuration + * Creates a DeidentifyTemplate for reusing frequently used configuration * for de-identifying content, images, and storage. * See https://cloud.google.com/dlp/docs/creating-templates-deid to learn * more. diff --git a/tests/fixtures/nodejs-dlp-with-staging/protos/google/privacy/dlp/v2/dlp.proto b/tests/fixtures/nodejs-dlp-with-staging/protos/google/privacy/dlp/v2/dlp.proto index 3fb0c2193..6da7f4659 100644 --- a/tests/fixtures/nodejs-dlp-with-staging/protos/google/privacy/dlp/v2/dlp.proto +++ b/tests/fixtures/nodejs-dlp-with-staging/protos/google/privacy/dlp/v2/dlp.proto @@ -146,7 +146,7 @@ service DlpService { option (google.api.method_signature) = "parent"; } - // Creates an InspectTemplate for re-using frequently used configuration + // Creates an InspectTemplate for reusing frequently used configuration // for inspecting content, images, and storage. // See https://cloud.google.com/dlp/docs/creating-templates to learn more. rpc CreateInspectTemplate(CreateInspectTemplateRequest) returns (InspectTemplate) { @@ -245,7 +245,7 @@ service DlpService { option (google.api.method_signature) = "name"; } - // Creates a DeidentifyTemplate for re-using frequently used configuration + // Creates a DeidentifyTemplate for reusing frequently used configuration // for de-identifying content, images, and storage. // See https://cloud.google.com/dlp/docs/creating-templates-deid to learn // more. diff --git a/tests/fixtures/nodejs-dlp-with-staging/src/v2/dlp_service_client.ts b/tests/fixtures/nodejs-dlp-with-staging/src/v2/dlp_service_client.ts index a20755a10..d9abb7d06 100644 --- a/tests/fixtures/nodejs-dlp-with-staging/src/v2/dlp_service_client.ts +++ b/tests/fixtures/nodejs-dlp-with-staging/src/v2/dlp_service_client.ts @@ -1065,7 +1065,7 @@ export class DlpServiceClient { > ): void; /** - * Creates an InspectTemplate for re-using frequently used configuration + * Creates an InspectTemplate for reusing frequently used configuration * for inspecting content, images, and storage. * See https://cloud.google.com/dlp/docs/creating-templates to learn more. * @@ -1476,7 +1476,7 @@ export class DlpServiceClient { > ): void; /** - * Creates a DeidentifyTemplate for re-using frequently used configuration + * Creates a DeidentifyTemplate for reusing frequently used configuration * for de-identifying content, images, and storage. * See https://cloud.google.com/dlp/docs/creating-templates-deid to learn * more. diff --git a/tests/fixtures/nodejs-dlp/protos/google/privacy/dlp/v2/dlp.proto b/tests/fixtures/nodejs-dlp/protos/google/privacy/dlp/v2/dlp.proto index 3fb0c2193..6da7f4659 100644 --- a/tests/fixtures/nodejs-dlp/protos/google/privacy/dlp/v2/dlp.proto +++ b/tests/fixtures/nodejs-dlp/protos/google/privacy/dlp/v2/dlp.proto @@ -146,7 +146,7 @@ service DlpService { option (google.api.method_signature) = "parent"; } - // Creates an InspectTemplate for re-using frequently used configuration + // Creates an InspectTemplate for reusing frequently used configuration // for inspecting content, images, and storage. // See https://cloud.google.com/dlp/docs/creating-templates to learn more. rpc CreateInspectTemplate(CreateInspectTemplateRequest) returns (InspectTemplate) { @@ -245,7 +245,7 @@ service DlpService { option (google.api.method_signature) = "name"; } - // Creates a DeidentifyTemplate for re-using frequently used configuration + // Creates a DeidentifyTemplate for reusing frequently used configuration // for de-identifying content, images, and storage. // See https://cloud.google.com/dlp/docs/creating-templates-deid to learn // more. diff --git a/tests/fixtures/nodejs-dlp/src/v2/dlp_service_client.ts b/tests/fixtures/nodejs-dlp/src/v2/dlp_service_client.ts index a20755a10..d9abb7d06 100644 --- a/tests/fixtures/nodejs-dlp/src/v2/dlp_service_client.ts +++ b/tests/fixtures/nodejs-dlp/src/v2/dlp_service_client.ts @@ -1065,7 +1065,7 @@ export class DlpServiceClient { > ): void; /** - * Creates an InspectTemplate for re-using frequently used configuration + * Creates an InspectTemplate for reusing frequently used configuration * for inspecting content, images, and storage. * See https://cloud.google.com/dlp/docs/creating-templates to learn more. * @@ -1476,7 +1476,7 @@ export class DlpServiceClient { > ): void; /** - * Creates a DeidentifyTemplate for re-using frequently used configuration + * Creates a DeidentifyTemplate for reusing frequently used configuration * for de-identifying content, images, and storage. * See https://cloud.google.com/dlp/docs/creating-templates-deid to learn * more. diff --git a/tests/fixtures/nodejs_mono_repo_esm/packages/dlp/esm/src/v2/dlp_service_client.ts b/tests/fixtures/nodejs_mono_repo_esm/packages/dlp/esm/src/v2/dlp_service_client.ts index a20755a10..d9abb7d06 100644 --- a/tests/fixtures/nodejs_mono_repo_esm/packages/dlp/esm/src/v2/dlp_service_client.ts +++ b/tests/fixtures/nodejs_mono_repo_esm/packages/dlp/esm/src/v2/dlp_service_client.ts @@ -1065,7 +1065,7 @@ export class DlpServiceClient { > ): void; /** - * Creates an InspectTemplate for re-using frequently used configuration + * Creates an InspectTemplate for reusing frequently used configuration * for inspecting content, images, and storage. * See https://cloud.google.com/dlp/docs/creating-templates to learn more. * @@ -1476,7 +1476,7 @@ export class DlpServiceClient { > ): void; /** - * Creates a DeidentifyTemplate for re-using frequently used configuration + * Creates a DeidentifyTemplate for reusing frequently used configuration * for de-identifying content, images, and storage. * See https://cloud.google.com/dlp/docs/creating-templates-deid to learn * more. diff --git a/tests/fixtures/nodejs_mono_repo_with_samples/packages/datastore/samples/generated/v1/dataproc_metastore.create_backup.js b/tests/fixtures/nodejs_mono_repo_with_samples/packages/datastore/samples/generated/v1/dataproc_metastore.create_backup.js index ba924273a..484932ac9 100644 --- a/tests/fixtures/nodejs_mono_repo_with_samples/packages/datastore/samples/generated/v1/dataproc_metastore.create_backup.js +++ b/tests/fixtures/nodejs_mono_repo_with_samples/packages/datastore/samples/generated/v1/dataproc_metastore.create_backup.js @@ -35,7 +35,7 @@ function main(parent, backupId, backup) { * Required. The ID of the backup, which is used as the final component of the * backup's name. * This value must be between 1 and 64 characters long, begin with a letter, - * end with a letter or number, and consist of alpha-numeric ASCII characters + * end with a letter or number, and consist of alphanumeric ASCII characters * or hyphens. */ // const backupId = 'abc123' diff --git a/tests/fixtures/nodejs_mono_repo_with_staging/owl-bot-staging/dlp/v2/protos/google/privacy/dlp/v2/dlp.proto b/tests/fixtures/nodejs_mono_repo_with_staging/owl-bot-staging/dlp/v2/protos/google/privacy/dlp/v2/dlp.proto index 3fb0c2193..6da7f4659 100644 --- a/tests/fixtures/nodejs_mono_repo_with_staging/owl-bot-staging/dlp/v2/protos/google/privacy/dlp/v2/dlp.proto +++ b/tests/fixtures/nodejs_mono_repo_with_staging/owl-bot-staging/dlp/v2/protos/google/privacy/dlp/v2/dlp.proto @@ -146,7 +146,7 @@ service DlpService { option (google.api.method_signature) = "parent"; } - // Creates an InspectTemplate for re-using frequently used configuration + // Creates an InspectTemplate for reusing frequently used configuration // for inspecting content, images, and storage. // See https://cloud.google.com/dlp/docs/creating-templates to learn more. rpc CreateInspectTemplate(CreateInspectTemplateRequest) returns (InspectTemplate) { @@ -245,7 +245,7 @@ service DlpService { option (google.api.method_signature) = "name"; } - // Creates a DeidentifyTemplate for re-using frequently used configuration + // Creates a DeidentifyTemplate for reusing frequently used configuration // for de-identifying content, images, and storage. // See https://cloud.google.com/dlp/docs/creating-templates-deid to learn // more. diff --git a/tests/fixtures/nodejs_mono_repo_with_staging/owl-bot-staging/dlp/v2/src/v2/dlp_service_client.ts b/tests/fixtures/nodejs_mono_repo_with_staging/owl-bot-staging/dlp/v2/src/v2/dlp_service_client.ts index 43fc2bba1..096975cef 100644 --- a/tests/fixtures/nodejs_mono_repo_with_staging/owl-bot-staging/dlp/v2/src/v2/dlp_service_client.ts +++ b/tests/fixtures/nodejs_mono_repo_with_staging/owl-bot-staging/dlp/v2/src/v2/dlp_service_client.ts @@ -917,7 +917,7 @@ export class DlpServiceClient { protos.google.privacy.dlp.v2.ICreateInspectTemplateRequest|null|undefined, {}|null|undefined>): void; /** - * Creates an InspectTemplate for re-using frequently used configuration + * Creates an InspectTemplate for reusing frequently used configuration * for inspecting content, images, and storage. * See https://cloud.google.com/dlp/docs/creating-templates to learn more. * @@ -1244,7 +1244,7 @@ export class DlpServiceClient { protos.google.privacy.dlp.v2.ICreateDeidentifyTemplateRequest|null|undefined, {}|null|undefined>): void; /** - * Creates a DeidentifyTemplate for re-using frequently used configuration + * Creates a DeidentifyTemplate for reusing frequently used configuration * for de-identifying content, images, and storage. * See https://cloud.google.com/dlp/docs/creating-templates-deid to learn * more. diff --git a/tests/fixtures/nodejs_mono_repo_with_staging/packages/dlp/protos/google/privacy/dlp/v2/dlp.proto b/tests/fixtures/nodejs_mono_repo_with_staging/packages/dlp/protos/google/privacy/dlp/v2/dlp.proto index 3fb0c2193..6da7f4659 100644 --- a/tests/fixtures/nodejs_mono_repo_with_staging/packages/dlp/protos/google/privacy/dlp/v2/dlp.proto +++ b/tests/fixtures/nodejs_mono_repo_with_staging/packages/dlp/protos/google/privacy/dlp/v2/dlp.proto @@ -146,7 +146,7 @@ service DlpService { option (google.api.method_signature) = "parent"; } - // Creates an InspectTemplate for re-using frequently used configuration + // Creates an InspectTemplate for reusing frequently used configuration // for inspecting content, images, and storage. // See https://cloud.google.com/dlp/docs/creating-templates to learn more. rpc CreateInspectTemplate(CreateInspectTemplateRequest) returns (InspectTemplate) { @@ -245,7 +245,7 @@ service DlpService { option (google.api.method_signature) = "name"; } - // Creates a DeidentifyTemplate for re-using frequently used configuration + // Creates a DeidentifyTemplate for reusing frequently used configuration // for de-identifying content, images, and storage. // See https://cloud.google.com/dlp/docs/creating-templates-deid to learn // more. diff --git a/tests/fixtures/nodejs_mono_repo_with_staging/packages/dlp/src/v2/dlp_service_client.ts b/tests/fixtures/nodejs_mono_repo_with_staging/packages/dlp/src/v2/dlp_service_client.ts index a20755a10..d9abb7d06 100644 --- a/tests/fixtures/nodejs_mono_repo_with_staging/packages/dlp/src/v2/dlp_service_client.ts +++ b/tests/fixtures/nodejs_mono_repo_with_staging/packages/dlp/src/v2/dlp_service_client.ts @@ -1065,7 +1065,7 @@ export class DlpServiceClient { > ): void; /** - * Creates an InspectTemplate for re-using frequently used configuration + * Creates an InspectTemplate for reusing frequently used configuration * for inspecting content, images, and storage. * See https://cloud.google.com/dlp/docs/creating-templates to learn more. * @@ -1476,7 +1476,7 @@ export class DlpServiceClient { > ): void; /** - * Creates a DeidentifyTemplate for re-using frequently used configuration + * Creates a DeidentifyTemplate for reusing frequently used configuration * for de-identifying content, images, and storage. * See https://cloud.google.com/dlp/docs/creating-templates-deid to learn * more. diff --git a/tests/fixtures/php/php_asset/expected/Asset/owlbot.py b/tests/fixtures/php/php_asset/expected/Asset/owlbot.py index 03ee4e7f9..09babee96 100644 --- a/tests/fixtures/php/php_asset/expected/Asset/owlbot.py +++ b/tests/fixtures/php/php_asset/expected/Asset/owlbot.py @@ -147,5 +147,5 @@ # Address breaking changes # We're using a git command for production Asset directory, -# but we emulate tha behavior with a static patch file. +# but we emulate the behavior with a static patch file. subprocess.run("patch -p2 < ../patch.diff", shell=True) diff --git a/tests/fixtures/php/php_asset/expected/Asset/samples/V1/AssetServiceClient/analyze_move.php b/tests/fixtures/php/php_asset/expected/Asset/samples/V1/AssetServiceClient/analyze_move.php index 60b26384d..c400f4ab2 100644 --- a/tests/fixtures/php/php_asset/expected/Asset/samples/V1/AssetServiceClient/analyze_move.php +++ b/tests/fixtures/php/php_asset/expected/Asset/samples/V1/AssetServiceClient/analyze_move.php @@ -40,7 +40,7 @@ * "projects/12345"). * @param string $destinationParent Name of the GCP Folder or Organization to reparent the target * resource. The analysis will be performed against hypothetically moving the - * resource to this specified desitination parent. This can only be a Folder + * resource to this specified destination parent. This can only be a Folder * number (such as "folders/123") or an Organization number (such as * "organizations/123"). */ diff --git a/tests/fixtures/php/php_asset/expected/Asset/src/V1/AnalyzeMoveRequest.php b/tests/fixtures/php/php_asset/expected/Asset/src/V1/AnalyzeMoveRequest.php index 71af341d6..099ab0d06 100644 --- a/tests/fixtures/php/php_asset/expected/Asset/src/V1/AnalyzeMoveRequest.php +++ b/tests/fixtures/php/php_asset/expected/Asset/src/V1/AnalyzeMoveRequest.php @@ -27,7 +27,7 @@ class AnalyzeMoveRequest extends \Google\Protobuf\Internal\Message /** * Required. Name of the GCP Folder or Organization to reparent the target * resource. The analysis will be performed against hypothetically moving the - * resource to this specified desitination parent. This can only be a Folder + * resource to this specified destination parent. This can only be a Folder * number (such as "folders/123") or an Organization number (such as * "organizations/123"). * @@ -56,7 +56,7 @@ class AnalyzeMoveRequest extends \Google\Protobuf\Internal\Message * @type string $destination_parent * Required. Name of the GCP Folder or Organization to reparent the target * resource. The analysis will be performed against hypothetically moving the - * resource to this specified desitination parent. This can only be a Folder + * resource to this specified destination parent. This can only be a Folder * number (such as "folders/123") or an Organization number (such as * "organizations/123"). * @type int $view @@ -104,7 +104,7 @@ public function setResource($var) /** * Required. Name of the GCP Folder or Organization to reparent the target * resource. The analysis will be performed against hypothetically moving the - * resource to this specified desitination parent. This can only be a Folder + * resource to this specified destination parent. This can only be a Folder * number (such as "folders/123") or an Organization number (such as * "organizations/123"). * @@ -119,7 +119,7 @@ public function getDestinationParent() /** * Required. Name of the GCP Folder or Organization to reparent the target * resource. The analysis will be performed against hypothetically moving the - * resource to this specified desitination parent. This can only be a Folder + * resource to this specified destination parent. This can only be a Folder * number (such as "folders/123") or an Organization number (such as * "organizations/123"). * diff --git a/tests/fixtures/php/php_asset/expected/Asset/src/V1/AssetServiceGrpcClient.php b/tests/fixtures/php/php_asset/expected/Asset/src/V1/AssetServiceGrpcClient.php index 432be42fa..72b799353 100644 --- a/tests/fixtures/php/php_asset/expected/Asset/src/V1/AssetServiceGrpcClient.php +++ b/tests/fixtures/php/php_asset/expected/Asset/src/V1/AssetServiceGrpcClient.php @@ -26,7 +26,7 @@ class AssetServiceGrpcClient extends \Grpc\BaseStub { /** * @param string $hostname hostname * @param array $opts channel options - * @param \Grpc\Channel $channel (optional) re-use channel object + * @param \Grpc\Channel $channel (optional) reuse channel object */ public function __construct($hostname, $opts, $channel = null) { parent::__construct($hostname, $opts, $channel); diff --git a/tests/fixtures/php/php_asset/expected/Asset/src/V1/Gapic/AssetServiceGapicClient.php b/tests/fixtures/php/php_asset/expected/Asset/src/V1/Gapic/AssetServiceGapicClient.php index 0a2484da9..3a6a4a7fa 100644 --- a/tests/fixtures/php/php_asset/expected/Asset/src/V1/Gapic/AssetServiceGapicClient.php +++ b/tests/fixtures/php/php_asset/expected/Asset/src/V1/Gapic/AssetServiceGapicClient.php @@ -641,7 +641,7 @@ public function analyzeIamPolicyLongrunning( * "projects/12345"). * @param string $destinationParent Required. Name of the GCP Folder or Organization to reparent the target * resource. The analysis will be performed against hypothetically moving the - * resource to this specified desitination parent. This can only be a Folder + * resource to this specified destination parent. This can only be a Folder * number (such as "folders/123") or an Organization number (such as * "organizations/123"). * @param array $optionalArgs { diff --git a/tests/fixtures/php/php_asset/expected/Asset/src/V1/IamPolicyAnalysisOutputConfig/BigQueryDestination/PartitionKey.php b/tests/fixtures/php/php_asset/expected/Asset/src/V1/IamPolicyAnalysisOutputConfig/BigQueryDestination/PartitionKey.php index 6902ee9a9..2c9f50618 100644 --- a/tests/fixtures/php/php_asset/expected/Asset/src/V1/IamPolicyAnalysisOutputConfig/BigQueryDestination/PartitionKey.php +++ b/tests/fixtures/php/php_asset/expected/Asset/src/V1/IamPolicyAnalysisOutputConfig/BigQueryDestination/PartitionKey.php @@ -25,7 +25,7 @@ class PartitionKey const PARTITION_KEY_UNSPECIFIED = 0; /** * The time when the request is received. If specified as partition key, - * the result table(s) is partitoned by the RequestTime column, an + * the result table(s) is partitioned by the RequestTime column, an * additional timestamp column representing when the request was received. * * Generated from protobuf enum REQUEST_TIME = 1; diff --git a/tests/fixtures/php/php_asset/expected/Asset/src/V1/PartitionSpec/PartitionKey.php b/tests/fixtures/php/php_asset/expected/Asset/src/V1/PartitionSpec/PartitionKey.php index d7dd49a6d..d418bedec 100644 --- a/tests/fixtures/php/php_asset/expected/Asset/src/V1/PartitionSpec/PartitionKey.php +++ b/tests/fixtures/php/php_asset/expected/Asset/src/V1/PartitionSpec/PartitionKey.php @@ -25,7 +25,7 @@ class PartitionKey const PARTITION_KEY_UNSPECIFIED = 0; /** * The time when the snapshot is taken. If specified as partition key, the - * result table(s) is partitoned by the additional timestamp column, + * result table(s) is partitioned by the additional timestamp column, * readTime. If [read_time] in ExportAssetsRequest is specified, the * readTime column's value will be the same as it. Otherwise, its value will * be the current time that is used to take the snapshot. @@ -35,7 +35,7 @@ class PartitionKey const READ_TIME = 1; /** * The time when the request is received and started to be processed. If - * specified as partition key, the result table(s) is partitoned by the + * specified as partition key, the result table(s) is partitioned by the * requestTime column, an additional timestamp column representing when the * request was received. * diff --git a/tests/fixtures/php/php_asset/src/Asset/owlbot.py b/tests/fixtures/php/php_asset/src/Asset/owlbot.py index 03ee4e7f9..09babee96 100644 --- a/tests/fixtures/php/php_asset/src/Asset/owlbot.py +++ b/tests/fixtures/php/php_asset/src/Asset/owlbot.py @@ -147,5 +147,5 @@ # Address breaking changes # We're using a git command for production Asset directory, -# but we emulate tha behavior with a static patch file. +# but we emulate the behavior with a static patch file. subprocess.run("patch -p2 < ../patch.diff", shell=True) diff --git a/tests/fixtures/php/php_asset/src/Asset/samples/V1/AssetServiceClient/analyze_move.php b/tests/fixtures/php/php_asset/src/Asset/samples/V1/AssetServiceClient/analyze_move.php index 60b26384d..c400f4ab2 100644 --- a/tests/fixtures/php/php_asset/src/Asset/samples/V1/AssetServiceClient/analyze_move.php +++ b/tests/fixtures/php/php_asset/src/Asset/samples/V1/AssetServiceClient/analyze_move.php @@ -40,7 +40,7 @@ * "projects/12345"). * @param string $destinationParent Name of the GCP Folder or Organization to reparent the target * resource. The analysis will be performed against hypothetically moving the - * resource to this specified desitination parent. This can only be a Folder + * resource to this specified destination parent. This can only be a Folder * number (such as "folders/123") or an Organization number (such as * "organizations/123"). */ diff --git a/tests/fixtures/php/php_asset/src/Asset/src/V1/AnalyzeMoveRequest.php b/tests/fixtures/php/php_asset/src/Asset/src/V1/AnalyzeMoveRequest.php index 71af341d6..099ab0d06 100644 --- a/tests/fixtures/php/php_asset/src/Asset/src/V1/AnalyzeMoveRequest.php +++ b/tests/fixtures/php/php_asset/src/Asset/src/V1/AnalyzeMoveRequest.php @@ -27,7 +27,7 @@ class AnalyzeMoveRequest extends \Google\Protobuf\Internal\Message /** * Required. Name of the GCP Folder or Organization to reparent the target * resource. The analysis will be performed against hypothetically moving the - * resource to this specified desitination parent. This can only be a Folder + * resource to this specified destination parent. This can only be a Folder * number (such as "folders/123") or an Organization number (such as * "organizations/123"). * @@ -56,7 +56,7 @@ class AnalyzeMoveRequest extends \Google\Protobuf\Internal\Message * @type string $destination_parent * Required. Name of the GCP Folder or Organization to reparent the target * resource. The analysis will be performed against hypothetically moving the - * resource to this specified desitination parent. This can only be a Folder + * resource to this specified destination parent. This can only be a Folder * number (such as "folders/123") or an Organization number (such as * "organizations/123"). * @type int $view @@ -104,7 +104,7 @@ public function setResource($var) /** * Required. Name of the GCP Folder or Organization to reparent the target * resource. The analysis will be performed against hypothetically moving the - * resource to this specified desitination parent. This can only be a Folder + * resource to this specified destination parent. This can only be a Folder * number (such as "folders/123") or an Organization number (such as * "organizations/123"). * @@ -119,7 +119,7 @@ public function getDestinationParent() /** * Required. Name of the GCP Folder or Organization to reparent the target * resource. The analysis will be performed against hypothetically moving the - * resource to this specified desitination parent. This can only be a Folder + * resource to this specified destination parent. This can only be a Folder * number (such as "folders/123") or an Organization number (such as * "organizations/123"). * diff --git a/tests/fixtures/php/php_asset/src/Asset/src/V1/AssetServiceGrpcClient.php b/tests/fixtures/php/php_asset/src/Asset/src/V1/AssetServiceGrpcClient.php index 432be42fa..72b799353 100644 --- a/tests/fixtures/php/php_asset/src/Asset/src/V1/AssetServiceGrpcClient.php +++ b/tests/fixtures/php/php_asset/src/Asset/src/V1/AssetServiceGrpcClient.php @@ -26,7 +26,7 @@ class AssetServiceGrpcClient extends \Grpc\BaseStub { /** * @param string $hostname hostname * @param array $opts channel options - * @param \Grpc\Channel $channel (optional) re-use channel object + * @param \Grpc\Channel $channel (optional) reuse channel object */ public function __construct($hostname, $opts, $channel = null) { parent::__construct($hostname, $opts, $channel); diff --git a/tests/fixtures/php/php_asset/src/Asset/src/V1/Gapic/AssetServiceGapicClient.php b/tests/fixtures/php/php_asset/src/Asset/src/V1/Gapic/AssetServiceGapicClient.php index 0a2484da9..3a6a4a7fa 100644 --- a/tests/fixtures/php/php_asset/src/Asset/src/V1/Gapic/AssetServiceGapicClient.php +++ b/tests/fixtures/php/php_asset/src/Asset/src/V1/Gapic/AssetServiceGapicClient.php @@ -641,7 +641,7 @@ public function analyzeIamPolicyLongrunning( * "projects/12345"). * @param string $destinationParent Required. Name of the GCP Folder or Organization to reparent the target * resource. The analysis will be performed against hypothetically moving the - * resource to this specified desitination parent. This can only be a Folder + * resource to this specified destination parent. This can only be a Folder * number (such as "folders/123") or an Organization number (such as * "organizations/123"). * @param array $optionalArgs { diff --git a/tests/fixtures/php/php_asset/src/Asset/src/V1/IamPolicyAnalysisOutputConfig/BigQueryDestination/PartitionKey.php b/tests/fixtures/php/php_asset/src/Asset/src/V1/IamPolicyAnalysisOutputConfig/BigQueryDestination/PartitionKey.php index 6902ee9a9..2c9f50618 100644 --- a/tests/fixtures/php/php_asset/src/Asset/src/V1/IamPolicyAnalysisOutputConfig/BigQueryDestination/PartitionKey.php +++ b/tests/fixtures/php/php_asset/src/Asset/src/V1/IamPolicyAnalysisOutputConfig/BigQueryDestination/PartitionKey.php @@ -25,7 +25,7 @@ class PartitionKey const PARTITION_KEY_UNSPECIFIED = 0; /** * The time when the request is received. If specified as partition key, - * the result table(s) is partitoned by the RequestTime column, an + * the result table(s) is partitioned by the RequestTime column, an * additional timestamp column representing when the request was received. * * Generated from protobuf enum REQUEST_TIME = 1; diff --git a/tests/fixtures/php/php_asset/src/Asset/src/V1/PartitionSpec/PartitionKey.php b/tests/fixtures/php/php_asset/src/Asset/src/V1/PartitionSpec/PartitionKey.php index d7dd49a6d..d418bedec 100644 --- a/tests/fixtures/php/php_asset/src/Asset/src/V1/PartitionSpec/PartitionKey.php +++ b/tests/fixtures/php/php_asset/src/Asset/src/V1/PartitionSpec/PartitionKey.php @@ -25,7 +25,7 @@ class PartitionKey const PARTITION_KEY_UNSPECIFIED = 0; /** * The time when the snapshot is taken. If specified as partition key, the - * result table(s) is partitoned by the additional timestamp column, + * result table(s) is partitioned by the additional timestamp column, * readTime. If [read_time] in ExportAssetsRequest is specified, the * readTime column's value will be the same as it. Otherwise, its value will * be the current time that is used to take the snapshot. @@ -35,7 +35,7 @@ class PartitionKey const READ_TIME = 1; /** * The time when the request is received and started to be processed. If - * specified as partition key, the result table(s) is partitoned by the + * specified as partition key, the result table(s) is partitioned by the * requestTime column, an additional timestamp column representing when the * request was received. * diff --git a/tests/fixtures/php/php_asset/src/owl-bot-staging/Asset/V1/proto/src/Google/Cloud/Asset/V1/AnalyzeMoveRequest.php b/tests/fixtures/php/php_asset/src/owl-bot-staging/Asset/V1/proto/src/Google/Cloud/Asset/V1/AnalyzeMoveRequest.php index 0cda14e21..14de0ca4a 100644 --- a/tests/fixtures/php/php_asset/src/owl-bot-staging/Asset/V1/proto/src/Google/Cloud/Asset/V1/AnalyzeMoveRequest.php +++ b/tests/fixtures/php/php_asset/src/owl-bot-staging/Asset/V1/proto/src/Google/Cloud/Asset/V1/AnalyzeMoveRequest.php @@ -27,7 +27,7 @@ class AnalyzeMoveRequest extends \Google\Protobuf\Internal\Message /** * Required. Name of the GCP Folder or Organization to reparent the target * resource. The analysis will be performed against hypothetically moving the - * resource to this specified desitination parent. This can only be a Folder + * resource to this specified destination parent. This can only be a Folder * number (such as "folders/123") or an Organization number (such as * "organizations/123"). * @@ -56,7 +56,7 @@ class AnalyzeMoveRequest extends \Google\Protobuf\Internal\Message * @type string $destination_parent * Required. Name of the GCP Folder or Organization to reparent the target * resource. The analysis will be performed against hypothetically moving the - * resource to this specified desitination parent. This can only be a Folder + * resource to this specified destination parent. This can only be a Folder * number (such as "folders/123") or an Organization number (such as * "organizations/123"). * @type int $view @@ -104,7 +104,7 @@ public function setResource($var) /** * Required. Name of the GCP Folder or Organization to reparent the target * resource. The analysis will be performed against hypothetically moving the - * resource to this specified desitination parent. This can only be a Folder + * resource to this specified destination parent. This can only be a Folder * number (such as "folders/123") or an Organization number (such as * "organizations/123"). * @@ -119,7 +119,7 @@ public function getDestinationParent() /** * Required. Name of the GCP Folder or Organization to reparent the target * resource. The analysis will be performed against hypothetically moving the - * resource to this specified desitination parent. This can only be a Folder + * resource to this specified destination parent. This can only be a Folder * number (such as "folders/123") or an Organization number (such as * "organizations/123"). * diff --git a/tests/fixtures/php/php_asset/src/owl-bot-staging/Asset/V1/proto/src/Google/Cloud/Asset/V1/AssetServiceGrpcClient.php b/tests/fixtures/php/php_asset/src/owl-bot-staging/Asset/V1/proto/src/Google/Cloud/Asset/V1/AssetServiceGrpcClient.php index a11774a9f..6bf89244d 100644 --- a/tests/fixtures/php/php_asset/src/owl-bot-staging/Asset/V1/proto/src/Google/Cloud/Asset/V1/AssetServiceGrpcClient.php +++ b/tests/fixtures/php/php_asset/src/owl-bot-staging/Asset/V1/proto/src/Google/Cloud/Asset/V1/AssetServiceGrpcClient.php @@ -26,7 +26,7 @@ class AssetServiceGrpcClient extends \Grpc\BaseStub { /** * @param string $hostname hostname * @param array $opts channel options - * @param \Grpc\Channel $channel (optional) re-use channel object + * @param \Grpc\Channel $channel (optional) reuse channel object */ public function __construct($hostname, $opts, $channel = null) { parent::__construct($hostname, $opts, $channel); diff --git a/tests/fixtures/php/php_asset/src/owl-bot-staging/Asset/V1/proto/src/Google/Cloud/Asset/V1/IamPolicyAnalysisOutputConfig/BigQueryDestination/PartitionKey.php b/tests/fixtures/php/php_asset/src/owl-bot-staging/Asset/V1/proto/src/Google/Cloud/Asset/V1/IamPolicyAnalysisOutputConfig/BigQueryDestination/PartitionKey.php index 6902ee9a9..2c9f50618 100644 --- a/tests/fixtures/php/php_asset/src/owl-bot-staging/Asset/V1/proto/src/Google/Cloud/Asset/V1/IamPolicyAnalysisOutputConfig/BigQueryDestination/PartitionKey.php +++ b/tests/fixtures/php/php_asset/src/owl-bot-staging/Asset/V1/proto/src/Google/Cloud/Asset/V1/IamPolicyAnalysisOutputConfig/BigQueryDestination/PartitionKey.php @@ -25,7 +25,7 @@ class PartitionKey const PARTITION_KEY_UNSPECIFIED = 0; /** * The time when the request is received. If specified as partition key, - * the result table(s) is partitoned by the RequestTime column, an + * the result table(s) is partitioned by the RequestTime column, an * additional timestamp column representing when the request was received. * * Generated from protobuf enum REQUEST_TIME = 1; diff --git a/tests/fixtures/php/php_asset/src/owl-bot-staging/Asset/V1/proto/src/Google/Cloud/Asset/V1/PartitionSpec/PartitionKey.php b/tests/fixtures/php/php_asset/src/owl-bot-staging/Asset/V1/proto/src/Google/Cloud/Asset/V1/PartitionSpec/PartitionKey.php index d7dd49a6d..d418bedec 100644 --- a/tests/fixtures/php/php_asset/src/owl-bot-staging/Asset/V1/proto/src/Google/Cloud/Asset/V1/PartitionSpec/PartitionKey.php +++ b/tests/fixtures/php/php_asset/src/owl-bot-staging/Asset/V1/proto/src/Google/Cloud/Asset/V1/PartitionSpec/PartitionKey.php @@ -25,7 +25,7 @@ class PartitionKey const PARTITION_KEY_UNSPECIFIED = 0; /** * The time when the snapshot is taken. If specified as partition key, the - * result table(s) is partitoned by the additional timestamp column, + * result table(s) is partitioned by the additional timestamp column, * readTime. If [read_time] in ExportAssetsRequest is specified, the * readTime column's value will be the same as it. Otherwise, its value will * be the current time that is used to take the snapshot. @@ -35,7 +35,7 @@ class PartitionKey const READ_TIME = 1; /** * The time when the request is received and started to be processed. If - * specified as partition key, the result table(s) is partitoned by the + * specified as partition key, the result table(s) is partitioned by the * requestTime column, an additional timestamp column representing when the * request was received. * diff --git a/tests/fixtures/php/php_asset/src/owl-bot-staging/Asset/V1/samples/V1/AssetServiceClient/analyze_move.php b/tests/fixtures/php/php_asset/src/owl-bot-staging/Asset/V1/samples/V1/AssetServiceClient/analyze_move.php index 60b26384d..c400f4ab2 100644 --- a/tests/fixtures/php/php_asset/src/owl-bot-staging/Asset/V1/samples/V1/AssetServiceClient/analyze_move.php +++ b/tests/fixtures/php/php_asset/src/owl-bot-staging/Asset/V1/samples/V1/AssetServiceClient/analyze_move.php @@ -40,7 +40,7 @@ * "projects/12345"). * @param string $destinationParent Name of the GCP Folder or Organization to reparent the target * resource. The analysis will be performed against hypothetically moving the - * resource to this specified desitination parent. This can only be a Folder + * resource to this specified destination parent. This can only be a Folder * number (such as "folders/123") or an Organization number (such as * "organizations/123"). */ diff --git a/tests/fixtures/php/php_asset/src/owl-bot-staging/Asset/V1/src/V1/Gapic/AssetServiceGapicClient.php b/tests/fixtures/php/php_asset/src/owl-bot-staging/Asset/V1/src/V1/Gapic/AssetServiceGapicClient.php index 0c64ca0f7..d85917724 100644 --- a/tests/fixtures/php/php_asset/src/owl-bot-staging/Asset/V1/src/V1/Gapic/AssetServiceGapicClient.php +++ b/tests/fixtures/php/php_asset/src/owl-bot-staging/Asset/V1/src/V1/Gapic/AssetServiceGapicClient.php @@ -562,7 +562,7 @@ public function analyzeIamPolicyLongrunning($analysisQuery, $outputConfig, array * "projects/12345"). * @param string $destinationParent Required. Name of the GCP Folder or Organization to reparent the target * resource. The analysis will be performed against hypothetically moving the - * resource to this specified desitination parent. This can only be a Folder + * resource to this specified destination parent. This can only be a Folder * number (such as "folders/123") or an Organization number (such as * "organizations/123"). * @param array $optionalArgs { diff --git a/tests/test_metadata.py b/tests/test_metadata.py index 296105c6c..f0e95d9f0 100644 --- a/tests/test_metadata.py +++ b/tests/test_metadata.py @@ -265,7 +265,7 @@ def test_add_new_files_with_bad_file(source_tree, preserve_track_obsolete_file_f try: os.symlink(tmpdir / dne, tmpdir / "badlink") except OSError: - # On Windows, creating a symlink requires Admin priveleges, which + # On Windows, creating a symlink requires Admin privileges, which # should never be granted to test runners. assert "win32" == sys.platform return