Skip to content

Commit 38a82f6

Browse files
feat: Automated regeneration of ChromeManagement client (googleapis#12402)
Auto-created at 2024-10-24 13:18:09 +0000 using the toys pull request generator.
1 parent 13a9c2c commit 38a82f6

File tree

9 files changed

+196
-7
lines changed

9 files changed

+196
-7
lines changed

clients/chrome_management/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_chrome_management, "~> 0.6"}]
14+
[{:google_api_chrome_management, "~> 0.7"}]
1515
end
1616
```
1717

clients/chrome_management/lib/google_api/chrome_management/v1/api/customers.ex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1002,8 +1002,8 @@ defmodule GoogleApi.ChromeManagement.V1.Api.Customers do
10021002
* `: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.
10031003
* `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart").
10041004
* `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart").
1005-
* `:filter` (*type:* `String.t`) - Query string to filter results, AND-separated fields in EBNF syntax. Note: OR operations are not supported in this filter. Supported filter fields: * app_name * app_type * install_type * number_of_permissions * total_install_count * latest_profile_active_date * permission_name * app_id * manifest_versions
1006-
* `:orderBy` (*type:* `String.t`) - Field used to order results. Supported order by fields: * app_name * app_type * install_type * number_of_permissions * total_install_count * app_id * manifest_versions
1005+
* `:filter` (*type:* `String.t`) - Query string to filter results, AND-separated fields in EBNF syntax. Note: OR operations are not supported in this filter. Supported filter fields: * app_name * app_type * install_type * number_of_permissions * total_install_count * latest_profile_active_date * permission_name * app_id * manifest_versions * risk_score
1006+
* `:orderBy` (*type:* `String.t`) - Field used to order results. Supported order by fields: * app_name * app_type * install_type * number_of_permissions * total_install_count * app_id * manifest_versions * risk_score
10071007
* `:orgUnitId` (*type:* `String.t`) - The ID of the organizational unit.
10081008
* `:pageSize` (*type:* `integer()`) - Maximum number of results to return. Maximum and default are 100.
10091009
* `:pageToken` (*type:* `String.t`) - Token to specify the page of the request to be returned.

clients/chrome_management/lib/google_api/chrome_management/v1/connection.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ defmodule GoogleApi.ChromeManagement.V1.Connection do
3030
# See reports about devices and Chrome browsers managed within your organization
3131
"https://www.googleapis.com/auth/chrome.management.reports.readonly",
3232

33-
# See basic device and telemetry information collected from Chrome OS devices or users managed within your organization
33+
# See basic device and telemetry information collected from ChromeOS devices or users managed within your organization
3434
"https://www.googleapis.com/auth/chrome.management.telemetry.readonly"
3535
],
3636
otp_app: :google_api_chrome_management,

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

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

23-
@discovery_revision "20240815"
23+
@discovery_revision "20241022"
2424

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

