Skip to content

Commit

Permalink
feat: Automated regeneration of androidmanagement v1 client
Browse files Browse the repository at this point in the history
  • Loading branch information
yoshi-automation committed Nov 20, 2020
1 parent b264d97 commit 05b0174
Show file tree
Hide file tree
Showing 5 changed files with 78 additions and 3 deletions.
5 changes: 5 additions & 0 deletions api_names_out.yaml
Expand Up @@ -8471,6 +8471,7 @@
"/androidenterprise:v1/quotaUser": quota_user
"/androidenterprise:v1/userIp": user_ip
"/androidmanagement:v1/AdvancedSecurityOverrides": advanced_security_overrides
"/androidmanagement:v1/AdvancedSecurityOverrides/commonCriteriaMode": common_criteria_mode
"/androidmanagement:v1/AdvancedSecurityOverrides/untrustedAppsPolicy": untrusted_apps_policy
"/androidmanagement:v1/AlwaysOnVpnPackage": always_on_vpn_package
"/androidmanagement:v1/AlwaysOnVpnPackage/lockdownEnabled": lockdown_enabled
Expand Down Expand Up @@ -8547,6 +8548,8 @@
"/androidmanagement:v1/Command/resetPasswordFlags/reset_password_flag": reset_password_flag
"/androidmanagement:v1/Command/type": type
"/androidmanagement:v1/Command/userName": user_name
"/androidmanagement:v1/CommonCriteriaModeInfo": common_criteria_mode_info
"/androidmanagement:v1/CommonCriteriaModeInfo/commonCriteriaModeStatus": common_criteria_mode_status
"/androidmanagement:v1/ComplianceRule": compliance_rule
"/androidmanagement:v1/ComplianceRule/apiLevelCondition": api_level_condition
"/androidmanagement:v1/ComplianceRule/disableApps": disable_apps
Expand All @@ -8564,6 +8567,7 @@
"/androidmanagement:v1/Device/appliedPolicyName": applied_policy_name
"/androidmanagement:v1/Device/appliedPolicyVersion": applied_policy_version
"/androidmanagement:v1/Device/appliedState": applied_state
"/androidmanagement:v1/Device/commonCriteriaModeInfo": common_criteria_mode_info
"/androidmanagement:v1/Device/deviceSettings": device_settings
"/androidmanagement:v1/Device/disabledReason": disabled_reason
"/androidmanagement:v1/Device/displays": displays
Expand Down Expand Up @@ -8952,6 +8956,7 @@
"/androidmanagement:v1/StatusReportingSettings": status_reporting_settings
"/androidmanagement:v1/StatusReportingSettings/applicationReportingSettings": application_reporting_settings
"/androidmanagement:v1/StatusReportingSettings/applicationReportsEnabled": application_reports_enabled
"/androidmanagement:v1/StatusReportingSettings/commonCriteriaModeEnabled": common_criteria_mode_enabled
"/androidmanagement:v1/StatusReportingSettings/deviceSettingsEnabled": device_settings_enabled
"/androidmanagement:v1/StatusReportingSettings/displayInfoEnabled": display_info_enabled
"/androidmanagement:v1/StatusReportingSettings/hardwareStatusEnabled": hardware_status_enabled
Expand Down
2 changes: 1 addition & 1 deletion generated/google/apis/androidmanagement_v1.rb
Expand Up @@ -26,7 +26,7 @@ module Apis
# @see https://developers.google.com/android/management
module AndroidmanagementV1
VERSION = 'V1'
REVISION = '20201012'
REVISION = '20201112'

# Manage Android devices and apps for your customers
AUTH_ANDROIDMANAGEMENT = 'https://www.googleapis.com/auth/androidmanagement'
Expand Down
55 changes: 54 additions & 1 deletion generated/google/apis/androidmanagement_v1/classes.rb
Expand Up @@ -28,6 +28,18 @@ module AndroidmanagementV1
class AdvancedSecurityOverrides
include Google::Apis::Core::Hashable

