Skip to content

Commit

Permalink
Generate current service sources.
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasvl committed Dec 4, 2017
1 parent 56e8568 commit 763e1de
Show file tree
Hide file tree
Showing 60 changed files with 3,578 additions and 767 deletions.
4 changes: 4 additions & 0 deletions GoogleAPIClientForREST.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -376,6 +376,10 @@ Pod::Spec.new do |s|
sp.dependency 'GoogleAPIClientForREST/Core'
sp.source_files = 'Source/GeneratedServices/PlusDomains/*.{h,m}'
end
s.subspec 'PolyService' do |sp|
sp.dependency 'GoogleAPIClientForREST/Core'
sp.source_files = 'Source/GeneratedServices/PolyService/*.{h,m}'
end
s.subspec 'Prediction' do |sp|
sp.dependency 'GoogleAPIClientForREST/Core'
sp.source_files = 'Source/GeneratedServices/Prediction/*.{h,m}'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,12 @@
@class GTLRAndroidEnterprise_NewPermissionsEvent;
@class GTLRAndroidEnterprise_Notification;
@class GTLRAndroidEnterprise_PageInfo;
@class GTLRAndroidEnterprise_Policy;
@class GTLRAndroidEnterprise_Product;
@class GTLRAndroidEnterprise_ProductApprovalEvent;
@class GTLRAndroidEnterprise_ProductAvailabilityChangeEvent;
@class GTLRAndroidEnterprise_ProductPermission;
@class GTLRAndroidEnterprise_ProductPolicy;
@class GTLRAndroidEnterprise_ProductSigningCertificate;
@class GTLRAndroidEnterprise_ProductVisibility;
@class GTLRAndroidEnterprise_ServiceAccountKey;
Expand Down Expand Up @@ -382,8 +384,6 @@ NS_ASSUME_NONNULL_BEGIN
/**
* A Devices resource represents a mobile device managed by the EMM and
* belonging to a specific enterprise user.
* This collection cannot be modified via the API. It is automatically
* populated as devices are set up to be managed.
*/
@interface GTLRAndroidEnterprise_Device : GTLRObject

Expand Down Expand Up @@ -415,6 +415,9 @@ NS_ASSUME_NONNULL_BEGIN
*/
@property(nonatomic, copy, nullable) NSString *managementType;

/** The policy enforced on the device. */
@property(nonatomic, strong, nullable) GTLRAndroidEnterprise_Policy *policy;

@end


Expand Down Expand Up @@ -1214,6 +1217,30 @@ NS_ASSUME_NONNULL_BEGIN
@end


/**
* The device policy for a given managed device.
*/
@interface GTLRAndroidEnterprise_Policy : GTLRObject

/**
* The availability granted to the device for the specified products. "all"
* gives the device access to all products, regardless of approval status.
* "allApproved" entitles the device to access all products that are approved
* for the enterprise. "allApproved" and "all" do not enable automatic
* visibility of "alpha" or "beta" tracks. "whitelist" grants the device access
* the products specified in productPolicy[]. Only products that are approved
* or products that were previously approved (products with revoked approval)
* by the enterprise can be whitelisted. If no value is provided, the
* availability set at the user level is applied by default.
*/
@property(nonatomic, copy, nullable) NSString *productAvailabilityPolicy;

/** The list of product policies. */
@property(nonatomic, strong, nullable) NSArray<GTLRAndroidEnterprise_ProductPolicy *> *productPolicy;

@end


/**
* A Products resource represents an app in the Google Play store that is
* available to at least some users in the enterprise. (Some apps are
Expand Down Expand Up @@ -1379,6 +1406,35 @@ NS_ASSUME_NONNULL_BEGIN
@end


/**
* The policy for a product.
*/
@interface GTLRAndroidEnterprise_ProductPolicy : GTLRObject

/** The ID of the product. For example, "app:com.google.android.gm". */
@property(nonatomic, copy, nullable) NSString *productId;

/**
* Grants visibility to the specified track(s) of the product to the device.
* The track available to the device is based on the following order of
* preference: alpha, beta, production. For example, if an app has a prod
* version, a beta version and an alpha version and the enterprise has been
* granted visibility to both the alpha and beta tracks, if tracks is {"beta",
* "production"} then the beta version of the app is made available to the
* device. If there are no app versions in the specified track adding the
* "alpha" and "beta" values to the list of tracks will have no effect. Note
* that the enterprise requires access to alpha and/or beta tracks before users
* can be granted visibility to apps in those tracks.
* The allowed sets are: {} (considered equivalent to {"production"})
* {"production"} {"beta", "production"} {"alpha", "beta", "production"} The
* order of elements is not relevant. Any other set of tracks will be rejected
* with an error.
*/
@property(nonatomic, strong, nullable) NSArray<NSString *> *tracks;

