google-api-client 0.9.20 → 0.9.21

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.
Files changed (159) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +8 -4
  3. data/api_names.yaml +33179 -1058
  4. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  5. data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
  6. data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +24 -6
  7. data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +2 -0
  8. data/generated/google/apis/admin_directory_v1.rb +1 -1
  9. data/generated/google/apis/admin_directory_v1/classes.rb +14 -0
  10. data/generated/google/apis/admin_directory_v1/representations.rb +2 -0
  11. data/generated/google/apis/adsense_v1_4.rb +1 -1
  12. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  13. data/generated/google/apis/analyticsreporting_v4.rb +1 -1
  14. data/generated/google/apis/analyticsreporting_v4/classes.rb +7 -0
  15. data/generated/google/apis/analyticsreporting_v4/representations.rb +1 -0
  16. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  17. data/generated/google/apis/androidenterprise_v1/classes.rb +96 -156
  18. data/generated/google/apis/androidenterprise_v1/representations.rb +18 -47
  19. data/generated/google/apis/androidenterprise_v1/service.rb +15 -459
  20. data/generated/google/apis/androidpublisher_v2.rb +1 -1
  21. data/generated/google/apis/androidpublisher_v2/classes.rb +176 -0
  22. data/generated/google/apis/androidpublisher_v2/representations.rb +62 -0
  23. data/generated/google/apis/androidpublisher_v2/service.rb +60 -2
  24. data/generated/google/apis/appengine_v1beta5.rb +1 -1
  25. data/generated/google/apis/appengine_v1beta5/classes.rb +300 -198
  26. data/generated/google/apis/appengine_v1beta5/representations.rb +36 -0
  27. data/generated/google/apis/appengine_v1beta5/service.rb +54 -49
  28. data/generated/google/apis/appsactivity_v1.rb +1 -1
  29. data/generated/google/apis/appstate_v1.rb +1 -1
  30. data/generated/google/apis/bigquery_v2.rb +1 -1
  31. data/generated/google/apis/bigquery_v2/classes.rb +50 -6
  32. data/generated/google/apis/bigquery_v2/representations.rb +5 -0
  33. data/generated/google/apis/books_v1.rb +1 -1
  34. data/generated/google/apis/books_v1/classes.rb +7 -2
  35. data/generated/google/apis/books_v1/representations.rb +1 -0
  36. data/generated/google/apis/calendar_v3.rb +1 -1
  37. data/generated/google/apis/classroom_v1.rb +1 -1
  38. data/generated/google/apis/classroom_v1/classes.rb +74 -74
  39. data/generated/google/apis/classroom_v1/representations.rb +29 -29
  40. data/generated/google/apis/classroom_v1/service.rb +132 -28
  41. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  42. data/generated/google/apis/cloudbuild_v1/classes.rb +47 -27
  43. data/generated/google/apis/cloudbuild_v1/representations.rb +20 -7
  44. data/generated/google/apis/cloudbuild_v1/service.rb +42 -0
  45. data/generated/google/apis/clouddebugger_v2.rb +1 -1
  46. data/generated/google/apis/clouddebugger_v2/classes.rb +648 -578
  47. data/generated/google/apis/clouddebugger_v2/representations.rb +140 -140
  48. data/generated/google/apis/clouddebugger_v2/service.rb +161 -155
  49. data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
  50. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +563 -423
  51. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +116 -76
  52. data/generated/google/apis/cloudresourcemanager_v1/service.rb +318 -249
  53. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
  54. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +396 -331
  55. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +79 -79
  56. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +317 -281
  57. data/generated/google/apis/compute_beta.rb +1 -1
  58. data/generated/google/apis/compute_beta/classes.rb +352 -80
  59. data/generated/google/apis/compute_beta/representations.rb +132 -19
  60. data/generated/google/apis/compute_beta/service.rb +214 -0
  61. data/generated/google/apis/compute_v1.rb +1 -1
  62. data/generated/google/apis/compute_v1/classes.rb +673 -73
  63. data/generated/google/apis/compute_v1/representations.rb +274 -9
  64. data/generated/google/apis/compute_v1/service.rb +1574 -2
  65. data/generated/google/apis/content_v2.rb +1 -1
  66. data/generated/google/apis/content_v2/classes.rb +7 -8
  67. data/generated/google/apis/content_v2/service.rb +125 -54
  68. data/generated/google/apis/dataflow_v1b3.rb +2 -3
  69. data/generated/google/apis/dataflow_v1b3/classes.rb +286 -114
  70. data/generated/google/apis/dataflow_v1b3/representations.rb +73 -0
  71. data/generated/google/apis/dataflow_v1b3/service.rb +37 -38
  72. data/generated/google/apis/datastore_v1.rb +1 -1
  73. data/generated/google/apis/datastore_v1/classes.rb +5 -0
  74. data/generated/google/apis/deploymentmanager_v2.rb +1 -1
  75. data/generated/google/apis/deploymentmanager_v2/classes.rb +37 -5
  76. data/generated/google/apis/deploymentmanager_v2/representations.rb +16 -0
  77. data/generated/google/apis/deploymentmanager_v2/service.rb +4 -1
  78. data/generated/google/apis/dns_v1.rb +1 -1
  79. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  80. data/generated/google/apis/drive_v2.rb +1 -1
  81. data/generated/google/apis/drive_v2/classes.rb +55 -21
  82. data/generated/google/apis/drive_v2/representations.rb +2 -0
  83. data/generated/google/apis/drive_v3.rb +1 -1
  84. data/generated/google/apis/drive_v3/classes.rb +41 -12
  85. data/generated/google/apis/drive_v3/representations.rb +2 -0
  86. data/generated/google/apis/fitness_v1.rb +31 -1
  87. data/generated/google/apis/fitness_v1/classes.rb +1 -1
  88. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  89. data/generated/google/apis/games_management_v1management.rb +1 -1
  90. data/generated/google/apis/games_v1.rb +1 -1
  91. data/generated/google/apis/gmail_v1.rb +1 -1
  92. data/generated/google/apis/gmail_v1/classes.rb +32 -1
  93. data/generated/google/apis/gmail_v1/representations.rb +15 -0
  94. data/generated/google/apis/gmail_v1/service.rb +41 -2
  95. data/generated/google/apis/identitytoolkit_v3.rb +4 -1
  96. data/generated/google/apis/identitytoolkit_v3/classes.rb +7 -0
  97. data/generated/google/apis/identitytoolkit_v3/representations.rb +1 -0
  98. data/generated/google/apis/kgsearch_v1.rb +2 -3
  99. data/generated/google/apis/kgsearch_v1/classes.rb +10 -10
  100. data/generated/google/apis/kgsearch_v1/representations.rb +2 -2
  101. data/generated/google/apis/kgsearch_v1/service.rb +28 -26
  102. data/generated/google/apis/language_v1beta1.rb +1 -1
  103. data/generated/google/apis/language_v1beta1/classes.rb +166 -8
  104. data/generated/google/apis/language_v1beta1/representations.rb +50 -0
  105. data/generated/google/apis/language_v1beta1/service.rb +32 -0
  106. data/generated/google/apis/logging_v2beta1.rb +6 -6
  107. data/generated/google/apis/logging_v2beta1/classes.rb +868 -789
  108. data/generated/google/apis/logging_v2beta1/representations.rb +179 -147
  109. data/generated/google/apis/logging_v2beta1/service.rb +378 -211
  110. data/generated/google/apis/monitoring_v3.rb +1 -1
  111. data/generated/google/apis/monitoring_v3/classes.rb +110 -112
  112. data/generated/google/apis/monitoring_v3/service.rb +68 -73
  113. data/generated/google/apis/pagespeedonline_v2.rb +1 -1
  114. data/generated/google/apis/plus_domains_v1.rb +1 -1
  115. data/generated/google/apis/plus_v1.rb +1 -1
  116. data/generated/google/apis/pubsub_v1.rb +1 -1
  117. data/generated/google/apis/pubsub_v1/classes.rb +380 -327
  118. data/generated/google/apis/pubsub_v1/representations.rb +79 -79
  119. data/generated/google/apis/pubsub_v1/service.rb +424 -396
  120. data/generated/google/apis/sheets_v4.rb +1 -1
  121. data/generated/google/apis/sheets_v4/classes.rb +175 -53
  122. data/generated/google/apis/sheets_v4/representations.rb +48 -13
  123. data/generated/google/apis/site_verification_v1.rb +1 -1
  124. data/generated/google/apis/slides_v1.rb +1 -1
  125. data/generated/google/apis/slides_v1/classes.rb +149 -31
  126. data/generated/google/apis/slides_v1/representations.rb +52 -9
  127. data/generated/google/apis/slides_v1/service.rb +5 -5
  128. data/generated/google/apis/speech_v1beta1.rb +1 -1
  129. data/generated/google/apis/speech_v1beta1/service.rb +3 -1
  130. data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
  131. data/generated/google/apis/sqladmin_v1beta4/classes.rb +54 -2
  132. data/generated/google/apis/sqladmin_v1beta4/representations.rb +29 -0
  133. data/generated/google/apis/sqladmin_v1beta4/service.rb +41 -0
  134. data/generated/google/apis/storage_v1.rb +1 -1
  135. data/generated/google/apis/storage_v1/classes.rb +7 -0
  136. data/generated/google/apis/storage_v1/representations.rb +2 -0
  137. data/generated/google/apis/tagmanager_v1.rb +5 -5
  138. data/generated/google/apis/vision_v1.rb +1 -1
  139. data/generated/google/apis/vision_v1/classes.rb +63 -59
  140. data/generated/google/apis/youtube_analytics_v1.rb +1 -1
  141. data/generated/google/apis/youtube_analytics_v1/classes.rb +0 -209
  142. data/generated/google/apis/youtube_analytics_v1/representations.rb +0 -99
  143. data/generated/google/apis/youtube_analytics_v1/service.rb +0 -76
  144. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  145. data/generated/google/apis/youtube_partner_v1/classes.rb +71 -0
  146. data/generated/google/apis/youtube_partner_v1/representations.rb +33 -0
  147. data/generated/google/apis/youtube_partner_v1/service.rb +52 -0
  148. data/generated/google/apis/youtube_v3.rb +1 -1
  149. data/generated/google/apis/youtube_v3/classes.rb +15 -2
  150. data/generated/google/apis/youtube_v3/representations.rb +3 -0
  151. data/generated/google/apis/youtube_v3/service.rb +4 -4
  152. data/generated/google/apis/youtubereporting_v1.rb +4 -4
  153. data/generated/google/apis/youtubereporting_v1/classes.rb +146 -137
  154. data/generated/google/apis/youtubereporting_v1/representations.rb +33 -33
  155. data/generated/google/apis/youtubereporting_v1/service.rb +149 -145
  156. data/lib/google/apis/version.rb +1 -1
  157. data/samples/cli/lib/samples/calendar.rb +1 -1
  158. data/samples/cli/lib/samples/gmail.rb +74 -0
  159. metadata +29 -29
