Skip to content

Commit 763e1de

Browse files
committed
Generate current service sources.
1 parent 56e8568 commit 763e1de

File tree

60 files changed

+3578
-767
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

60 files changed

+3578
-767
lines changed

GoogleAPIClientForREST.podspec

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -376,6 +376,10 @@ Pod::Spec.new do |s|
376376
sp.dependency 'GoogleAPIClientForREST/Core'
377377
sp.source_files = 'Source/GeneratedServices/PlusDomains/*.{h,m}'
378378
end
379+
s.subspec 'PolyService' do |sp|
380+
sp.dependency 'GoogleAPIClientForREST/Core'
381+
sp.source_files = 'Source/GeneratedServices/PolyService/*.{h,m}'
382+
end
379383
s.subspec 'Prediction' do |sp|
380384
sp.dependency 'GoogleAPIClientForREST/Core'
381385
sp.source_files = 'Source/GeneratedServices/Prediction/*.{h,m}'

Source/GeneratedServices/AndroidEnterprise/GTLRAndroidEnterpriseObjects.h

Lines changed: 58 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,12 @@
4141
@class GTLRAndroidEnterprise_NewPermissionsEvent;
4242
@class GTLRAndroidEnterprise_Notification;
4343
@class GTLRAndroidEnterprise_PageInfo;
44+
@class GTLRAndroidEnterprise_Policy;
4445
@class GTLRAndroidEnterprise_Product;
4546
@class GTLRAndroidEnterprise_ProductApprovalEvent;
4647
@class GTLRAndroidEnterprise_ProductAvailabilityChangeEvent;
4748
@class GTLRAndroidEnterprise_ProductPermission;
49+
@class GTLRAndroidEnterprise_ProductPolicy;
4850
@class GTLRAndroidEnterprise_ProductSigningCertificate;
4951
@class GTLRAndroidEnterprise_ProductVisibility;
5052
@class GTLRAndroidEnterprise_ServiceAccountKey;
@@ -382,8 +384,6 @@ NS_ASSUME_NONNULL_BEGIN
382384
/**
383385
* A Devices resource represents a mobile device managed by the EMM and
384386
* belonging to a specific enterprise user.
385-
* This collection cannot be modified via the API. It is automatically
386-
* populated as devices are set up to be managed.
387387
*/
388388
@interface GTLRAndroidEnterprise_Device : GTLRObject
389389

@@ -415,6 +415,9 @@ NS_ASSUME_NONNULL_BEGIN
415415
*/
416416
@property(nonatomic, copy, nullable) NSString *managementType;
417417

418+
/** The policy enforced on the device. */
419+
@property(nonatomic, strong, nullable) GTLRAndroidEnterprise_Policy *policy;
420+
418421
@end
419422

420423

@@ -1214,6 +1217,30 @@ NS_ASSUME_NONNULL_BEGIN
12141217
@end
12151218

12161219

