Skip to content

Commit

Permalink
feat: Automated regeneration of Admin client
Browse files Browse the repository at this point in the history
  • Loading branch information
yoshi-automation committed Oct 31, 2024
1 parent cd442ed commit 62dee03
Show file tree
Hide file tree
Showing 6 changed files with 57 additions and 5 deletions.
2 changes: 1 addition & 1 deletion clients/admin/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```

Expand Down
4 changes: 2 additions & 2 deletions clients/admin/lib/google_api/admin/directory_v1/connection.ex
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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 =>
Expand Down Expand Up @@ -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)

Expand Down
2 changes: 1 addition & 1 deletion clients/admin/mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
defmodule GoogleApi.Admin.Mixfile do
use Mix.Project

@version "0.42.2"
@version "0.43.0"

def project() do
[
Expand Down

0 comments on commit 62dee03

Please sign in to comment.