@@ -88,24 +88,6 @@ module Google
88
88
  include Google::Apis::Core::JsonObjectSupport
89
89
  end
90
90
 
91
- class Collection
92
- class Representation < Google::Apis::Core::JsonRepresentation; end
93
-
94
- include Google::Apis::Core::JsonObjectSupport
95
- end
96
-
97
- class ListCollectionViewersResponse
98
- class Representation < Google::Apis::Core::JsonRepresentation; end
99
-
100
- include Google::Apis::Core::JsonObjectSupport
101
- end
102
-
103
- class ListCollectionsResponse
104
- class Representation < Google::Apis::Core::JsonRepresentation; end
105
-
106
- include Google::Apis::Core::JsonObjectSupport
107
- end
108
-
109
91
  class Device
110
92
  class Representation < Google::Apis::Core::JsonRepresentation; end
111
93
 
@@ -232,6 +214,12 @@ module Google
232
214
  include Google::Apis::Core::JsonObjectSupport
233
215
  end
234
216
 
217
+ class NewDeviceEvent
218
+ class Representation < Google::Apis::Core::JsonRepresentation; end
219
+
220
+ include Google::Apis::Core::JsonObjectSupport
221
+ end
222
+
235
223
  class NewPermissionsEvent
236
224
  class Representation < Google::Apis::Core::JsonRepresentation; end
