Skip to content

Commit bb88d7f

Browse files
feat: Automated regeneration of WorkloadManager client (googleapis#13092)
Auto-created at 2025-03-05 13:14:44 +0000 using the toys pull request generator.
1 parent 22a7d1d commit bb88d7f

File tree

2 files changed

+73
-73
lines changed

2 files changed

+73
-73
lines changed

clients/workload_manager/lib/google_api/workload_manager/v1/api/projects.ex

Lines changed: 72 additions & 72 deletions
Original file line numberDiff line numberDiff line change
@@ -1137,6 +1137,78 @@ defmodule GoogleApi.WorkloadManager.V1.Api.Projects do
11371137
)
11381138
end
11391139

1140+
@doc """
1141+
Delete the data insights from workload manager data warehouse.
1142+
1143+
## Parameters
1144+
1145+
* `connection` (*type:* `GoogleApi.WorkloadManager.V1.Connection.t`) - Connection to server
1146+
* `name` (*type:* `String.t`) - Required. The system id of the SAP system resource to delete. Formatted as projects/{project}/locations/{location}/sapSystems/{sap_system_id}
1147+
* `optional_params` (*type:* `keyword()`) - Optional parameters
1148+
* `:"$.xgafv"` (*type:* `String.t`) - V1 error format.
1149+
* `:access_token` (*type:* `String.t`) - OAuth access token.
1150+
* `:alt` (*type:* `String.t`) - Data format for response.
1151+
* `:callback` (*type:* `String.t`) - JSONP
1152+
* `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response.
1153+
* `: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.
1154+
* `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user.
1155+
* `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks.
1156+
* `: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.
1157+
* `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart").
1158+
* `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart").
1159+
* `:requestId` (*type:* `String.t`) - Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
1160+
* `opts` (*type:* `keyword()`) - Call options
1161+
1162+
## Returns
1163+
1164+
* `{:ok, %GoogleApi.WorkloadManager.V1.Model.Empty{}}` on success
1165+
* `{:error, info}` on failure
1166+
"""
1167+
@spec workloadmanager_projects_locations_insights_delete(
1168+
Tesla.Env.client(),
1169+
String.t(),
1170+
keyword(),
1171+
keyword()
1172+
) ::
1173+
{:ok, GoogleApi.WorkloadManager.V1.Model.Empty.t()}
1174+
| {:ok, Tesla.Env.t()}
1175+
| {:ok, list()}
1176+
| {:error, any()}
1177+
def workloadmanager_projects_locations_insights_delete(
1178+
connection,
1179+
name,
1180+
optional_params \\ [],
1181+
opts \\ []
1182+
) do
1183+
optional_params_config = %{
1184+
:"$.xgafv" => :query,
1185+
:access_token => :query,
1186+
:alt => :query,
1187+
:callback => :query,
1188+
:fields => :query,
1189+
:key => :query,
1190+
:oauth_token => :query,
1191+
:prettyPrint => :query,
1192+
:quotaUser => :query,
1193+
:uploadType => :query,
1194+
:upload_protocol => :query,
1195+
:requestId => :query
1196+
}
1197+
1198+
request =
1199+
Request.new()
1200+
|> Request.method(:delete)
1201+
|> Request.url("/v1/{+name}", %{
1202+
"name" => URI.encode(name, &URI.char_unreserved?/1)
1203+
})
1204+
|> Request.add_optional_params(optional_params_config, optional_params)
1205+
|> Request.library_version(@library_version)
1206+
1207+
connection
1208+
|> Connection.execute(request)
1209+
|> Response.decode(opts ++ [struct: %GoogleApi.WorkloadManager.V1.Model.Empty{}])
1210+
end
1211+
11401212
@doc """
11411213
Write the data insights to workload manager data warehouse.
11421214
@@ -1578,76 +1650,4 @@ defmodule GoogleApi.WorkloadManager.V1.Api.Projects do
15781650
|> Connection.execute(request)
15791651
|> Response.decode(opts ++ [struct: %GoogleApi.WorkloadManager.V1.Model.ListRulesResponse{}])
15801652
end
1581-
1582-
@doc """
1583-
Delete the data insights from workload manager data warehouse.
1584-
1585-
## Parameters
1586-
1587-
* `connection` (*type:* `GoogleApi.WorkloadManager.V1.Connection.t`) - Connection to server
1588-
* `name` (*type:* `String.t`) - Required. The system id of the SAP system resource to delete. Formatted as projects/{project}/locations/{location}/sapSystems/{sap_system_id}
1589-
* `optional_params` (*type:* `keyword()`) - Optional parameters
1590-
* `:"$.xgafv"` (*type:* `String.t`) - V1 error format.
1591-
* `:access_token` (*type:* `String.t`) - OAuth access token.
1592-
* `:alt` (*type:* `String.t`) - Data format for response.
1593-
* `:callback` (*type:* `String.t`) - JSONP
1594-
* `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response.
1595-
* `: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.
1596-
* `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user.
1597-
* `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks.
1598-
* `: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.
1599-
* `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart").
1600-
* `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart").
1601-
* `:requestId` (*type:* `String.t`) - Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
1602-
* `opts` (*type:* `keyword()`) - Call options
1603-
1604-
## Returns
1605-
1606-
* `{:ok, %GoogleApi.WorkloadManager.V1.Model.Empty{}}` on success
1607-
* `{:error, info}` on failure
1608-
"""
1609-
@spec workloadmanager_projects_locations_sap_systems_delete(
1610-
Tesla.Env.client(),
1611-
String.t(),
1612-
keyword(),
1613-
keyword()
1614-
) ::
1615-
{:ok, GoogleApi.WorkloadManager.V1.Model.Empty.t()}
1616-
| {:ok, Tesla.Env.t()}
1617-
| {:ok, list()}
1618-
| {:error, any()}
1619-
def workloadmanager_projects_locations_sap_systems_delete(
1620-
connection,
1621-
name,
1622-
optional_params \\ [],
1623-
opts \\ []
1624-
) do
1625-
optional_params_config = %{
1626-
:"$.xgafv" => :query,
1627-
:access_token => :query,
1628-
:alt => :query,
1629-
:callback => :query,
1630-
:fields => :query,
1631-
:key => :query,
1632-
:oauth_token => :query,
1633-
:prettyPrint => :query,
1634-
:quotaUser => :query,
1635-
:uploadType => :query,
1636-
:upload_protocol => :query,
1637-
:requestId => :query
1638-
}
1639-
1640-
request =
1641-
Request.new()
1642-
|> Request.method(:delete)
1643-
|> Request.url("/v1/{+name}", %{
1644-
"name" => URI.encode(name, &URI.char_unreserved?/1)
1645-
})
1646-
|> Request.add_optional_params(optional_params_config, optional_params)
1647-
|> Request.library_version(@library_version)
1648-
1649-
connection
1650-
|> Connection.execute(request)
1651-
|> Response.decode(opts ++ [struct: %GoogleApi.WorkloadManager.V1.Model.Empty{}])
1652-
end
16531653
end

clients/workload_manager/lib/google_api/workload_manager/v1/metadata.ex

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

23-
@discovery_revision "20250219"
23+
@discovery_revision "20250226"
2424

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

0 commit comments

Comments
 (0)