Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Automated regeneration of ChromeManagement client #11398

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion clients/chrome_management/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_chrome_management, "~> 0.4"}]
[{:google_api_chrome_management, "~> 0.5"}]
end
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ defmodule GoogleApi.ChromeManagement.V1 do
API client metadata for GoogleApi.ChromeManagement.V1.
"""

@discovery_revision "20240321"
@discovery_revision "20240516"

def discovery_revision(), do: @discovery_revision
end
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
# 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.ChromeManagement.V1.Model.GoogleChromeManagementV1TelemetryAppInstallEvent do
@moduledoc """
App installation data.

## Attributes

* `appId` (*type:* `String.t`, *default:* `nil`) - App id. For PWAs this is the start URL, and for extensions this is the extension id.
* `appInstallReason` (*type:* `String.t`, *default:* `nil`) - App installation reason.
* `appInstallSource` (*type:* `String.t`, *default:* `nil`) - App installation source.
* `appInstallTime` (*type:* `String.t`, *default:* `nil`) - App installation time depending on the app lifecycle.
* `appType` (*type:* `String.t`, *default:* `nil`) - Type of app.
"""

use GoogleApi.Gax.ModelBase

@type t :: %__MODULE__{
:appId => String.t() | nil,
:appInstallReason => String.t() | nil,
:appInstallSource => String.t() | nil,
:appInstallTime => String.t() | nil,
:appType => String.t() | nil
}

field(:appId)
field(:appInstallReason)
field(:appInstallSource)
field(:appInstallTime)
field(:appType)
end

defimpl Poison.Decoder,
for: GoogleApi.ChromeManagement.V1.Model.GoogleChromeManagementV1TelemetryAppInstallEvent do
def decode(value, options) do
GoogleApi.ChromeManagement.V1.Model.GoogleChromeManagementV1TelemetryAppInstallEvent.decode(
value,
options
)
end
end

defimpl Poison.Encoder,
for: GoogleApi.ChromeManagement.V1.Model.GoogleChromeManagementV1TelemetryAppInstallEvent do
def encode(value, options) do
GoogleApi.Gax.ModelBase.encode(value, options)
end
end
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
# 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.ChromeManagement.V1.Model.GoogleChromeManagementV1TelemetryAppLaunchEvent do
@moduledoc """
App launch data.

## Attributes

* `appId` (*type:* `String.t`, *default:* `nil`) - App id. For PWAs this is the start URL, and for extensions this is the extension id.
* `appLaunchSource` (*type:* `String.t`, *default:* `nil`) - App launch source.
* `appType` (*type:* `String.t`, *default:* `nil`) - Type of app.
"""

use GoogleApi.Gax.ModelBase

@type t :: %__MODULE__{
:appId => String.t() | nil,
:appLaunchSource => String.t() | nil,
:appType => String.t() | nil
}

field(:appId)
field(:appLaunchSource)
field(:appType)
end

defimpl Poison.Decoder,
for: GoogleApi.ChromeManagement.V1.Model.GoogleChromeManagementV1TelemetryAppLaunchEvent do
def decode(value, options) do
GoogleApi.ChromeManagement.V1.Model.GoogleChromeManagementV1TelemetryAppLaunchEvent.decode(
value,
options
)
end
end

defimpl Poison.Encoder,
for: GoogleApi.ChromeManagement.V1.Model.GoogleChromeManagementV1TelemetryAppLaunchEvent do
def encode(value, options) do
GoogleApi.Gax.ModelBase.encode(value, options)
end
end
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
# 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.ChromeManagement.V1.Model.GoogleChromeManagementV1TelemetryAppUninstallEvent do
@moduledoc """
App uninstall data.

## Attributes

