google-api-client 0.19.2 → 0.19.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +37 -0
- data/generated/google/apis/admin_reports_v1.rb +1 -1
- data/generated/google/apis/androidenterprise_v1.rb +1 -1
- data/generated/google/apis/androidenterprise_v1/classes.rb +94 -0
- data/generated/google/apis/androidenterprise_v1/representations.rb +46 -0
- data/generated/google/apis/androidenterprise_v1/service.rb +229 -0
- data/generated/google/apis/calendar_v3.rb +1 -1
- data/generated/google/apis/calendar_v3/classes.rb +13 -13
- data/generated/google/apis/cloudbilling_v1.rb +1 -1
- data/generated/google/apis/cloudbilling_v1/service.rb +11 -8
- data/generated/google/apis/clouddebugger_v2.rb +2 -2
- data/generated/google/apis/clouddebugger_v2/classes.rb +0 -1
- data/generated/google/apis/cloudkms_v1.rb +1 -1
- data/generated/google/apis/cloudkms_v1/classes.rb +3 -3
- data/generated/google/apis/cloudtasks_v2beta2.rb +1 -1
- data/generated/google/apis/cloudtasks_v2beta2/classes.rb +61 -57
- data/generated/google/apis/container_v1.rb +2 -2
- data/generated/google/apis/container_v1/service.rb +1 -1
- data/generated/google/apis/container_v1beta1.rb +2 -2
- data/generated/google/apis/container_v1beta1/classes.rb +86 -0
- data/generated/google/apis/container_v1beta1/representations.rb +33 -0
- data/generated/google/apis/container_v1beta1/service.rb +84 -1
- data/generated/google/apis/dataproc_v1beta2.rb +1 -1
- data/generated/google/apis/dataproc_v1beta2/service.rb +104 -0
- data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
- data/generated/google/apis/dialogflow_v2beta1/classes.rb +7 -0
- data/generated/google/apis/dialogflow_v2beta1/representations.rb +1 -0
- data/generated/google/apis/dlp_v2beta2.rb +1 -1
- data/generated/google/apis/drive_v2.rb +1 -1
- data/generated/google/apis/drive_v2/classes.rb +5 -3
- data/generated/google/apis/drive_v3.rb +1 -1
- data/generated/google/apis/drive_v3/classes.rb +4 -2
- data/generated/google/apis/firebaserules_v1.rb +1 -1
- data/generated/google/apis/firebaserules_v1/service.rb +0 -54
- data/generated/google/apis/games_v1.rb +1 -1
- data/generated/google/apis/games_v1/service.rb +53 -212
- data/generated/google/apis/iam_v1.rb +1 -1
- data/generated/google/apis/iam_v1/classes.rb +3 -2
- data/generated/google/apis/ml_v1.rb +1 -1
- data/generated/google/apis/ml_v1/classes.rb +3 -3
- data/generated/google/apis/monitoring_v3.rb +1 -1
- data/generated/google/apis/pagespeedonline_v1.rb +1 -1
- data/generated/google/apis/pagespeedonline_v1/classes.rb +6 -0
- data/generated/google/apis/pagespeedonline_v1/representations.rb +1 -0
- data/generated/google/apis/pagespeedonline_v2.rb +1 -1
- data/generated/google/apis/pagespeedonline_v2/classes.rb +6 -0
- data/generated/google/apis/pagespeedonline_v2/representations.rb +1 -0
- data/generated/google/apis/people_v1.rb +1 -1
- data/generated/google/apis/people_v1/classes.rb +0 -2
- data/generated/google/apis/people_v1/service.rb +4 -0
- data/generated/google/apis/pubsub_v1.rb +1 -1
- data/generated/google/apis/pubsub_v1/classes.rb +3 -3
- data/generated/google/apis/pubsub_v1/service.rb +31 -0
- data/generated/google/apis/pubsub_v1beta2.rb +1 -1
- data/generated/google/apis/pubsub_v1beta2/classes.rb +3 -3
- data/generated/google/apis/runtimeconfig_v1beta1.rb +1 -1
- data/generated/google/apis/runtimeconfig_v1beta1/classes.rb +3 -3
- data/generated/google/apis/script_v1.rb +2 -2
- data/generated/google/apis/script_v1/classes.rb +865 -0
- data/generated/google/apis/script_v1/representations.rb +428 -0
- data/generated/google/apis/script_v1/service.rb +586 -1
- data/generated/google/apis/serviceconsumermanagement_v1.rb +1 -1
- data/generated/google/apis/serviceconsumermanagement_v1/classes.rb +0 -10
- data/generated/google/apis/serviceconsumermanagement_v1/representations.rb +0 -1
- data/generated/google/apis/sheets_v4.rb +1 -1
- data/generated/google/apis/sheets_v4/classes.rb +48 -0
- data/generated/google/apis/sheets_v4/representations.rb +17 -0
- data/generated/google/apis/slides_v1.rb +1 -1
- data/generated/google/apis/slides_v1/classes.rb +45 -0
- data/generated/google/apis/slides_v1/representations.rb +17 -0
- data/generated/google/apis/sourcerepo_v1.rb +1 -1
- data/generated/google/apis/sourcerepo_v1/classes.rb +2 -2
- data/generated/google/apis/storage_v1/service.rb +1 -1
- data/generated/google/apis/storage_v1beta1/service.rb +1 -1
- data/generated/google/apis/storagetransfer_v1.rb +1 -1
- data/generated/google/apis/storagetransfer_v1/classes.rb +4 -2
- data/generated/google/apis/testing_v1.rb +1 -1
- data/generated/google/apis/youtube_partner_v1.rb +1 -1
- data/generated/google/apis/youtubereporting_v1.rb +1 -1
- data/generated/google/apis/youtubereporting_v1/service.rb +1 -2
- data/lib/google/apis/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5c92da357ec452fd7360dcfe146c681ce3e69d53
|
|
4
|
+
data.tar.gz: de903474c7cb5c7e62cfdf244354b934aa2d68ba
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 982d64d75411cc7aece16fb51d20bb9da13890d00df888fe87ad7a7c0600290a3c1ace1d4b3b556504dbfd688daac85f5cbb9e79050e8b02c8102212dcda23fa
|
|
7
|
+
data.tar.gz: 68b2a3fe349c5685bab71a6ace527d14182bea4d4682dbf15404306d0c6bc206386f1f468a92fab21714ff1dbbe6979ca8996614990d10d95a5d4e8d6c9c7c46
|
data/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,40 @@
|
|
|
1
|
+
# 0.19.3
|
|
2
|
+
* Backwards compatible changes:
|
|
3
|
+
* Updated `admin_reports_v1`
|
|
4
|
+
* Updated `androidenterprise_v1`
|
|
5
|
+
* Updated `calendar_v3`
|
|
6
|
+
* Updated `cloudbilling_v1`
|
|
7
|
+
* Updated `clouddebugger_v2`
|
|
8
|
+
* Updated `cloudkms_v1`
|
|
9
|
+
* Updated `cloudtasks_v2beta2`
|
|
10
|
+
* Updated `container_v1`
|
|
11
|
+
* Updated `container_v1beta1`
|
|
12
|
+
* Updated `dataproc_v1beta2`
|
|
13
|
+
* Updated `dialogflow_v2beta1`
|
|
14
|
+
* Updated `dlp_v2beta2`
|
|
15
|
+
* Updated `drive_v2`
|
|
16
|
+
* Updated `drive_v3`
|
|
17
|
+
* Updated `firebaserules_v1`
|
|
18
|
+
* Updated `games_v1`
|
|
19
|
+
* Updated `iam_v1`
|
|
20
|
+
* Updated `ml_v1`
|
|
21
|
+
* Updated `monitoring_v3`
|
|
22
|
+
* Updated `pagespeedonline_v1`
|
|
23
|
+
* Updated `pagespeedonline_v2`
|
|
24
|
+
* Updated `people_v1`
|
|
25
|
+
* Updated `pubsub_v1`
|
|
26
|
+
* Updated `pubsub_v1beta2`
|
|
27
|
+
* Updated `runtimeconfig_v1beta1`
|
|
28
|
+
* Updated `script_v1`
|
|
29
|
+
* Updated `serviceconsumermanagement_v1`
|
|
30
|
+
* Updated `sheets_v4`
|
|
31
|
+
* Updated `slides_v1`
|
|
32
|
+
* Updated `sourcerepo_v1`
|
|
33
|
+
* Updated `storagetransfer_v1`
|
|
34
|
+
* Updated `testing_v1`
|
|
35
|
+
* Updated `youtube_partner_v1`
|
|
36
|
+
* Updated `youtubereporting_v1`
|
|
37
|
+
|
|
1
38
|
# 0.19.2
|
|
2
39
|
* Backwards compatible changes:
|
|
3
40
|
* Updated `adexchangebuyer2_v2beta1`
|
|
@@ -26,7 +26,7 @@ module Google
|
|
|
26
26
|
# @see https://developers.google.com/admin-sdk/reports/
|
|
27
27
|
module AdminReportsV1
|
|
28
28
|
VERSION = 'ReportsV1'
|
|
29
|
-
REVISION = '
|
|
29
|
+
REVISION = '20180110'
|
|
30
30
|
|
|
31
31
|
# View audit reports for your G Suite domain
|
|
32
32
|
AUTH_ADMIN_REPORTS_AUDIT_READONLY = 'https://www.googleapis.com/auth/admin.reports.audit.readonly'
|
|
@@ -25,7 +25,7 @@ module Google
|
|
|
25
25
|
# @see https://developers.google.com/android/work/play/emm-api
|
|
26
26
|
module AndroidenterpriseV1
|
|
27
27
|
VERSION = 'V1'
|
|
28
|
-
REVISION = '
|
|
28
|
+
REVISION = '20180103'
|
|
29
29
|
|
|
30
30
|
# Manage corporate Android devices
|
|
31
31
|
AUTH_ANDROIDENTERPRISE = 'https://www.googleapis.com/auth/androidenterprise'
|
|
@@ -2666,6 +2666,100 @@ module Google
|
|
|
2666
2666
|
@user_value = args[:user_value] if args.key?(:user_value)
|
|
2667
2667
|
end
|
|
2668
2668
|
end
|
|
2669
|
+
|
|
2670
|
+
# WebApp resource info.
|
|
2671
|
+
class WebApp
|
|
2672
|
+
include Google::Apis::Core::Hashable
|
|
2673
|
+
|
|
2674
|
+
# A list of icons representing this website. Must have at least one element.
|
|
2675
|
+
# Corresponds to the JSON property `icons`
|
|
2676
|
+
# @return [Array<Google::Apis::AndroidenterpriseV1::WebAppImage>]
|
|
2677
|
+
attr_accessor :icons
|
|
2678
|
+
|
|
2679
|
+
# The name of the web application as it is usually displayed to the user (e.g.,
|
|
2680
|
+
# amongst a list of other applications, or as a label for an icon). Required.
|
|
2681
|
+
# Corresponds to the JSON property `name`
|
|
2682
|
+
# @return [String]
|
|
2683
|
+
attr_accessor :name
|
|
2684
|
+
|
|
2685
|
+
# String that represents the start URL, i.e. the URL that should load when the
|
|
2686
|
+
# user opens the application. Required.
|
|
2687
|
+
# Corresponds to the JSON property `startUrl`
|
|
2688
|
+
# @return [String]
|
|
2689
|
+
attr_accessor :start_url
|
|
2690
|
+
|
|
2691
|
+
# The ID of the application.
|
|
2692
|
+
# Corresponds to the JSON property `webAppId`
|
|
2693
|
+
# @return [String]
|
|
2694
|
+
attr_accessor :web_app_id
|
|
2695
|
+
|
|
2696
|
+
def initialize(**args)
|
|
2697
|
+
update!(**args)
|
|
2698
|
+
end
|
|
2699
|
+
|
|
2700
|
+
# Update properties of this object
|
|
2701
|
+
def update!(**args)
|
|
2702
|
+
@icons = args[:icons] if args.key?(:icons)
|
|
2703
|
+
@name = args[:name] if args.key?(:name)
|
|
2704
|
+
@start_url = args[:start_url] if args.key?(:start_url)
|
|
2705
|
+
@web_app_id = args[:web_app_id] if args.key?(:web_app_id)
|
|
2706
|
+
end
|
|
2707
|
+
end
|
|
2708
|
+
|
|
2709
|
+
# Each image object represents an image that is used as part of a web
|
|
2710
|
+
# application, suitable to use in various contexts depending on the semantics of
|
|
2711
|
+
# the member that is using the object (e.g., an icon that is part of an
|
|
2712
|
+
# application menu, etc.).
|
|
2713
|
+
class WebAppImage
|
|
2714
|
+
include Google::Apis::Core::Hashable
|
|
2715
|
+
|
|
2716
|
+
# The actual bytes of the image.
|
|
2717
|
+
# Corresponds to the JSON property `imageData`
|
|
2718
|
+
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
|
2719
|
+
# @return [String]
|
|
2720
|
+
attr_accessor :image_data
|
|
2721
|
+
|
|
2722
|
+
# The purposes this image may be used for. Optional.
|
|
2723
|
+
# Corresponds to the JSON property `purposes`
|
|
2724
|
+
# @return [Array<String>]
|
|
2725
|
+
attr_accessor :purposes
|
|
2726
|
+
|
|
2727
|
+
def initialize(**args)
|
|
2728
|
+
update!(**args)
|
|
2729
|
+
end
|
|
2730
|
+
|
|
2731
|
+
# Update properties of this object
|
|
2732
|
+
def update!(**args)
|
|
2733
|
+
@image_data = args[:image_data] if args.key?(:image_data)
|
|
2734
|
+
@purposes = args[:purposes] if args.key?(:purposes)
|
|
2735
|
+
end
|
|
2736
|
+
end
|
|
2737
|
+
|
|
2738
|
+
# The web app details for an enterprise.
|
|
2739
|
+
class WebAppsListResponse
|
|
2740
|
+
include Google::Apis::Core::Hashable
|
|
2741
|
+
|
|
2742
|
+
# Identifies what kind of resource this is. Value: the fixed string "
|
|
2743
|
+
# androidenterprise#webAppsListResponse".
|
|
2744
|
+
# Corresponds to the JSON property `kind`
|
|
2745
|
+
# @return [String]
|
|
2746
|
+
attr_accessor :kind
|
|
2747
|
+
|
|
2748
|
+
# The manifest describing a web app.
|
|
2749
|
+
# Corresponds to the JSON property `webApp`
|
|
2750
|
+
# @return [Array<Google::Apis::AndroidenterpriseV1::WebApp>]
|
|
2751
|
+
attr_accessor :web_app
|
|
2752
|
+
|
|
2753
|
+
def initialize(**args)
|
|
2754
|
+
update!(**args)
|
|
2755
|
+
end
|
|
2756
|
+
|
|
2757
|
+
# Update properties of this object
|
|
2758
|
+
def update!(**args)
|
|
2759
|
+
@kind = args[:kind] if args.key?(:kind)
|
|
2760
|
+
@web_app = args[:web_app] if args.key?(:web_app)
|
|
2761
|
+
end
|
|
2762
|
+
end
|
|
2669
2763
|
end
|
|
2670
2764
|
end
|
|
2671
2765
|
end
|
|
@@ -436,6 +436,24 @@ module Google
|
|
|
436
436
|
include Google::Apis::Core::JsonObjectSupport
|
|
437
437
|
end
|
|
438
438
|
|
|
439
|
+
class WebApp
|
|
440
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
441
|
+
|
|
442
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
443
|
+
end
|
|
444
|
+
|
|
445
|
+
class WebAppImage
|
|
446
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
447
|
+
|
|
448
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
449
|
+
end
|
|
450
|
+
|
|
451
|
+
class WebAppsListResponse
|
|
452
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
453
|
+
|
|
454
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
455
|
+
end
|
|
456
|
+
|
|
439
457
|
class Administrator
|
|
440
458
|
# @private
|
|
441
459
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -1122,6 +1140,34 @@ module Google
|
|
|
1122
1140
|
property :user_value, as: 'userValue'
|
|
1123
1141
|
end
|
|
1124
1142
|
end
|
|
1143
|
+
|
|
1144
|
+
class WebApp
|
|
1145
|
+
# @private
|
|
1146
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
1147
|
+
collection :icons, as: 'icons', class: Google::Apis::AndroidenterpriseV1::WebAppImage, decorator: Google::Apis::AndroidenterpriseV1::WebAppImage::Representation
|
|
1148
|
+
|
|
1149
|
+
property :name, as: 'name'
|
|
1150
|
+
property :start_url, as: 'startUrl'
|
|
1151
|
+
property :web_app_id, as: 'webAppId'
|
|
1152
|
+
end
|
|
1153
|
+
end
|
|
1154
|
+
|
|
1155
|
+
class WebAppImage
|
|
1156
|
+
# @private
|
|
1157
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
1158
|
+
property :image_data, :base64 => true, as: 'imageData'
|
|
1159
|
+
collection :purposes, as: 'purposes'
|
|
1160
|
+
end
|
|
1161
|
+
end
|
|
1162
|
+
|
|
1163
|
+
class WebAppsListResponse
|
|
1164
|
+
# @private
|
|
1165
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
1166
|
+
property :kind, as: 'kind'
|
|
1167
|
+
collection :web_app, as: 'webApp', class: Google::Apis::AndroidenterpriseV1::WebApp, decorator: Google::Apis::AndroidenterpriseV1::WebApp::Representation
|
|
1168
|
+
|
|
1169
|
+
end
|
|
1170
|
+
end
|
|
1125
1171
|
end
|
|
1126
1172
|
end
|
|
1127
1173
|
end
|
|
@@ -3518,6 +3518,235 @@ module Google
|
|
|
3518
3518
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
3519
3519
|
execute_or_queue_command(command, &block)
|
|
3520
3520
|
end
|
|
3521
|
+
|
|
3522
|
+
# Deletes an existing web app.
|
|
3523
|
+
# @param [String] enterprise_id
|
|
3524
|
+
# The ID of the enterprise.
|
|
3525
|
+
# @param [String] web_app_id
|
|
3526
|
+
# The ID of the web app.
|
|
3527
|
+
# @param [String] fields
|
|
3528
|
+
# Selector specifying which fields to include in a partial response.
|
|
3529
|
+
# @param [String] quota_user
|
|
3530
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
3531
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
3532
|
+
# Overrides userIp if both are provided.
|
|
3533
|
+
# @param [String] user_ip
|
|
3534
|
+
# IP address of the site where the request originates. Use this if you want to
|
|
3535
|
+
# enforce per-user limits.
|
|
3536
|
+
# @param [Google::Apis::RequestOptions] options
|
|
3537
|
+
# Request-specific options
|
|
3538
|
+
#
|
|
3539
|
+
# @yield [result, err] Result & error if block supplied
|
|
3540
|
+
# @yieldparam result [NilClass] No result returned for this method
|
|
3541
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
3542
|
+
#
|
|
3543
|
+
# @return [void]
|
|
3544
|
+
#
|
|
3545
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
3546
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
3547
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
3548
|
+
def delete_webapp(enterprise_id, web_app_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
3549
|
+
command = make_simple_command(:delete, 'enterprises/{enterpriseId}/webapps/{webAppId}', options)
|
|
3550
|
+
command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
|
|
3551
|
+
command.params['webAppId'] = web_app_id unless web_app_id.nil?
|
|
3552
|
+
command.query['fields'] = fields unless fields.nil?
|
|
3553
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
3554
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
3555
|
+
execute_or_queue_command(command, &block)
|
|
3556
|
+
end
|
|
3557
|
+
|
|
3558
|
+
# Gets an existing web app.
|
|
3559
|
+
# @param [String] enterprise_id
|
|
3560
|
+
# The ID of the enterprise.
|
|
3561
|
+
# @param [String] web_app_id
|
|
3562
|
+
# The ID of the web app.
|
|
3563
|
+
# @param [String] fields
|
|
3564
|
+
# Selector specifying which fields to include in a partial response.
|
|
3565
|
+
# @param [String] quota_user
|
|
3566
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
3567
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
3568
|
+
# Overrides userIp if both are provided.
|
|
3569
|
+
# @param [String] user_ip
|
|
3570
|
+
# IP address of the site where the request originates. Use this if you want to
|
|
3571
|
+
# enforce per-user limits.
|
|
3572
|
+
# @param [Google::Apis::RequestOptions] options
|
|
3573
|
+
# Request-specific options
|
|
3574
|
+
#
|
|
3575
|
+
# @yield [result, err] Result & error if block supplied
|
|
3576
|
+
# @yieldparam result [Google::Apis::AndroidenterpriseV1::WebApp] parsed result object
|
|
3577
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
3578
|
+
#
|
|
3579
|
+
# @return [Google::Apis::AndroidenterpriseV1::WebApp]
|
|
3580
|
+
#
|
|
3581
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
3582
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
3583
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
3584
|
+
def get_webapp(enterprise_id, web_app_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
3585
|
+
command = make_simple_command(:get, 'enterprises/{enterpriseId}/webapps/{webAppId}', options)
|
|
3586
|
+
command.response_representation = Google::Apis::AndroidenterpriseV1::WebApp::Representation
|
|
3587
|
+
command.response_class = Google::Apis::AndroidenterpriseV1::WebApp
|
|
3588
|
+
command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
|
|
3589
|
+
command.params['webAppId'] = web_app_id unless web_app_id.nil?
|
|
3590
|
+
command.query['fields'] = fields unless fields.nil?
|
|
3591
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
3592
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
3593
|
+
execute_or_queue_command(command, &block)
|
|
3594
|
+
end
|
|
3595
|
+
|
|
3596
|
+
# Creates a new web app for the enterprise.
|
|
3597
|
+
# @param [String] enterprise_id
|
|
3598
|
+
# The ID of the enterprise.
|
|
3599
|
+
# @param [Google::Apis::AndroidenterpriseV1::WebApp] web_app_object
|
|
3600
|
+
# @param [String] fields
|
|
3601
|
+
# Selector specifying which fields to include in a partial response.
|
|
3602
|
+
# @param [String] quota_user
|
|
3603
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
3604
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
3605
|
+
# Overrides userIp if both are provided.
|
|
3606
|
+
# @param [String] user_ip
|
|
3607
|
+
# IP address of the site where the request originates. Use this if you want to
|
|
3608
|
+
# enforce per-user limits.
|
|
3609
|
+
# @param [Google::Apis::RequestOptions] options
|
|
3610
|
+
# Request-specific options
|
|
3611
|
+
#
|
|
3612
|
+
# @yield [result, err] Result & error if block supplied
|
|
3613
|
+
# @yieldparam result [Google::Apis::AndroidenterpriseV1::WebApp] parsed result object
|
|
3614
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
3615
|
+
#
|
|
3616
|
+
# @return [Google::Apis::AndroidenterpriseV1::WebApp]
|
|
3617
|
+
#
|
|
3618
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
3619
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
3620
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
3621
|
+
def insert_webapp(enterprise_id, web_app_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
3622
|
+
command = make_simple_command(:post, 'enterprises/{enterpriseId}/webapps', options)
|
|
3623
|
+
command.request_representation = Google::Apis::AndroidenterpriseV1::WebApp::Representation
|
|
3624
|
+
command.request_object = web_app_object
|
|
3625
|
+
command.response_representation = Google::Apis::AndroidenterpriseV1::WebApp::Representation
|
|
3626
|
+
command.response_class = Google::Apis::AndroidenterpriseV1::WebApp
|
|
3627
|
+
command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
|
|
3628
|
+
command.query['fields'] = fields unless fields.nil?
|
|
3629
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
3630
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
3631
|
+
execute_or_queue_command(command, &block)
|
|
3632
|
+
end
|
|
3633
|
+
|
|
3634
|
+
# Retrieves the details of all web apps for a given enterprise.
|
|
3635
|
+
# @param [String] enterprise_id
|
|
3636
|
+
# The ID of the enterprise.
|
|
3637
|
+
# @param [String] fields
|
|
3638
|
+
# Selector specifying which fields to include in a partial response.
|
|
3639
|
+
# @param [String] quota_user
|
|
3640
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
3641
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
3642
|
+
# Overrides userIp if both are provided.
|
|
3643
|
+
# @param [String] user_ip
|
|
3644
|
+
# IP address of the site where the request originates. Use this if you want to
|
|
3645
|
+
# enforce per-user limits.
|
|
3646
|
+
# @param [Google::Apis::RequestOptions] options
|
|
3647
|
+
# Request-specific options
|
|
3648
|
+
#
|
|
3649
|
+
# @yield [result, err] Result & error if block supplied
|
|
3650
|
+
# @yieldparam result [Google::Apis::AndroidenterpriseV1::WebAppsListResponse] parsed result object
|
|
3651
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
3652
|
+
#
|
|
3653
|
+
# @return [Google::Apis::AndroidenterpriseV1::WebAppsListResponse]
|
|
3654
|
+
#
|
|
3655
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
3656
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
3657
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
3658
|
+
def list_webapps(enterprise_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
3659
|
+
command = make_simple_command(:get, 'enterprises/{enterpriseId}/webapps', options)
|
|
3660
|
+
command.response_representation = Google::Apis::AndroidenterpriseV1::WebAppsListResponse::Representation
|
|
3661
|
+
command.response_class = Google::Apis::AndroidenterpriseV1::WebAppsListResponse
|
|
3662
|
+
command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
|
|
3663
|
+
command.query['fields'] = fields unless fields.nil?
|
|
3664
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
3665
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
3666
|
+
execute_or_queue_command(command, &block)
|
|
3667
|
+
end
|
|
3668
|
+
|
|
3669
|
+
# Updates an existing web app. This method supports patch semantics.
|
|
3670
|
+
# @param [String] enterprise_id
|
|
3671
|
+
# The ID of the enterprise.
|
|
3672
|
+
# @param [String] web_app_id
|
|
3673
|
+
# The ID of the web app.
|
|
3674
|
+
# @param [Google::Apis::AndroidenterpriseV1::WebApp] web_app_object
|
|
3675
|
+
# @param [String] fields
|
|
3676
|
+
# Selector specifying which fields to include in a partial response.
|
|
3677
|
+
# @param [String] quota_user
|
|
3678
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
3679
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
3680
|
+
# Overrides userIp if both are provided.
|
|
3681
|
+
# @param [String] user_ip
|
|
3682
|
+
# IP address of the site where the request originates. Use this if you want to
|
|
3683
|
+
# enforce per-user limits.
|
|
3684
|
+
# @param [Google::Apis::RequestOptions] options
|
|
3685
|
+
# Request-specific options
|
|
3686
|
+
#
|
|
3687
|
+
# @yield [result, err] Result & error if block supplied
|
|
3688
|
+
# @yieldparam result [Google::Apis::AndroidenterpriseV1::WebApp] parsed result object
|
|
3689
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
3690
|
+
#
|
|
3691
|
+
# @return [Google::Apis::AndroidenterpriseV1::WebApp]
|
|
3692
|
+
#
|
|
3693
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
3694
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
3695
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
3696
|
+
def patch_webapp(enterprise_id, web_app_id, web_app_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
3697
|
+
command = make_simple_command(:patch, 'enterprises/{enterpriseId}/webapps/{webAppId}', options)
|
|
3698
|
+
command.request_representation = Google::Apis::AndroidenterpriseV1::WebApp::Representation
|
|
3699
|
+
command.request_object = web_app_object
|
|
3700
|
+
command.response_representation = Google::Apis::AndroidenterpriseV1::WebApp::Representation
|
|
3701
|
+
command.response_class = Google::Apis::AndroidenterpriseV1::WebApp
|
|
3702
|
+
command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
|
|
3703
|
+
command.params['webAppId'] = web_app_id unless web_app_id.nil?
|
|
3704
|
+
command.query['fields'] = fields unless fields.nil?
|
|
3705
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
3706
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
3707
|
+
execute_or_queue_command(command, &block)
|
|
3708
|
+
end
|
|
3709
|
+
|
|
3710
|
+
# Updates an existing web app.
|
|
3711
|
+
# @param [String] enterprise_id
|
|
3712
|
+
# The ID of the enterprise.
|
|
3713
|
+
# @param [String] web_app_id
|
|
3714
|
+
# The ID of the web app.
|
|
3715
|
+
# @param [Google::Apis::AndroidenterpriseV1::WebApp] web_app_object
|
|
3716
|
+
# @param [String] fields
|
|
3717
|
+
# Selector specifying which fields to include in a partial response.
|
|
3718
|
+
# @param [String] quota_user
|
|
3719
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
3720
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
3721
|
+
# Overrides userIp if both are provided.
|
|
3722
|
+
# @param [String] user_ip
|
|
3723
|
+
# IP address of the site where the request originates. Use this if you want to
|
|
3724
|
+
# enforce per-user limits.
|
|
3725
|
+
# @param [Google::Apis::RequestOptions] options
|
|
3726
|
+
# Request-specific options
|
|
3727
|
+
#
|
|
3728
|
+
# @yield [result, err] Result & error if block supplied
|
|
3729
|
+
# @yieldparam result [Google::Apis::AndroidenterpriseV1::WebApp] parsed result object
|
|
3730
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
3731
|
+
#
|
|
3732
|
+
# @return [Google::Apis::AndroidenterpriseV1::WebApp]
|
|
3733
|
+
#
|
|
3734
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
3735
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
3736
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
3737
|
+
def update_webapp(enterprise_id, web_app_id, web_app_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
3738
|
+
command = make_simple_command(:put, 'enterprises/{enterpriseId}/webapps/{webAppId}', options)
|
|
3739
|
+
command.request_representation = Google::Apis::AndroidenterpriseV1::WebApp::Representation
|
|
3740
|
+
command.request_object = web_app_object
|
|
3741
|
+
command.response_representation = Google::Apis::AndroidenterpriseV1::WebApp::Representation
|
|
3742
|
+
command.response_class = Google::Apis::AndroidenterpriseV1::WebApp
|
|
3743
|
+
command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
|
|
3744
|
+
command.params['webAppId'] = web_app_id unless web_app_id.nil?
|
|
3745
|
+
command.query['fields'] = fields unless fields.nil?
|
|
3746
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
3747
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
3748
|
+
execute_or_queue_command(command, &block)
|
|
3749
|
+
end
|
|
3521
3750
|
|
|
3522
3751
|
protected
|
|
3523
3752
|
|