clients/chrome_management/lib/google_api/chrome_management/v1/model/google_chrome_management_v1_installed_app.ex

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ defmodule GoogleApi.ChromeManagement.V1.Model.GoogleChromeManagementV1InstalledA
3232
* `homepageUri` (*type:* `String.t`, *default:* `nil`) - Output only. Homepage uri of the installed app.
3333
* `osUserCount` (*type:* `String.t`, *default:* `nil`) - Output only. Count of ChromeOS users with this app installed.
3434
* `permissions` (*type:* `list(String.t)`, *default:* `nil`) - Output only. Permissions of the installed app.
35+
* `riskAssessment` (*type:* `GoogleApi.ChromeManagement.V1.Model.GoogleChromeManagementV1RiskAssessmentData.t`, *default:* `nil`) - Output only. If available, the risk assessment data about this extension.
3536
"""
3637

3738
use GoogleApi.Gax.ModelBase
@@ -47,7 +48,10 @@ defmodule GoogleApi.ChromeManagement.V1.Model.GoogleChromeManagementV1InstalledA
4748
:displayName => String.t() | nil,
4849
:homepageUri => String.t() | nil,
4950
:osUserCount => String.t() | nil,
50-
:permissions => list(String.t()) | nil
51+
:permissions => list(String.t()) | nil,
52+
:riskAssessment =>
53+
GoogleApi.ChromeManagement.V1.Model.GoogleChromeManagementV1RiskAssessmentData.t()
54+
| nil
5155
}
5256

5357
field(:appId)
@@ -61,6 +65,10 @@ defmodule GoogleApi.ChromeManagement.V1.Model.GoogleChromeManagementV1InstalledA
6165
field(:homepageUri)
6266
field(:osUserCount)
6367
field(:permissions, type: :list)
68+
69+
field(:riskAssessment,
70+
as: GoogleApi.ChromeManagement.V1.Model.GoogleChromeManagementV1RiskAssessmentData
71+
)
6472
end
6573

6674
defimpl Poison.Decoder,
Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
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.ChromeManagement.V1.Model.GoogleChromeManagementV1RiskAssessment do
19+
@moduledoc """
20+
Risk assessment for a Chrome extension.
21+
22+
## Attributes
23+
24+
* `assessment` (*type:* `String.t`, *default:* `nil`) - Risk assessment for the extension. Currently, this is a numerical value, and higher values denote higher risk.
25+
* `detailsUrl` (*type:* `String.t`, *default:* `nil`) - A URL that a user can navigate to for more information about the risk assessment.
26+
* `version` (*type:* `String.t`, *default:* `nil`) - The version of the extension that this assessment applies to.
27+
"""
28+
29+
use GoogleApi.Gax.ModelBase
30+
31+
@type t :: %__MODULE__{
32+
:assessment => String.t() | nil,
33+
:detailsUrl => String.t() | nil,
34+
:version => String.t() | nil
35+
}
36+
37+
field(:assessment)
38+
field(:detailsUrl)
39+
field(:version)
40+
end
41+
42+
defimpl Poison.Decoder,
43+
for: GoogleApi.ChromeManagement.V1.Model.GoogleChromeManagementV1RiskAssessment do
44+
def decode(value, options) do
45+
GoogleApi.ChromeManagement.V1.Model.GoogleChromeManagementV1RiskAssessment.decode(
46+
value,
47+
options
48+
)
49+
end
50+
end
51+
52+
defimpl Poison.Encoder,
53+
for: GoogleApi.ChromeManagement.V1.Model.GoogleChromeManagementV1RiskAssessment do
54+
def encode(value, options) do
55+
GoogleApi.Gax.ModelBase.encode(value, options)
56+
end
57+
end
Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
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.ChromeManagement.V1.Model.GoogleChromeManagementV1RiskAssessmentData do
19+
@moduledoc """
20+
Risk assessment data about an extension/app.
21+
22+
## Attributes
23+
24+
* `entries` (*type:* `list(GoogleApi.ChromeManagement.V1.Model.GoogleChromeManagementV1RiskAssessmentEntry.t)`, *default:* `nil`) - Individual risk assessments.
25+
* `overallRiskLevel` (*type:* `String.t`, *default:* `nil`) - Overall assessed risk level across all entries. This will be the highest risk level from all entries.
26+
"""
27+
28+
use GoogleApi.Gax.ModelBase
29+
30+
@type t :: %__MODULE__{
31+
:entries =>
32+
list(
33+
GoogleApi.ChromeManagement.V1.Model.GoogleChromeManagementV1RiskAssessmentEntry.t()
34+
)
35+
| nil,
36+
:overallRiskLevel => String.t() | nil
37+
}
38+
39+
field(:entries,
40+
as: GoogleApi.ChromeManagement.V1.Model.GoogleChromeManagementV1RiskAssessmentEntry,
41+
type: :list
42+
)
43+
44+
field(:overallRiskLevel)
45+
end
46+
47+
defimpl Poison.Decoder,
48+
for: GoogleApi.ChromeManagement.V1.Model.GoogleChromeManagementV1RiskAssessmentData do
49+
def decode(value, options) do
50+
GoogleApi.ChromeManagement.V1.Model.GoogleChromeManagementV1RiskAssessmentData.decode(
51+
value,
52+
options
53+
)
54+
end
55+
end
56+
57+
defimpl Poison.Encoder,
58+
for: GoogleApi.ChromeManagement.V1.Model.GoogleChromeManagementV1RiskAssessmentData do
59+
def encode(value, options) do
60+
GoogleApi.Gax.ModelBase.encode(value, options)
61+
end
62+
end
Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
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.ChromeManagement.V1.Model.GoogleChromeManagementV1RiskAssessmentEntry do
19+
@moduledoc """
20+
One risk assessment entry.
21+
22+
## Attributes
23+
24+
* `provider` (*type:* `String.t`, *default:* `nil`) - The risk assessment provider from which this entry comes from.
25+
* `riskAssessment` (*type:* `GoogleApi.ChromeManagement.V1.Model.GoogleChromeManagementV1RiskAssessment.t`, *default:* `nil`) - The details of the provider's risk assessment.
26+
* `riskLevel` (*type:* `String.t`, *default:* `nil`) - The bucketed risk level for the risk assessment.
27+
"""
28+
29+
use GoogleApi.Gax.ModelBase
30+
31+
@type t :: %__MODULE__{
32+
:provider => String.t() | nil,
33+
:riskAssessment =>
34+
GoogleApi.ChromeManagement.V1.Model.GoogleChromeManagementV1RiskAssessment.t() | nil,
35+
:riskLevel => String.t() | nil
36+
}
37+
38+
field(:provider)
39+
40+
field(:riskAssessment,
41+
as: GoogleApi.ChromeManagement.V1.Model.GoogleChromeManagementV1RiskAssessment
42+
)
43+
44+
field(:riskLevel)
45+
end
46+
47+
defimpl Poison.Decoder,
48+
for: GoogleApi.ChromeManagement.V1.Model.GoogleChromeManagementV1RiskAssessmentEntry do
49+
def decode(value, options) do
50+
GoogleApi.ChromeManagement.V1.Model.GoogleChromeManagementV1RiskAssessmentEntry.decode(
51+
value,
52+
options
53+
)
54+
end
55+
end
56+
57+
defimpl Poison.Encoder,
58+
for: GoogleApi.ChromeManagement.V1.Model.GoogleChromeManagementV1RiskAssessmentEntry do
59+
def encode(value, options) do
60+
GoogleApi.Gax.ModelBase.encode(value, options)
61+
end
62+
end

clients/chrome_management/mix.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
defmodule GoogleApi.ChromeManagement.Mixfile do
1919
use Mix.Project
2020

21-
@version "0.6.1"
21+
@version "0.7.0"
2222

2323
def project() do
2424
[

0 commit comments

Comments
 (0)