Skip to content

Commit b2faaba

Browse files
feat: Automated regeneration of AdSensePlatform client (googleapis#12844)
Auto-created at 2025-01-20 13:15:33 +0000 using the toys pull request generator.
1 parent 341c648 commit b2faaba

File tree

2 files changed

+77
-1
lines changed

2 files changed

+77
-1
lines changed

clients/ad_sense_platform/lib/google_api/ad_sense_platform/v1alpha/api/accounts.ex

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,82 @@ defmodule GoogleApi.AdSensePlatform.V1alpha.Api.Accounts do
242242
)
243243
end
244244

245+
@doc """
246+
Update a Platform Child Site.
247+
248+
## Parameters
249+
250+
* `connection` (*type:* `GoogleApi.AdSensePlatform.V1alpha.Connection.t`) - Connection to server
251+
* `name` (*type:* `String.t`) - Identifier. Format: accounts/{account}/platforms/{platform}/childAccounts/{child}/sites/{platformChildSite}
252+
* `optional_params` (*type:* `keyword()`) - Optional parameters
253+
* `:"$.xgafv"` (*type:* `String.t`) - V1 error format.
254+
* `:access_token` (*type:* `String.t`) - OAuth access token.
255+
* `:alt` (*type:* `String.t`) - Data format for response.
256+
* `:callback` (*type:* `String.t`) - JSONP
257+
* `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response.
258+
* `:key` (*type:* `String.t`) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
259+
* `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user.
260+
* `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks.
261+
* `:quotaUser` (*type:* `String.t`) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
262+
* `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart").
263+
* `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart").
264+
* `:updateMask` (*type:* `String.t`) - Optional. The list of fields to update - currently only supports updating the `platform_group` field.
265+
* `:body` (*type:* `GoogleApi.AdSensePlatform.V1alpha.Model.PlatformChildSite.t`) -
266+
* `opts` (*type:* `keyword()`) - Call options
267+
268+
## Returns
269+
270+
* `{:ok, %GoogleApi.AdSensePlatform.V1alpha.Model.PlatformChildSite{}}` on success
271+
* `{:error, info}` on failure
272+
"""
273+
@spec adsenseplatform_accounts_platforms_child_accounts_sites_patch(
274+
Tesla.Env.client(),
275+
String.t(),
276+
keyword(),
277+
keyword()
278+
) ::
279+
{:ok, GoogleApi.AdSensePlatform.V1alpha.Model.PlatformChildSite.t()}
280+
| {:ok, Tesla.Env.t()}
281+
| {:ok, list()}
282+
| {:error, any()}
283+
def adsenseplatform_accounts_platforms_child_accounts_sites_patch(
284+
connection,
285+
name,
286+
optional_params \\ [],
287+
opts \\ []
288+
) do
289+
optional_params_config = %{
290+
:"$.xgafv" => :query,
291+
:access_token => :query,
292+
:alt => :query,
293+
:callback => :query,
294+
:fields => :query,
295+
:key => :query,
296+
:oauth_token => :query,
297+
:prettyPrint => :query,
298+
:quotaUser => :query,
299+
:uploadType => :query,
300+
:upload_protocol => :query,
301+
:updateMask => :query,
302+
:body => :body
303+
}
304+
305+
request =
306+
Request.new()
307+
|> Request.method(:patch)
308+
|> Request.url("/v1alpha/{+name}", %{
309+
"name" => URI.encode(name, &URI.char_unreserved?/1)
310+
})
311+
|> Request.add_optional_params(optional_params_config, optional_params)
312+
|> Request.library_version(@library_version)
313+
314+
connection
315+
|> Connection.execute(request)
316+
|> Response.decode(
317+
opts ++ [struct: %GoogleApi.AdSensePlatform.V1alpha.Model.PlatformChildSite{}]
318+
)
319+
end
320+
245321
@doc """
246322
Lists Platform Groups for a specified Platform.
247323

clients/ad_sense_platform/lib/google_api/ad_sense_platform/v1alpha/metadata.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ defmodule GoogleApi.AdSensePlatform.V1alpha do
2020
API client metadata for GoogleApi.AdSensePlatform.V1alpha.
2121
"""
2222

23-
@discovery_revision "20250115"
23+
@discovery_revision "20250120"
2424

2525
def discovery_revision(), do: @discovery_revision
2626
end

0 commit comments

Comments
 (0)