# Controls Common Criteria Mode—security standards defined in the Common
# Criteria for Information Technology Security Evaluation (https://www.
# commoncriteriaportal.org/) (CC). Enabling Common Criteria Mode increases
# certain security components on a device, including AES-GCM encryption of
# Bluetooth Long Term Keys, and Wi-Fi configuration stores.Warning: Common
# Criteria Mode enforces a strict security model typically only required for IT
# products used in national security systems and other highly sensitive
# organizations. Standard device use may be affected. Only enabled if required.
# Corresponds to the JSON property `commonCriteriaMode`
# @return [String]
attr_accessor :common_criteria_mode

# The policy for untrusted apps (apps from unknown sources) enforced on the
# device. Replaces install_unknown_sources_allowed (deprecated).
# Corresponds to the JSON property `untrustedAppsPolicy`
Expand All @@ -40,6 +52,7 @@ def initialize(**args)

# Update properties of this object
def update!(**args)
@common_criteria_mode = args[:common_criteria_mode] if args.key?(:common_criteria_mode)
@untrusted_apps_policy = args[:untrusted_apps_policy] if args.key?(:untrusted_apps_policy)
end
end
Expand Down Expand Up @@ -565,6 +578,29 @@ def update!(**args)
end
end

# Information about Common Criteria Mode—security standards defined in the
# Common Criteria for Information Technology Security Evaluation (https://www.
# commoncriteriaportal.org/) (CC).This information is only available if
# statusReportingSettings.commonCriteriaModeEnabled is true in the device's
# policy.
class CommonCriteriaModeInfo
include Google::Apis::Core::Hashable

# Whether Common Criteria Mode is enabled.
# Corresponds to the JSON property `commonCriteriaModeStatus`
# @return [String]
attr_accessor :common_criteria_mode_status

def initialize(**args)
update!(**args)
end

# Update properties of this object
def update!(**args)
@common_criteria_mode_status = args[:common_criteria_mode_status] if args.key?(:common_criteria_mode_status)
end
end

# A rule declaring which mitigating actions to take when a device is not
# compliant with its policy. For every rule, there is always an implicit
# mitigating action to set policy_compliant to false for the Device resource,
Expand Down Expand Up @@ -690,6 +726,15 @@ class Device
# @return [String]
attr_accessor :applied_state

# Information about Common Criteria Mode—security standards defined in the
# Common Criteria for Information Technology Security Evaluation (https://www.
# commoncriteriaportal.org/) (CC).This information is only available if
# statusReportingSettings.commonCriteriaModeEnabled is true in the device's
# policy.
# Corresponds to the JSON property `commonCriteriaModeInfo`
# @return [Google::Apis::AndroidmanagementV1::CommonCriteriaModeInfo]
attr_accessor :common_criteria_mode_info

# Information about security related device settings on device.
# Corresponds to the JSON property `deviceSettings`
# @return [Google::Apis::AndroidmanagementV1::DeviceSettings]
Expand Down Expand Up @@ -870,6 +915,7 @@ def update!(**args)
@applied_policy_name = args[:applied_policy_name] if args.key?(:applied_policy_name)
@applied_policy_version = args[:applied_policy_version] if args.key?(:applied_policy_version)
@applied_state = args[:applied_state] if args.key?(:applied_state)
@common_criteria_mode_info = args[:common_criteria_mode_info] if args.key?(:common_criteria_mode_info)
@device_settings = args[:device_settings] if args.key?(:device_settings)
@disabled_reason = args[:disabled_reason] if args.key?(:disabled_reason)
@displays = args[:displays] if args.key?(:displays)
Expand Down Expand Up @@ -2281,7 +2327,7 @@ class PersonalUsagePolicies
# @return [Array<Google::Apis::AndroidmanagementV1::PersonalApplicationPolicy>]
attr_accessor :personal_applications

# Used together with personal_applications to control how apps in the personal
# Used together with personalApplications to control how apps in the personal
# profile are allowed or blocked.
# Corresponds to the JSON property `personalPlayStoreMode`
# @return [String]
Expand Down Expand Up @@ -3316,6 +3362,12 @@ class StatusReportingSettings
attr_accessor :application_reports_enabled
alias_method :application_reports_enabled?, :application_reports_enabled

# Whether Common Criteria Mode reporting is enabled.
# Corresponds to the JSON property `commonCriteriaModeEnabled`
# @return [Boolean]
attr_accessor :common_criteria_mode_enabled
alias_method :common_criteria_mode_enabled?, :common_criteria_mode_enabled

