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 26, 2020
1 parent 72d0455 commit 6590453
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 5 deletions.
2 changes: 2 additions & 0 deletions api_names_out.yaml
Expand Up @@ -8500,6 +8500,7 @@
"/androidmanagement:v1/ApplicationPolicy": application_policy
"/androidmanagement:v1/ApplicationPolicy/accessibleTrackIds": accessible_track_ids
"/androidmanagement:v1/ApplicationPolicy/accessibleTrackIds/accessible_track_id": accessible_track_id
"/androidmanagement:v1/ApplicationPolicy/autoUpdateMode": auto_update_mode
"/androidmanagement:v1/ApplicationPolicy/connectedWorkAndPersonalApp": connected_work_and_personal_app
"/androidmanagement:v1/ApplicationPolicy/defaultPermissionPolicy": default_permission_policy
"/androidmanagement:v1/ApplicationPolicy/delegatedScopes": delegated_scopes
Expand Down Expand Up @@ -8817,6 +8818,7 @@
"/androidmanagement:v1/Policy/appAutoUpdatePolicy": app_auto_update_policy
"/androidmanagement:v1/Policy/applications": applications
"/androidmanagement:v1/Policy/applications/application": application
"/androidmanagement:v1/Policy/autoDateAndTimeZone": auto_date_and_time_zone
"/androidmanagement:v1/Policy/autoTimeRequired": auto_time_required
"/androidmanagement:v1/Policy/blockApplicationsEnabled": block_applications_enabled
"/androidmanagement:v1/Policy/bluetoothConfigDisabled": bluetooth_config_disabled
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 = '20201112'
REVISION = '20201123'

# Manage Android devices and apps for your customers
AUTH_ANDROIDMANAGEMENT = 'https://www.googleapis.com/auth/androidmanagement'
Expand Down
18 changes: 15 additions & 3 deletions generated/google/apis/androidmanagement_v1/classes.rb
Expand Up @@ -247,6 +247,11 @@ class ApplicationPolicy
# @return [Array<String>]
attr_accessor :accessible_track_ids

# This feature is not generally available.
# Corresponds to the JSON property `autoUpdateMode`
# @return [String]
attr_accessor :auto_update_mode

# Controls whether the app can communicate with itself across a device’s work
# and personal profiles, subject to user consent.
# Corresponds to the JSON property `connectedWorkAndPersonalApp`
Expand Down Expand Up @@ -329,6 +334,7 @@ def initialize(**args)
# Update properties of this object
def update!(**args)
@accessible_track_ids = args[:accessible_track_ids] if args.key?(:accessible_track_ids)
@auto_update_mode = args[:auto_update_mode] if args.key?(:auto_update_mode)
@connected_work_and_personal_app = args[:connected_work_and_personal_app] if args.key?(:connected_work_and_personal_app)
@default_permission_policy = args[:default_permission_policy] if args.key?(:default_permission_policy)
@delegated_scopes = args[:delegated_scopes] if args.key?(:delegated_scopes)
Expand Down Expand Up @@ -2406,8 +2412,14 @@ class Policy
# @return [Array<Google::Apis::AndroidmanagementV1::ApplicationPolicy>]
attr_accessor :applications

# Whether auto date, time, and time zone are enabled on a company-owned device.
# If this is set, then autoTimeRequired is ignored.
# Corresponds to the JSON property `autoDateAndTimeZone`
# @return [String]
attr_accessor :auto_date_and_time_zone

# Whether auto time is required, which prevents the user from manually setting
# the date and time.
# the date and time. If autoDateAndTimeZone is set, this field is ignored.
# Corresponds to the JSON property `autoTimeRequired`
# @return [Boolean]
attr_accessor :auto_time_required
Expand Down Expand Up @@ -2577,8 +2589,7 @@ class Policy
# @return [Google::Apis::AndroidmanagementV1::KioskCustomization]
attr_accessor :kiosk_customization

# The degree of location detection enabled. The user may change the value unless
# the user is otherwise blocked from accessing device settings.
# The degree of location detection enabled.
# Corresponds to the JSON property `locationMode`
# @return [String]
attr_accessor :location_mode
Expand Down Expand Up @@ -2879,6 +2890,7 @@ def update!(**args)
@android_device_policy_tracks = args[:android_device_policy_tracks] if args.key?(:android_device_policy_tracks)
@app_auto_update_policy = args[:app_auto_update_policy] if args.key?(:app_auto_update_policy)
@applications = args[:applications] if args.key?(:applications)
@auto_date_and_time_zone = args[:auto_date_and_time_zone] if args.key?(:auto_date_and_time_zone)
@auto_time_required = args[:auto_time_required] if args.key?(:auto_time_required)
@block_applications_enabled = args[:block_applications_enabled] if args.key?(:block_applications_enabled)
@bluetooth_config_disabled = args[:bluetooth_config_disabled] if args.key?(:bluetooth_config_disabled)
Expand Down
2 changes: 2 additions & 0 deletions generated/google/apis/androidmanagement_v1/representations.rb
Expand Up @@ -502,6 +502,7 @@ class ApplicationPolicy
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :accessible_track_ids, as: 'accessibleTrackIds'
property :auto_update_mode, as: 'autoUpdateMode'
property :connected_work_and_personal_app, as: 'connectedWorkAndPersonalApp'
property :default_permission_policy, as: 'defaultPermissionPolicy'
collection :delegated_scopes, as: 'delegatedScopes'
Expand Down Expand Up @@ -1010,6 +1011,7 @@ class Representation < Google::Apis::Core::JsonRepresentation
property :app_auto_update_policy, as: 'appAutoUpdatePolicy'
collection :applications, as: 'applications', class: Google::Apis::AndroidmanagementV1::ApplicationPolicy, decorator: Google::Apis::AndroidmanagementV1::ApplicationPolicy::Representation

property :auto_date_and_time_zone, as: 'autoDateAndTimeZone'
property :auto_time_required, as: 'autoTimeRequired'
property :block_applications_enabled, as: 'blockApplicationsEnabled'
property :bluetooth_config_disabled, as: 'bluetoothConfigDisabled'
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": "b264d974a86e5acbc70cd73915eaf73daac61a63"
"sha": "72d045518a6f806ea35be379e40d2e465fdc1c1b"
}
}
]
Expand Down

0 comments on commit 6590453

Please sign in to comment.