@@ -90,7 +90,6 @@ def create(
9090 ]
9191 ],
9292 uri : str ,
93- webhook_id : str | Omit = omit ,
9493 name : str | Omit = omit ,
9594 state : Literal ["enabled" , "disabled" , "disabled_due_to_failed_deliveries" ] | Omit = omit ,
9695 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -120,10 +119,7 @@ def create(
120119
121120 uri: Required. The URI to which webhook events will be sent.
122121
123- webhook_id: Optional. The webhook_id to use for the webhook. If not specified, the server
124- will generate a unique ID.
125-
126- name: Identifier. The name of the webhook. Format: `webhooks/{webhook_id}`
122+ name: Optional. The user-provided name of the webhook.
127123
128124 state: The state of the webhook.
129125
@@ -151,11 +147,7 @@ def create(
151147 webhook_create_params .WebhookCreateParams ,
152148 ),
153149 options = make_request_options (
154- extra_headers = extra_headers ,
155- extra_query = extra_query ,
156- extra_body = extra_body ,
157- timeout = timeout ,
158- query = maybe_transform ({"webhook_id" : webhook_id }, webhook_create_params .WebhookCreateParams ),
150+ extra_headers = extra_headers , extra_query = extra_query , extra_body = extra_body , timeout = timeout
159151 ),
160152 cast_to = Webhook ,
161153 )
@@ -214,7 +206,7 @@ def update(
214206
215207 update_mask: Optional. The list of fields to update.
216208
217- name: Identifier . The name of the webhook. Format: `webhooks/{webhook_id}`
209+ name: Optional . The user-provided name of the webhook.
218210
219211 state: The state of the webhook.
220212
@@ -514,7 +506,6 @@ async def create(
514506 ]
515507 ],
516508 uri : str ,
517- webhook_id : str | Omit = omit ,
518509 name : str | Omit = omit ,
519510 state : Literal ["enabled" , "disabled" , "disabled_due_to_failed_deliveries" ] | Omit = omit ,
520511 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -544,10 +535,7 @@ async def create(
544535
545536 uri: Required. The URI to which webhook events will be sent.
546537
547- webhook_id: Optional. The webhook_id to use for the webhook. If not specified, the server
548- will generate a unique ID.
549-
550- name: Identifier. The name of the webhook. Format: `webhooks/{webhook_id}`
538+ name: Optional. The user-provided name of the webhook.
551539
552540 state: The state of the webhook.
553541
@@ -575,13 +563,7 @@ async def create(
575563 webhook_create_params .WebhookCreateParams ,
576564 ),
577565 options = make_request_options (
578- extra_headers = extra_headers ,
579- extra_query = extra_query ,
580- extra_body = extra_body ,
581- timeout = timeout ,
582- query = await async_maybe_transform (
583- {"webhook_id" : webhook_id }, webhook_create_params .WebhookCreateParams
584- ),
566+ extra_headers = extra_headers , extra_query = extra_query , extra_body = extra_body , timeout = timeout
585567 ),
586568 cast_to = Webhook ,
587569 )
@@ -640,7 +622,7 @@ async def update(
640622
641623 update_mask: Optional. The list of fields to update.
642624
643- name: Identifier . The name of the webhook. Format: `webhooks/{webhook_id}`
625+ name: Optional . The user-provided name of the webhook.
644626
645627 state: The state of the webhook.
646628
0 commit comments