* `appId` (*type:* `String.t`, *default:* `nil`) - App id. For PWAs this is the start URL, and for extensions this is the extension id.
* `appType` (*type:* `String.t`, *default:* `nil`) - Type of app.
* `appUninstallSource` (*type:* `String.t`, *default:* `nil`) - App uninstall source.
"""

use GoogleApi.Gax.ModelBase

@type t :: %__MODULE__{
:appId => String.t() | nil,
:appType => String.t() | nil,
:appUninstallSource => String.t() | nil
}

field(:appId)
field(:appType)
field(:appUninstallSource)
end

defimpl Poison.Decoder,
for: GoogleApi.ChromeManagement.V1.Model.GoogleChromeManagementV1TelemetryAppUninstallEvent do
def decode(value, options) do
GoogleApi.ChromeManagement.V1.Model.GoogleChromeManagementV1TelemetryAppUninstallEvent.decode(
value,
options
)
end
end

defimpl Poison.Encoder,
for: GoogleApi.ChromeManagement.V1.Model.GoogleChromeManagementV1TelemetryAppUninstallEvent 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 @@ -21,6 +21,9 @@ defmodule GoogleApi.ChromeManagement.V1.Model.GoogleChromeManagementV1TelemetryE

## Attributes

* `appInstallEvent` (*type:* `GoogleApi.ChromeManagement.V1.Model.GoogleChromeManagementV1TelemetryAppInstallEvent.t`, *default:* `nil`) - Output only. Payload for app install event. Present only when `event_type` is `APP_INSTALLED`.
* `appLaunchEvent` (*type:* `GoogleApi.ChromeManagement.V1.Model.GoogleChromeManagementV1TelemetryAppLaunchEvent.t`, *default:* `nil`) - Output only. Payload for app launch event.Present only when `event_type` is `APP_LAUNCHED`.
* `appUninstallEvent` (*type:* `GoogleApi.ChromeManagement.V1.Model.GoogleChromeManagementV1TelemetryAppUninstallEvent.t`, *default:* `nil`) - Output only. Payload for app uninstall event. Present only when `event_type` is `APP_UNINSTALLED`.
* `audioSevereUnderrunEvent` (*type:* `GoogleApi.ChromeManagement.V1.Model.GoogleChromeManagementV1TelemetryAudioSevereUnderrunEvent.t`, *default:* `nil`) - Output only. Payload for audio severe underrun event. Present only when the `event_type` field is `AUDIO_SEVERE_UNDERRUN`.
* `device` (*type:* `GoogleApi.ChromeManagement.V1.Model.GoogleChromeManagementV1TelemetryDeviceInfo.t`, *default:* `nil`) - Output only. Information about the device associated with the event.
* `eventType` (*type:* `String.t`, *default:* `nil`) - The event type of the current event.
Expand All @@ -37,6 +40,15 @@ defmodule GoogleApi.ChromeManagement.V1.Model.GoogleChromeManagementV1TelemetryE
use GoogleApi.Gax.ModelBase

@type t :: %__MODULE__{
:appInstallEvent =>
GoogleApi.ChromeManagement.V1.Model.GoogleChromeManagementV1TelemetryAppInstallEvent.t()
| nil,
:appLaunchEvent =>
GoogleApi.ChromeManagement.V1.Model.GoogleChromeManagementV1TelemetryAppLaunchEvent.t()
| nil,
:appUninstallEvent =>
GoogleApi.ChromeManagement.V1.Model.GoogleChromeManagementV1TelemetryAppUninstallEvent.t()
| nil,
:audioSevereUnderrunEvent =>
GoogleApi.ChromeManagement.V1.Model.GoogleChromeManagementV1TelemetryAudioSevereUnderrunEvent.t()
| nil,
Expand Down Expand Up @@ -66,6 +78,18 @@ defmodule GoogleApi.ChromeManagement.V1.Model.GoogleChromeManagementV1TelemetryE
| nil
}

field(:appInstallEvent,
as: GoogleApi.ChromeManagement.V1.Model.GoogleChromeManagementV1TelemetryAppInstallEvent
)

field(:appLaunchEvent,
as: GoogleApi.ChromeManagement.V1.Model.GoogleChromeManagementV1TelemetryAppLaunchEvent
)

field(:appUninstallEvent,
as: GoogleApi.ChromeManagement.V1.Model.GoogleChromeManagementV1TelemetryAppUninstallEvent
)

field(:audioSevereUnderrunEvent,
as:
GoogleApi.ChromeManagement.V1.Model.GoogleChromeManagementV1TelemetryAudioSevereUnderrunEvent
Expand Down
2 changes: 1 addition & 1 deletion clients/chrome_management/mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
defmodule GoogleApi.ChromeManagement.Mixfile do
use Mix.Project

@version "0.4.1"
@version "0.5.0"

def project() do
[
Expand Down
Loading