Autogenerated update (2017-08-25)

Add:
- adexperiencereport_v1
- androiddeviceprovisioning_v1
- androidmanagement_v1
- bigquerydatatransfer_v1
- cloudtrace_v2
- clouduseraccounts_vm_alpha
- consumersurveys_v2
- dlp_v2beta1
- oslogin_v1alpha
- playcustomapp_v1
- playmoviespartner_v1
- safebrowsing_v4
- spectrum_v1explorer
- speech_v1
- streetviewpublish_v1
- vault_v1
- videointelligence_v1beta1

Update:
- acceleratedmobilepageurl_v1
- adexchangebuyer2_v2beta1
- adexchangebuyer_v1_4
- adsense_v1_4
- adsensehost_v4_1
- analytics_v3
- analyticsreporting_v4
- androidenterprise_v1
- androidpublisher_v2
- appengine_v1
- appsactivity_v1
- appstate_v1
- bigquery_v2
- calendar_v3
- classroom_v1
- cloudbilling_v1
- cloudbuild_v1
- clouddebugger_v2
- clouderrorreporting_v1beta1
- cloudfunctions_v1
- cloudkms_v1
- cloudmonitoring_v2beta2
- cloudresourcemanager_v1
- compute_beta
- compute_v1
- container_v1
- content_v2
- dataflow_v1b3
- dataproc_v1
- datastore_v1
- deploymentmanager_v2
- dfareporting_v2_8
- dns_v1
- doubleclicksearch_v2
- drive_v3
- firebasedynamiclinks_v1
- firebaserules_v1
- fitness_v1
- games_configuration_v1configuration
- games_management_v1management
- games_v1
- genomics_v1
- gmail_v1
- iam_v1
- identitytoolkit_v3
- language_v1
- logging_v2
- manufacturers_v1
- ml_v1
- monitoring_v3
- oauth2_v2
- partners_v2
- people_v1
- plus_domains_v1
- plus_v1
- proximitybeacon_v1beta1
- pubsub_v1
- runtimeconfig_v1
- script_v1
- searchconsole_v1
- servicecontrol_v1
- servicemanagement_v1
- serviceuser_v1
- sheets_v4
- slides_v1
- sourcerepo_v1
- spanner_v1
- sqladmin_v1beta4
- storage_v1
- storagetransfer_v1
- toolresults_v1beta3
- vision_v1
- webmasters_v3
- youtube_analytics_v1
- youtube_partner_v1
- youtubereporting_v1
This commit is contained in:
Google APIs committed 2017-08-25 19:54:22 +00:00
1 parent ce32deabcf
commit 2dd396ce6e
315 files changed
+158012 -116092

No files matched your search

