Skip to content

Commit 6236be7

Browse files
feat: Automated regeneration of SecurityCenter client (googleapis#12264)
Auto-created at 2024-10-03 13:17:54 +0000 using the toys pull request generator.
1 parent 72150a9 commit 6236be7

File tree

10 files changed

+59
-459
lines changed

10 files changed

+59
-459
lines changed

clients/security_center/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Install this package from [Hex](https://hex.pm) by adding
1111

1212
```elixir
1313
def deps do
14-
[{:google_api_security_center, "~> 0.33"}]
14+
[{:google_api_security_center, "~> 0.34"}]
1515
end
1616
```
1717

clients/security_center/lib/google_api/security_center/v1/api/folders.ex

Lines changed: 0 additions & 152 deletions
Original file line numberDiff line numberDiff line change
@@ -1369,82 +1369,6 @@ defmodule GoogleApi.SecurityCenter.V1.Api.Folders do
13691369
|> Response.decode(opts ++ [struct: %GoogleApi.SecurityCenter.V1.Model.Operation{}])
13701370
end
13711371

1372-
@doc """
1373-
Creates a mute config.
1374-
1375-
## Parameters
1376-
1377-
* `connection` (*type:* `GoogleApi.SecurityCenter.V1.Connection.t`) - Connection to server
1378-
* `parent` (*type:* `String.t`) - Required. Resource name of the new mute configs's parent. Its format is `organizations/[organization_id]`, `folders/[folder_id]`, or `projects/[project_id]`.
1379-
* `optional_params` (*type:* `keyword()`) - Optional parameters
1380-
* `:"$.xgafv"` (*type:* `String.t`) - V1 error format.
1381-
* `:access_token` (*type:* `String.t`) - OAuth access token.
1382-
* `:alt` (*type:* `String.t`) - Data format for response.
1383-
* `:callback` (*type:* `String.t`) - JSONP
1384-
* `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response.
1385-
* `: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.
1386-
* `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user.
1387-
* `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks.
1388-
* `: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.
1389-
* `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart").
1390-
* `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart").
1391-
* `:muteConfigId` (*type:* `String.t`) - Required. Unique identifier provided by the client within the parent scope. It must consist of only lowercase letters, numbers, and hyphens, must start with a letter, must end with either a letter or a number, and must be 63 characters or less.
1392-
* `:body` (*type:* `GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV1MuteConfig.t`) -
1393-
* `opts` (*type:* `keyword()`) - Call options
1394-
1395-
## Returns
1396-
1397-
* `{:ok, %GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV1MuteConfig{}}` on success
1398-
* `{:error, info}` on failure
1399-
"""
1400-
@spec securitycenter_folders_locations_mute_configs_create(
1401-
Tesla.Env.client(),
1402-
String.t(),
1403-
keyword(),
1404-
keyword()
1405-
) ::
1406-
{:ok, GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV1MuteConfig.t()}
1407-
| {:ok, Tesla.Env.t()}
1408-
| {:ok, list()}
1409-
| {:error, any()}
1410-
def securitycenter_folders_locations_mute_configs_create(
1411-
connection,
1412-
parent,
1413-
optional_params \\ [],
1414-
opts \\ []
1415-
) do
1416-
optional_params_config = %{
1417-
:"$.xgafv" => :query,
1418-
:access_token => :query,
1419-
:alt => :query,
1420-
:callback => :query,
1421-
:fields => :query,
1422-
:key => :query,
1423-
:oauth_token => :query,
1424-
:prettyPrint => :query,
1425-
:quotaUser => :query,
1426-
:uploadType => :query,
1427-
:upload_protocol => :query,
1428-
:muteConfigId => :query,
1429-
:body => :body
1430-
}
1431-
1432-
request =
1433-
Request.new()
1434-
|> Request.method(:post)
1435-
|> Request.url("/v1/{+parent}/muteConfigs", %{
1436-
"parent" => URI.encode(parent, &URI.char_unreserved?/1)
1437-
})
1438-
|> Request.add_optional_params(optional_params_config, optional_params)
1439-
|> Request.library_version(@library_version)
1440-
1441-
connection
1442-
|> Connection.execute(request)
1443-
|> Response.decode(
1444-
opts ++ [struct: %GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV1MuteConfig{}]
1445-
)
1446-
end
1447-
14481372
@doc """
14491373
Deletes an existing mute config.
14501374
@@ -1587,82 +1511,6 @@ defmodule GoogleApi.SecurityCenter.V1.Api.Folders do
15871511
)
15881512
end
15891513

1590-
@doc """
1591-
Lists mute configs.
1592-
1593-
## Parameters
1594-
1595-
* `connection` (*type:* `GoogleApi.SecurityCenter.V1.Connection.t`) - Connection to server
1596-
* `parent` (*type:* `String.t`) - Required. The parent, which owns the collection of mute configs. Its format is `organizations/[organization_id]`, `folders/[folder_id]`, `projects/[project_id]`.
1597-
* `optional_params` (*type:* `keyword()`) - Optional parameters
1598-
* `:"$.xgafv"` (*type:* `String.t`) - V1 error format.
1599-
* `:access_token` (*type:* `String.t`) - OAuth access token.
1600-
* `:alt` (*type:* `String.t`) - Data format for response.
1601-
* `:callback` (*type:* `String.t`) - JSONP
1602-
* `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response.
1603-
* `: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.
1604-
* `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user.
1605-
* `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks.
1606-
* `: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.
1607-
* `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart").
1608-
* `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart").
1609-
* `:pageSize` (*type:* `integer()`) - The maximum number of configs to return. The service may return fewer than this value. If unspecified, at most 10 configs will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.
1610-
* `:pageToken` (*type:* `String.t`) - A page token, received from a previous `ListMuteConfigs` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListMuteConfigs` must match the call that provided the page token.
1611-
* `opts` (*type:* `keyword()`) - Call options
1612-
1613-
## Returns
1614-
1615-
* `{:ok, %GoogleApi.SecurityCenter.V1.Model.ListMuteConfigsResponse{}}` on success
1616-
* `{:error, info}` on failure
1617-
"""
1618-
@spec securitycenter_folders_locations_mute_configs_list(
1619-
Tesla.Env.client(),
1620-
String.t(),
1621-
keyword(),
1622-
keyword()
1623-
) ::
1624-
{:ok, GoogleApi.SecurityCenter.V1.Model.ListMuteConfigsResponse.t()}
1625-
| {:ok, Tesla.Env.t()}
1626-
| {:ok, list()}
1627-
| {:error, any()}
1628-
def securitycenter_folders_locations_mute_configs_list(
1629-
connection,
1630-
parent,
1631-
optional_params \\ [],
1632-
opts \\ []
1633-
) do
1634-
optional_params_config = %{
1635-
:"$.xgafv" => :query,
1636-
:access_token => :query,
1637-
:alt => :query,
1638-
:callback => :query,
1639-
:fields => :query,
1640-
:key => :query,
1641-
:oauth_token => :query,
1642-
:prettyPrint => :query,
1643-
:quotaUser => :query,
1644-
:uploadType => :query,
1645-
:upload_protocol => :query,
1646-
:pageSize => :query,
1647-
:pageToken => :query
1648-
}
1649-
1650-
request =
1651-
Request.new()
1652-
|> Request.method(:get)
1653-
|> Request.url("/v1/{+parent}", %{
1654-
"parent" => URI.encode(parent, &URI.char_unreserved?/1)
1655-
})
1656-
|> Request.add_optional_params(optional_params_config, optional_params)
1657-
|> Request.library_version(@library_version)
1658-
1659-
connection
1660-
|> Connection.execute(request)
1661-
|> Response.decode(
1662-
opts ++ [struct: %GoogleApi.SecurityCenter.V1.Model.ListMuteConfigsResponse{}]
1663-
)
1664-
end
1665-
16661514
@doc """
16671515
Updates a mute config.
16681516

clients/security_center/lib/google_api/security_center/v1/api/organizations.ex

Lines changed: 0 additions & 152 deletions
Original file line numberDiff line numberDiff line change
@@ -1609,82 +1609,6 @@ defmodule GoogleApi.SecurityCenter.V1.Api.Organizations do
16091609
|> Response.decode(opts ++ [struct: %GoogleApi.SecurityCenter.V1.Model.Operation{}])
16101610
end
16111611

1612-
@doc """
1613-
Creates a mute config.
1614-
1615-
## Parameters
1616-
1617-
* `connection` (*type:* `GoogleApi.SecurityCenter.V1.Connection.t`) - Connection to server
1618-
* `parent` (*type:* `String.t`) - Required. Resource name of the new mute configs's parent. Its format is `organizations/[organization_id]`, `folders/[folder_id]`, or `projects/[project_id]`.
1619-
* `optional_params` (*type:* `keyword()`) - Optional parameters
1620-
* `:"$.xgafv"` (*type:* `String.t`) - V1 error format.
1621-
* `:access_token` (*type:* `String.t`) - OAuth access token.
1622-
* `:alt` (*type:* `String.t`) - Data format for response.
1623-
* `:callback` (*type:* `String.t`) - JSONP
1624-
* `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response.
1625-
* `: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.
1626-
* `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user.
1627-
* `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks.
1628-
* `: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.
1629-
* `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart").
1630-
* `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart").
1631-
* `:muteConfigId` (*type:* `String.t`) - Required. Unique identifier provided by the client within the parent scope. It must consist of only lowercase letters, numbers, and hyphens, must start with a letter, must end with either a letter or a number, and must be 63 characters or less.
1632-
* `:body` (*type:* `GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV1MuteConfig.t`) -
1633-
* `opts` (*type:* `keyword()`) - Call options
1634-
1635-
## Returns
1636-
1637-
* `{:ok, %GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV1MuteConfig{}}` on success
1638-
* `{:error, info}` on failure
1639-
"""
1640-
@spec securitycenter_organizations_locations_mute_configs_create(
1641-
Tesla.Env.client(),
1642-
String.t(),
1643-
keyword(),
1644-
keyword()
1645-
) ::
1646-
{:ok, GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV1MuteConfig.t()}
1647-
| {:ok, Tesla.Env.t()}
1648-
| {:ok, list()}
1649-
| {:error, any()}
1650-
def securitycenter_organizations_locations_mute_configs_create(
1651-
connection,
1652-
parent,
1653-
optional_params \\ [],
1654-
opts \\ []
1655-
) do
1656-
optional_params_config = %{
1657-
:"$.xgafv" => :query,
1658-
:access_token => :query,
1659-
:alt => :query,
1660-
:callback => :query,
1661-
:fields => :query,
1662-
:key => :query,
1663-
:oauth_token => :query,
1664-
:prettyPrint => :query,
1665-
:quotaUser => :query,
1666-
:uploadType => :query,
1667-
:upload_protocol => :query,
1668-
:muteConfigId => :query,
1669-
:body => :body
1670-
}
1671-
1672-
request =
1673-
Request.new()
1674-
|> Request.method(:post)
1675-
|> Request.url("/v1/{+parent}/muteConfigs", %{
1676-
"parent" => URI.encode(parent, &URI.char_unreserved?/1)
1677-
})
1678-
|> Request.add_optional_params(optional_params_config, optional_params)
1679-
|> Request.library_version(@library_version)
1680-
1681-
connection
1682-
|> Connection.execute(request)
1683-
|> Response.decode(
1684-
opts ++ [struct: %GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV1MuteConfig{}]
1685-
)
1686-
end
1687-
16881612
@doc """
16891613
Deletes an existing mute config.
16901614
@@ -1827,82 +1751,6 @@ defmodule GoogleApi.SecurityCenter.V1.Api.Organizations do
18271751
)
18281752
end
18291753

1830-
@doc """
1831-
Lists mute configs.
1832-
1833-
## Parameters
1834-
1835-
* `connection` (*type:* `GoogleApi.SecurityCenter.V1.Connection.t`) - Connection to server
1836-
* `parent` (*type:* `String.t`) - Required. The parent, which owns the collection of mute configs. Its format is `organizations/[organization_id]`, `folders/[folder_id]`, `projects/[project_id]`.
1837-
* `optional_params` (*type:* `keyword()`) - Optional parameters
1838-
* `:"$.xgafv"` (*type:* `String.t`) - V1 error format.
1839-
* `:access_token` (*type:* `String.t`) - OAuth access token.
1840-
* `:alt` (*type:* `String.t`) - Data format for response.
1841-
* `:callback` (*type:* `String.t`) - JSONP
1842-
* `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response.
1843-
* `: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.
1844-
* `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user.
1845-
* `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks.
1846-
* `: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.
1847-
* `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart").
1848-
* `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart").
1849-
* `:pageSize` (*type:* `integer()`) - The maximum number of configs to return. The service may return fewer than this value. If unspecified, at most 10 configs will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.
1850-
* `:pageToken` (*type:* `String.t`) - A page token, received from a previous `ListMuteConfigs` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListMuteConfigs` must match the call that provided the page token.
1851-
* `opts` (*type:* `keyword()`) - Call options
1852-
1853-
## Returns
1854-
1855-
* `{:ok, %GoogleApi.SecurityCenter.V1.Model.ListMuteConfigsResponse{}}` on success
1856-
* `{:error, info}` on failure
1857-
"""
1858-
@spec securitycenter_organizations_locations_mute_configs_list(
1859-
Tesla.Env.client(),
1860-
String.t(),
1861-
keyword(),
1862-
keyword()
1863-
) ::
1864-
{:ok, GoogleApi.SecurityCenter.V1.Model.ListMuteConfigsResponse.t()}
1865-
| {:ok, Tesla.Env.t()}
1866-
| {:ok, list()}
1867-
| {:error, any()}
1868-
def securitycenter_organizations_locations_mute_configs_list(
1869-
connection,
1870-
parent,
1871-
optional_params \\ [],
1872-
opts \\ []
1873-
) do
1874-
optional_params_config = %{
1875-
:"$.xgafv" => :query,
1876-
:access_token => :query,
1877-
:alt => :query,
1878-
:callback => :query,
1879-
:fields => :query,
1880-
:key => :query,
1881-
:oauth_token => :query,
1882-
:prettyPrint => :query,
1883-
:quotaUser => :query,
1884-
:uploadType => :query,
1885-
:upload_protocol => :query,
1886-
:pageSize => :query,
1887-
:pageToken => :query
1888-
}
1889-
1890-
request =
1891-
Request.new()
1892-
|> Request.method(:get)
1893-
|> Request.url("/v1/{+parent}", %{
1894-
"parent" => URI.encode(parent, &URI.char_unreserved?/1)
1895-
})
1896-
|> Request.add_optional_params(optional_params_config, optional_params)
1897-
|> Request.library_version(@library_version)
1898-
1899-
connection
1900-
|> Connection.execute(request)
1901-
|> Response.decode(
1902-
opts ++ [struct: %GoogleApi.SecurityCenter.V1.Model.ListMuteConfigsResponse{}]
1903-
)
1904-
end
1905-
19061754
@doc """
19071755
Updates a mute config.
19081756

0 commit comments

Comments
 (0)