From 62dee032af1feb96c500c5d6028b890829ed78fd Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Thu, 31 Oct 2024 13:17:51 +0000 Subject: [PATCH] feat: Automated regeneration of Admin client --- clients/admin/README.md | 2 +- .../admin/directory_v1/connection.ex | 4 +- .../google_api/admin/directory_v1/metadata.ex | 2 +- .../admin/directory_v1/model/byte_usage.ex | 49 +++++++++++++++++++ .../directory_v1/model/chrome_os_device.ex | 3 ++ clients/admin/mix.exs | 2 +- 6 files changed, 57 insertions(+), 5 deletions(-) create mode 100644 clients/admin/lib/google_api/admin/directory_v1/model/byte_usage.ex diff --git a/clients/admin/README.md b/clients/admin/README.md index 4e2cf7e552..f85ab4cc90 100644 --- a/clients/admin/README.md +++ b/clients/admin/README.md @@ -11,7 +11,7 @@ Install this package from [Hex](https://hex.pm) by adding ```elixir def deps do - [{:google_api_admin, "~> 0.42"}] + [{:google_api_admin, "~> 0.43"}] end ``` diff --git a/clients/admin/lib/google_api/admin/directory_v1/connection.ex b/clients/admin/lib/google_api/admin/directory_v1/connection.ex index bb0d139954..0ac747b495 100644 --- a/clients/admin/lib/google_api/admin/directory_v1/connection.ex +++ b/clients/admin/lib/google_api/admin/directory_v1/connection.ex @@ -36,10 +36,10 @@ defmodule GoogleApi.Admin.Directory_v1.Connection do # View customer related information "https://www.googleapis.com/auth/admin.directory.customer.readonly", - # View and manage your Chrome OS devices' metadata + # View and manage your ChromeOS devices' metadata "https://www.googleapis.com/auth/admin.directory.device.chromeos", - # View your Chrome OS devices' metadata + # View your ChromeOS devices' metadata "https://www.googleapis.com/auth/admin.directory.device.chromeos.readonly", # View and manage your mobile devices' metadata diff --git a/clients/admin/lib/google_api/admin/directory_v1/metadata.ex b/clients/admin/lib/google_api/admin/directory_v1/metadata.ex index f1cba736e7..8942dfd5a3 100644 --- a/clients/admin/lib/google_api/admin/directory_v1/metadata.ex +++ b/clients/admin/lib/google_api/admin/directory_v1/metadata.ex @@ -20,7 +20,7 @@ defmodule GoogleApi.Admin.Directory_v1 do API client metadata for GoogleApi.Admin.Directory_v1. """ - @discovery_revision "20240917" + @discovery_revision "20241029" def discovery_revision(), do: @discovery_revision end diff --git a/clients/admin/lib/google_api/admin/directory_v1/model/byte_usage.ex b/clients/admin/lib/google_api/admin/directory_v1/model/byte_usage.ex new file mode 100644 index 0000000000..cb6c96e1a7 --- /dev/null +++ b/clients/admin/lib/google_api/admin/directory_v1/model/byte_usage.ex @@ -0,0 +1,49 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Admin.Directory_v1.Model.ByteUsage do + @moduledoc """ + Represents a data capacity with some amount of current usage in bytes. + + ## Attributes + + * `capacityBytes` (*type:* `String.t`, *default:* `nil`) - Output only. The total capacity value, in bytes. + * `usedBytes` (*type:* `String.t`, *default:* `nil`) - Output only. The current usage value, in bytes. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :capacityBytes => String.t() | nil, + :usedBytes => String.t() | nil + } + + field(:capacityBytes) + field(:usedBytes) +end + +defimpl Poison.Decoder, for: GoogleApi.Admin.Directory_v1.Model.ByteUsage do + def decode(value, options) do + GoogleApi.Admin.Directory_v1.Model.ByteUsage.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Admin.Directory_v1.Model.ByteUsage do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/admin/lib/google_api/admin/directory_v1/model/chrome_os_device.ex b/clients/admin/lib/google_api/admin/directory_v1/model/chrome_os_device.ex index 03f5ab18f0..8a5bbba23d 100644 --- a/clients/admin/lib/google_api/admin/directory_v1/model/chrome_os_device.ex +++ b/clients/admin/lib/google_api/admin/directory_v1/model/chrome_os_device.ex @@ -65,6 +65,7 @@ defmodule GoogleApi.Admin.Directory_v1.Model.ChromeOsDevice do * `ethernetMacAddress` (*type:* `String.t`, *default:* `nil`) - The device's MAC address on the ethernet network interface. * `orgUnitId` (*type:* `String.t`, *default:* `nil`) - The unique ID of the organizational unit. orgUnitPath is the human readable version of orgUnitId. While orgUnitPath may change by renaming an organizational unit within the path, orgUnitId is unchangeable for one organizational unit. This property can be [updated](/admin-sdk/directory/v1/guides/manage-chrome-devices#move_chrome_devices_to_ou) using the API. For more information about how to create an organizational structure for your device, see the [administration help center](https://support.google.com/a/answer/182433). * `osVersion` (*type:* `String.t`, *default:* `nil`) - The Chrome device's operating system version. + * `diskSpaceUsage` (*type:* `GoogleApi.Admin.Directory_v1.Model.ByteUsage.t`, *default:* `nil`) - Output only. How much disk space the device has available and is currently using. * `etag` (*type:* `String.t`, *default:* `nil`) - ETag of the resource. * `status` (*type:* `String.t`, *default:* `nil`) - The status of the device. * `systemRamFreeReports` (*type:* `list(GoogleApi.Admin.Directory_v1.Model.ChromeOsDeviceSystemRamFreeReports.t)`, *default:* `nil`) - Reports of amounts of available RAM memory (Read-only) @@ -129,6 +130,7 @@ defmodule GoogleApi.Admin.Directory_v1.Model.ChromeOsDevice do :ethernetMacAddress => String.t() | nil, :orgUnitId => String.t() | nil, :osVersion => String.t() | nil, + :diskSpaceUsage => GoogleApi.Admin.Directory_v1.Model.ByteUsage.t() | nil, :etag => String.t() | nil, :status => String.t() | nil, :systemRamFreeReports => @@ -216,6 +218,7 @@ defmodule GoogleApi.Admin.Directory_v1.Model.ChromeOsDevice do field(:ethernetMacAddress) field(:orgUnitId) field(:osVersion) + field(:diskSpaceUsage, as: GoogleApi.Admin.Directory_v1.Model.ByteUsage) field(:etag) field(:status) diff --git a/clients/admin/mix.exs b/clients/admin/mix.exs index 3cfdd81523..59dfe2f601 100644 --- a/clients/admin/mix.exs +++ b/clients/admin/mix.exs @@ -18,7 +18,7 @@ defmodule GoogleApi.Admin.Mixfile do use Mix.Project - @version "0.42.2" + @version "0.43.0" def project() do [