Skip to content

Commit

Permalink
feat: Automated regeneration of androidmanagement v1 client (#12952)
Browse files Browse the repository at this point in the history
Auto-created at 2022-11-25 11:13:43 +0000 using the toys pull request generator.
  • Loading branch information
yoshi-code-bot committed Nov 25, 2022
1 parent b14ba56 commit f25836a
Show file tree
Hide file tree
Showing 5 changed files with 42 additions and 5 deletions.
2 changes: 2 additions & 0 deletions api_names_out.yaml
Expand Up @@ -10757,6 +10757,7 @@
"/androidmanagement:v1/ApplicationPolicy/packageName": package_name
"/androidmanagement:v1/ApplicationPolicy/permissionGrants": permission_grants
"/androidmanagement:v1/ApplicationPolicy/permissionGrants/permission_grant": permission_grant
"/androidmanagement:v1/ApplicationPolicy/workProfileWidgets": work_profile_widgets
"/androidmanagement:v1/ApplicationReport": application_report
"/androidmanagement:v1/ApplicationReport/applicationSource": application_source
"/androidmanagement:v1/ApplicationReport/displayName": display_name
Expand Down Expand Up @@ -10844,6 +10845,7 @@
"/androidmanagement:v1/CrossProfilePolicies/crossProfileCopyPaste": cross_profile_copy_paste
"/androidmanagement:v1/CrossProfilePolicies/crossProfileDataSharing": cross_profile_data_sharing
"/androidmanagement:v1/CrossProfilePolicies/showWorkContactsInPersonalProfile": show_work_contacts_in_personal_profile
"/androidmanagement:v1/CrossProfilePolicies/workProfileWidgetsDefault": work_profile_widgets_default
"/androidmanagement:v1/CryptoSelfTestCompletedEvent": crypto_self_test_completed_event
"/androidmanagement:v1/CryptoSelfTestCompletedEvent/success": success
"/androidmanagement:v1/Date": date
Expand Down
4 changes: 4 additions & 0 deletions generated/google-apis-androidmanagement_v1/CHANGELOG.md
@@ -1,5 +1,9 @@
# Release history for google-apis-androidmanagement_v1

### v0.48.0 (2022-11-25)

* Regenerated from discovery document revision 20221118

### v0.47.0 (2022-11-01)

* Regenerated from discovery document revision 20221024
Expand Down
Expand Up @@ -577,7 +577,14 @@ class ApplicationPolicy
alias_method :disabled?, :disabled

# Configuration to enable an app as an extension app, with the capability of
# interacting with Android Device Policy offline.
# interacting with Android Device Policy offline. For Android versions 13 and
# above, extension apps are exempt from battery restrictions so will not be
# placed into the restricted App Standby Bucket (https://developer.android.com/
# topic/performance/appstandby#restricted-bucket). Extensions apps are also
# protected against users clearing their data or force-closing the application,
# although admins can continue to use the clear app data command (https://
# developer.android.com/management/reference/rest/v1/enterprises.devices/
# issueCommand#CommandType) on extension apps if needed for Android 13 and above.
# Corresponds to the JSON property `extensionConfig`
# @return [Google::Apis::AndroidmanagementV1::ExtensionConfig]
attr_accessor :extension_config
Expand All @@ -588,7 +595,7 @@ class ApplicationPolicy
attr_accessor :install_type

# Whether the app is allowed to lock itself in full-screen mode. DEPRECATED. Use
# InstallType KIOSK or kioskCustomLauncherEnabled to to configure a dedicated
# InstallType KIOSK or kioskCustomLauncherEnabled to configure a dedicated
# device.
# Corresponds to the JSON property `lockTaskAllowed`
# @return [Boolean]
Expand Down Expand Up @@ -633,6 +640,12 @@ class ApplicationPolicy
# @return [Array<Google::Apis::AndroidmanagementV1::PermissionGrant>]
attr_accessor :permission_grants

# Specifies whether the app installed in the work profile is allowed to add
# widgets to the home screen.
# Corresponds to the JSON property `workProfileWidgets`
# @return [String]
attr_accessor :work_profile_widgets

def initialize(**args)
update!(**args)
end
Expand All @@ -654,6 +667,7 @@ def update!(**args)
@minimum_version_code = args[:minimum_version_code] if args.key?(:minimum_version_code)
@package_name = args[:package_name] if args.key?(:package_name)
@permission_grants = args[:permission_grants] if args.key?(:permission_grants)
@work_profile_widgets = args[:work_profile_widgets] if args.key?(:work_profile_widgets)
end
end

Expand Down Expand Up @@ -1320,6 +1334,13 @@ class CrossProfilePolicies
# @return [String]
attr_accessor :show_work_contacts_in_personal_profile

# Specifies the default behaviour for work profile widgets. If the policy does
# not specify work_profile_widgets for a specific application, it will behave
# according to the value specified here.
# Corresponds to the JSON property `workProfileWidgetsDefault`
# @return [String]
attr_accessor :work_profile_widgets_default

def initialize(**args)
update!(**args)
end
Expand All @@ -1329,6 +1350,7 @@ def update!(**args)
@cross_profile_copy_paste = args[:cross_profile_copy_paste] if args.key?(:cross_profile_copy_paste)
@cross_profile_data_sharing = args[:cross_profile_data_sharing] if args.key?(:cross_profile_data_sharing)
@show_work_contacts_in_personal_profile = args[:show_work_contacts_in_personal_profile] if args.key?(:show_work_contacts_in_personal_profile)
@work_profile_widgets_default = args[:work_profile_widgets_default] if args.key?(:work_profile_widgets_default)
end
end

Expand Down Expand Up @@ -2016,7 +2038,14 @@ def update!(**args)
end

# Configuration to enable an app as an extension app, with the capability of
# interacting with Android Device Policy offline.
# interacting with Android Device Policy offline. For Android versions 13 and
# above, extension apps are exempt from battery restrictions so will not be
# placed into the restricted App Standby Bucket (https://developer.android.com/
# topic/performance/appstandby#restricted-bucket). Extensions apps are also
# protected against users clearing their data or force-closing the application,
# although admins can continue to use the clear app data command (https://
# developer.android.com/management/reference/rest/v1/enterprises.devices/
# issueCommand#CommandType) on extension apps if needed for Android 13 and above.
class ExtensionConfig
include Google::Apis::Core::Hashable

Expand Down
Expand Up @@ -16,13 +16,13 @@ module Google
module Apis
module AndroidmanagementV1
# Version of the google-apis-androidmanagement_v1 gem
GEM_VERSION = "0.47.0"
GEM_VERSION = "0.48.0"

# Version of the code generator used to generate this client
GENERATOR_VERSION = "0.11.0"

# Revision of the discovery document this client was generated from
REVISION = "20221024"
REVISION = "20221118"
end
end
end
Expand Up @@ -866,6 +866,7 @@ class Representation < Google::Apis::Core::JsonRepresentation
property :package_name, as: 'packageName'
collection :permission_grants, as: 'permissionGrants', class: Google::Apis::AndroidmanagementV1::PermissionGrant, decorator: Google::Apis::AndroidmanagementV1::PermissionGrant::Representation

property :work_profile_widgets, as: 'workProfileWidgets'
end
end

Expand Down Expand Up @@ -1036,6 +1037,7 @@ class Representation < Google::Apis::Core::JsonRepresentation
property :cross_profile_copy_paste, as: 'crossProfileCopyPaste'
property :cross_profile_data_sharing, as: 'crossProfileDataSharing'
property :show_work_contacts_in_personal_profile, as: 'showWorkContactsInPersonalProfile'
property :work_profile_widgets_default, as: 'workProfileWidgetsDefault'
end
end

Expand Down

0 comments on commit f25836a

Please sign in to comment.