File diff suppressed because it is too large. Load diff
@@ -0,0 +1,702 @@
# Copyright 2015 Google Inc.
#
# 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.
require 'date'
require 'google/apis/core/base_service'
require 'google/apis/core/json_representation'
require 'google/apis/core/hashable'
require 'google/apis/errors'
module Google
module Apis
module AndroidmanagementV1
class ApiLevelCondition
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Application
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ApplicationPermission
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ApplicationPolicy
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Command
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ComplianceRule
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Device
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class DisplayProp
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Empty
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class EnrollmentToken
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Enterprise
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ExternalData
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class HardwareInfo
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class HardwareStatus
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListDevicesResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListOperationsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListPoliciesResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ManagedProperty
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ManagedPropertyEntry
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class MemoryEvent
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class MemoryInfo
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class NetworkInfo
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class NonComplianceDetail
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class NonComplianceDetailCondition
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Operation
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class PasswordRequirements
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class PermissionGrant
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class PersistentPreferredActivity
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Policy
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class PowerManagementEvent
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class SignupUrl
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class SoftwareInfo
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Status
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class StatusReportingSettings
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class SystemUpdate
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class UserFacingMessage
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class WebToken
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ApiLevelCondition
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :min_api_level, as: 'minApiLevel'
end
end
class Application
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :managed_properties, as: 'managedProperties', class: Google::Apis::AndroidmanagementV1::ManagedProperty, decorator: Google::Apis::AndroidmanagementV1::ManagedProperty::Representation
property :name, as: 'name'
collection :permissions, as: 'permissions', class: Google::Apis::AndroidmanagementV1::ApplicationPermission, decorator: Google::Apis::AndroidmanagementV1::ApplicationPermission::Representation
property :title, as: 'title'
end
end
class ApplicationPermission
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :description, as: 'description'
property :name, as: 'name'
property :permission_id, as: 'permissionId'
end
end
class ApplicationPolicy
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :default_permission_policy, as: 'defaultPermissionPolicy'
property :install_type, as: 'installType'
property :lock_task_allowed, as: 'lockTaskAllowed'
hash :managed_configuration, as: 'managedConfiguration'
property :package_name, as: 'packageName'
collection :permission_grants, as: 'permissionGrants', class: Google::Apis::AndroidmanagementV1::PermissionGrant, decorator: Google::Apis::AndroidmanagementV1::PermissionGrant::Representation
end
end
class Command
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :create_time, as: 'createTime'
property :duration, as: 'duration'
property :new_password, as: 'newPassword'
collection :reset_password_flags, as: 'resetPasswordFlags'
property :type, as: 'type'
end
end
class ComplianceRule
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :api_level_condition, as: 'apiLevelCondition', class: Google::Apis::AndroidmanagementV1::ApiLevelCondition, decorator: Google::Apis::AndroidmanagementV1::ApiLevelCondition::Representation
property :disable_apps, as: 'disableApps'
property :non_compliance_detail_condition, as: 'nonComplianceDetailCondition', class: Google::Apis::AndroidmanagementV1::NonComplianceDetailCondition, decorator: Google::Apis::AndroidmanagementV1::NonComplianceDetailCondition::Representation
end
end
class Device
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :api_level, as: 'apiLevel'
property :applied_policy_name, as: 'appliedPolicyName'
property :applied_policy_version, :numeric_string => true, as: 'appliedPolicyVersion'
property :applied_state, as: 'appliedState'
property :disabled_reason, as: 'disabledReason', class: Google::Apis::AndroidmanagementV1::UserFacingMessage, decorator: Google::Apis::AndroidmanagementV1::UserFacingMessage::Representation
collection :displays, as: 'displays', class: Google::Apis::AndroidmanagementV1::DisplayProp, decorator: Google::Apis::AndroidmanagementV1::DisplayProp::Representation
property :enrollment_time, as: 'enrollmentTime'
property :enrollment_token_data, as: 'enrollmentTokenData'
property :enrollment_token_name, as: 'enrollmentTokenName'
property :hardware_info, as: 'hardwareInfo', class: Google::Apis::AndroidmanagementV1::HardwareInfo, decorator: Google::Apis::AndroidmanagementV1::HardwareInfo::Representation
collection :hardware_status_samples, as: 'hardwareStatusSamples', class: Google::Apis::AndroidmanagementV1::HardwareStatus, decorator: Google::Apis::AndroidmanagementV1::HardwareStatus::Representation
property :last_offline_state_change_time, as: 'lastOfflineStateChangeTime'
property :last_policy_compliance_report_time, as: 'lastPolicyComplianceReportTime'
property :last_policy_sync_time, as: 'lastPolicySyncTime'
property :last_status_report_time, as: 'lastStatusReportTime'
collection :memory_events, as: 'memoryEvents', class: Google::Apis::AndroidmanagementV1::MemoryEvent, decorator: Google::Apis::AndroidmanagementV1::MemoryEvent::Representation
property :memory_info, as: 'memoryInfo', class: Google::Apis::AndroidmanagementV1::MemoryInfo, decorator: Google::Apis::AndroidmanagementV1::MemoryInfo::Representation
property :name, as: 'name'
property :network_info, as: 'networkInfo', class: Google::Apis::AndroidmanagementV1::NetworkInfo, decorator: Google::Apis::AndroidmanagementV1::NetworkInfo::Representation
collection :non_compliance_details, as: 'nonComplianceDetails', class: Google::Apis::AndroidmanagementV1::NonComplianceDetail, decorator: Google::Apis::AndroidmanagementV1::NonComplianceDetail::Representation
property :policy_compliant, as: 'policyCompliant'
property :policy_name, as: 'policyName'
collection :power_management_events, as: 'powerManagementEvents', class: Google::Apis::AndroidmanagementV1::PowerManagementEvent, decorator: Google::Apis::AndroidmanagementV1::PowerManagementEvent::Representation
collection :previous_device_names, as: 'previousDeviceNames'
property :software_info, as: 'softwareInfo', class: Google::Apis::AndroidmanagementV1::SoftwareInfo, decorator: Google::Apis::AndroidmanagementV1::SoftwareInfo::Representation
property :state, as: 'state'
property :user_name, as: 'userName'
end
end
class DisplayProp
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :density, as: 'density'
property :display_id, as: 'displayId'
property :height, as: 'height'
property :name, as: 'name'
property :refresh_rate, as: 'refreshRate'
property :state, as: 'state'
property :width, as: 'width'
end
end
class Empty
# @private
class Representation < Google::Apis::Core::JsonRepresentation
end
end
class EnrollmentToken
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :additional_data, as: 'additionalData'
property :duration, as: 'duration'
property :expiration_timestamp, as: 'expirationTimestamp'
property :name, as: 'name'
property :policy_name, as: 'policyName'
property :qr_code, as: 'qrCode'
property :value, as: 'value'
end
end
class Enterprise
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :app_auto_approval_enabled, as: 'appAutoApprovalEnabled'
collection :enabled_notification_types, as: 'enabledNotificationTypes'
property :enterprise_display_name, as: 'enterpriseDisplayName'
property :logo, as: 'logo', class: Google::Apis::AndroidmanagementV1::ExternalData, decorator: Google::Apis::AndroidmanagementV1::ExternalData::Representation
property :name, as: 'name'
property :primary_color, as: 'primaryColor'
property :pubsub_topic, as: 'pubsubTopic'
end
end
class ExternalData
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :sha256_hash, as: 'sha256Hash'
property :url, as: 'url'
end
end
class HardwareInfo
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :battery_shutdown_temperatures, as: 'batteryShutdownTemperatures'
collection :battery_throttling_temperatures, as: 'batteryThrottlingTemperatures'
property :brand, as: 'brand'
collection :cpu_shutdown_temperatures, as: 'cpuShutdownTemperatures'
collection :cpu_throttling_temperatures, as: 'cpuThrottlingTemperatures'
property :device_baseband_version, as: 'deviceBasebandVersion'
collection :gpu_shutdown_temperatures, as: 'gpuShutdownTemperatures'
collection :gpu_throttling_temperatures, as: 'gpuThrottlingTemperatures'
property :hardware, as: 'hardware'
property :manufacturer, as: 'manufacturer'
property :model, as: 'model'
property :serial_number, as: 'serialNumber'
collection :skin_shutdown_temperatures, as: 'skinShutdownTemperatures'
collection :skin_throttling_temperatures, as: 'skinThrottlingTemperatures'
end
end
class HardwareStatus
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :battery_temperatures, as: 'batteryTemperatures'
collection :cpu_temperatures, as: 'cpuTemperatures'
collection :cpu_usages, as: 'cpuUsages'
property :create_time, as: 'createTime'
collection :fan_speeds, as: 'fanSpeeds'
collection :gpu_temperatures, as: 'gpuTemperatures'
collection :skin_temperatures, as: 'skinTemperatures'
end
end
class ListDevicesResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :devices, as: 'devices', class: Google::Apis::AndroidmanagementV1::Device, decorator: Google::Apis::AndroidmanagementV1::Device::Representation
property :next_page_token, as: 'nextPageToken'
end
end
class ListOperationsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :next_page_token, as: 'nextPageToken'
collection :operations, as: 'operations', class: Google::Apis::AndroidmanagementV1::Operation, decorator: Google::Apis::AndroidmanagementV1::Operation::Representation
end
end
class ListPoliciesResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :next_page_token, as: 'nextPageToken'
collection :policies, as: 'policies', class: Google::Apis::AndroidmanagementV1::Policy, decorator: Google::Apis::AndroidmanagementV1::Policy::Representation
end
end
class ManagedProperty
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :default_value, as: 'defaultValue'
property :description, as: 'description'
collection :entries, as: 'entries', class: Google::Apis::AndroidmanagementV1::ManagedPropertyEntry, decorator: Google::Apis::AndroidmanagementV1::ManagedPropertyEntry::Representation
property :key, as: 'key'
collection :nested_properties, as: 'nestedProperties', class: Google::Apis::AndroidmanagementV1::ManagedProperty, decorator: Google::Apis::AndroidmanagementV1::ManagedProperty::Representation
property :title, as: 'title'
property :type, as: 'type'
end
end
class ManagedPropertyEntry
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :name, as: 'name'
property :value, as: 'value'
end
end
class MemoryEvent
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :byte_count, :numeric_string => true, as: 'byteCount'
property :create_time, as: 'createTime'
property :event_type, as: 'eventType'
end
end
class MemoryInfo
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :total_internal_storage, :numeric_string => true, as: 'totalInternalStorage'
property :total_ram, :numeric_string => true, as: 'totalRam'
end
end
class NetworkInfo
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :imei, as: 'imei'
property :meid, as: 'meid'
property :wifi_mac_address, as: 'wifiMacAddress'
end
end
class NonComplianceDetail
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :current_value, as: 'currentValue'
property :field_path, as: 'fieldPath'
property :installation_failure_reason, as: 'installationFailureReason'
property :non_compliance_reason, as: 'nonComplianceReason'
property :package_name, as: 'packageName'
property :setting_name, as: 'settingName'
end
end
class NonComplianceDetailCondition
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :non_compliance_reason, as: 'nonComplianceReason'
property :package_name, as: 'packageName'
property :setting_name, as: 'settingName'
end
end
class Operation
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :done, as: 'done'
property :error, as: 'error', class: Google::Apis::AndroidmanagementV1::Status, decorator: Google::Apis::AndroidmanagementV1::Status::Representation
hash :metadata, as: 'metadata'
property :name, as: 'name'
hash :response, as: 'response'
end
end
class PasswordRequirements
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :maximum_failed_passwords_for_wipe, as: 'maximumFailedPasswordsForWipe'
property :password_expiration_timeout, as: 'passwordExpirationTimeout'
property :password_history_length, as: 'passwordHistoryLength'
property :password_minimum_length, as: 'passwordMinimumLength'
property :password_minimum_letters, as: 'passwordMinimumLetters'
property :password_minimum_lower_case, as: 'passwordMinimumLowerCase'
property :password_minimum_non_letter, as: 'passwordMinimumNonLetter'
property :password_minimum_numeric, as: 'passwordMinimumNumeric'
property :password_minimum_symbols, as: 'passwordMinimumSymbols'
property :password_minimum_upper_case, as: 'passwordMinimumUpperCase'
property :password_quality, as: 'passwordQuality'
end
end
class PermissionGrant
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :permission, as: 'permission'
property :policy, as: 'policy'
end
end
class PersistentPreferredActivity
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :actions, as: 'actions'
collection :categories, as: 'categories'
property :receiver_activity, as: 'receiverActivity'
end
end
class Policy
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :add_user_disabled, as: 'addUserDisabled'
property :adjust_volume_disabled, as: 'adjustVolumeDisabled'
collection :applications, as: 'applications', class: Google::Apis::AndroidmanagementV1::ApplicationPolicy, decorator: Google::Apis::AndroidmanagementV1::ApplicationPolicy::Representation
property :block_applications_enabled, as: 'blockApplicationsEnabled'
property :camera_disabled, as: 'cameraDisabled'
collection :compliance_rules, as: 'complianceRules', class: Google::Apis::AndroidmanagementV1::ComplianceRule, decorator: Google::Apis::AndroidmanagementV1::ComplianceRule::Representation
property :debugging_features_allowed, as: 'debuggingFeaturesAllowed'
property :default_permission_policy, as: 'defaultPermissionPolicy'
property :factory_reset_disabled, as: 'factoryResetDisabled'
collection :frp_admin_emails, as: 'frpAdminEmails'
property :fun_disabled, as: 'funDisabled'
property :install_unknown_sources_allowed, as: 'installUnknownSourcesAllowed'
property :keyguard_disabled, as: 'keyguardDisabled'
property :maximum_time_to_lock, :numeric_string => true, as: 'maximumTimeToLock'
property :modify_accounts_disabled, as: 'modifyAccountsDisabled'
property :name, as: 'name'
property :network_escape_hatch_enabled, as: 'networkEscapeHatchEnabled'
hash :open_network_configuration, as: 'openNetworkConfiguration'
property :password_requirements, as: 'passwordRequirements', class: Google::Apis::AndroidmanagementV1::PasswordRequirements, decorator: Google::Apis::AndroidmanagementV1::PasswordRequirements::Representation
collection :persistent_preferred_activities, as: 'persistentPreferredActivities', class: Google::Apis::AndroidmanagementV1::PersistentPreferredActivity, decorator: Google::Apis::AndroidmanagementV1::PersistentPreferredActivity::Representation
property :remove_user_disabled, as: 'removeUserDisabled'
property :safe_boot_disabled, as: 'safeBootDisabled'
property :screen_capture_disabled, as: 'screenCaptureDisabled'
property :status_bar_disabled, as: 'statusBarDisabled'
property :status_reporting_settings, as: 'statusReportingSettings', class: Google::Apis::AndroidmanagementV1::StatusReportingSettings, decorator: Google::Apis::AndroidmanagementV1::StatusReportingSettings::Representation
collection :stay_on_plugged_modes, as: 'stayOnPluggedModes'
property :system_update, as: 'systemUpdate', class: Google::Apis::AndroidmanagementV1::SystemUpdate, decorator: Google::Apis::AndroidmanagementV1::SystemUpdate::Representation
property :unmute_microphone_disabled, as: 'unmuteMicrophoneDisabled'
property :version, :numeric_string => true, as: 'version'
end
end
class PowerManagementEvent
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :battery_level, as: 'batteryLevel'
property :create_time, as: 'createTime'
property :event_type, as: 'eventType'
end
end
class SignupUrl
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :name, as: 'name'
property :url, as: 'url'
end
end
class SoftwareInfo
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :android_build_number, as: 'androidBuildNumber'
property :android_build_time, as: 'androidBuildTime'
property :android_version, as: 'androidVersion'
property :bootloader_version, as: 'bootloaderVersion'
property :device_kernel_version, as: 'deviceKernelVersion'
property :security_patch_level, as: 'securityPatchLevel'
end
end
class Status
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :code, as: 'code'
collection :details, as: 'details'
property :message, as: 'message'
end
end
class StatusReportingSettings
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :display_info_enabled, as: 'displayInfoEnabled'
property :hardware_status_enabled, as: 'hardwareStatusEnabled'
property :memory_info_enabled, as: 'memoryInfoEnabled'
property :network_info_enabled, as: 'networkInfoEnabled'
property :power_management_events_enabled, as: 'powerManagementEventsEnabled'
property :software_info_enabled, as: 'softwareInfoEnabled'
end
end
class SystemUpdate
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :end_minutes, as: 'endMinutes'
property :start_minutes, as: 'startMinutes'
property :type, as: 'type'
end
end
class UserFacingMessage
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :default_message, as: 'defaultMessage'
hash :localized_messages, as: 'localizedMessages'
end
end
class WebToken
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :name, as: 'name'
property :parent_frame_url, as: 'parentFrameUrl'
collection :permissions, as: 'permissions'
property :value, as: 'value'
end
end
end
end
end
@@ -0,0 +1,796 @@
# Copyright 2015 Google Inc.
#
# 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.
require 'google/apis/core/base_service'
require 'google/apis/core/json_representation'
require 'google/apis/core/hashable'
require 'google/apis/errors'
module Google
module Apis
module AndroidmanagementV1
# Android Management API
#
# The Android Management API provides remote enterprise management of Android
# devices and apps.
#
# @example
# require 'google/apis/androidmanagement_v1'
#
# Androidmanagement = Google::Apis::AndroidmanagementV1 # Alias the module
# service = Androidmanagement::AndroidManagementService.new
#
# @see https://developers.google.com/android/management
class AndroidManagementService < Google::Apis::Core::BaseService
# @return [String]
# API key. Your API key identifies your project and provides you with API access,
# quota, and reports. Required unless you provide an OAuth 2.0 token.
attr_accessor :key
# @return [String]
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
attr_accessor :quota_user
def initialize
super('https://androidmanagement.googleapis.com/', '')
@batch_path = 'batch'
end
# Creates an enterprise by completing the enterprise signup flow.
# @param [Google::Apis::AndroidmanagementV1::Enterprise] enterprise_object
# @param [String] enterprise_token
# The enterprise token appended to the callback URL.
# @param [String] project_id
# The id of the Google Cloud Platform project which will own the enterprise.
# @param [String] signup_url_name
# The name of the SignupUrl used to sign up for the enterprise.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::AndroidmanagementV1::Enterprise] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::AndroidmanagementV1::Enterprise]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def create_enterprise(enterprise_object = nil, enterprise_token: nil, project_id: nil, signup_url_name: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/enterprises', options)
command.request_representation = Google::Apis::AndroidmanagementV1::Enterprise::Representation
command.request_object = enterprise_object
command.response_representation = Google::Apis::AndroidmanagementV1::Enterprise::Representation
command.response_class = Google::Apis::AndroidmanagementV1::Enterprise
command.query['enterpriseToken'] = enterprise_token unless enterprise_token.nil?
command.query['projectId'] = project_id unless project_id.nil?
command.query['signupUrlName'] = signup_url_name unless signup_url_name.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Gets an enterprise.
# @param [String] name
# The name of the enterprise in the form enterprises/`enterpriseId`
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::AndroidmanagementV1::Enterprise] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::AndroidmanagementV1::Enterprise]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def get_enterprise(name, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/{+name}', options)
command.response_representation = Google::Apis::AndroidmanagementV1::Enterprise::Representation
command.response_class = Google::Apis::AndroidmanagementV1::Enterprise
command.params['name'] = name unless name.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Updates an enterprise.
# @param [String] name
# The name of the enterprise in the form enterprises/`enterpriseId`
# @param [Google::Apis::AndroidmanagementV1::Enterprise] enterprise_object
# @param [String] update_mask
# The field mask indicating the fields to update. If not set, all modifiable
# fields will be modified.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::AndroidmanagementV1::Enterprise] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::AndroidmanagementV1::Enterprise]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def patch_enterprise(name, enterprise_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:patch, 'v1/{+name}', options)
command.request_representation = Google::Apis::AndroidmanagementV1::Enterprise::Representation
command.request_object = enterprise_object
command.response_representation = Google::Apis::AndroidmanagementV1::Enterprise::Representation
command.response_class = Google::Apis::AndroidmanagementV1::Enterprise
command.params['name'] = name unless name.nil?
command.query['updateMask'] = update_mask unless update_mask.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Gets info about an application.
# @param [String] name
# The name of the application in the form enterprises/`enterpriseId`/
# applications/`package_name`
# @param [String] language_code
# The preferred language for localized application info, as a BCP47 tag (e.g. "
# en-US", "de"). If not specified the default language of the application will
# be used.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::AndroidmanagementV1::Application] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::AndroidmanagementV1::Application]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def get_enterprise_application(name, language_code: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/{+name}', options)
command.response_representation = Google::Apis::AndroidmanagementV1::Application::Representation
command.response_class = Google::Apis::AndroidmanagementV1::Application
command.params['name'] = name unless name.nil?
command.query['languageCode'] = language_code unless language_code.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Deletes a device, which causes the device to be wiped.
# @param [String] name
# The name of the device in the form enterprises/`enterpriseId`/devices/`
# deviceId`
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::AndroidmanagementV1::Empty] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::AndroidmanagementV1::Empty]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def delete_enterprise_device(name, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:delete, 'v1/{+name}', options)
command.response_representation = Google::Apis::AndroidmanagementV1::Empty::Representation
command.response_class = Google::Apis::AndroidmanagementV1::Empty
command.params['name'] = name unless name.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Gets a device.
# @param [String] name
# The name of the device in the form enterprises/`enterpriseId`/devices/`
# deviceId`
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::AndroidmanagementV1::Device] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::AndroidmanagementV1::Device]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def get_enterprise_device(name, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/{+name}', options)
command.response_representation = Google::Apis::AndroidmanagementV1::Device::Representation
command.response_class = Google::Apis::AndroidmanagementV1::Device
command.params['name'] = name unless name.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Issues a command to a device. The Operation resource returned contains a
# Command in its metadata field. Use the get operation method to get the status
# of the command.
# @param [String] name
# The name of the device in the form enterprises/`enterpriseId`/devices/`
# deviceId`
# @param [Google::Apis::AndroidmanagementV1::Command] command_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::AndroidmanagementV1::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::AndroidmanagementV1::Operation]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def issue_enterprise_device_command(name, command_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/{+name}:issueCommand', options)
command.request_representation = Google::Apis::AndroidmanagementV1::Command::Representation
command.request_object = command_object
command.response_representation = Google::Apis::AndroidmanagementV1::Operation::Representation
command.response_class = Google::Apis::AndroidmanagementV1::Operation
command.params['name'] = name unless name.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Lists devices for a given enterprise.
# @param [String] parent
# The name of the enterprise in the form enterprises/`enterpriseId`
# @param [Fixnum] page_size
# The requested page size. The actual page size may be fixed to a min or max
# value.
# @param [String] page_token
# A token identifying a page of results the server should return.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::AndroidmanagementV1::ListDevicesResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::AndroidmanagementV1::ListDevicesResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def list_enterprise_devices(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/{+parent}/devices', options)
command.response_representation = Google::Apis::AndroidmanagementV1::ListDevicesResponse::Representation
command.response_class = Google::Apis::AndroidmanagementV1::ListDevicesResponse
command.params['parent'] = parent unless parent.nil?
command.query['pageSize'] = page_size unless page_size.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Updates a device.
# @param [String] name
# The name of the device in the form enterprises/`enterpriseId`/devices/`
# deviceId`
# @param [Google::Apis::AndroidmanagementV1::Device] device_object
# @param [String] update_mask
# The field mask indicating the fields to update. If not set, all modifiable
# fields will be modified.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::AndroidmanagementV1::Device] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::AndroidmanagementV1::Device]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def patch_enterprise_device(name, device_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:patch, 'v1/{+name}', options)
command.request_representation = Google::Apis::AndroidmanagementV1::Device::Representation
command.request_object = device_object
command.response_representation = Google::Apis::AndroidmanagementV1::Device::Representation
command.response_class = Google::Apis::AndroidmanagementV1::Device
command.params['name'] = name unless name.nil?
command.query['updateMask'] = update_mask unless update_mask.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Starts asynchronous cancellation on a long-running operation. The server makes
# a best effort to cancel the operation, but success is not guaranteed. If the
# server doesn't support this method, it returns google.rpc.Code.UNIMPLEMENTED.
# Clients can use Operations.GetOperation or other methods to check whether the
# cancellation succeeded or whether the operation completed despite cancellation.
# On successful cancellation, the operation is not deleted; instead, it becomes
# an operation with an Operation.error value with a google.rpc.Status.code of 1,
# corresponding to Code.CANCELLED.
# @param [String] name
# The name of the operation resource to be cancelled.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::AndroidmanagementV1::Empty] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::AndroidmanagementV1::Empty]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def cancel_enterprise_device_operation(name, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/{+name}:cancel', options)
command.response_representation = Google::Apis::AndroidmanagementV1::Empty::Representation
command.response_class = Google::Apis::AndroidmanagementV1::Empty
command.params['name'] = name unless name.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Deletes a long-running operation. This method indicates that the client is no
# longer interested in the operation result. It does not cancel the operation.
# If the server doesn't support this method, it returns google.rpc.Code.
# UNIMPLEMENTED.
# @param [String] name
# The name of the operation resource to be deleted.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::AndroidmanagementV1::Empty] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::AndroidmanagementV1::Empty]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def delete_enterprise_device_operation(name, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:delete, 'v1/{+name}', options)
command.response_representation = Google::Apis::AndroidmanagementV1::Empty::Representation
command.response_class = Google::Apis::AndroidmanagementV1::Empty
command.params['name'] = name unless name.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Gets the latest state of a long-running operation. Clients can use this method
# to poll the operation result at intervals as recommended by the API service.
# @param [String] name
# The name of the operation resource.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::AndroidmanagementV1::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::AndroidmanagementV1::Operation]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def get_enterprise_device_operation(name, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/{+name}', options)
command.response_representation = Google::Apis::AndroidmanagementV1::Operation::Representation
command.response_class = Google::Apis::AndroidmanagementV1::Operation
command.params['name'] = name unless name.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Lists operations that match the specified filter in the request. If the server
# doesn't support this method, it returns UNIMPLEMENTED.NOTE: the name binding
# allows API services to override the binding to use different resource name
# schemes, such as users/*/operations. To override the binding, API services can
# add a binding such as "/v1/`name=users/*`/operations" to their service
# configuration. For backwards compatibility, the default name includes the
# operations collection id, however overriding users must ensure the name
# binding is the parent resource, without the operations collection id.
# @param [String] name
# The name of the operation's parent resource.
# @param [String] filter
# The standard list filter.
# @param [Fixnum] page_size
# The standard list page size.
# @param [String] page_token
# The standard list page token.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::AndroidmanagementV1::ListOperationsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::AndroidmanagementV1::ListOperationsResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def list_enterprise_device_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/{+name}', options)
command.response_representation = Google::Apis::AndroidmanagementV1::ListOperationsResponse::Representation
command.response_class = Google::Apis::AndroidmanagementV1::ListOperationsResponse
command.params['name'] = name unless name.nil?
command.query['filter'] = filter unless filter.nil?
command.query['pageSize'] = page_size unless page_size.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Creates an enrollment token for a given enterprise.
# @param [String] parent
# The name of the enterprise in the form enterprises/`enterpriseId`
# @param [Google::Apis::AndroidmanagementV1::EnrollmentToken] enrollment_token_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::AndroidmanagementV1::EnrollmentToken] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::AndroidmanagementV1::EnrollmentToken]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def create_enterprise_enrollment_token(parent, enrollment_token_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/{+parent}/enrollmentTokens', options)
command.request_representation = Google::Apis::AndroidmanagementV1::EnrollmentToken::Representation
command.request_object = enrollment_token_object
command.response_representation = Google::Apis::AndroidmanagementV1::EnrollmentToken::Representation
command.response_class = Google::Apis::AndroidmanagementV1::EnrollmentToken
command.params['parent'] = parent unless parent.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Deletes an enrollment token, which prevents future use of the token.
# @param [String] name
# The name of the enrollment token in the form enterprises/`enterpriseId`/
# enrollmentTokens/`enrollmentTokenId`
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::AndroidmanagementV1::Empty] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::AndroidmanagementV1::Empty]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def delete_enterprise_enrollment_token(name, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:delete, 'v1/{+name}', options)
command.response_representation = Google::Apis::AndroidmanagementV1::Empty::Representation
command.response_class = Google::Apis::AndroidmanagementV1::Empty
command.params['name'] = name unless name.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Deletes a policy. This operation is only permitted if no devices are currently
# referencing the policy.
# @param [String] name
# The name of the policy in the form enterprises/`enterpriseId`/policies/`
# policyId`
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::AndroidmanagementV1::Empty] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::AndroidmanagementV1::Empty]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def delete_enterprise_policy(name, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:delete, 'v1/{+name}', options)
command.response_representation = Google::Apis::AndroidmanagementV1::Empty::Representation
command.response_class = Google::Apis::AndroidmanagementV1::Empty
command.params['name'] = name unless name.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Gets a policy.
# @param [String] name
# The name of the policy in the form enterprises/`enterpriseId`/policies/`
# policyId`
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::AndroidmanagementV1::Policy] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::AndroidmanagementV1::Policy]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def get_enterprise_policy(name, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/{+name}', options)
command.response_representation = Google::Apis::AndroidmanagementV1::Policy::Representation
command.response_class = Google::Apis::AndroidmanagementV1::Policy
command.params['name'] = name unless name.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Lists policies for a given enterprise.
# @param [String] parent
# The name of the enterprise in the form enterprises/`enterpriseId`
# @param [Fixnum] page_size
# The requested page size. The actual page size may be fixed to a min or max
# value.
# @param [String] page_token
# A token identifying a page of results the server should return.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::AndroidmanagementV1::ListPoliciesResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::AndroidmanagementV1::ListPoliciesResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def list_enterprise_policies(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/{+parent}/policies', options)
command.response_representation = Google::Apis::AndroidmanagementV1::ListPoliciesResponse::Representation
command.response_class = Google::Apis::AndroidmanagementV1::ListPoliciesResponse
command.params['parent'] = parent unless parent.nil?
command.query['pageSize'] = page_size unless page_size.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Updates or creates a policy.
# @param [String] name
# The name of the policy in the form enterprises/`enterpriseId`/policies/`
# policyId`
# @param [Google::Apis::AndroidmanagementV1::Policy] policy_object
# @param [String] update_mask
# The field mask indicating the fields to update. If not set, all modifiable
# fields will be modified.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::AndroidmanagementV1::Policy] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::AndroidmanagementV1::Policy]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def patch_enterprise_policy(name, policy_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:patch, 'v1/{+name}', options)
command.request_representation = Google::Apis::AndroidmanagementV1::Policy::Representation
command.request_object = policy_object
command.response_representation = Google::Apis::AndroidmanagementV1::Policy::Representation
command.response_class = Google::Apis::AndroidmanagementV1::Policy
command.params['name'] = name unless name.nil?
command.query['updateMask'] = update_mask unless update_mask.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Creates a web token to access an embeddable managed Google Play web UI for a
# given enterprise.
# @param [String] parent
# The name of the enterprise in the form enterprises/`enterpriseId`
# @param [Google::Apis::AndroidmanagementV1::WebToken] web_token_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::AndroidmanagementV1::WebToken] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::AndroidmanagementV1::WebToken]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def create_enterprise_web_token(parent, web_token_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/{+parent}/webTokens', options)
command.request_representation = Google::Apis::AndroidmanagementV1::WebToken::Representation
command.request_object = web_token_object
command.response_representation = Google::Apis::AndroidmanagementV1::WebToken::Representation
command.response_class = Google::Apis::AndroidmanagementV1::WebToken
command.params['parent'] = parent unless parent.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Creates an enterprise signup URL.
# @param [String] callback_url
# The callback URL to which the admin will be redirected after successfully
# creating an enterprise. Before redirecting there the system will add a query
# parameter to this URL named enterpriseToken which will contain an opaque token
# to be used for the create enterprise request. The URL will be parsed then
# reformatted in order to add the enterpriseToken parameter, so there may be
# some minor formatting changes.
# @param [String] project_id
# The id of the Google Cloud Platform project which will own the enterprise.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::AndroidmanagementV1::SignupUrl] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::AndroidmanagementV1::SignupUrl]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def create_signup_url(callback_url: nil, project_id: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/signupUrls', options)
command.response_representation = Google::Apis::AndroidmanagementV1::SignupUrl::Representation
command.response_class = Google::Apis::AndroidmanagementV1::SignupUrl
command.query['callbackUrl'] = callback_url unless callback_url.nil?
command.query['projectId'] = project_id unless project_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
protected
def apply_command_defaults(command)
command.query['key'] = key unless key.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
end
end
end
end
end