Skip to content

Commit

Permalink
fix!: added required annotations (#12001)
Browse files Browse the repository at this point in the history
- [ ] Regenerate this pull request now.

BEGIN_COMMIT_OVERRIDE
fix!: added required annotations
docs: updated comments explaining if a field is optional or required
CreateKeyRequest.display_name and
PrivatePasswordLeakVerification.lookup_hash_prefix are now required.
END_COMMIT_OVERRIDE

docs: updated comments explaining if a field is optional or required

CreateKeyRequest.display_name and
PrivatePasswordLeakVerification.lookup_hash_prefix are now required.

PiperOrigin-RevId: 580254588

Source-Link:
googleapis/googleapis@22df66c

Source-Link:
googleapis/googleapis-gen@488324d
Copy-Tag:
eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLXJlY2FwdGNoYS1lbnRlcnByaXNlLy5Pd2xCb3QueWFtbCIsImgiOiI0ODgzMjRkZmMxNTcxMDFjNzY0YjExMGY1OGQ5NDViY2MyODYwMGJlIn0=

---------

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
Co-authored-by: Victor Chudnovsky <vchudnov@google.com>
Co-authored-by: Anthonios Partheniou <partheniou@google.com>
  • Loading branch information
4 people committed Nov 9, 2023
1 parent 7335d33 commit e8a00c4
Show file tree
Hide file tree
Showing 9 changed files with 233 additions and 202 deletions.
Expand Up @@ -517,6 +517,7 @@ async def sample_create_key():
# Initialize request argument(s)
key = recaptchaenterprise_v1.Key()
key.web_settings.integration_type = "INVISIBLE"
key.display_name = "display_name_value"
request = recaptchaenterprise_v1.CreateKeyRequest(
parent="parent_value",
Expand Down Expand Up @@ -959,6 +960,7 @@ async def sample_update_key():
# Initialize request argument(s)
key = recaptchaenterprise_v1.Key()
key.web_settings.integration_type = "INVISIBLE"
key.display_name = "display_name_value"
request = recaptchaenterprise_v1.UpdateKeyRequest(
key=key,
Expand Down
Expand Up @@ -804,6 +804,7 @@ def sample_create_key():
# Initialize request argument(s)
key = recaptchaenterprise_v1.Key()
key.web_settings.integration_type = "INVISIBLE"
key.display_name = "display_name_value"
request = recaptchaenterprise_v1.CreateKeyRequest(
parent="parent_value",
Expand Down Expand Up @@ -1248,6 +1249,7 @@ def sample_update_key():
# Initialize request argument(s)
key = recaptchaenterprise_v1.Key()
key.web_settings.integration_type = "INVISIBLE"
key.display_name = "display_name_value"
request = recaptchaenterprise_v1.UpdateKeyRequest(
key=key,
Expand Down

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions packages/google-cloud-recaptcha-enterprise/noxfile.py
Expand Up @@ -29,6 +29,7 @@

BLACK_VERSION = "black[jupyter]==23.7.0"
ISORT_VERSION = "isort==5.11.0"

LINT_PATHS = ["docs", "google", "tests", "noxfile.py", "setup.py"]

DEFAULT_PYTHON_VERSION = "3.10"
Expand Down Expand Up @@ -89,6 +90,7 @@ def lint(session):
"--check",
*LINT_PATHS,
)

session.run("flake8", "google", "tests")


Expand Down
Expand Up @@ -41,6 +41,7 @@ async def sample_create_key():
# Initialize request argument(s)
key = recaptchaenterprise_v1.Key()
key.web_settings.integration_type = "INVISIBLE"
key.display_name = "display_name_value"

request = recaptchaenterprise_v1.CreateKeyRequest(
parent="parent_value",
Expand Down
Expand Up @@ -41,6 +41,7 @@ def sample_create_key():
# Initialize request argument(s)
key = recaptchaenterprise_v1.Key()
key.web_settings.integration_type = "INVISIBLE"
key.display_name = "display_name_value"

request = recaptchaenterprise_v1.CreateKeyRequest(
parent="parent_value",
Expand Down
Expand Up @@ -41,6 +41,7 @@ async def sample_update_key():
# Initialize request argument(s)
key = recaptchaenterprise_v1.Key()
key.web_settings.integration_type = "INVISIBLE"
key.display_name = "display_name_value"

request = recaptchaenterprise_v1.UpdateKeyRequest(
key=key,
Expand Down
Expand Up @@ -41,6 +41,7 @@ def sample_update_key():
# Initialize request argument(s)
key = recaptchaenterprise_v1.Key()
key.web_settings.integration_type = "INVISIBLE"
key.display_name = "display_name_value"

request = recaptchaenterprise_v1.UpdateKeyRequest(
key=key,
Expand Down
Expand Up @@ -571,12 +571,12 @@
"regionTag": "recaptchaenterprise_v1_generated_RecaptchaEnterpriseService_CreateKey_async",
"segments": [
{
"end": 55,
"end": 56,
"start": 27,
"type": "FULL"
},
{
"end": 55,
"end": 56,
"start": 27,
"type": "SHORT"
},
Expand All @@ -586,18 +586,18 @@
"type": "CLIENT_INITIALIZATION"
},
{
"end": 49,
"end": 50,
"start": 41,
"type": "REQUEST_INITIALIZATION"
},
{
"end": 52,
"start": 50,
"end": 53,
"start": 51,
"type": "REQUEST_EXECUTION"
},
{
"end": 56,
"start": 53,
"end": 57,
"start": 54,
"type": "RESPONSE_HANDLING"
}
],
Expand Down Expand Up @@ -655,12 +655,12 @@
"regionTag": "recaptchaenterprise_v1_generated_RecaptchaEnterpriseService_CreateKey_sync",
"segments": [
{
"end": 55,
"end": 56,
"start": 27,
"type": "FULL"
},
{
"end": 55,
"end": 56,
"start": 27,
"type": "SHORT"
},
Expand All @@ -670,18 +670,18 @@
"type": "CLIENT_INITIALIZATION"
},
{
"end": 49,
"end": 50,
"start": 41,
"type": "REQUEST_INITIALIZATION"
},
{
"end": 52,
"start": 50,
"end": 53,
"start": 51,
"type": "REQUEST_EXECUTION"
},
{
"end": 56,
"start": 53,
"end": 57,
"start": 54,
"type": "RESPONSE_HANDLING"
}
],
Expand Down Expand Up @@ -2829,12 +2829,12 @@
"regionTag": "recaptchaenterprise_v1_generated_RecaptchaEnterpriseService_UpdateKey_async",
"segments": [
{
"end": 54,
"end": 55,
"start": 27,
"type": "FULL"
},
{
"end": 54,
"end": 55,
"start": 27,
"type": "SHORT"
},
Expand All @@ -2844,18 +2844,18 @@
"type": "CLIENT_INITIALIZATION"
},
{
"end": 48,
"end": 49,
"start": 41,
"type": "REQUEST_INITIALIZATION"
},
{
"end": 51,
"start": 49,
"end": 52,
"start": 50,
"type": "REQUEST_EXECUTION"
},
{
"end": 55,
"start": 52,
"end": 56,
"start": 53,
"type": "RESPONSE_HANDLING"
}
],
Expand Down Expand Up @@ -2913,12 +2913,12 @@
"regionTag": "recaptchaenterprise_v1_generated_RecaptchaEnterpriseService_UpdateKey_sync",
"segments": [
{
"end": 54,
"end": 55,
"start": 27,
"type": "FULL"
},
{
"end": 54,
"end": 55,
"start": 27,
"type": "SHORT"
},
Expand All @@ -2928,18 +2928,18 @@
"type": "CLIENT_INITIALIZATION"
},
{
"end": 48,
"end": 49,
"start": 41,
"type": "REQUEST_INITIALIZATION"
},
{
"end": 51,
"start": 49,
"end": 52,
"start": 50,
"type": "REQUEST_EXECUTION"
},
{
"end": 55,
"start": 52,
"end": 56,
"start": 53,
"type": "RESPONSE_HANDLING"
}
],
Expand Down

0 comments on commit e8a00c4

Please sign in to comment.