237
225
 
@@ -492,35 +480,6 @@ module Google
492
480
  end
493
481
  end
494
482
 
495
- class Collection
496
- # @private
497
- class Representation < Google::Apis::Core::JsonRepresentation
498
- property :collection_id, as: 'collectionId'
499
- property :kind, as: 'kind'
500
- property :name, as: 'name'
501
- collection :product_id, as: 'productId'
502
- property :visibility, as: 'visibility'
503
- end
504
- end
505
-
506
- class ListCollectionViewersResponse
507
- # @private
508
- class Representation < Google::Apis::Core::JsonRepresentation
509
- property :kind, as: 'kind'
510
- collection :user, as: 'user', class: Google::Apis::AndroidenterpriseV1::User, decorator: Google::Apis::AndroidenterpriseV1::User::Representation
511
-
512
- end
513
- end
514
-
515
- class ListCollectionsResponse
516
- # @private
517
- class Representation < Google::Apis::Core::JsonRepresentation
518
- collection :collection, as: 'collection', class: Google::Apis::AndroidenterpriseV1::Collection, decorator: Google::Apis::AndroidenterpriseV1::Collection::Representation
519
-
520
- property :kind, as: 'kind'
521
- end
522
- end
523
-
524
483
  class Device
525
484
  # @private
526
485
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -721,6 +680,15 @@ module Google
721
680
  end
722
681
  end
723
682
 
683
+ class NewDeviceEvent
684
+ # @private
685
+ class Representation < Google::Apis::Core::JsonRepresentation
686
+ property :device_id, as: 'deviceId'
687
+ property :management_type, as: 'managementType'
688
+ property :user_id, as: 'userId'
689
+ end
690
+ end
691
+
724
692
  class NewPermissionsEvent
725
693
  # @private
726
694
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -740,6 +708,8 @@ module Google
740
708
  property :enterprise_id, as: 'enterpriseId'
741
709
  property :install_failure_event, as: 'installFailureEvent', class: Google::Apis::AndroidenterpriseV1::InstallFailureEvent, decorator: Google::Apis::AndroidenterpriseV1::InstallFailureEvent::Representation
742
710
 
711
+ property :new_device_event, as: 'newDeviceEvent', class: Google::Apis::AndroidenterpriseV1::NewDeviceEvent, decorator: Google::Apis::AndroidenterpriseV1::NewDeviceEvent::Representation
712
+
743
713
  property :new_permissions_event, as: 'newPermissionsEvent', class: Google::Apis::AndroidenterpriseV1::NewPermissionsEvent, decorator: Google::Apis::AndroidenterpriseV1::NewPermissionsEvent::Representation
744
714
 
745
715
  property :product_approval_event, as: 'productApprovalEvent', class: Google::Apis::AndroidenterpriseV1::ProductApprovalEvent, decorator: Google::Apis::AndroidenterpriseV1::ProductApprovalEvent::Representation
@@ -885,6 +855,7 @@ module Google
885
855
  property :data, as: 'data'
886
856
  property :id, as: 'id'
887
857
  property :kind, as: 'kind'
858
+ property :public_data, as: 'publicData'
888
859
  property :type, as: 'type'
889
860
  end
890
861
  end