@end


/**
* GTLRAndroidEnterprise_ProductsApproveRequest
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ @implementation GTLRAndroidEnterprise_ConfigurationVariables
//

@implementation GTLRAndroidEnterprise_Device
@dynamic androidId, kind, managementType;
@dynamic androidId, kind, managementType, policy;
@end


Expand Down Expand Up @@ -621,6 +621,24 @@ @implementation GTLRAndroidEnterprise_Permission
@end


// ----------------------------------------------------------------------------
//
// GTLRAndroidEnterprise_Policy
//

@implementation GTLRAndroidEnterprise_Policy
@dynamic productAvailabilityPolicy, productPolicy;

+ (NSDictionary<NSString *, Class> *)arrayPropertyToClassMap {
NSDictionary<NSString *, Class> *map = @{
@"productPolicy" : [GTLRAndroidEnterprise_ProductPolicy class]
};
return map;
}

@end


// ----------------------------------------------------------------------------
//
// GTLRAndroidEnterprise_Product
Expand Down Expand Up @@ -691,6 +709,24 @@ @implementation GTLRAndroidEnterprise_ProductPermissions
@end


// ----------------------------------------------------------------------------
//
// GTLRAndroidEnterprise_ProductPolicy
//

@implementation GTLRAndroidEnterprise_ProductPolicy
@dynamic productId, tracks;

+ (NSDictionary<NSString *, Class> *)arrayPropertyToClassMap {
NSDictionary<NSString *, Class> *map = @{
@"tracks" : [NSString class]
};
return map;
}

@end


// ----------------------------------------------------------------------------
//
// GTLRAndroidEnterprise_ProductsApproveRequest
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@

@class GTLRAndroidEnterprise_AdministratorWebTokenSpec;
@class GTLRAndroidEnterprise_AndroidDevicePolicyConfig;
@class GTLRAndroidEnterprise_Device;
@class GTLRAndroidEnterprise_DeviceState;
@class GTLRAndroidEnterprise_Enterprise;
@class GTLRAndroidEnterprise_EnterpriseAccount;
Expand Down Expand Up @@ -191,6 +192,54 @@ GTLR_EXTERN NSString * const kGTLRAndroidEnterpriseRequestModeWaitForNotificatio

@end

/**
* Updates the device policy. This method supports patch semantics.
*
* Method: androidenterprise.devices.patch
*
* Authorization scope(s):
* @c kGTLRAuthScopeAndroidEnterprise
*/
@interface GTLRAndroidEnterpriseQuery_DevicesPatch : GTLRAndroidEnterpriseQuery
// Previous library name was
// +[GTLQueryAndroidEnterprise queryForDevicesPatchWithObject:enterpriseId:userId:deviceId:]

/** The ID of the device. */
@property(nonatomic, copy, nullable) NSString *deviceId;

/** The ID of the enterprise. */
@property(nonatomic, copy, nullable) NSString *enterpriseId;

/**
* Mask that identifies which fields to update. If not set, all modifiable
* fields will be modified.
* When set in a query parameter, this field should be specified as
* updateMask=<field1>,<field2>,...
*/
@property(nonatomic, copy, nullable) NSString *updateMask;

/** The ID of the user. */
@property(nonatomic, copy, nullable) NSString *userId;

/**
* Fetches a @c GTLRAndroidEnterprise_Device.
*
* Updates the device policy. This method supports patch semantics.
*
* @param object The @c GTLRAndroidEnterprise_Device to include in the query.
* @param enterpriseId The ID of the enterprise.
* @param userId The ID of the user.
* @param deviceId The ID of the device.
*
* @returns GTLRAndroidEnterpriseQuery_DevicesPatch
*/
+ (instancetype)queryWithObject:(GTLRAndroidEnterprise_Device *)object
enterpriseId:(NSString *)enterpriseId
userId:(NSString *)userId
deviceId:(NSString *)deviceId;

@end

/**
* Sets whether a device's access to Google services is enabled or disabled.
* The device state takes effect only if enforcing EMM policies on Android
Expand Down Expand Up @@ -240,6 +289,54 @@ GTLR_EXTERN NSString * const kGTLRAndroidEnterpriseRequestModeWaitForNotificatio

@end

/**
* Updates the device policy
*
* Method: androidenterprise.devices.update
*
* Authorization scope(s):
* @c kGTLRAuthScopeAndroidEnterprise
*/
@interface GTLRAndroidEnterpriseQuery_DevicesUpdate : GTLRAndroidEnterpriseQuery
// Previous library name was
// +[GTLQueryAndroidEnterprise queryForDevicesUpdateWithObject:enterpriseId:userId:deviceId:]

/** The ID of the device. */
@property(nonatomic, copy, nullable) NSString *deviceId;

/** The ID of the enterprise. */
@property(nonatomic, copy, nullable) NSString *enterpriseId;

/**
* Mask that identifies which fields to update. If not set, all modifiable
* fields will be modified.
* When set in a query parameter, this field should be specified as
* updateMask=<field1>,<field2>,...
*/
@property(nonatomic, copy, nullable) NSString *updateMask;

/** The ID of the user. */
@property(nonatomic, copy, nullable) NSString *userId;

/**
* Fetches a @c GTLRAndroidEnterprise_Device.
*
* Updates the device policy
*
* @param object The @c GTLRAndroidEnterprise_Device to include in the query.
* @param enterpriseId The ID of the enterprise.
* @param userId The ID of the user.
* @param deviceId The ID of the device.
*
* @returns GTLRAndroidEnterpriseQuery_DevicesUpdate
*/
+ (instancetype)queryWithObject:(GTLRAndroidEnterprise_Device *)object
enterpriseId:(NSString *)enterpriseId
userId:(NSString *)userId
deviceId:(NSString *)deviceId;

@end

/**
* Acknowledges notifications that were received from
* Enterprises.PullNotificationSet to prevent subsequent calls from returning
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,37 @@ + (instancetype)queryWithEnterpriseId:(NSString *)enterpriseId

@end

@implementation GTLRAndroidEnterpriseQuery_DevicesPatch

@dynamic deviceId, enterpriseId, updateMask, userId;

+ (instancetype)queryWithObject:(GTLRAndroidEnterprise_Device *)object
enterpriseId:(NSString *)enterpriseId
userId:(NSString *)userId
deviceId:(NSString *)deviceId {
if (object == nil) {
GTLR_DEBUG_ASSERT(object != nil, @"Got a nil object");
return nil;
}
NSArray *pathParams = @[
@"deviceId", @"enterpriseId", @"userId"
];
NSString *pathURITemplate = @"enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}";
GTLRAndroidEnterpriseQuery_DevicesPatch *query =
[[self alloc] initWithPathURITemplate:pathURITemplate
HTTPMethod:@"PATCH"
pathParameterNames:pathParams];
query.bodyObject = object;
query.enterpriseId = enterpriseId;
query.userId = userId;
query.deviceId = deviceId;
query.expectedObjectClass = [GTLRAndroidEnterprise_Device class];
query.loggingName = @"androidenterprise.devices.patch";
return query;
}

@end

@implementation GTLRAndroidEnterpriseQuery_DevicesSetState

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

@end

@implementation GTLRAndroidEnterpriseQuery_DevicesUpdate

@dynamic deviceId, enterpriseId, updateMask, userId;

+ (instancetype)queryWithObject:(GTLRAndroidEnterprise_Device *)object
enterpriseId:(NSString *)enterpriseId
userId:(NSString *)userId
deviceId:(NSString *)deviceId {
if (object == nil) {
GTLR_DEBUG_ASSERT(object != nil, @"Got a nil object");
return nil;
}
NSArray *pathParams = @[
@"deviceId", @"enterpriseId", @"userId"
];
NSString *pathURITemplate = @"enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}";
GTLRAndroidEnterpriseQuery_DevicesUpdate *query =
[[self alloc] initWithPathURITemplate:pathURITemplate
HTTPMethod:@"PUT"
pathParameterNames:pathParams];
query.bodyObject = object;
query.enterpriseId = enterpriseId;
query.userId = userId;
query.deviceId = deviceId;
query.expectedObjectClass = [GTLRAndroidEnterprise_Device class];
query.loggingName = @"androidenterprise.devices.update";
return query;
}

@end

@implementation GTLRAndroidEnterpriseQuery_EnterprisesAcknowledgeNotificationSet

@dynamic notificationSetId;
Expand Down

0 comments on commit 763e1de

Please sign in to comment.