1220+
/**
1221+
* The device policy for a given managed device.
1222+
*/
1223+
@interface GTLRAndroidEnterprise_Policy : GTLRObject
1224+
1225+
/**
1226+
* The availability granted to the device for the specified products. "all"
1227+
* gives the device access to all products, regardless of approval status.
1228+
* "allApproved" entitles the device to access all products that are approved
1229+
* for the enterprise. "allApproved" and "all" do not enable automatic
1230+
* visibility of "alpha" or "beta" tracks. "whitelist" grants the device access
1231+
* the products specified in productPolicy[]. Only products that are approved
1232+
* or products that were previously approved (products with revoked approval)
1233+
* by the enterprise can be whitelisted. If no value is provided, the
1234+
* availability set at the user level is applied by default.
1235+
*/
1236+
@property(nonatomic, copy, nullable) NSString *productAvailabilityPolicy;
1237+
1238+
/** The list of product policies. */
1239+
@property(nonatomic, strong, nullable) NSArray<GTLRAndroidEnterprise_ProductPolicy *> *productPolicy;
1240+
1241+
@end
1242+
1243+
12171244
/**
12181245
* A Products resource represents an app in the Google Play store that is
12191246
* available to at least some users in the enterprise. (Some apps are
@@ -1379,6 +1406,35 @@ NS_ASSUME_NONNULL_BEGIN
13791406
@end
13801407

13811408

1409+
/**
1410+
* The policy for a product.
1411+
*/
1412+
@interface GTLRAndroidEnterprise_ProductPolicy : GTLRObject
1413+
1414+
/** The ID of the product. For example, "app:com.google.android.gm". */
1415+
@property(nonatomic, copy, nullable) NSString *productId;
1416+
1417+
/**
1418+
* Grants visibility to the specified track(s) of the product to the device.
1419+
* The track available to the device is based on the following order of
1420+
* preference: alpha, beta, production. For example, if an app has a prod
1421+
* version, a beta version and an alpha version and the enterprise has been
1422+
* granted visibility to both the alpha and beta tracks, if tracks is {"beta",
1423+
* "production"} then the beta version of the app is made available to the
1424+
* device. If there are no app versions in the specified track adding the
1425+
* "alpha" and "beta" values to the list of tracks will have no effect. Note
1426+
* that the enterprise requires access to alpha and/or beta tracks before users
1427+
* can be granted visibility to apps in those tracks.
1428+
* The allowed sets are: {} (considered equivalent to {"production"})
1429+
* {"production"} {"beta", "production"} {"alpha", "beta", "production"} The
1430+
* order of elements is not relevant. Any other set of tracks will be rejected
1431+
* with an error.
1432+
*/
1433+
@property(nonatomic, strong, nullable) NSArray<NSString *> *tracks;
1434+
1435+
@end
1436+
1437+
13821438
/**
13831439
* GTLRAndroidEnterprise_ProductsApproveRequest
13841440
*/

Source/GeneratedServices/AndroidEnterprise/GTLRAndroidEnterpriseObjects.m

Lines changed: 37 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ @implementation GTLRAndroidEnterprise_ConfigurationVariables
193193
//
194194

195195
@implementation GTLRAndroidEnterprise_Device
196-
@dynamic androidId, kind, managementType;
196+
@dynamic androidId, kind, managementType, policy;
197197
@end
198198

199199

@@ -621,6 +621,24 @@ @implementation GTLRAndroidEnterprise_Permission
621621
@end
622622

623623

624+
// ----------------------------------------------------------------------------
625+
//
626+
// GTLRAndroidEnterprise_Policy
627+
//
628+
629+
@implementation GTLRAndroidEnterprise_Policy
630+
@dynamic productAvailabilityPolicy, productPolicy;
631+
632+
+ (NSDictionary<NSString *, Class> *)arrayPropertyToClassMap {
633+
NSDictionary<NSString *, Class> *map = @{
634+
@"productPolicy" : [GTLRAndroidEnterprise_ProductPolicy class]
635+
};
636+
return map;
637+
}
638+
639+
@end
640+
641+
624642
// ----------------------------------------------------------------------------
625643
//
626644
// GTLRAndroidEnterprise_Product
@@ -691,6 +709,24 @@ @implementation GTLRAndroidEnterprise_ProductPermissions
691709
@end
692710

693711

712+
// ----------------------------------------------------------------------------
713+
//
714+
// GTLRAndroidEnterprise_ProductPolicy
715+
//
716+
717+
@implementation GTLRAndroidEnterprise_ProductPolicy
718+
@dynamic productId, tracks;
719+
720+
+ (NSDictionary<NSString *, Class> *)arrayPropertyToClassMap {
721+
NSDictionary<NSString *, Class> *map = @{
722+
@"tracks" : [NSString class]
723+
};
724+
return map;
725+
}
726+
727+
@end
728+
729+
694730
// ----------------------------------------------------------------------------
695731
//
696732
// GTLRAndroidEnterprise_ProductsApproveRequest

Source/GeneratedServices/AndroidEnterprise/GTLRAndroidEnterpriseQuery.h

Lines changed: 97 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020

