-
Notifications
You must be signed in to change notification settings - Fork 460
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Automated regeneration of VerifiedAccess client (#10931)
Auto-created at 2024-03-12 02:32:04 +0000 using the toys pull request generator.
- Loading branch information
1 parent
a153031
commit b9bf233
Showing
7 changed files
with
210 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
49 changes: 49 additions & 0 deletions
49
clients/verified_access/lib/google_api/verified_access/v2/model/crowd_strike_agent.ex
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.VerifiedAccess.V2.Model.CrowdStrikeAgent do | ||
@moduledoc """ | ||
Properties of the CrowdStrike agent installed on a device. | ||
## Attributes | ||
* `agentId` (*type:* `String.t`, *default:* `nil`) - The Agent ID of the Crowdstrike agent. | ||
* `customerId` (*type:* `String.t`, *default:* `nil`) - The Customer ID to which the agent belongs to. | ||
""" | ||
|
||
use GoogleApi.Gax.ModelBase | ||
|
||
@type t :: %__MODULE__{ | ||
:agentId => String.t() | nil, | ||
:customerId => String.t() | nil | ||
} | ||
|
||
field(:agentId) | ||
field(:customerId) | ||
end | ||
|
||
defimpl Poison.Decoder, for: GoogleApi.VerifiedAccess.V2.Model.CrowdStrikeAgent do | ||
def decode(value, options) do | ||
GoogleApi.VerifiedAccess.V2.Model.CrowdStrikeAgent.decode(value, options) | ||
end | ||
end | ||
|
||
defimpl Poison.Encoder, for: GoogleApi.VerifiedAccess.V2.Model.CrowdStrikeAgent do | ||
def encode(value, options) do | ||
GoogleApi.Gax.ModelBase.encode(value, options) | ||
end | ||
end |
136 changes: 136 additions & 0 deletions
136
clients/verified_access/lib/google_api/verified_access/v2/model/device_signals.ex
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,136 @@ | ||
# 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.VerifiedAccess.V2.Model.DeviceSignals do | ||
@moduledoc """ | ||
The device signals as reported by Chrome. Unless otherwise specified, signals are available on all platforms. | ||
## Attributes | ||
* `allowScreenLock` (*type:* `boolean()`, *default:* `nil`) - Value of the AllowScreenLock policy on the device. See https://chromeenterprise.google/policies/?policy=AllowScreenLock for more details. Available on ChromeOS only. | ||
* `browserVersion` (*type:* `String.t`, *default:* `nil`) - Current version of the Chrome browser which generated this set of signals. Example value: "107.0.5286.0". | ||
* `builtInDnsClientEnabled` (*type:* `boolean()`, *default:* `nil`) - Whether Chrome's built-in DNS client is used. The OS DNS client is otherwise used. This value may be controlled by an enterprise policy: https://chromeenterprise.google/policies/#BuiltInDnsClientEnabled. | ||
* `chromeRemoteDesktopAppBlocked` (*type:* `boolean()`, *default:* `nil`) - Whether access to the Chrome Remote Desktop application is blocked via a policy. | ||
* `crowdStrikeAgent` (*type:* `GoogleApi.VerifiedAccess.V2.Model.CrowdStrikeAgent.t`, *default:* `nil`) - Crowdstrike agent properties installed on the device, if any. Available on Windows and MacOS only. | ||
* `deviceAffiliationIds` (*type:* `list(String.t)`, *default:* `nil`) - Affiliation IDs of the organizations that are affiliated with the organization that is currently managing the device. When the sets of device and profile affiliation IDs overlap, it means that the organizations managing the device and user are affiliated. To learn more about user affiliation, visit https://support.google.com/chrome/a/answer/12801245?ref_topic=9027936. | ||
* `deviceEnrollmentDomain` (*type:* `String.t`, *default:* `nil`) - Enrollment domain of the customer which is currently managing the device. | ||
* `deviceManufacturer` (*type:* `String.t`, *default:* `nil`) - The name of the device's manufacturer. | ||
* `deviceModel` (*type:* `String.t`, *default:* `nil`) - The name of the device's model. | ||
* `diskEncryption` (*type:* `String.t`, *default:* `nil`) - The encryption state of the disk. On ChromeOS, the main disk is always ENCRYPTED. | ||
* `displayName` (*type:* `String.t`, *default:* `nil`) - The display name of the device, as defined by the user. | ||
* `hostname` (*type:* `String.t`, *default:* `nil`) - Hostname of the device. | ||
* `imei` (*type:* `list(String.t)`, *default:* `nil`) - International Mobile Equipment Identity (IMEI) of the device. Available on ChromeOS only. | ||
* `macAddresses` (*type:* `list(String.t)`, *default:* `nil`) - MAC addresses of the device. | ||
* `meid` (*type:* `list(String.t)`, *default:* `nil`) - Mobile Equipment Identifier (MEID) of the device. Available on ChromeOS only. | ||
* `operatingSystem` (*type:* `String.t`, *default:* `nil`) - The type of the Operating System currently running on the device. | ||
* `osFirewall` (*type:* `String.t`, *default:* `nil`) - The state of the OS level firewall. On ChromeOS, the value will always be ENABLED on regular devices and UNKNOWN on devices in developer mode. | ||
* `osVersion` (*type:* `String.t`, *default:* `nil`) - The current version of the Operating System. On Windows and linux, the value will also include the security patch information. | ||
* `passwordProtectionWarningTrigger` (*type:* `String.t`, *default:* `nil`) - Whether the Password Protection Warning feature is enabled or not. Password protection alerts users when they reuse their protected password on potentially suspicious sites. This setting is controlled by an enterprise policy: https://chromeenterprise.google/policies/#PasswordProtectionWarningTrigger. Note that the policy unset does not have the same effects as having the policy explicitly set to `PASSWORD_PROTECTION_OFF`. | ||
* `profileAffiliationIds` (*type:* `list(String.t)`, *default:* `nil`) - Affiliation IDs of the organizations that are affiliated with the organization that is currently managing the Chrome Profile’s user or ChromeOS user. | ||
* `realtimeUrlCheckMode` (*type:* `String.t`, *default:* `nil`) - Whether Enterprise-grade (i.e. custom) unsafe URL scanning is enabled or not. This setting may be controlled by an enterprise policy: https://chromeenterprise.google/policies/#EnterpriseRealTimeUrlCheckMode | ||
* `safeBrowsingProtectionLevel` (*type:* `String.t`, *default:* `nil`) - Safe Browsing Protection Level. That setting may be controlled by an enterprise policy: https://chromeenterprise.google/policies/#SafeBrowsingProtectionLevel. | ||
* `screenLockSecured` (*type:* `String.t`, *default:* `nil`) - The state of the Screen Lock password protection. On ChromeOS, this value will always be ENABLED as there is not way to disable requiring a password or pin when unlocking the device. | ||
* `secureBootMode` (*type:* `String.t`, *default:* `nil`) - Whether the device's startup software has its Secure Boot feature enabled. Available on Windows only. | ||
* `serialNumber` (*type:* `String.t`, *default:* `nil`) - The serial number of the device. On Windows, this represents the BIOS's serial number. Not available on most Linux distributions. | ||
* `siteIsolationEnabled` (*type:* `boolean()`, *default:* `nil`) - Whether the Site Isolation (a.k.a Site Per Process) setting is enabled. That setting may be controlled by an enterprise policy: https://chromeenterprise.google/policies/#SitePerProcess | ||
* `systemDnsServers` (*type:* `list(String.t)`, *default:* `nil`) - List of the addesses of all OS level DNS servers configured in the device's network settings. | ||
* `thirdPartyBlockingEnabled` (*type:* `boolean()`, *default:* `nil`) - Whether Chrome is blocking third-party software injection or not. This setting may be controlled by an enterprise policy: https://chromeenterprise.google/policies/?policy=ThirdPartyBlockingEnabled. Available on Windows only. | ||
* `trigger` (*type:* `String.t`, *default:* `nil`) - The trigger which generated this set of signals. | ||
* `windowsMachineDomain` (*type:* `String.t`, *default:* `nil`) - Windows domain that the current machine has joined. Available on Windows only. | ||
* `windowsUserDomain` (*type:* `String.t`, *default:* `nil`) - Windows domain for the current OS user. Available on Windows only. | ||
""" | ||
|
||
use GoogleApi.Gax.ModelBase | ||
|
||
@type t :: %__MODULE__{ | ||
:allowScreenLock => boolean() | nil, | ||
:browserVersion => String.t() | nil, | ||
:builtInDnsClientEnabled => boolean() | nil, | ||
:chromeRemoteDesktopAppBlocked => boolean() | nil, | ||
:crowdStrikeAgent => GoogleApi.VerifiedAccess.V2.Model.CrowdStrikeAgent.t() | nil, | ||
:deviceAffiliationIds => list(String.t()) | nil, | ||
:deviceEnrollmentDomain => String.t() | nil, | ||
:deviceManufacturer => String.t() | nil, | ||
:deviceModel => String.t() | nil, | ||
:diskEncryption => String.t() | nil, | ||
:displayName => String.t() | nil, | ||
:hostname => String.t() | nil, | ||
:imei => list(String.t()) | nil, | ||
:macAddresses => list(String.t()) | nil, | ||
:meid => list(String.t()) | nil, | ||
:operatingSystem => String.t() | nil, | ||
:osFirewall => String.t() | nil, | ||
:osVersion => String.t() | nil, | ||
:passwordProtectionWarningTrigger => String.t() | nil, | ||
:profileAffiliationIds => list(String.t()) | nil, | ||
:realtimeUrlCheckMode => String.t() | nil, | ||
:safeBrowsingProtectionLevel => String.t() | nil, | ||
:screenLockSecured => String.t() | nil, | ||
:secureBootMode => String.t() | nil, | ||
:serialNumber => String.t() | nil, | ||
:siteIsolationEnabled => boolean() | nil, | ||
:systemDnsServers => list(String.t()) | nil, | ||
:thirdPartyBlockingEnabled => boolean() | nil, | ||
:trigger => String.t() | nil, | ||
:windowsMachineDomain => String.t() | nil, | ||
:windowsUserDomain => String.t() | nil | ||
} | ||
|
||
field(:allowScreenLock) | ||
field(:browserVersion) | ||
field(:builtInDnsClientEnabled) | ||
field(:chromeRemoteDesktopAppBlocked) | ||
field(:crowdStrikeAgent, as: GoogleApi.VerifiedAccess.V2.Model.CrowdStrikeAgent) | ||
field(:deviceAffiliationIds, type: :list) | ||
field(:deviceEnrollmentDomain) | ||
field(:deviceManufacturer) | ||
field(:deviceModel) | ||
field(:diskEncryption) | ||
field(:displayName) | ||
field(:hostname) | ||
field(:imei, type: :list) | ||
field(:macAddresses, type: :list) | ||
field(:meid, type: :list) | ||
field(:operatingSystem) | ||
field(:osFirewall) | ||
field(:osVersion) | ||
field(:passwordProtectionWarningTrigger) | ||
field(:profileAffiliationIds, type: :list) | ||
field(:realtimeUrlCheckMode) | ||
field(:safeBrowsingProtectionLevel) | ||
field(:screenLockSecured) | ||
field(:secureBootMode) | ||
field(:serialNumber) | ||
field(:siteIsolationEnabled) | ||
field(:systemDnsServers, type: :list) | ||
field(:thirdPartyBlockingEnabled) | ||
field(:trigger) | ||
field(:windowsMachineDomain) | ||
field(:windowsUserDomain) | ||
end | ||
|
||
defimpl Poison.Decoder, for: GoogleApi.VerifiedAccess.V2.Model.DeviceSignals do | ||
def decode(value, options) do | ||
GoogleApi.VerifiedAccess.V2.Model.DeviceSignals.decode(value, options) | ||
end | ||
end | ||
|
||
defimpl Poison.Encoder, for: GoogleApi.VerifiedAccess.V2.Model.DeviceSignals do | ||
def encode(value, options) do | ||
GoogleApi.Gax.ModelBase.encode(value, options) | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters