Class: Google::Apis::AndroidmanagementV1::AndroidManagementService
- Inherits:
-
Core::BaseService
- Object
- Core::BaseService
- Google::Apis::AndroidmanagementV1::AndroidManagementService
- Defined in:
- generated/google/apis/androidmanagement_v1/service.rb
Overview
Android Management API
The Android Management API provides remote enterprise management of Android devices and apps.
Instance Attribute Summary collapse
-
#key ⇒ String
API key.
-
#quota_user ⇒ String
Available to use for quota purposes for server-side applications.
Instance Method Summary collapse
-
#cancel_enterprise_device_operation(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AndroidmanagementV1::Empty
Starts asynchronous cancellation on a long-running operation.
-
#create_enterprise(enterprise_object = nil, enterprise_token: nil, project_id: nil, signup_url_name: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AndroidmanagementV1::Enterprise
Creates an enterprise.
-
#create_enterprise_enrollment_token(parent, enrollment_token_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AndroidmanagementV1::EnrollmentToken
Creates an enrollment token for a given enterprise.
-
#create_enterprise_web_app(parent, web_app_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AndroidmanagementV1::WebApp
Creates a web app.
-
#create_enterprise_web_token(parent, web_token_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AndroidmanagementV1::WebToken
Creates a web token to access an embeddable managed Google Play web UI for a given enterprise.
-
#create_signup_url(callback_url: nil, project_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AndroidmanagementV1::SignupUrl
Creates an enterprise signup URL.
-
#delete_enterprise_device(name, wipe_data_flags: nil, wipe_reason_message: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AndroidmanagementV1::Empty
Deletes a device.
-
#delete_enterprise_device_operation(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AndroidmanagementV1::Empty
Deletes a long-running operation.
-
#delete_enterprise_enrollment_token(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AndroidmanagementV1::Empty
Deletes an enrollment token.
-
#delete_enterprise_policy(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AndroidmanagementV1::Empty
Deletes a policy.
-
#delete_enterprise_web_app(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AndroidmanagementV1::Empty
Deletes a web app.
-
#get_enterprise(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AndroidmanagementV1::Enterprise
Gets an enterprise.
-
#get_enterprise_application(name, language_code: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AndroidmanagementV1::Application
Gets info about an application.
-
#get_enterprise_device(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AndroidmanagementV1::Device
Gets a device.
-
#get_enterprise_device_operation(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AndroidmanagementV1::Operation
Gets the latest state of a long-running operation.
-
#get_enterprise_policy(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AndroidmanagementV1::Policy
Gets a policy.
-
#get_enterprise_web_app(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AndroidmanagementV1::WebApp
Gets a web app.
-
#initialize ⇒ AndroidManagementService
constructor
A new instance of AndroidManagementService.
-
#issue_enterprise_device_command(name, command_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AndroidmanagementV1::Operation
Issues a command to a device.
-
#list_enterprise_device_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AndroidmanagementV1::ListOperationsResponse
Lists operations that match the specified filter in the request.
-
#list_enterprise_devices(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AndroidmanagementV1::ListDevicesResponse
Lists devices for a given enterprise.
-
#list_enterprise_policies(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AndroidmanagementV1::ListPoliciesResponse
Lists policies for a given enterprise.
-
#list_enterprise_web_apps(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AndroidmanagementV1::ListWebAppsResponse
Lists web apps for a given enterprise.
-
#patch_enterprise(name, enterprise_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AndroidmanagementV1::Enterprise
Updates an enterprise.
-
#patch_enterprise_device(name, device_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AndroidmanagementV1::Device
Updates a device.
-
#patch_enterprise_policy(name, policy_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AndroidmanagementV1::Policy
Updates or creates a policy.
-
#patch_enterprise_web_app(name, web_app_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AndroidmanagementV1::WebApp
Updates a web app.
Constructor Details
#initialize ⇒ AndroidManagementService
Returns a new instance of AndroidManagementService.
46 47 48 49 |
# File 'generated/google/apis/androidmanagement_v1/service.rb', line 46 def initialize super('https://androidmanagement.googleapis.com/', '') @batch_path = 'batch' end |
Instance Attribute Details
#key ⇒ String
Returns 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.
39 40 41 |
# File 'generated/google/apis/androidmanagement_v1/service.rb', line 39 def key @key end |
#quota_user ⇒ String
Returns 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.
44 45 46 |
# File 'generated/google/apis/androidmanagement_v1/service.rb', line 44 def quota_user @quota_user end |
Instance Method Details
#cancel_enterprise_device_operation(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AndroidmanagementV1::Empty
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.
401 402 403 404 405 406 407 408 409 |
# File 'generated/google/apis/androidmanagement_v1/service.rb', line 401 def cancel_enterprise_device_operation(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+name}:cancel', ) 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 |
#create_enterprise(enterprise_object = nil, enterprise_token: nil, project_id: nil, signup_url_name: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AndroidmanagementV1::Enterprise
Creates an enterprise. This is the last step in the enterprise signup flow.
76 77 78 79 80 81 82 83 84 85 86 87 88 |
# File 'generated/google/apis/androidmanagement_v1/service.rb', line 76 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', ) 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 |
#create_enterprise_enrollment_token(parent, enrollment_token_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AndroidmanagementV1::EnrollmentToken
Creates an enrollment token for a given enterprise.
542 543 544 545 546 547 548 549 550 551 552 |
# File 'generated/google/apis/androidmanagement_v1/service.rb', line 542 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', ) 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 |
#create_enterprise_web_app(parent, web_app_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AndroidmanagementV1::WebApp
Creates a web app.
745 746 747 748 749 750 751 752 753 754 755 |
# File 'generated/google/apis/androidmanagement_v1/service.rb', line 745 def create_enterprise_web_app(parent, web_app_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+parent}/webApps', ) command.request_representation = Google::Apis::AndroidmanagementV1::WebApp::Representation command.request_object = web_app_object command.response_representation = Google::Apis::AndroidmanagementV1::WebApp::Representation command.response_class = Google::Apis::AndroidmanagementV1::WebApp 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 |
#create_enterprise_web_token(parent, web_token_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AndroidmanagementV1::WebToken
Creates a web token to access an embeddable managed Google Play web UI for a given enterprise.
916 917 918 919 920 921 922 923 924 925 926 |
# File 'generated/google/apis/androidmanagement_v1/service.rb', line 916 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', ) 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 |
#create_signup_url(callback_url: nil, project_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AndroidmanagementV1::SignupUrl
Creates an enterprise signup URL.
955 956 957 958 959 960 961 962 963 964 |
# File 'generated/google/apis/androidmanagement_v1/service.rb', line 955 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', ) 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 |
#delete_enterprise_device(name, wipe_data_flags: nil, wipe_reason_message: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AndroidmanagementV1::Empty
Deletes a device. This operation wipes the device.
220 221 222 223 224 225 226 227 228 229 230 |
# File 'generated/google/apis/androidmanagement_v1/service.rb', line 220 def delete_enterprise_device(name, wipe_data_flags: nil, wipe_reason_message: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v1/{+name}', ) command.response_representation = Google::Apis::AndroidmanagementV1::Empty::Representation command.response_class = Google::Apis::AndroidmanagementV1::Empty command.params['name'] = name unless name.nil? command.query['wipeDataFlags'] = wipe_data_flags unless wipe_data_flags.nil? command.query['wipeReasonMessage'] = unless .nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#delete_enterprise_device_operation(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AndroidmanagementV1::Empty
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.
434 435 436 437 438 439 440 441 442 |
# File 'generated/google/apis/androidmanagement_v1/service.rb', line 434 def delete_enterprise_device_operation(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v1/{+name}', ) 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 |
#delete_enterprise_enrollment_token(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AndroidmanagementV1::Empty
Deletes an enrollment token. This operation invalidates the token, preventing its future use.
576 577 578 579 580 581 582 583 584 |
# File 'generated/google/apis/androidmanagement_v1/service.rb', line 576 def delete_enterprise_enrollment_token(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v1/{+name}', ) 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 |
#delete_enterprise_policy(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AndroidmanagementV1::Empty
Deletes a policy. This operation is only permitted if no devices are currently referencing the policy.
608 609 610 611 612 613 614 615 616 |
# File 'generated/google/apis/androidmanagement_v1/service.rb', line 608 def delete_enterprise_policy(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v1/{+name}', ) 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 |
#delete_enterprise_web_app(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AndroidmanagementV1::Empty
Deletes a web app.
778 779 780 781 782 783 784 785 786 |
# File 'generated/google/apis/androidmanagement_v1/service.rb', line 778 def delete_enterprise_web_app(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v1/{+name}', ) 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 |
#get_enterprise(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AndroidmanagementV1::Enterprise
Gets an enterprise.
110 111 112 113 114 115 116 117 118 |
# File 'generated/google/apis/androidmanagement_v1/service.rb', line 110 def get_enterprise(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+name}', ) 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 |
#get_enterprise_application(name, language_code: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AndroidmanagementV1::Application
Gets info about an application.
182 183 184 185 186 187 188 189 190 191 |
# File 'generated/google/apis/androidmanagement_v1/service.rb', line 182 def get_enterprise_application(name, language_code: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+name}', ) 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 |
#get_enterprise_device(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AndroidmanagementV1::Device
Gets a device.
253 254 255 256 257 258 259 260 261 |
# File 'generated/google/apis/androidmanagement_v1/service.rb', line 253 def get_enterprise_device(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+name}', ) 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 |
#get_enterprise_device_operation(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AndroidmanagementV1::Operation
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.
465 466 467 468 469 470 471 472 473 |
# File 'generated/google/apis/androidmanagement_v1/service.rb', line 465 def get_enterprise_device_operation(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+name}', ) 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 |
#get_enterprise_policy(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AndroidmanagementV1::Policy
Gets a policy.
639 640 641 642 643 644 645 646 647 |
# File 'generated/google/apis/androidmanagement_v1/service.rb', line 639 def get_enterprise_policy(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+name}', ) 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 |
#get_enterprise_web_app(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AndroidmanagementV1::WebApp
Gets a web app.
809 810 811 812 813 814 815 816 817 |
# File 'generated/google/apis/androidmanagement_v1/service.rb', line 809 def get_enterprise_web_app(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+name}', ) command.response_representation = Google::Apis::AndroidmanagementV1::WebApp::Representation command.response_class = Google::Apis::AndroidmanagementV1::WebApp 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 |
#issue_enterprise_device_command(name, command_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AndroidmanagementV1::Operation
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.
287 288 289 290 291 292 293 294 295 296 297 |
# File 'generated/google/apis/androidmanagement_v1/service.rb', line 287 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', ) 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 |
#list_enterprise_device_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AndroidmanagementV1::ListOperationsResponse
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.
508 509 510 511 512 513 514 515 516 517 518 519 |
# File 'generated/google/apis/androidmanagement_v1/service.rb', line 508 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}', ) 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 |
#list_enterprise_devices(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AndroidmanagementV1::ListDevicesResponse
Lists devices for a given enterprise.
324 325 326 327 328 329 330 331 332 333 334 |
# File 'generated/google/apis/androidmanagement_v1/service.rb', line 324 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', ) 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 |
#list_enterprise_policies(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AndroidmanagementV1::ListPoliciesResponse
Lists policies for a given enterprise.
674 675 676 677 678 679 680 681 682 683 684 |
# File 'generated/google/apis/androidmanagement_v1/service.rb', line 674 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', ) 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 |
#list_enterprise_web_apps(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AndroidmanagementV1::ListWebAppsResponse
Lists web apps for a given enterprise.
844 845 846 847 848 849 850 851 852 853 854 |
# File 'generated/google/apis/androidmanagement_v1/service.rb', line 844 def list_enterprise_web_apps(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+parent}/webApps', ) command.response_representation = Google::Apis::AndroidmanagementV1::ListWebAppsResponse::Representation command.response_class = Google::Apis::AndroidmanagementV1::ListWebAppsResponse 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 |
#patch_enterprise(name, enterprise_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AndroidmanagementV1::Enterprise
Updates an enterprise.
144 145 146 147 148 149 150 151 152 153 154 155 |
# File 'generated/google/apis/androidmanagement_v1/service.rb', line 144 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}', ) 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 |
#patch_enterprise_device(name, device_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AndroidmanagementV1::Device
Updates a device.
361 362 363 364 365 366 367 368 369 370 371 372 |
# File 'generated/google/apis/androidmanagement_v1/service.rb', line 361 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}', ) 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 |
#patch_enterprise_policy(name, policy_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AndroidmanagementV1::Policy
Updates or creates a policy.
711 712 713 714 715 716 717 718 719 720 721 722 |
# File 'generated/google/apis/androidmanagement_v1/service.rb', line 711 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}', ) 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 |
#patch_enterprise_web_app(name, web_app_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AndroidmanagementV1::WebApp
Updates a web app.
881 882 883 884 885 886 887 888 889 890 891 892 |
# File 'generated/google/apis/androidmanagement_v1/service.rb', line 881 def patch_enterprise_web_app(name, web_app_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:patch, 'v1/{+name}', ) command.request_representation = Google::Apis::AndroidmanagementV1::WebApp::Representation command.request_object = web_app_object command.response_representation = Google::Apis::AndroidmanagementV1::WebApp::Representation command.response_class = Google::Apis::AndroidmanagementV1::WebApp 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 |