2121
@class GTLRAndroidEnterprise_AdministratorWebTokenSpec;
2222
@class GTLRAndroidEnterprise_AndroidDevicePolicyConfig;
23+
@class GTLRAndroidEnterprise_Device;
2324
@class GTLRAndroidEnterprise_DeviceState;
2425
@class GTLRAndroidEnterprise_Enterprise;
2526
@class GTLRAndroidEnterprise_EnterpriseAccount;
@@ -191,6 +192,54 @@ GTLR_EXTERN NSString * const kGTLRAndroidEnterpriseRequestModeWaitForNotificatio
191192

192193
@end
193194

195+
/**
196+
* Updates the device policy. This method supports patch semantics.
197+
*
198+
* Method: androidenterprise.devices.patch
199+
*
200+
* Authorization scope(s):
201+
* @c kGTLRAuthScopeAndroidEnterprise
202+
*/
203+
@interface GTLRAndroidEnterpriseQuery_DevicesPatch : GTLRAndroidEnterpriseQuery
204+
// Previous library name was
205+
// +[GTLQueryAndroidEnterprise queryForDevicesPatchWithObject:enterpriseId:userId:deviceId:]
206+
207+
/** The ID of the device. */
208+
@property(nonatomic, copy, nullable) NSString *deviceId;
209+
210+
/** The ID of the enterprise. */
211+
@property(nonatomic, copy, nullable) NSString *enterpriseId;
212+
213+
/**
214+
* Mask that identifies which fields to update. If not set, all modifiable
215+
* fields will be modified.
216+
* When set in a query parameter, this field should be specified as
217+
* updateMask=<field1>,<field2>,...
218+
*/
219+
@property(nonatomic, copy, nullable) NSString *updateMask;
220+
221+
/** The ID of the user. */
222+
@property(nonatomic, copy, nullable) NSString *userId;
223+
224+
/**
225+
* Fetches a @c GTLRAndroidEnterprise_Device.
226+
*
227+
* Updates the device policy. This method supports patch semantics.
228+
*
229+
* @param object The @c GTLRAndroidEnterprise_Device to include in the query.
230+
* @param enterpriseId The ID of the enterprise.
231+
* @param userId The ID of the user.
232+
* @param deviceId The ID of the device.
233+
*
234+
* @returns GTLRAndroidEnterpriseQuery_DevicesPatch
235+
*/
236+
+ (instancetype)queryWithObject:(GTLRAndroidEnterprise_Device *)object
237+
enterpriseId:(NSString *)enterpriseId
238+
userId:(NSString *)userId
239+
deviceId:(NSString *)deviceId;
240+
241+
@end
242+
194243
/**
195244
* Sets whether a device's access to Google services is enabled or disabled.
196245
* The device state takes effect only if enforcing EMM policies on Android
@@ -240,6 +289,54 @@ GTLR_EXTERN NSString * const kGTLRAndroidEnterpriseRequestModeWaitForNotificatio
240289

241290
@end
242291

292+
/**
293+
* Updates the device policy
294+
*
295+
* Method: androidenterprise.devices.update
296+
*
297+
* Authorization scope(s):
298+
* @c kGTLRAuthScopeAndroidEnterprise
299+
*/
300+
@interface GTLRAndroidEnterpriseQuery_DevicesUpdate : GTLRAndroidEnterpriseQuery
301+
// Previous library name was
302+
// +[GTLQueryAndroidEnterprise queryForDevicesUpdateWithObject:enterpriseId:userId:deviceId:]
303+
304+
/** The ID of the device. */
305+
@property(nonatomic, copy, nullable) NSString *deviceId;
306+
307+
/** The ID of the enterprise. */
308+
@property(nonatomic, copy, nullable) NSString *enterpriseId;
309+
310+
/**
311+
* Mask that identifies which fields to update. If not set, all modifiable
312+
* fields will be modified.
313+
* When set in a query parameter, this field should be specified as
314+
* updateMask=<field1>,<field2>,...
315+
*/
316+
@property(nonatomic, copy, nullable) NSString *updateMask;
317+
318+
/** The ID of the user. */
319+
@property(nonatomic, copy, nullable) NSString *userId;
320+
321+
/**
322+
* Fetches a @c GTLRAndroidEnterprise_Device.
323+
*
324+
* Updates the device policy
325+
*
326+
* @param object The @c GTLRAndroidEnterprise_Device to include in the query.
327+
* @param enterpriseId The ID of the enterprise.
328+
* @param userId The ID of the user.
329+
* @param deviceId The ID of the device.
330+
*
331+
* @returns GTLRAndroidEnterpriseQuery_DevicesUpdate
332+
*/
333+
+ (instancetype)queryWithObject:(GTLRAndroidEnterprise_Device *)object
334+
enterpriseId:(NSString *)enterpriseId
335+
userId:(NSString *)userId
336+
deviceId:(NSString *)deviceId;
337+
338+
@end
339+
243340
/**
244341
* Acknowledges notifications that were received from
245342
* Enterprises.PullNotificationSet to prevent subsequent calls from returning

Source/GeneratedServices/AndroidEnterprise/GTLRAndroidEnterpriseQuery.m

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,37 @@ + (instancetype)queryWithEnterpriseId:(NSString *)enterpriseId
106106

107107
@end
108108

109+
@implementation GTLRAndroidEnterpriseQuery_DevicesPatch
110+
111+
@dynamic deviceId, enterpriseId, updateMask, userId;
112+
113+
+ (instancetype)queryWithObject:(GTLRAndroidEnterprise_Device *)object
114+
enterpriseId:(NSString *)enterpriseId
115+
userId:(NSString *)userId
116+
deviceId:(NSString *)deviceId {
117+
if (object == nil) {
118+
GTLR_DEBUG_ASSERT(object != nil, @"Got a nil object");
119+
return nil;
120+
}
121+
NSArray *pathParams = @[
122+
@"deviceId", @"enterpriseId", @"userId"
123+
];
124+
NSString *pathURITemplate = @"enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}";
125+
GTLRAndroidEnterpriseQuery_DevicesPatch *query =
126+
[[self alloc] initWithPathURITemplate:pathURITemplate
127+
HTTPMethod:@"PATCH"
128+
pathParameterNames:pathParams];
129+
query.bodyObject = object;
130+
query.enterpriseId = enterpriseId;
131+
query.userId = userId;
132+
query.deviceId = deviceId;
133+
query.expectedObjectClass = [GTLRAndroidEnterprise_Device class];
134+
query.loggingName = @"androidenterprise.devices.patch";
135+
return query;
136+
}
137+
138+
@end
139+
109140
@implementation GTLRAndroidEnterpriseQuery_DevicesSetState
110141

111142
@dynamic deviceId, enterpriseId, userId;
@@ -137,6 +168,37 @@ + (instancetype)queryWithObject:(GTLRAndroidEnterprise_DeviceState *)object
137168

138169
@end
139170

171+
@implementation GTLRAndroidEnterpriseQuery_DevicesUpdate
172+
173+
@dynamic deviceId, enterpriseId, updateMask, userId;
174+
175+
+ (instancetype)queryWithObject:(GTLRAndroidEnterprise_Device *)object
176+
enterpriseId:(NSString *)enterpriseId
177+
userId:(NSString *)userId
178+
deviceId:(NSString *)deviceId {
179+
if (object == nil) {
180+
GTLR_DEBUG_ASSERT(object != nil, @"Got a nil object");
181+
return nil;
182+
}
183+
NSArray *pathParams = @[
184+
@"deviceId", @"enterpriseId", @"userId"
185+
];
186+
NSString *pathURITemplate = @"enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}";
187+
GTLRAndroidEnterpriseQuery_DevicesUpdate *query =
188+
[[self alloc] initWithPathURITemplate:pathURITemplate
189+
HTTPMethod:@"PUT"
190+
pathParameterNames:pathParams];
191+
query.bodyObject = object;
192+
query.enterpriseId = enterpriseId;
193+
query.userId = userId;
194+
query.deviceId = deviceId;
195+
query.expectedObjectClass = [GTLRAndroidEnterprise_Device class];
196+
query.loggingName = @"androidenterprise.devices.update";
197+
return query;
198+
}
199+
200+
@end
201+
140202
@implementation GTLRAndroidEnterpriseQuery_EnterprisesAcknowledgeNotificationSet
141203

142204
@dynamic notificationSetId;

0 commit comments

Comments
 (0)