Skip to content

Commit a9a0cd8

Browse files
feat: Automated regeneration of WorkloadManager client (googleapis#12980)
Auto-created at 2025-02-15 13:15:29 +0000 using the toys pull request generator.
1 parent 1f03f00 commit a9a0cd8

File tree

4 files changed

+139
-1
lines changed

4 files changed

+139
-1
lines changed

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

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1358,4 +1358,76 @@ defmodule GoogleApi.WorkloadManager.V1.Api.Projects do
13581358
|> Connection.execute(request)
13591359
|> Response.decode(opts ++ [struct: %GoogleApi.WorkloadManager.V1.Model.ListRulesResponse{}])
13601360
end
1361+
1362+
@doc """
1363+
Delete the data insights from workload manager data warehouse.
1364+
1365+
## Parameters
1366+
1367+
* `connection` (*type:* `GoogleApi.WorkloadManager.V1.Connection.t`) - Connection to server
1368+
* `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}
1369+
* `optional_params` (*type:* `keyword()`) - Optional parameters
1370+
* `:"$.xgafv"` (*type:* `String.t`) - V1 error format.
1371+
* `:access_token` (*type:* `String.t`) - OAuth access token.
1372+
* `:alt` (*type:* `String.t`) - Data format for response.
1373+
* `:callback` (*type:* `String.t`) - JSONP
1374+
* `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response.
1375+
* `: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.
1376+
* `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user.
1377+
* `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks.
1378+
* `: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.
1379+
* `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart").
1380+
* `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart").
1381+
* `: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).
1382+
* `opts` (*type:* `keyword()`) - Call options
1383+
1384+
## Returns
1385+
1386+
* `{:ok, %GoogleApi.WorkloadManager.V1.Model.Empty{}}` on success
1387+
* `{:error, info}` on failure
1388+
"""
1389+
@spec workloadmanager_projects_locations_sap_systems_delete(
1390+
Tesla.Env.client(),
1391+
String.t(),
1392+
keyword(),
1393+
keyword()
1394+
) ::
1395+
{:ok, GoogleApi.WorkloadManager.V1.Model.Empty.t()}
1396+
| {:ok, Tesla.Env.t()}
1397+
| {:ok, list()}
1398+
| {:error, any()}
1399+
def workloadmanager_projects_locations_sap_systems_delete(
1400+
connection,
1401+
name,
1402+
optional_params \\ [],
1403+
opts \\ []
1404+
) do
1405+
optional_params_config = %{
1406+
:"$.xgafv" => :query,
1407+
:access_token => :query,
1408+
:alt => :query,
1409+
:callback => :query,
1410+
:fields => :query,
1411+
:key => :query,
1412+
:oauth_token => :query,
1413+
:prettyPrint => :query,
1414+
:quotaUser => :query,
1415+
:uploadType => :query,
1416+
:upload_protocol => :query,
1417+
:requestId => :query
1418+
}
1419+
1420+
request =
1421+
Request.new()
1422+
|> Request.method(:delete)
1423+
|> Request.url("/v1/{+name}", %{
1424+
"name" => URI.encode(name, &URI.char_unreserved?/1)
1425+
})
1426+
|> Request.add_optional_params(optional_params_config, optional_params)
1427+
|> Request.library_version(@library_version)
1428+
1429+
connection
1430+
|> Connection.execute(request)
1431+
|> Response.decode(opts ++ [struct: %GoogleApi.WorkloadManager.V1.Model.Empty{}])
1432+
end
13611433
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 "20250120"
23+
@discovery_revision "20250205"
2424

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

clients/workload_manager/lib/google_api/workload_manager/v1/model/sap_discovery_resource_instance_properties.ex

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ defmodule GoogleApi.WorkloadManager.V1.Model.SapDiscoveryResourceInstancePropert
2323
2424
* `appInstances` (*type:* `list(GoogleApi.WorkloadManager.V1.Model.SapDiscoveryResourceInstancePropertiesAppInstance.t)`, *default:* `nil`) - Optional. App server instances on the host
2525
* `clusterInstances` (*type:* `list(String.t)`, *default:* `nil`) - Optional. A list of instance URIs that are part of a cluster with this one.
26+
* `diskMounts` (*type:* `list(GoogleApi.WorkloadManager.V1.Model.SapDiscoveryResourceInstancePropertiesDiskMount.t)`, *default:* `nil`) - Optional. Disk mounts on the instance.
2627
* `instanceNumber` (*type:* `String.t`, *default:* `nil`) - Optional. The VM's instance number.
2728
* `instanceRole` (*type:* `String.t`, *default:* `nil`) - Optional. Bitmask of instance role, a resource may have multiple roles at once.
2829
* `isDrSite` (*type:* `boolean()`, *default:* `nil`) - Optional. Instance is part of a DR site.
@@ -38,6 +39,11 @@ defmodule GoogleApi.WorkloadManager.V1.Model.SapDiscoveryResourceInstancePropert
3839
)
3940
| nil,
4041
:clusterInstances => list(String.t()) | nil,
42+
:diskMounts =>
43+
list(
44+
GoogleApi.WorkloadManager.V1.Model.SapDiscoveryResourceInstancePropertiesDiskMount.t()
45+
)
46+
| nil,
4147
:instanceNumber => String.t() | nil,
4248
:instanceRole => String.t() | nil,
4349
:isDrSite => boolean() | nil,
@@ -50,6 +56,12 @@ defmodule GoogleApi.WorkloadManager.V1.Model.SapDiscoveryResourceInstancePropert
5056
)
5157

5258
field(:clusterInstances, type: :list)
59+
60+
field(:diskMounts,
61+
as: GoogleApi.WorkloadManager.V1.Model.SapDiscoveryResourceInstancePropertiesDiskMount,
62+
type: :list
63+
)
64+
5365
field(:instanceNumber)
5466
field(:instanceRole)
5567
field(:isDrSite)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
# Copyright 2019 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
# NOTE: This file is auto generated by the elixir code generator program.
16+
# Do not edit this file manually.
17+
18+
defmodule GoogleApi.WorkloadManager.V1.Model.SapDiscoveryResourceInstancePropertiesDiskMount do
19+
@moduledoc """
20+
Disk mount on the instance.
21+
22+
## Attributes
23+
24+
* `mountPoint` (*type:* `String.t`, *default:* `nil`) - Optional. Filesystem mount point.
25+
* `name` (*type:* `String.t`, *default:* `nil`) - Optional. Name of the disk.
26+
"""
27+
28+
use GoogleApi.Gax.ModelBase
29+
30+
@type t :: %__MODULE__{
31+
:mountPoint => String.t() | nil,
32+
:name => String.t() | nil
33+
}
34+
35+
field(:mountPoint)
36+
field(:name)
37+
end
38+
39+
defimpl Poison.Decoder,
40+
for: GoogleApi.WorkloadManager.V1.Model.SapDiscoveryResourceInstancePropertiesDiskMount do
41+
def decode(value, options) do
42+
GoogleApi.WorkloadManager.V1.Model.SapDiscoveryResourceInstancePropertiesDiskMount.decode(
43+
value,
44+
options
45+
)
46+
end
47+
end
48+
49+
defimpl Poison.Encoder,
50+
for: GoogleApi.WorkloadManager.V1.Model.SapDiscoveryResourceInstancePropertiesDiskMount do
51+
def encode(value, options) do
52+
GoogleApi.Gax.ModelBase.encode(value, options)
53+
end
54+
end

0 commit comments

Comments
 (0)