@@ -52,451 +52,6 @@ module Google
52
52
  super('https://www.googleapis.com/', 'androidenterprise/v1/')
53
53
  end
54
54
 
55
- # Deletes a collection.
56
- # @param [String] enterprise_id
57
- # The ID of the enterprise.
58
- # @param [String] collection_id
59
- # The ID of the collection.
60
- # @param [String] fields
61
- # Selector specifying which fields to include in a partial response.
62
- # @param [String] quota_user
63
- # Available to use for quota purposes for server-side applications. Can be any
64
- # arbitrary string assigned to a user, but should not exceed 40 characters.
65
- # Overrides userIp if both are provided.
66
- # @param [String] user_ip
67
- # IP address of the site where the request originates. Use this if you want to
68
- # enforce per-user limits.
69
- # @param [Google::Apis::RequestOptions] options
70
- # Request-specific options
71
- #
72
- # @yield [result, err] Result & error if block supplied
73
- # @yieldparam result [NilClass] No result returned for this method
74
- # @yieldparam err [StandardError] error object if request failed
75
- #
76
- # @return [void]
77
- #
78
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
79
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
80
- # @raise [Google::Apis::AuthorizationError] Authorization is required
81
- def delete_collection(enterprise_id, collection_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
82
- command = make_simple_command(:delete, 'enterprises/{enterpriseId}/collections/{collectionId}', options)
83
- command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
84
- command.params['collectionId'] = collection_id unless collection_id.nil?
85
- command.query['fields'] = fields unless fields.nil?
86
- command.query['quotaUser'] = quota_user unless quota_user.nil?
87
- command.query['userIp'] = user_ip unless user_ip.nil?
88
- execute_or_queue_command(command, &block)
89
- end
90
-
91
- # Retrieves the details of a collection.
92
- # @param [String] enterprise_id
93
- # The ID of the enterprise.
94
- # @param [String] collection_id
95
- # The ID of the collection.
96
- # @param [String] fields
97
- # Selector specifying which fields to include in a partial response.
98
- # @param [String] quota_user
99
- # Available to use for quota purposes for server-side applications. Can be any
100
- # arbitrary string assigned to a user, but should not exceed 40 characters.
101
- # Overrides userIp if both are provided.
102
- # @param [String] user_ip
103
- # IP address of the site where the request originates. Use this if you want to
104
- # enforce per-user limits.
105
- # @param [Google::Apis::RequestOptions] options
106
- # Request-specific options
107
- #
108
- # @yield [result, err] Result & error if block supplied
109
- # @yieldparam result [Google::Apis::AndroidenterpriseV1::Collection] parsed result object
110
- # @yieldparam err [StandardError] error object if request failed
111
- #
112
- # @return [Google::Apis::AndroidenterpriseV1::Collection]
113
- #
114
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
115
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
116
- # @raise [Google::Apis::AuthorizationError] Authorization is required
117
- def get_collection(enterprise_id, collection_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
118
- command = make_simple_command(:get, 'enterprises/{enterpriseId}/collections/{collectionId}', options)
119
- command.response_representation = Google::Apis::AndroidenterpriseV1::Collection::Representation
120
- command.response_class = Google::Apis::AndroidenterpriseV1::Collection
121
- command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
122
- command.params['collectionId'] = collection_id unless collection_id.nil?
123
- command.query['fields'] = fields unless fields.nil?
124
- command.query['quotaUser'] = quota_user unless quota_user.nil?
125
- command.query['userIp'] = user_ip unless user_ip.nil?
126
- execute_or_queue_command(command, &block)
127
- end
128
-
129
- # Creates a new collection.
130
- # @param [String] enterprise_id
131
- # The ID of the enterprise.
132
- # @param [Google::Apis::AndroidenterpriseV1::Collection] collection_object
133
- # @param [String] fields
134
- # Selector specifying which fields to include in a partial response.
135
- # @param [String] quota_user
136
- # Available to use for quota purposes for server-side applications. Can be any
137
- # arbitrary string assigned to a user, but should not exceed 40 characters.
138
- # Overrides userIp if both are provided.
139
- # @param [String] user_ip
140
- # IP address of the site where the request originates. Use this if you want to
141
- # enforce per-user limits.
142
- # @param [Google::Apis::RequestOptions] options
143
- # Request-specific options
144
- #
145
- # @yield [result, err] Result & error if block supplied
146
- # @yieldparam result [Google::Apis::AndroidenterpriseV1::Collection] parsed result object
147
- # @yieldparam err [StandardError] error object if request failed
148
- #
149
- # @return [Google::Apis::AndroidenterpriseV1::Collection]
150
- #
151
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
152
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
153
- # @raise [Google::Apis::AuthorizationError] Authorization is required
154
- def insert_collection(enterprise_id, collection_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
155
- command = make_simple_command(:post, 'enterprises/{enterpriseId}/collections', options)
156
- command.request_representation = Google::Apis::AndroidenterpriseV1::Collection::Representation
157
- command.request_object = collection_object
158
- command.response_representation = Google::Apis::AndroidenterpriseV1::Collection::Representation
159
- command.response_class = Google::Apis::AndroidenterpriseV1::Collection
160
- command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
161
- command.query['fields'] = fields unless fields.nil?
162
- command.query['quotaUser'] = quota_user unless quota_user.nil?
163
- command.query['userIp'] = user_ip unless user_ip.nil?
164
- execute_or_queue_command(command, &block)
165
- end
166
-
167
- # Retrieves the IDs of all the collections for an enterprise.
168
- # @param [String] enterprise_id
169
- # The ID of the enterprise.
170
- # @param [String] fields
171
- # Selector specifying which fields to include in a partial response.
172
- # @param [String] quota_user
173
- # Available to use for quota purposes for server-side applications. Can be any
174
- # arbitrary string assigned to a user, but should not exceed 40 characters.
175
- # Overrides userIp if both are provided.
176
- # @param [String] user_ip
177
- # IP address of the site where the request originates. Use this if you want to
178
- # enforce per-user limits.
179
- # @param [Google::Apis::RequestOptions] options
180
- # Request-specific options
181
- #
182
- # @yield [result, err] Result & error if block supplied
183
- # @yieldparam result [Google::Apis::AndroidenterpriseV1::ListCollectionsResponse] parsed result object
184
- # @yieldparam err [StandardError] error object if request failed
185
- #
186
- # @return [Google::Apis::AndroidenterpriseV1::ListCollectionsResponse]
187
- #
188
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
189
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
190
- # @raise [Google::Apis::AuthorizationError] Authorization is required
191
- def list_collections(enterprise_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
192
- command = make_simple_command(:get, 'enterprises/{enterpriseId}/collections', options)
193
- command.response_representation = Google::Apis::AndroidenterpriseV1::ListCollectionsResponse::Representation
194
- command.response_class = Google::Apis::AndroidenterpriseV1::ListCollectionsResponse
195
- command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
196
- command.query['fields'] = fields unless fields.nil?
197
- command.query['quotaUser'] = quota_user unless quota_user.nil?
198
- command.query['userIp'] = user_ip unless user_ip.nil?
199
- execute_or_queue_command(command, &block)
200
- end
201
-
202
- # Updates a collection. This method supports patch semantics.
203
- # @param [String] enterprise_id
204
- # The ID of the enterprise.
205
- # @param [String] collection_id
206
- # The ID of the collection.
207
- # @param [Google::Apis::AndroidenterpriseV1::Collection] collection_object
208
- # @param [String] fields
209
- # Selector specifying which fields to include in a partial response.
210
- # @param [String] quota_user
211
- # Available to use for quota purposes for server-side applications. Can be any
212
- # arbitrary string assigned to a user, but should not exceed 40 characters.
213
- # Overrides userIp if both are provided.
214
- # @param [String] user_ip
215
- # IP address of the site where the request originates. Use this if you want to
216
- # enforce per-user limits.
217
- # @param [Google::Apis::RequestOptions] options
218
- # Request-specific options
219
- #
220
- # @yield [result, err] Result & error if block supplied
221
- # @yieldparam result [Google::Apis::AndroidenterpriseV1::Collection] parsed result object
222
- # @yieldparam err [StandardError] error object if request failed
223
- #
224
- # @return [Google::Apis::AndroidenterpriseV1::Collection]
225
- #
226
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
227
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
228
- # @raise [Google::Apis::AuthorizationError] Authorization is required
229
- def patch_collection(enterprise_id, collection_id, collection_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
230
- command = make_simple_command(:patch, 'enterprises/{enterpriseId}/collections/{collectionId}', options)
231
- command.request_representation = Google::Apis::AndroidenterpriseV1::Collection::Representation
232
- command.request_object = collection_object
233
- command.response_representation = Google::Apis::AndroidenterpriseV1::Collection::Representation
234
- command.response_class = Google::Apis::AndroidenterpriseV1::Collection
235
- command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
236
- command.params['collectionId'] = collection_id unless collection_id.nil?
237
- command.query['fields'] = fields unless fields.nil?
238
- command.query['quotaUser'] = quota_user unless quota_user.nil?
239
- command.query['userIp'] = user_ip unless user_ip.nil?
240
- execute_or_queue_command(command, &block)
241
- end
242
-
243
- # Updates a collection.
244
- # @param [String] enterprise_id
245
- # The ID of the enterprise.
246
- # @param [String] collection_id
247
- # The ID of the collection.
248
- # @param [Google::Apis::AndroidenterpriseV1::Collection] collection_object
249
- # @param [String] fields
250
- # Selector specifying which fields to include in a partial response.
251
- # @param [String] quota_user
252
- # Available to use for quota purposes for server-side applications. Can be any
253
- # arbitrary string assigned to a user, but should not exceed 40 characters.
254
- # Overrides userIp if both are provided.
255
- # @param [String] user_ip
256
- # IP address of the site where the request originates. Use this if you want to
257
- # enforce per-user limits.
258
- # @param [Google::Apis::RequestOptions] options
259
- # Request-specific options
260
- #
261
- # @yield [result, err] Result & error if block supplied
262
- # @yieldparam result [Google::Apis::AndroidenterpriseV1::Collection] parsed result object
263
- # @yieldparam err [StandardError] error object if request failed
264
- #
265
- # @return [Google::Apis::AndroidenterpriseV1::Collection]
266
- #
267
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
268
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
269
- # @raise [Google::Apis::AuthorizationError] Authorization is required
270
- def update_collection(enterprise_id, collection_id, collection_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
271
- command = make_simple_command(:put, 'enterprises/{enterpriseId}/collections/{collectionId}', options)
272
- command.request_representation = Google::Apis::AndroidenterpriseV1::Collection::Representation
273
- command.request_object = collection_object
274
- command.response_representation = Google::Apis::AndroidenterpriseV1::Collection::Representation
275
- command.response_class = Google::Apis::AndroidenterpriseV1::Collection
276
- command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
277
- command.params['collectionId'] = collection_id unless collection_id.nil?
278
- command.query['fields'] = fields unless fields.nil?
279
- command.query['quotaUser'] = quota_user unless quota_user.nil?
280
- command.query['userIp'] = user_ip unless user_ip.nil?
281
- execute_or_queue_command(command, &block)
282
- end
283
-
284
- # Removes the user from the list of those specifically allowed to see the
285
- # collection. If the collection's visibility is set to viewersOnly then only
286
- # such users will see the collection.
287
- # @param [String] enterprise_id
288
- # The ID of the enterprise.
289
- # @param [String] collection_id
290
- # The ID of the collection.
291
- # @param [String] user_id
292
- # The ID of the user.
293
- # @param [String] fields
294
- # Selector specifying which fields to include in a partial response.
295
- # @param [String] quota_user
296
- # Available to use for quota purposes for server-side applications. Can be any
297
- # arbitrary string assigned to a user, but should not exceed 40 characters.
298
- # Overrides userIp if both are provided.
299
- # @param [String] user_ip
300
- # IP address of the site where the request originates. Use this if you want to
301
- # enforce per-user limits.
302
- # @param [Google::Apis::RequestOptions] options
303
- # Request-specific options
304
- #
305
- # @yield [result, err] Result & error if block supplied
306
- # @yieldparam result [NilClass] No result returned for this method
307
- # @yieldparam err [StandardError] error object if request failed
308
- #
309
- # @return [void]
310
- #
311
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
312
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
313
- # @raise [Google::Apis::AuthorizationError] Authorization is required
314
- def delete_collection_viewer(enterprise_id, collection_id, user_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
315
- command = make_simple_command(:delete, 'enterprises/{enterpriseId}/collections/{collectionId}/users/{userId}', options)
316
- command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
317
- command.params['collectionId'] = collection_id unless collection_id.nil?
318
- command.params['userId'] = user_id unless user_id.nil?
319
- command.query['fields'] = fields unless fields.nil?
320
- command.query['quotaUser'] = quota_user unless quota_user.nil?
321
- command.query['userIp'] = user_ip unless user_ip.nil?
322
- execute_or_queue_command(command, &block)
323
- end
324
-
325
- # Retrieves the ID of the user if they have been specifically allowed to see the
326
- # collection. If the collection's visibility is set to viewersOnly then only
327
- # these users will see the collection.
328
- # @param [String] enterprise_id
329
- # The ID of the enterprise.
330
- # @param [String] collection_id
331
- # The ID of the collection.
332
- # @param [String] user_id
333
- # The ID of the user.
334
- # @param [String] fields
335
- # Selector specifying which fields to include in a partial response.
336
- # @param [String] quota_user
337
- # Available to use for quota purposes for server-side applications. Can be any
338
- # arbitrary string assigned to a user, but should not exceed 40 characters.
339
- # Overrides userIp if both are provided.
340
- # @param [String] user_ip
341
- # IP address of the site where the request originates. Use this if you want to
342
- # enforce per-user limits.
343
- # @param [Google::Apis::RequestOptions] options
344
- # Request-specific options
345
- #
346
- # @yield [result, err] Result & error if block supplied
347
- # @yieldparam result [Google::Apis::AndroidenterpriseV1::User] parsed result object
348
- # @yieldparam err [StandardError] error object if request failed
349
- #
350
- # @return [Google::Apis::AndroidenterpriseV1::User]
351
- #
352
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
353
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
354
- # @raise [Google::Apis::AuthorizationError] Authorization is required
355
- def get_collection_viewer(enterprise_id, collection_id, user_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
356
- command = make_simple_command(:get, 'enterprises/{enterpriseId}/collections/{collectionId}/users/{userId}', options)
357
- command.response_representation = Google::Apis::AndroidenterpriseV1::User::Representation
358
- command.response_class = Google::Apis::AndroidenterpriseV1::User
359
- command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
360
- command.params['collectionId'] = collection_id unless collection_id.nil?
361
- command.params['userId'] = user_id unless user_id.nil?
362
- command.query['fields'] = fields unless fields.nil?
363
- command.query['quotaUser'] = quota_user unless quota_user.nil?
364
- command.query['userIp'] = user_ip unless user_ip.nil?
365
- execute_or_queue_command(command, &block)
366
- end
367
-
368
- # Retrieves the IDs of the users who have been specifically allowed to see the
369
- # collection. If the collection's visibility is set to viewersOnly then only
370
- # these users will see the collection.
371
- # @param [String] enterprise_id
372
- # The ID of the enterprise.
373
- # @param [String] collection_id
374
- # The ID of the collection.
375
- # @param [String] fields
376
- # Selector specifying which fields to include in a partial response.
377
- # @param [String] quota_user
378
- # Available to use for quota purposes for server-side applications. Can be any
379
- # arbitrary string assigned to a user, but should not exceed 40 characters.
380
- # Overrides userIp if both are provided.
381
- # @param [String] user_ip
382
- # IP address of the site where the request originates. Use this if you want to
383
- # enforce per-user limits.
384
- # @param [Google::Apis::RequestOptions] options
385
- # Request-specific options
386
- #
387
- # @yield [result, err] Result & error if block supplied
388
- # @yieldparam result [Google::Apis::AndroidenterpriseV1::ListCollectionViewersResponse] parsed result object
389
- # @yieldparam err [StandardError] error object if request failed
390
- #
391
- # @return [Google::Apis::AndroidenterpriseV1::ListCollectionViewersResponse]
392
- #
393
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
394
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
395
- # @raise [Google::Apis::AuthorizationError] Authorization is required
396
- def list_collection_viewers(enterprise_id, collection_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
397
- command = make_simple_command(:get, 'enterprises/{enterpriseId}/collections/{collectionId}/users', options)
398
- command.response_representation = Google::Apis::AndroidenterpriseV1::ListCollectionViewersResponse::Representation
399
- command.response_class = Google::Apis::AndroidenterpriseV1::ListCollectionViewersResponse
400
- command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
401
- command.params['collectionId'] = collection_id unless collection_id.nil?
402
- command.query['fields'] = fields unless fields.nil?
403
- command.query['quotaUser'] = quota_user unless quota_user.nil?
404
- command.query['userIp'] = user_ip unless user_ip.nil?
405
- execute_or_queue_command(command, &block)
406
- end
407
-
408
- # Adds the user to the list of those specifically allowed to see the collection.
409
- # If the collection's visibility is set to viewersOnly then only such users will
410
- # see the collection. This method supports patch semantics.
411
- # @param [String] enterprise_id
412
- # The ID of the enterprise.
413
- # @param [String] collection_id
414
- # The ID of the collection.
415
- # @param [String] user_id
416
- # The ID of the user.
417
- # @param [Google::Apis::AndroidenterpriseV1::User] user_object
418
- # @param [String] fields
419
- # Selector specifying which fields to include in a partial response.
420
- # @param [String] quota_user
421
- # Available to use for quota purposes for server-side applications. Can be any
422
- # arbitrary string assigned to a user, but should not exceed 40 characters.
423
- # Overrides userIp if both are provided.
424
- # @param [String] user_ip
425
- # IP address of the site where the request originates. Use this if you want to
426
- # enforce per-user limits.
427
- # @param [Google::Apis::RequestOptions] options
428
- # Request-specific options
429
- #
430
- # @yield [result, err] Result & error if block supplied
431
- # @yieldparam result [Google::Apis::AndroidenterpriseV1::User] parsed result object
432
- # @yieldparam err [StandardError] error object if request failed
433
- #
434
- # @return [Google::Apis::AndroidenterpriseV1::User]
435
- #
436
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
437
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
438
- # @raise [Google::Apis::AuthorizationError] Authorization is required
439
- def patch_collection_viewer(enterprise_id, collection_id, user_id, user_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
440
- command = make_simple_command(:patch, 'enterprises/{enterpriseId}/collections/{collectionId}/users/{userId}', options)
441
- command.request_representation = Google::Apis::AndroidenterpriseV1::User::Representation
442
- command.request_object = user_object
443
- command.response_representation = Google::Apis::AndroidenterpriseV1::User::Representation
444
- command.response_class = Google::Apis::AndroidenterpriseV1::User
445
- command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
446
- command.params['collectionId'] = collection_id unless collection_id.nil?
447
- command.params['userId'] = user_id unless user_id.nil?
448
- command.query['fields'] = fields unless fields.nil?
449
- command.query['quotaUser'] = quota_user unless quota_user.nil?
450
- command.query['userIp'] = user_ip unless user_ip.nil?
451
- execute_or_queue_command(command, &block)
452
- end
453
-
454
- # Adds the user to the list of those specifically allowed to see the collection.
455
- # If the collection's visibility is set to viewersOnly then only such users will
456
- # see the collection.
457
- # @param [String] enterprise_id
458
- # The ID of the enterprise.
459
- # @param [String] collection_id
460
- # The ID of the collection.
461
- # @param [String] user_id
462
- # The ID of the user.
463
- # @param [Google::Apis::AndroidenterpriseV1::User] user_object
464
- # @param [String] fields
465
- # Selector specifying which fields to include in a partial response.
466
- # @param [String] quota_user
467
- # Available to use for quota purposes for server-side applications. Can be any
468
- # arbitrary string assigned to a user, but should not exceed 40 characters.
469
- # Overrides userIp if both are provided.
470
- # @param [String] user_ip
471
- # IP address of the site where the request originates. Use this if you want to
472
- # enforce per-user limits.
473
- # @param [Google::Apis::RequestOptions] options
474
- # Request-specific options
475
- #
476
- # @yield [result, err] Result & error if block supplied
477
- # @yieldparam result [Google::Apis::AndroidenterpriseV1::User] parsed result object
478
- # @yieldparam err [StandardError] error object if request failed
479
- #
480
- # @return [Google::Apis::AndroidenterpriseV1::User]
481
- #
482
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
483
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
484
- # @raise [Google::Apis::AuthorizationError] Authorization is required
485
- def update_collection_viewer(enterprise_id, collection_id, user_id, user_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
486
- command = make_simple_command(:put, 'enterprises/{enterpriseId}/collections/{collectionId}/users/{userId}', options)
487
- command.request_representation = Google::Apis::AndroidenterpriseV1::User::Representation
488
- command.request_object = user_object
489
- command.response_representation = Google::Apis::AndroidenterpriseV1::User::Representation
490
- command.response_class = Google::Apis::AndroidenterpriseV1::User
491
- command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
492
- command.params['collectionId'] = collection_id unless collection_id.nil?
493
- command.params['userId'] = user_id unless user_id.nil?
494
- command.query['fields'] = fields unless fields.nil?
495
- command.query['quotaUser'] = quota_user unless quota_user.nil?
496
- command.query['userIp'] = user_ip unless user_ip.nil?
497
- execute_or_queue_command(command, &block)
498
- end
499
-
500
55
  # Retrieves the details of a device.
501
56
  # @param [String] enterprise_id
502
57
  # The ID of the enterprise.
@@ -746,9 +301,9 @@ module Google
746
301
  end
747
302
 
748
303
  # Returns a unique token to access an embeddable UI. To generate a web UI, pass
749
- # the generated token into the Play for Work javascript API. Each token may only
750
- # be used to start one UI session. See the javascript API documentation for
751
- # further information.
304
+ # the generated token into the managed Google Play javascript API. Each token
305
+ # may only be used to start one UI session. See the javascript API documentation
306
+ # for further information.
752
307
  # @param [String] enterprise_id
753
308
  # The ID of the enterprise.
754
309
  # @param [Google::Apis::AndroidenterpriseV1::AdministratorWebTokenSpec] administrator_web_token_spec_object
@@ -1228,11 +783,11 @@ module Google
1228
783
 
1229
784
  # Sets the store layout for the enterprise. By default, storeLayoutType is set
1230
785
  # to "basic" and the basic store layout is enabled. The basic layout only
1231
- # contains apps approved by the administrator, and that have been added to the
1232
- # available product set for a user (using the setAvailableProductSet call).
1233
- # Apps on the page are sorted in order of their product ID value. If you create
1234
- # a custom store layout (by setting storeLayoutType = "custom"), the basic store
1235
- # layout is disabled.
786
+ # contains apps approved by the admin, and that have been added to the available
787
+ # product set for a user (using the setAvailableProductSet call). Apps on the
788
+ # page are sorted in order of their product ID value. If you create a custom
789
+ # store layout (by setting storeLayoutType = "custom"), the basic store layout
790
+ # is disabled.
1236
791
  # @param [String] enterprise_id
1237
792
  # The ID of the enterprise.
1238
793
  # @param [Google::Apis::AndroidenterpriseV1::StoreLayout] store_layout_object
@@ -2349,8 +1904,8 @@ module Google
2349
1904
  # Approves the specified product and the relevant app permissions, if any. The
2350
1905
  # maximum number of products that you can approve per enterprise customer is 1,
2351
1906
  # 000.
2352
- # To learn how to use Google Play for Work to design and create a store layout
2353
- # to display approved products to your users, see Store Layout Design.
1907
+ # To learn how to use managed Google Play to design and create a store layout to
1908
+ # display approved products to your users, see Store Layout Design.
2354
1909
  # @param [String] enterprise_id
2355
1910
  # The ID of the enterprise.
2356
1911
  # @param [String] product_id
@@ -2482,7 +2037,7 @@ module Google
2482
2037
  # Retrieves the schema that defines the configurable properties for this product.
2483
2038
  # All products have a schema, but this schema may be empty if no managed
2484
2039
  # configurations have been defined. This schema can be used to populate a UI
2485
- # that allows an administrator to configure the product. To apply a managed
2040
+ # that allows an admin to configure the product. To apply a managed
2486
2041
  # configuration based on the schema obtained using this API, see Managed
2487
2042
  # Configurations through Play.
2488
2043
  # @param [String] enterprise_id
@@ -2579,7 +2134,7 @@ module Google
2579
2134
  # not specified, uses a default value of 100, which is also the maximum
2580
2135
  # retrievable within a single response.
2581
2136
  # @param [String] query
2582
- # The search query as typed in the Google Play Store search box. If omitted, all
2137
+ # The search query as typed in the Google Play store search box. If omitted, all
2583
2138
  # approved apps will be returned (using the pagination parameters), including
2584
2139
  # apps that are not available in the store (e.g. unpublished apps).
2585
2140
  # @param [String] token
@@ -3378,8 +2933,9 @@ module Google
3378
2933
  execute_or_queue_command(command, &block)
3379
2934
  end
3380
2935
 
3381
- # Generates a token (activation code) to allow this user to configure their work
3382
- # account in the Android Setup Wizard. Revokes any previously generated token.
2936
+ # Generates a token (activation code) to allow this user to configure their
2937
+ # managed account in the Android Setup Wizard. Revokes any previously generated
2938
+ # token.
3383
2939
  # This call only works with Google managed accounts.
3384
2940
  # @param [String] enterprise_id
3385
2941
  # The ID of the enterprise.