# Whether device settings reporting is enabled.
# Corresponds to the JSON property `deviceSettingsEnabled`
# @return [Boolean]
Expand Down Expand Up @@ -3375,6 +3427,7 @@ def initialize(**args)
def update!(**args)
@application_reporting_settings = args[:application_reporting_settings] if args.key?(:application_reporting_settings)
@application_reports_enabled = args[:application_reports_enabled] if args.key?(:application_reports_enabled)
@common_criteria_mode_enabled = args[:common_criteria_mode_enabled] if args.key?(:common_criteria_mode_enabled)
@device_settings_enabled = args[:device_settings_enabled] if args.key?(:device_settings_enabled)
@display_info_enabled = args[:display_info_enabled] if args.key?(:display_info_enabled)
@hardware_status_enabled = args[:hardware_status_enabled] if args.key?(:hardware_status_enabled)
Expand Down
17 changes: 17 additions & 0 deletions generated/google/apis/androidmanagement_v1/representations.rb
Expand Up @@ -100,6 +100,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end

class CommonCriteriaModeInfo
class Representation < Google::Apis::Core::JsonRepresentation; end

include Google::Apis::Core::JsonObjectSupport
end

class ComplianceRule
class Representation < Google::Apis::Core::JsonRepresentation; end

Expand Down Expand Up @@ -433,6 +439,7 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
class AdvancedSecurityOverrides
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :common_criteria_mode, as: 'commonCriteriaMode'
property :untrusted_apps_policy, as: 'untrustedAppsPolicy'
end
end
Expand Down Expand Up @@ -567,6 +574,13 @@ class Representation < Google::Apis::Core::JsonRepresentation
end
end

class CommonCriteriaModeInfo
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :common_criteria_mode_status, as: 'commonCriteriaModeStatus'
end
end

class ComplianceRule
# @private
class Representation < Google::Apis::Core::JsonRepresentation
Expand Down Expand Up @@ -597,6 +611,8 @@ class Representation < Google::Apis::Core::JsonRepresentation
property :applied_policy_name, as: 'appliedPolicyName'
property :applied_policy_version, :numeric_string => true, as: 'appliedPolicyVersion'
property :applied_state, as: 'appliedState'
property :common_criteria_mode_info, as: 'commonCriteriaModeInfo', class: Google::Apis::AndroidmanagementV1::CommonCriteriaModeInfo, decorator: Google::Apis::AndroidmanagementV1::CommonCriteriaModeInfo::Representation

property :device_settings, as: 'deviceSettings', class: Google::Apis::AndroidmanagementV1::DeviceSettings, decorator: Google::Apis::AndroidmanagementV1::DeviceSettings::Representation

property :disabled_reason, as: 'disabledReason', class: Google::Apis::AndroidmanagementV1::UserFacingMessage, decorator: Google::Apis::AndroidmanagementV1::UserFacingMessage::Representation
Expand Down Expand Up @@ -1199,6 +1215,7 @@ class Representation < Google::Apis::Core::JsonRepresentation
property :application_reporting_settings, as: 'applicationReportingSettings', class: Google::Apis::AndroidmanagementV1::ApplicationReportingSettings, decorator: Google::Apis::AndroidmanagementV1::ApplicationReportingSettings::Representation

property :application_reports_enabled, as: 'applicationReportsEnabled'
property :common_criteria_mode_enabled, as: 'commonCriteriaModeEnabled'
property :device_settings_enabled, as: 'deviceSettingsEnabled'
property :display_info_enabled, as: 'displayInfoEnabled'
property :hardware_status_enabled, as: 'hardwareStatusEnabled'
Expand Down
2 changes: 1 addition & 1 deletion generated/google/apis/androidmanagement_v1/synth.metadata
Expand Up @@ -4,7 +4,7 @@
"git": {
"name": ".",
"remote": "https://github.com/googleapis/google-api-ruby-client.git",
"sha": "cb0c5bf94e2b1c915107eec83041d4409c900155"
"sha": "b264d974a86e5acbc70cd73915eaf73daac61a63"
}
}
]
Expand Down

0 comments on commit 05b0174

Please sign in to comment.