Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2)

Unified Diff: generated/googleapis/lib/admin/directory_v1.dart

Issue 3006323002: Api-Roll 54: 2017-09-11 (Closed)
Patch Set: use 2.0.0-dev.infinity sdk constraint in pubspecs Created 3 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « generated/googleapis/lib/admin/datatransfer_v1.dart ('k') | generated/googleapis/lib/admin/reports_v1.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: generated/googleapis/lib/admin/directory_v1.dart
diff --git a/generated/googleapis/lib/admin/directory_v1.dart b/generated/googleapis/lib/admin/directory_v1.dart
index deecd52ad39ae4742ebc80ef97d250e775db4c55..75d2d7b6a65b7dce08bc18256c3b3c92353cc5eb 100644
--- a/generated/googleapis/lib/admin/directory_v1.dart
+++ b/generated/googleapis/lib/admin/directory_v1.dart
@@ -10,148 +10,177 @@ import 'dart:convert' as convert;
import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons;
import 'package:http/http.dart' as http;
-export 'package:_discoveryapis_commons/_discoveryapis_commons.dart' show
- ApiRequestError, DetailedApiRequestError;
+export 'package:_discoveryapis_commons/_discoveryapis_commons.dart'
+ show ApiRequestError, DetailedApiRequestError;
const core.String USER_AGENT = 'dart-api-client admin/directory_v1';
-/**
- * The Admin SDK Directory API lets you view and manage enterprise resources
- * such as users and groups, administrative notifications, security features,
- * and more.
- */
+/// The Admin SDK Directory API lets you view and manage enterprise resources
+/// such as users and groups, administrative notifications, security features,
+/// and more.
class AdminApi {
- /** View and manage customer related information */
- static const AdminDirectoryCustomerScope = "https://www.googleapis.com/auth/admin.directory.customer";
+ /// View and manage customer related information
+ static const AdminDirectoryCustomerScope =
+ "https://www.googleapis.com/auth/admin.directory.customer";
- /** View customer related information */
- static const AdminDirectoryCustomerReadonlyScope = "https://www.googleapis.com/auth/admin.directory.customer.readonly";
+ /// View customer related information
+ static const AdminDirectoryCustomerReadonlyScope =
+ "https://www.googleapis.com/auth/admin.directory.customer.readonly";
- /** View and manage your Chrome OS devices' metadata */
- static const AdminDirectoryDeviceChromeosScope = "https://www.googleapis.com/auth/admin.directory.device.chromeos";
+ /// View and manage your Chrome OS devices' metadata
+ static const AdminDirectoryDeviceChromeosScope =
+ "https://www.googleapis.com/auth/admin.directory.device.chromeos";
- /** View your Chrome OS devices' metadata */
- static const AdminDirectoryDeviceChromeosReadonlyScope = "https://www.googleapis.com/auth/admin.directory.device.chromeos.readonly";
+ /// View your Chrome OS devices' metadata
+ static const AdminDirectoryDeviceChromeosReadonlyScope =
+ "https://www.googleapis.com/auth/admin.directory.device.chromeos.readonly";
- /** View and manage your mobile devices' metadata */
- static const AdminDirectoryDeviceMobileScope = "https://www.googleapis.com/auth/admin.directory.device.mobile";
+ /// View and manage your mobile devices' metadata
+ static const AdminDirectoryDeviceMobileScope =
+ "https://www.googleapis.com/auth/admin.directory.device.mobile";
- /** Manage your mobile devices by performing administrative tasks */
- static const AdminDirectoryDeviceMobileActionScope = "https://www.googleapis.com/auth/admin.directory.device.mobile.action";
+ /// Manage your mobile devices by performing administrative tasks
+ static const AdminDirectoryDeviceMobileActionScope =
+ "https://www.googleapis.com/auth/admin.directory.device.mobile.action";
- /** View your mobile devices' metadata */
- static const AdminDirectoryDeviceMobileReadonlyScope = "https://www.googleapis.com/auth/admin.directory.device.mobile.readonly";
+ /// View your mobile devices' metadata
+ static const AdminDirectoryDeviceMobileReadonlyScope =
+ "https://www.googleapis.com/auth/admin.directory.device.mobile.readonly";
- /** View and manage the provisioning of domains for your customers */
- static const AdminDirectoryDomainScope = "https://www.googleapis.com/auth/admin.directory.domain";
+ /// View and manage the provisioning of domains for your customers
+ static const AdminDirectoryDomainScope =
+ "https://www.googleapis.com/auth/admin.directory.domain";
- /** View domains related to your customers */
- static const AdminDirectoryDomainReadonlyScope = "https://www.googleapis.com/auth/admin.directory.domain.readonly";
+ /// View domains related to your customers
+ static const AdminDirectoryDomainReadonlyScope =
+ "https://www.googleapis.com/auth/admin.directory.domain.readonly";
- /** View and manage the provisioning of groups on your domain */
- static const AdminDirectoryGroupScope = "https://www.googleapis.com/auth/admin.directory.group";
+ /// View and manage the provisioning of groups on your domain
+ static const AdminDirectoryGroupScope =
+ "https://www.googleapis.com/auth/admin.directory.group";
- /** View and manage group subscriptions on your domain */
- static const AdminDirectoryGroupMemberScope = "https://www.googleapis.com/auth/admin.directory.group.member";
+ /// View and manage group subscriptions on your domain
+ static const AdminDirectoryGroupMemberScope =
+ "https://www.googleapis.com/auth/admin.directory.group.member";
- /** View group subscriptions on your domain */
- static const AdminDirectoryGroupMemberReadonlyScope = "https://www.googleapis.com/auth/admin.directory.group.member.readonly";
+ /// View group subscriptions on your domain
+ static const AdminDirectoryGroupMemberReadonlyScope =
+ "https://www.googleapis.com/auth/admin.directory.group.member.readonly";
- /** View groups on your domain */
- static const AdminDirectoryGroupReadonlyScope = "https://www.googleapis.com/auth/admin.directory.group.readonly";
+ /// View groups on your domain
+ static const AdminDirectoryGroupReadonlyScope =
+ "https://www.googleapis.com/auth/admin.directory.group.readonly";
- /** View and manage notifications received on your domain */
- static const AdminDirectoryNotificationsScope = "https://www.googleapis.com/auth/admin.directory.notifications";
+ /// View and manage notifications received on your domain
+ static const AdminDirectoryNotificationsScope =
+ "https://www.googleapis.com/auth/admin.directory.notifications";
- /** View and manage organization units on your domain */
- static const AdminDirectoryOrgunitScope = "https://www.googleapis.com/auth/admin.directory.orgunit";
+ /// View and manage organization units on your domain
+ static const AdminDirectoryOrgunitScope =
+ "https://www.googleapis.com/auth/admin.directory.orgunit";
- /** View organization units on your domain */
- static const AdminDirectoryOrgunitReadonlyScope = "https://www.googleapis.com/auth/admin.directory.orgunit.readonly";
+ /// View organization units on your domain
+ static const AdminDirectoryOrgunitReadonlyScope =
+ "https://www.googleapis.com/auth/admin.directory.orgunit.readonly";
- /** View and manage the provisioning of calendar resources on your domain */
- static const AdminDirectoryResourceCalendarScope = "https://www.googleapis.com/auth/admin.directory.resource.calendar";
+ /// View and manage the provisioning of calendar resources on your domain
+ static const AdminDirectoryResourceCalendarScope =
+ "https://www.googleapis.com/auth/admin.directory.resource.calendar";
- /** View calendar resources on your domain */
- static const AdminDirectoryResourceCalendarReadonlyScope = "https://www.googleapis.com/auth/admin.directory.resource.calendar.readonly";
+ /// View calendar resources on your domain
+ static const AdminDirectoryResourceCalendarReadonlyScope =
+ "https://www.googleapis.com/auth/admin.directory.resource.calendar.readonly";
- /** Manage delegated admin roles for your domain */
- static const AdminDirectoryRolemanagementScope = "https://www.googleapis.com/auth/admin.directory.rolemanagement";
+ /// Manage delegated admin roles for your domain
+ static const AdminDirectoryRolemanagementScope =
+ "https://www.googleapis.com/auth/admin.directory.rolemanagement";
- /** View delegated admin roles for your domain */
- static const AdminDirectoryRolemanagementReadonlyScope = "https://www.googleapis.com/auth/admin.directory.rolemanagement.readonly";
+ /// View delegated admin roles for your domain
+ static const AdminDirectoryRolemanagementReadonlyScope =
+ "https://www.googleapis.com/auth/admin.directory.rolemanagement.readonly";
- /** View and manage the provisioning of users on your domain */
- static const AdminDirectoryUserScope = "https://www.googleapis.com/auth/admin.directory.user";
+ /// View and manage the provisioning of users on your domain
+ static const AdminDirectoryUserScope =
+ "https://www.googleapis.com/auth/admin.directory.user";
- /** View and manage user aliases on your domain */
- static const AdminDirectoryUserAliasScope = "https://www.googleapis.com/auth/admin.directory.user.alias";
+ /// View and manage user aliases on your domain
+ static const AdminDirectoryUserAliasScope =
+ "https://www.googleapis.com/auth/admin.directory.user.alias";
- /** View user aliases on your domain */
- static const AdminDirectoryUserAliasReadonlyScope = "https://www.googleapis.com/auth/admin.directory.user.alias.readonly";
+ /// View user aliases on your domain
+ static const AdminDirectoryUserAliasReadonlyScope =
+ "https://www.googleapis.com/auth/admin.directory.user.alias.readonly";
- /** View users on your domain */
- static const AdminDirectoryUserReadonlyScope = "https://www.googleapis.com/auth/admin.directory.user.readonly";
+ /// View users on your domain
+ static const AdminDirectoryUserReadonlyScope =
+ "https://www.googleapis.com/auth/admin.directory.user.readonly";
- /** Manage data access permissions for users on your domain */
- static const AdminDirectoryUserSecurityScope = "https://www.googleapis.com/auth/admin.directory.user.security";
+ /// Manage data access permissions for users on your domain
+ static const AdminDirectoryUserSecurityScope =
+ "https://www.googleapis.com/auth/admin.directory.user.security";
- /** View and manage the provisioning of user schemas on your domain */
- static const AdminDirectoryUserschemaScope = "https://www.googleapis.com/auth/admin.directory.userschema";
-
- /** View user schemas on your domain */
- static const AdminDirectoryUserschemaReadonlyScope = "https://www.googleapis.com/auth/admin.directory.userschema.readonly";
+ /// View and manage the provisioning of user schemas on your domain
+ static const AdminDirectoryUserschemaScope =
+ "https://www.googleapis.com/auth/admin.directory.userschema";
+ /// View user schemas on your domain
+ static const AdminDirectoryUserschemaReadonlyScope =
+ "https://www.googleapis.com/auth/admin.directory.userschema.readonly";
final commons.ApiRequester _requester;
AspsResourceApi get asps => new AspsResourceApi(_requester);
ChannelsResourceApi get channels => new ChannelsResourceApi(_requester);
- ChromeosdevicesResourceApi get chromeosdevices => new ChromeosdevicesResourceApi(_requester);
+ ChromeosdevicesResourceApi get chromeosdevices =>
+ new ChromeosdevicesResourceApi(_requester);
CustomersResourceApi get customers => new CustomersResourceApi(_requester);
- DomainAliasesResourceApi get domainAliases => new DomainAliasesResourceApi(_requester);
+ DomainAliasesResourceApi get domainAliases =>
+ new DomainAliasesResourceApi(_requester);
DomainsResourceApi get domains => new DomainsResourceApi(_requester);
GroupsResourceApi get groups => new GroupsResourceApi(_requester);
MembersResourceApi get members => new MembersResourceApi(_requester);
- MobiledevicesResourceApi get mobiledevices => new MobiledevicesResourceApi(_requester);
- NotificationsResourceApi get notifications => new NotificationsResourceApi(_requester);
+ MobiledevicesResourceApi get mobiledevices =>
+ new MobiledevicesResourceApi(_requester);
+ NotificationsResourceApi get notifications =>
+ new NotificationsResourceApi(_requester);
OrgunitsResourceApi get orgunits => new OrgunitsResourceApi(_requester);
PrivilegesResourceApi get privileges => new PrivilegesResourceApi(_requester);
ResourcesResourceApi get resources => new ResourcesResourceApi(_requester);
- RoleAssignmentsResourceApi get roleAssignments => new RoleAssignmentsResourceApi(_requester);
+ RoleAssignmentsResourceApi get roleAssignments =>
+ new RoleAssignmentsResourceApi(_requester);
RolesResourceApi get roles => new RolesResourceApi(_requester);
SchemasResourceApi get schemas => new SchemasResourceApi(_requester);
TokensResourceApi get tokens => new TokensResourceApi(_requester);
UsersResourceApi get users => new UsersResourceApi(_requester);
- VerificationCodesResourceApi get verificationCodes => new VerificationCodesResourceApi(_requester);
-
- AdminApi(http.Client client, {core.String rootUrl: "https://www.googleapis.com/", core.String servicePath: "admin/directory/v1/"}) :
- _requester = new commons.ApiRequester(client, rootUrl, servicePath, USER_AGENT);
+ VerificationCodesResourceApi get verificationCodes =>
+ new VerificationCodesResourceApi(_requester);
+
+ AdminApi(http.Client client,
+ {core.String rootUrl: "https://www.googleapis.com/",
+ core.String servicePath: "admin/directory/v1/"})
+ : _requester =
+ new commons.ApiRequester(client, rootUrl, servicePath, USER_AGENT);
}
-
class AspsResourceApi {
final commons.ApiRequester _requester;
- AspsResourceApi(commons.ApiRequester client) :
- _requester = client;
-
- /**
- * Delete an ASP issued by a user.
- *
- * Request parameters:
- *
- * [userKey] - Identifies the user in the API request. The value can be the
- * user's primary email address, alias email address, or unique user ID.
- *
- * [codeId] - The unique ID of the ASP to be deleted.
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
+ AspsResourceApi(commons.ApiRequester client) : _requester = client;
+
+ /// Delete an ASP issued by a user.
+ ///
+ /// Request parameters:
+ ///
+ /// [userKey] - Identifies the user in the API request. The value can be the
+ /// user's primary email address, alias email address, or unique user ID.
+ ///
+ /// [codeId] - The unique ID of the ASP to be deleted.
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
async.Future delete(core.String userKey, core.int codeId) {
var _url = null;
var _queryParams = new core.Map();
@@ -169,36 +198,36 @@ class AspsResourceApi {
_downloadOptions = null;
- _url = 'users/' + commons.Escaper.ecapeVariable('$userKey') + '/asps/' + commons.Escaper.ecapeVariable('$codeId');
-
- var _response = _requester.request(_url,
- "DELETE",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ _url = 'users/' +
+ commons.Escaper.ecapeVariable('$userKey') +
+ '/asps/' +
+ commons.Escaper.ecapeVariable('$codeId');
+
+ var _response = _requester.request(_url, "DELETE",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => null);
}
- /**
- * Get information about an ASP issued by a user.
- *
- * Request parameters:
- *
- * [userKey] - Identifies the user in the API request. The value can be the
- * user's primary email address, alias email address, or unique user ID.
- *
- * [codeId] - The unique ID of the ASP.
- *
- * Completes with a [Asp].
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
+ /// Get information about an ASP issued by a user.
+ ///
+ /// Request parameters:
+ ///
+ /// [userKey] - Identifies the user in the API request. The value can be the
+ /// user's primary email address, alias email address, or unique user ID.
+ ///
+ /// [codeId] - The unique ID of the ASP.
+ ///
+ /// Completes with a [Asp].
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
async.Future<Asp> get(core.String userKey, core.int codeId) {
var _url = null;
var _queryParams = new core.Map();
@@ -214,34 +243,34 @@ class AspsResourceApi {
throw new core.ArgumentError("Parameter codeId is required.");
}
- _url = 'users/' + commons.Escaper.ecapeVariable('$userKey') + '/asps/' + commons.Escaper.ecapeVariable('$codeId');
+ _url = 'users/' +
+ commons.Escaper.ecapeVariable('$userKey') +
+ '/asps/' +
+ commons.Escaper.ecapeVariable('$codeId');
- var _response = _requester.request(_url,
- "GET",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ var _response = _requester.request(_url, "GET",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => new Asp.fromJson(data));
}
- /**
- * List the ASPs issued by a user.
- *
- * Request parameters:
- *
- * [userKey] - Identifies the user in the API request. The value can be the
- * user's primary email address, alias email address, or unique user ID.
- *
- * Completes with a [Asps].
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
+ /// List the ASPs issued by a user.
+ ///
+ /// Request parameters:
+ ///
+ /// [userKey] - Identifies the user in the API request. The value can be the
+ /// user's primary email address, alias email address, or unique user ID.
+ ///
+ /// Completes with a [Asps].
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
async.Future<Asps> list(core.String userKey) {
var _url = null;
var _queryParams = new core.Map();
@@ -256,38 +285,32 @@ class AspsResourceApi {
_url = 'users/' + commons.Escaper.ecapeVariable('$userKey') + '/asps';
- var _response = _requester.request(_url,
- "GET",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ var _response = _requester.request(_url, "GET",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => new Asps.fromJson(data));
}
-
}
-
class ChannelsResourceApi {
final commons.ApiRequester _requester;
- ChannelsResourceApi(commons.ApiRequester client) :
- _requester = client;
-
- /**
- * Stop watching resources through this channel
- *
- * [request] - The metadata request object.
- *
- * Request parameters:
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
+ ChannelsResourceApi(commons.ApiRequester client) : _requester = client;
+
+ /// Stop watching resources through this channel
+ ///
+ /// [request] - The metadata request object.
+ ///
+ /// Request parameters:
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
async.Future stop(Channel request) {
var _url = null;
var _queryParams = new core.Map();
@@ -304,43 +327,38 @@ class ChannelsResourceApi {
_url = '/admin/directory_v1/channels/stop';
- var _response = _requester.request(_url,
- "POST",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ var _response = _requester.request(_url, "POST",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => null);
}
-
}
-
class ChromeosdevicesResourceApi {
final commons.ApiRequester _requester;
- ChromeosdevicesResourceApi(commons.ApiRequester client) :
- _requester = client;
-
- /**
- * Take action on Chrome OS Device
- *
- * [request] - The metadata request object.
- *
- * Request parameters:
- *
- * [customerId] - Immutable ID of the G Suite account
- *
- * [resourceId] - Immutable ID of Chrome OS Device
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
- async.Future action(ChromeOsDeviceAction request, core.String customerId, core.String resourceId) {
+ ChromeosdevicesResourceApi(commons.ApiRequester client) : _requester = client;
+
+ /// Take action on Chrome OS Device
+ ///
+ /// [request] - The metadata request object.
+ ///
+ /// Request parameters:
+ ///
+ /// [customerId] - Immutable ID of the G Suite account
+ ///
+ /// [resourceId] - Immutable ID of Chrome OS Device
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
+ async.Future action(ChromeOsDeviceAction request, core.String customerId,
+ core.String resourceId) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -360,42 +378,44 @@ class ChromeosdevicesResourceApi {
_downloadOptions = null;
- _url = 'customer/' + commons.Escaper.ecapeVariable('$customerId') + '/devices/chromeos/' + commons.Escaper.ecapeVariable('$resourceId') + '/action';
-
- var _response = _requester.request(_url,
- "POST",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ _url = 'customer/' +
+ commons.Escaper.ecapeVariable('$customerId') +
+ '/devices/chromeos/' +
+ commons.Escaper.ecapeVariable('$resourceId') +
+ '/action';
+
+ var _response = _requester.request(_url, "POST",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => null);
}
- /**
- * Retrieve Chrome OS Device
- *
- * Request parameters:
- *
- * [customerId] - Immutable ID of the G Suite account
- *
- * [deviceId] - Immutable ID of Chrome OS Device
- *
- * [projection] - Restrict information returned to a set of selected fields.
- * Possible string values are:
- * - "BASIC" : Includes only the basic metadata fields (e.g., deviceId,
- * serialNumber, status, and user)
- * - "FULL" : Includes all metadata fields
- *
- * Completes with a [ChromeOsDevice].
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
- async.Future<ChromeOsDevice> get(core.String customerId, core.String deviceId, {core.String projection}) {
+ /// Retrieve Chrome OS Device
+ ///
+ /// Request parameters:
+ ///
+ /// [customerId] - Immutable ID of the G Suite account
+ ///
+ /// [deviceId] - Immutable ID of Chrome OS Device
+ ///
+ /// [projection] - Restrict information returned to a set of selected fields.
+ /// Possible string values are:
+ /// - "BASIC" : Includes only the basic metadata fields (e.g., deviceId,
+ /// serialNumber, status, and user)
+ /// - "FULL" : Includes all metadata fields
+ ///
+ /// Completes with a [ChromeOsDevice].
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
+ async.Future<ChromeOsDevice> get(core.String customerId, core.String deviceId,
+ {core.String projection}) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -413,66 +433,73 @@ class ChromeosdevicesResourceApi {
_queryParams["projection"] = [projection];
}
- _url = 'customer/' + commons.Escaper.ecapeVariable('$customerId') + '/devices/chromeos/' + commons.Escaper.ecapeVariable('$deviceId');
+ _url = 'customer/' +
+ commons.Escaper.ecapeVariable('$customerId') +
+ '/devices/chromeos/' +
+ commons.Escaper.ecapeVariable('$deviceId');
- var _response = _requester.request(_url,
- "GET",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ var _response = _requester.request(_url, "GET",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => new ChromeOsDevice.fromJson(data));
}
- /**
- * Retrieve all Chrome OS Devices of a customer (paginated)
- *
- * Request parameters:
- *
- * [customerId] - Immutable ID of the G Suite account
- *
- * [maxResults] - Maximum number of results to return. Default is 100
- *
- * [orderBy] - Column to use for sorting results
- * Possible string values are:
- * - "annotatedLocation" : Chromebook location as annotated by the
- * administrator.
- * - "annotatedUser" : Chromebook user as annotated by administrator.
- * - "lastSync" : Chromebook last sync.
- * - "notes" : Chromebook notes as annotated by the administrator.
- * - "serialNumber" : Chromebook Serial Number.
- * - "status" : Chromebook status.
- * - "supportEndDate" : Chromebook support end date.
- *
- * [orgUnitPath] - Full path of the organization unit or its Id
- *
- * [pageToken] - Token to specify next page in the list
- *
- * [projection] - Restrict information returned to a set of selected fields.
- * Possible string values are:
- * - "BASIC" : Includes only the basic metadata fields (e.g., deviceId,
- * serialNumber, status, and user)
- * - "FULL" : Includes all metadata fields
- *
- * [query] - Search string in the format given at
- * http://support.google.com/chromeos/a/bin/answer.py?hl=en&answer=1698333
- *
- * [sortOrder] - Whether to return results in ascending or descending order.
- * Only of use when orderBy is also used
- * Possible string values are:
- * - "ASCENDING" : Ascending order.
- * - "DESCENDING" : Descending order.
- *
- * Completes with a [ChromeOsDevices].
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
- async.Future<ChromeOsDevices> list(core.String customerId, {core.int maxResults, core.String orderBy, core.String orgUnitPath, core.String pageToken, core.String projection, core.String query, core.String sortOrder}) {
+ /// Retrieve all Chrome OS Devices of a customer (paginated)
+ ///
+ /// Request parameters:
+ ///
+ /// [customerId] - Immutable ID of the G Suite account
+ ///
+ /// [maxResults] - Maximum number of results to return. Default is 100
+ ///
+ /// [orderBy] - Column to use for sorting results
+ /// Possible string values are:
+ /// - "annotatedLocation" : Chromebook location as annotated by the
+ /// administrator.
+ /// - "annotatedUser" : Chromebook user as annotated by administrator.
+ /// - "lastSync" : Chromebook last sync.
+ /// - "notes" : Chromebook notes as annotated by the administrator.
+ /// - "serialNumber" : Chromebook Serial Number.
+ /// - "status" : Chromebook status.
+ /// - "supportEndDate" : Chromebook support end date.
+ ///
+ /// [orgUnitPath] - Full path of the organization unit or its Id
+ ///
+ /// [pageToken] - Token to specify next page in the list
+ ///
+ /// [projection] - Restrict information returned to a set of selected fields.
+ /// Possible string values are:
+ /// - "BASIC" : Includes only the basic metadata fields (e.g., deviceId,
+ /// serialNumber, status, and user)
+ /// - "FULL" : Includes all metadata fields
+ ///
+ /// [query] - Search string in the format given at
+ /// http://support.google.com/chromeos/a/bin/answer.py?hl=en&answer=1698333
+ ///
+ /// [sortOrder] - Whether to return results in ascending or descending order.
+ /// Only of use when orderBy is also used
+ /// Possible string values are:
+ /// - "ASCENDING" : Ascending order.
+ /// - "DESCENDING" : Descending order.
+ ///
+ /// Completes with a [ChromeOsDevices].
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
+ async.Future<ChromeOsDevices> list(core.String customerId,
+ {core.int maxResults,
+ core.String orderBy,
+ core.String orgUnitPath,
+ core.String pageToken,
+ core.String projection,
+ core.String query,
+ core.String sortOrder}) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -505,36 +532,36 @@ class ChromeosdevicesResourceApi {
_queryParams["sortOrder"] = [sortOrder];
}
- _url = 'customer/' + commons.Escaper.ecapeVariable('$customerId') + '/devices/chromeos';
+ _url = 'customer/' +
+ commons.Escaper.ecapeVariable('$customerId') +
+ '/devices/chromeos';
- var _response = _requester.request(_url,
- "GET",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ var _response = _requester.request(_url, "GET",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => new ChromeOsDevices.fromJson(data));
}
- /**
- * Move or insert multiple Chrome OS Devices to Organization Unit
- *
- * [request] - The metadata request object.
- *
- * Request parameters:
- *
- * [customerId] - Immutable ID of the G Suite account
- *
- * [orgUnitPath] - Full path of the target organization unit or its Id
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
- async.Future moveDevicesToOu(ChromeOsMoveDevicesToOu request, core.String customerId, core.String orgUnitPath) {
+ /// Move or insert multiple Chrome OS Devices to Organization Unit
+ ///
+ /// [request] - The metadata request object.
+ ///
+ /// Request parameters:
+ ///
+ /// [customerId] - Immutable ID of the G Suite account
+ ///
+ /// [orgUnitPath] - Full path of the target organization unit or its Id
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
+ async.Future moveDevicesToOu(ChromeOsMoveDevicesToOu request,
+ core.String customerId, core.String orgUnitPath) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -555,44 +582,45 @@ class ChromeosdevicesResourceApi {
_downloadOptions = null;
- _url = 'customer/' + commons.Escaper.ecapeVariable('$customerId') + '/devices/chromeos/moveDevicesToOu';
+ _url = 'customer/' +
+ commons.Escaper.ecapeVariable('$customerId') +
+ '/devices/chromeos/moveDevicesToOu';
- var _response = _requester.request(_url,
- "POST",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ var _response = _requester.request(_url, "POST",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => null);
}
- /**
- * Update Chrome OS Device. This method supports patch semantics.
- *
- * [request] - The metadata request object.
- *
- * Request parameters:
- *
- * [customerId] - Immutable ID of the G Suite account
- *
- * [deviceId] - Immutable ID of Chrome OS Device
- *
- * [projection] - Restrict information returned to a set of selected fields.
- * Possible string values are:
- * - "BASIC" : Includes only the basic metadata fields (e.g., deviceId,
- * serialNumber, status, and user)
- * - "FULL" : Includes all metadata fields
- *
- * Completes with a [ChromeOsDevice].
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
- async.Future<ChromeOsDevice> patch(ChromeOsDevice request, core.String customerId, core.String deviceId, {core.String projection}) {
+ /// Update Chrome OS Device. This method supports patch semantics.
+ ///
+ /// [request] - The metadata request object.
+ ///
+ /// Request parameters:
+ ///
+ /// [customerId] - Immutable ID of the G Suite account
+ ///
+ /// [deviceId] - Immutable ID of Chrome OS Device
+ ///
+ /// [projection] - Restrict information returned to a set of selected fields.
+ /// Possible string values are:
+ /// - "BASIC" : Includes only the basic metadata fields (e.g., deviceId,
+ /// serialNumber, status, and user)
+ /// - "FULL" : Includes all metadata fields
+ ///
+ /// Completes with a [ChromeOsDevice].
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
+ async.Future<ChromeOsDevice> patch(
+ ChromeOsDevice request, core.String customerId, core.String deviceId,
+ {core.String projection}) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -613,44 +641,46 @@ class ChromeosdevicesResourceApi {
_queryParams["projection"] = [projection];
}
- _url = 'customer/' + commons.Escaper.ecapeVariable('$customerId') + '/devices/chromeos/' + commons.Escaper.ecapeVariable('$deviceId');
+ _url = 'customer/' +
+ commons.Escaper.ecapeVariable('$customerId') +
+ '/devices/chromeos/' +
+ commons.Escaper.ecapeVariable('$deviceId');
- var _response = _requester.request(_url,
- "PATCH",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ var _response = _requester.request(_url, "PATCH",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => new ChromeOsDevice.fromJson(data));
}
- /**
- * Update Chrome OS Device
- *
- * [request] - The metadata request object.
- *
- * Request parameters:
- *
- * [customerId] - Immutable ID of the G Suite account
- *
- * [deviceId] - Immutable ID of Chrome OS Device
- *
- * [projection] - Restrict information returned to a set of selected fields.
- * Possible string values are:
- * - "BASIC" : Includes only the basic metadata fields (e.g., deviceId,
- * serialNumber, status, and user)
- * - "FULL" : Includes all metadata fields
- *
- * Completes with a [ChromeOsDevice].
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
- async.Future<ChromeOsDevice> update(ChromeOsDevice request, core.String customerId, core.String deviceId, {core.String projection}) {
+ /// Update Chrome OS Device
+ ///
+ /// [request] - The metadata request object.
+ ///
+ /// Request parameters:
+ ///
+ /// [customerId] - Immutable ID of the G Suite account
+ ///
+ /// [deviceId] - Immutable ID of Chrome OS Device
+ ///
+ /// [projection] - Restrict information returned to a set of selected fields.
+ /// Possible string values are:
+ /// - "BASIC" : Includes only the basic metadata fields (e.g., deviceId,
+ /// serialNumber, status, and user)
+ /// - "FULL" : Includes all metadata fields
+ ///
+ /// Completes with a [ChromeOsDevice].
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
+ async.Future<ChromeOsDevice> update(
+ ChromeOsDevice request, core.String customerId, core.String deviceId,
+ {core.String projection}) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -671,42 +701,39 @@ class ChromeosdevicesResourceApi {
_queryParams["projection"] = [projection];
}
- _url = 'customer/' + commons.Escaper.ecapeVariable('$customerId') + '/devices/chromeos/' + commons.Escaper.ecapeVariable('$deviceId');
+ _url = 'customer/' +
+ commons.Escaper.ecapeVariable('$customerId') +
+ '/devices/chromeos/' +
+ commons.Escaper.ecapeVariable('$deviceId');
- var _response = _requester.request(_url,
- "PUT",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ var _response = _requester.request(_url, "PUT",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => new ChromeOsDevice.fromJson(data));
}
-
}
-
class CustomersResourceApi {
final commons.ApiRequester _requester;
- CustomersResourceApi(commons.ApiRequester client) :
- _requester = client;
-
- /**
- * Retrieves a customer.
- *
- * Request parameters:
- *
- * [customerKey] - Id of the customer to be retrieved
- *
- * Completes with a [Customer].
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
+ CustomersResourceApi(commons.ApiRequester client) : _requester = client;
+
+ /// Retrieves a customer.
+ ///
+ /// Request parameters:
+ ///
+ /// [customerKey] - Id of the customer to be retrieved
+ ///
+ /// Completes with a [Customer].
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
async.Future<Customer> get(core.String customerKey) {
var _url = null;
var _queryParams = new core.Map();
@@ -721,33 +748,30 @@ class CustomersResourceApi {
_url = 'customers/' + commons.Escaper.ecapeVariable('$customerKey');
- var _response = _requester.request(_url,
- "GET",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ var _response = _requester.request(_url, "GET",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => new Customer.fromJson(data));
}
- /**
- * Updates a customer. This method supports patch semantics.
- *
- * [request] - The metadata request object.
- *
- * Request parameters:
- *
- * [customerKey] - Id of the customer to be updated
- *
- * Completes with a [Customer].
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
+ /// Updates a customer. This method supports patch semantics.
+ ///
+ /// [request] - The metadata request object.
+ ///
+ /// Request parameters:
+ ///
+ /// [customerKey] - Id of the customer to be updated
+ ///
+ /// Completes with a [Customer].
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
async.Future<Customer> patch(Customer request, core.String customerKey) {
var _url = null;
var _queryParams = new core.Map();
@@ -765,33 +789,30 @@ class CustomersResourceApi {
_url = 'customers/' + commons.Escaper.ecapeVariable('$customerKey');
- var _response = _requester.request(_url,
- "PATCH",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ var _response = _requester.request(_url, "PATCH",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => new Customer.fromJson(data));
}
- /**
- * Updates a customer.
- *
- * [request] - The metadata request object.
- *
- * Request parameters:
- *
- * [customerKey] - Id of the customer to be updated
- *
- * Completes with a [Customer].
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
+ /// Updates a customer.
+ ///
+ /// [request] - The metadata request object.
+ ///
+ /// Request parameters:
+ ///
+ /// [customerKey] - Id of the customer to be updated
+ ///
+ /// Completes with a [Customer].
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
async.Future<Customer> update(Customer request, core.String customerKey) {
var _url = null;
var _queryParams = new core.Map();
@@ -809,40 +830,34 @@ class CustomersResourceApi {
_url = 'customers/' + commons.Escaper.ecapeVariable('$customerKey');
- var _response = _requester.request(_url,
- "PUT",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ var _response = _requester.request(_url, "PUT",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => new Customer.fromJson(data));
}
-
}
-
class DomainAliasesResourceApi {
final commons.ApiRequester _requester;
- DomainAliasesResourceApi(commons.ApiRequester client) :
- _requester = client;
-
- /**
- * Deletes a Domain Alias of the customer.
- *
- * Request parameters:
- *
- * [customer] - Immutable ID of the G Suite account.
- *
- * [domainAliasName] - Name of domain alias to be retrieved.
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
+ DomainAliasesResourceApi(commons.ApiRequester client) : _requester = client;
+
+ /// Deletes a Domain Alias of the customer.
+ ///
+ /// Request parameters:
+ ///
+ /// [customer] - Immutable ID of the G Suite account.
+ ///
+ /// [domainAliasName] - Name of domain alias to be retrieved.
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
async.Future delete(core.String customer, core.String domainAliasName) {
var _url = null;
var _queryParams = new core.Map();
@@ -860,36 +875,37 @@ class DomainAliasesResourceApi {
_downloadOptions = null;
- _url = 'customer/' + commons.Escaper.ecapeVariable('$customer') + '/domainaliases/' + commons.Escaper.ecapeVariable('$domainAliasName');
-
- var _response = _requester.request(_url,
- "DELETE",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ _url = 'customer/' +
+ commons.Escaper.ecapeVariable('$customer') +
+ '/domainaliases/' +
+ commons.Escaper.ecapeVariable('$domainAliasName');
+
+ var _response = _requester.request(_url, "DELETE",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => null);
}
- /**
- * Retrieves a domain alias of the customer.
- *
- * Request parameters:
- *
- * [customer] - Immutable ID of the G Suite account.
- *
- * [domainAliasName] - Name of domain alias to be retrieved.
- *
- * Completes with a [DomainAlias].
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
- async.Future<DomainAlias> get(core.String customer, core.String domainAliasName) {
+ /// Retrieves a domain alias of the customer.
+ ///
+ /// Request parameters:
+ ///
+ /// [customer] - Immutable ID of the G Suite account.
+ ///
+ /// [domainAliasName] - Name of domain alias to be retrieved.
+ ///
+ /// Completes with a [DomainAlias].
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
+ async.Future<DomainAlias> get(
+ core.String customer, core.String domainAliasName) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -904,35 +920,35 @@ class DomainAliasesResourceApi {
throw new core.ArgumentError("Parameter domainAliasName is required.");
}
- _url = 'customer/' + commons.Escaper.ecapeVariable('$customer') + '/domainaliases/' + commons.Escaper.ecapeVariable('$domainAliasName');
+ _url = 'customer/' +
+ commons.Escaper.ecapeVariable('$customer') +
+ '/domainaliases/' +
+ commons.Escaper.ecapeVariable('$domainAliasName');
- var _response = _requester.request(_url,
- "GET",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ var _response = _requester.request(_url, "GET",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => new DomainAlias.fromJson(data));
}
- /**
- * Inserts a Domain alias of the customer.
- *
- * [request] - The metadata request object.
- *
- * Request parameters:
- *
- * [customer] - Immutable ID of the G Suite account.
- *
- * Completes with a [DomainAlias].
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
+ /// Inserts a Domain alias of the customer.
+ ///
+ /// [request] - The metadata request object.
+ ///
+ /// Request parameters:
+ ///
+ /// [customer] - Immutable ID of the G Suite account.
+ ///
+ /// Completes with a [DomainAlias].
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
async.Future<DomainAlias> insert(DomainAlias request, core.String customer) {
var _url = null;
var _queryParams = new core.Map();
@@ -948,37 +964,37 @@ class DomainAliasesResourceApi {
throw new core.ArgumentError("Parameter customer is required.");
}
- _url = 'customer/' + commons.Escaper.ecapeVariable('$customer') + '/domainaliases';
+ _url = 'customer/' +
+ commons.Escaper.ecapeVariable('$customer') +
+ '/domainaliases';
- var _response = _requester.request(_url,
- "POST",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ var _response = _requester.request(_url, "POST",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => new DomainAlias.fromJson(data));
}
- /**
- * Lists the domain aliases of the customer.
- *
- * Request parameters:
- *
- * [customer] - Immutable ID of the G Suite account.
- *
- * [parentDomainName] - Name of the parent domain for which domain aliases are
- * to be fetched.
- *
- * Completes with a [DomainAliases].
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
- async.Future<DomainAliases> list(core.String customer, {core.String parentDomainName}) {
+ /// Lists the domain aliases of the customer.
+ ///
+ /// Request parameters:
+ ///
+ /// [customer] - Immutable ID of the G Suite account.
+ ///
+ /// [parentDomainName] - Name of the parent domain for which domain aliases
+ /// are to be fetched.
+ ///
+ /// Completes with a [DomainAliases].
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
+ async.Future<DomainAliases> list(core.String customer,
+ {core.String parentDomainName}) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -993,42 +1009,38 @@ class DomainAliasesResourceApi {
_queryParams["parentDomainName"] = [parentDomainName];
}
- _url = 'customer/' + commons.Escaper.ecapeVariable('$customer') + '/domainaliases';
+ _url = 'customer/' +
+ commons.Escaper.ecapeVariable('$customer') +
+ '/domainaliases';
- var _response = _requester.request(_url,
- "GET",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ var _response = _requester.request(_url, "GET",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => new DomainAliases.fromJson(data));
}
-
}
-
class DomainsResourceApi {
final commons.ApiRequester _requester;
- DomainsResourceApi(commons.ApiRequester client) :
- _requester = client;
-
- /**
- * Deletes a domain of the customer.
- *
- * Request parameters:
- *
- * [customer] - Immutable ID of the G Suite account.
- *
- * [domainName] - Name of domain to be deleted
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
+ DomainsResourceApi(commons.ApiRequester client) : _requester = client;
+
+ /// Deletes a domain of the customer.
+ ///
+ /// Request parameters:
+ ///
+ /// [customer] - Immutable ID of the G Suite account.
+ ///
+ /// [domainName] - Name of domain to be deleted
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
async.Future delete(core.String customer, core.String domainName) {
var _url = null;
var _queryParams = new core.Map();
@@ -1046,35 +1058,35 @@ class DomainsResourceApi {
_downloadOptions = null;
- _url = 'customer/' + commons.Escaper.ecapeVariable('$customer') + '/domains/' + commons.Escaper.ecapeVariable('$domainName');
-
- var _response = _requester.request(_url,
- "DELETE",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ _url = 'customer/' +
+ commons.Escaper.ecapeVariable('$customer') +
+ '/domains/' +
+ commons.Escaper.ecapeVariable('$domainName');
+
+ var _response = _requester.request(_url, "DELETE",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => null);
}
- /**
- * Retrieves a domain of the customer.
- *
- * Request parameters:
- *
- * [customer] - Immutable ID of the G Suite account.
- *
- * [domainName] - Name of domain to be retrieved
- *
- * Completes with a [Domains].
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
+ /// Retrieves a domain of the customer.
+ ///
+ /// Request parameters:
+ ///
+ /// [customer] - Immutable ID of the G Suite account.
+ ///
+ /// [domainName] - Name of domain to be retrieved
+ ///
+ /// Completes with a [Domains].
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
async.Future<Domains> get(core.String customer, core.String domainName) {
var _url = null;
var _queryParams = new core.Map();
@@ -1090,35 +1102,35 @@ class DomainsResourceApi {
throw new core.ArgumentError("Parameter domainName is required.");
}
- _url = 'customer/' + commons.Escaper.ecapeVariable('$customer') + '/domains/' + commons.Escaper.ecapeVariable('$domainName');
+ _url = 'customer/' +
+ commons.Escaper.ecapeVariable('$customer') +
+ '/domains/' +
+ commons.Escaper.ecapeVariable('$domainName');
- var _response = _requester.request(_url,
- "GET",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ var _response = _requester.request(_url, "GET",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => new Domains.fromJson(data));
}
- /**
- * Inserts a domain of the customer.
- *
- * [request] - The metadata request object.
- *
- * Request parameters:
- *
- * [customer] - Immutable ID of the G Suite account.
- *
- * Completes with a [Domains].
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
+ /// Inserts a domain of the customer.
+ ///
+ /// [request] - The metadata request object.
+ ///
+ /// Request parameters:
+ ///
+ /// [customer] - Immutable ID of the G Suite account.
+ ///
+ /// Completes with a [Domains].
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
async.Future<Domains> insert(Domains request, core.String customer) {
var _url = null;
var _queryParams = new core.Map();
@@ -1134,33 +1146,31 @@ class DomainsResourceApi {
throw new core.ArgumentError("Parameter customer is required.");
}
- _url = 'customer/' + commons.Escaper.ecapeVariable('$customer') + '/domains';
+ _url =
+ 'customer/' + commons.Escaper.ecapeVariable('$customer') + '/domains';
- var _response = _requester.request(_url,
- "POST",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ var _response = _requester.request(_url, "POST",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => new Domains.fromJson(data));
}
- /**
- * Lists the domains of the customer.
- *
- * Request parameters:
- *
- * [customer] - Immutable ID of the G Suite account.
- *
- * Completes with a [Domains2].
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
+ /// Lists the domains of the customer.
+ ///
+ /// Request parameters:
+ ///
+ /// [customer] - Immutable ID of the G Suite account.
+ ///
+ /// Completes with a [Domains2].
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
async.Future<Domains2> list(core.String customer) {
var _url = null;
var _queryParams = new core.Map();
@@ -1173,42 +1183,38 @@ class DomainsResourceApi {
throw new core.ArgumentError("Parameter customer is required.");
}
- _url = 'customer/' + commons.Escaper.ecapeVariable('$customer') + '/domains';
+ _url =
+ 'customer/' + commons.Escaper.ecapeVariable('$customer') + '/domains';
- var _response = _requester.request(_url,
- "GET",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ var _response = _requester.request(_url, "GET",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => new Domains2.fromJson(data));
}
-
}
-
class GroupsResourceApi {
final commons.ApiRequester _requester;
- GroupsAliasesResourceApi get aliases => new GroupsAliasesResourceApi(_requester);
-
- GroupsResourceApi(commons.ApiRequester client) :
- _requester = client;
-
- /**
- * Delete Group
- *
- * Request parameters:
- *
- * [groupKey] - Email or immutable Id of the group
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
+ GroupsAliasesResourceApi get aliases =>
+ new GroupsAliasesResourceApi(_requester);
+
+ GroupsResourceApi(commons.ApiRequester client) : _requester = client;
+
+ /// Delete Group
+ ///
+ /// Request parameters:
+ ///
+ /// [groupKey] - Email or immutable Id of the group
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
async.Future delete(core.String groupKey) {
var _url = null;
var _queryParams = new core.Map();
@@ -1225,31 +1231,28 @@ class GroupsResourceApi {
_url = 'groups/' + commons.Escaper.ecapeVariable('$groupKey');
- var _response = _requester.request(_url,
- "DELETE",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ var _response = _requester.request(_url, "DELETE",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => null);
}
- /**
- * Retrieve Group
- *
- * Request parameters:
- *
- * [groupKey] - Email or immutable Id of the group
- *
- * Completes with a [Group].
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
+ /// Retrieve Group
+ ///
+ /// Request parameters:
+ ///
+ /// [groupKey] - Email or immutable Id of the group
+ ///
+ /// Completes with a [Group].
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
async.Future<Group> get(core.String groupKey) {
var _url = null;
var _queryParams = new core.Map();
@@ -1264,31 +1267,28 @@ class GroupsResourceApi {
_url = 'groups/' + commons.Escaper.ecapeVariable('$groupKey');
- var _response = _requester.request(_url,
- "GET",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ var _response = _requester.request(_url, "GET",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => new Group.fromJson(data));
}
- /**
- * Create Group
- *
- * [request] - The metadata request object.
- *
- * Request parameters:
- *
- * Completes with a [Group].
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
+ /// Create Group
+ ///
+ /// [request] - The metadata request object.
+ ///
+ /// Request parameters:
+ ///
+ /// Completes with a [Group].
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
async.Future<Group> insert(Group request) {
var _url = null;
var _queryParams = new core.Map();
@@ -1303,44 +1303,48 @@ class GroupsResourceApi {
_url = 'groups';
- var _response = _requester.request(_url,
- "POST",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ var _response = _requester.request(_url, "POST",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => new Group.fromJson(data));
}
- /**
- * Retrieve all groups in a domain (paginated)
- *
- * Request parameters:
- *
- * [customer] - Immutable ID of the G Suite account. In case of multi-domain,
- * to fetch all groups for a customer, fill this field instead of domain.
- *
- * [domain] - Name of the domain. Fill this field to get groups from only this
- * domain. To return all groups in a multi-domain fill customer field instead.
- *
- * [maxResults] - Maximum number of results to return. Default is 200
- *
- * [pageToken] - Token to specify next page in the list
- *
- * [userKey] - Email or immutable Id of the user if only those groups are to
- * be listed, the given user is a member of. If Id, it should match with id of
- * user object
- *
- * Completes with a [Groups].
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
- async.Future<Groups> list({core.String customer, core.String domain, core.int maxResults, core.String pageToken, core.String userKey}) {
+ /// Retrieve all groups in a domain (paginated)
+ ///
+ /// Request parameters:
+ ///
+ /// [customer] - Immutable ID of the G Suite account. In case of
+ /// multi-domain, to fetch all groups for a customer, fill this field instead
+ /// of domain.
+ ///
+ /// [domain] - Name of the domain. Fill this field to get groups from only
+ /// this domain. To return all groups in a multi-domain fill customer field
+ /// instead.
+ ///
+ /// [maxResults] - Maximum number of results to return. Default is 200
+ ///
+ /// [pageToken] - Token to specify next page in the list
+ ///
+ /// [userKey] - Email or immutable Id of the user if only those groups are to
+ /// be listed, the given user is a member of. If Id, it should match with id
+ /// of user object
+ ///
+ /// Completes with a [Groups].
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
+ async.Future<Groups> list(
+ {core.String customer,
+ core.String domain,
+ core.int maxResults,
+ core.String pageToken,
+ core.String userKey}) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -1366,34 +1370,31 @@ class GroupsResourceApi {
_url = 'groups';
- var _response = _requester.request(_url,
- "GET",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ var _response = _requester.request(_url, "GET",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => new Groups.fromJson(data));
}
- /**
- * Update Group. This method supports patch semantics.
- *
- * [request] - The metadata request object.
- *
- * Request parameters:
- *
- * [groupKey] - Email or immutable Id of the group. If Id, it should match
- * with id of group object
- *
- * Completes with a [Group].
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
+ /// Update Group. This method supports patch semantics.
+ ///
+ /// [request] - The metadata request object.
+ ///
+ /// Request parameters:
+ ///
+ /// [groupKey] - Email or immutable Id of the group. If Id, it should match
+ /// with id of group object
+ ///
+ /// Completes with a [Group].
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
async.Future<Group> patch(Group request, core.String groupKey) {
var _url = null;
var _queryParams = new core.Map();
@@ -1411,34 +1412,31 @@ class GroupsResourceApi {
_url = 'groups/' + commons.Escaper.ecapeVariable('$groupKey');
- var _response = _requester.request(_url,
- "PATCH",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ var _response = _requester.request(_url, "PATCH",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => new Group.fromJson(data));
}
- /**
- * Update Group
- *
- * [request] - The metadata request object.
- *
- * Request parameters:
- *
- * [groupKey] - Email or immutable Id of the group. If Id, it should match
- * with id of group object
- *
- * Completes with a [Group].
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
+ /// Update Group
+ ///
+ /// [request] - The metadata request object.
+ ///
+ /// Request parameters:
+ ///
+ /// [groupKey] - Email or immutable Id of the group. If Id, it should match
+ /// with id of group object
+ ///
+ /// Completes with a [Group].
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
async.Future<Group> update(Group request, core.String groupKey) {
var _url = null;
var _queryParams = new core.Map();
@@ -1456,40 +1454,34 @@ class GroupsResourceApi {
_url = 'groups/' + commons.Escaper.ecapeVariable('$groupKey');
- var _response = _requester.request(_url,
- "PUT",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ var _response = _requester.request(_url, "PUT",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => new Group.fromJson(data));
}
-
}
-
class GroupsAliasesResourceApi {
final commons.ApiRequester _requester;
- GroupsAliasesResourceApi(commons.ApiRequester client) :
- _requester = client;
-
- /**
- * Remove a alias for the group
- *
- * Request parameters:
- *
- * [groupKey] - Email or immutable Id of the group
- *
- * [alias] - The alias to be removed
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
+ GroupsAliasesResourceApi(commons.ApiRequester client) : _requester = client;
+
+ /// Remove a alias for the group
+ ///
+ /// Request parameters:
+ ///
+ /// [groupKey] - Email or immutable Id of the group
+ ///
+ /// [alias] - The alias to be removed
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
async.Future delete(core.String groupKey, core.String alias) {
var _url = null;
var _queryParams = new core.Map();
@@ -1507,35 +1499,35 @@ class GroupsAliasesResourceApi {
_downloadOptions = null;
- _url = 'groups/' + commons.Escaper.ecapeVariable('$groupKey') + '/aliases/' + commons.Escaper.ecapeVariable('$alias');
-
- var _response = _requester.request(_url,
- "DELETE",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ _url = 'groups/' +
+ commons.Escaper.ecapeVariable('$groupKey') +
+ '/aliases/' +
+ commons.Escaper.ecapeVariable('$alias');
+
+ var _response = _requester.request(_url, "DELETE",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => null);
}
- /**
- * Add a alias for the group
- *
- * [request] - The metadata request object.
- *
- * Request parameters:
- *
- * [groupKey] - Email or immutable Id of the group
- *
- * Completes with a [Alias].
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
+ /// Add a alias for the group
+ ///
+ /// [request] - The metadata request object.
+ ///
+ /// Request parameters:
+ ///
+ /// [groupKey] - Email or immutable Id of the group
+ ///
+ /// Completes with a [Alias].
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
async.Future<Alias> insert(Alias request, core.String groupKey) {
var _url = null;
var _queryParams = new core.Map();
@@ -1553,31 +1545,28 @@ class GroupsAliasesResourceApi {
_url = 'groups/' + commons.Escaper.ecapeVariable('$groupKey') + '/aliases';
- var _response = _requester.request(_url,
- "POST",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ var _response = _requester.request(_url, "POST",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => new Alias.fromJson(data));
}
- /**
- * List all aliases for a group
- *
- * Request parameters:
- *
- * [groupKey] - Email or immutable Id of the group
- *
- * Completes with a [Aliases].
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
+ /// List all aliases for a group
+ ///
+ /// Request parameters:
+ ///
+ /// [groupKey] - Email or immutable Id of the group
+ ///
+ /// Completes with a [Aliases].
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
async.Future<Aliases> list(core.String groupKey) {
var _url = null;
var _queryParams = new core.Map();
@@ -1592,40 +1581,34 @@ class GroupsAliasesResourceApi {
_url = 'groups/' + commons.Escaper.ecapeVariable('$groupKey') + '/aliases';
- var _response = _requester.request(_url,
- "GET",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ var _response = _requester.request(_url, "GET",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => new Aliases.fromJson(data));
}
-
}
-
class MembersResourceApi {
final commons.ApiRequester _requester;
- MembersResourceApi(commons.ApiRequester client) :
- _requester = client;
-
- /**
- * Remove membership.
- *
- * Request parameters:
- *
- * [groupKey] - Email or immutable Id of the group
- *
- * [memberKey] - Email or immutable Id of the member
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
+ MembersResourceApi(commons.ApiRequester client) : _requester = client;
+
+ /// Remove membership.
+ ///
+ /// Request parameters:
+ ///
+ /// [groupKey] - Email or immutable Id of the group
+ ///
+ /// [memberKey] - Email or immutable Id of the member
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
async.Future delete(core.String groupKey, core.String memberKey) {
var _url = null;
var _queryParams = new core.Map();
@@ -1643,35 +1626,35 @@ class MembersResourceApi {
_downloadOptions = null;
- _url = 'groups/' + commons.Escaper.ecapeVariable('$groupKey') + '/members/' + commons.Escaper.ecapeVariable('$memberKey');
-
- var _response = _requester.request(_url,
- "DELETE",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ _url = 'groups/' +
+ commons.Escaper.ecapeVariable('$groupKey') +
+ '/members/' +
+ commons.Escaper.ecapeVariable('$memberKey');
+
+ var _response = _requester.request(_url, "DELETE",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => null);
}
- /**
- * Retrieve Group Member
- *
- * Request parameters:
- *
- * [groupKey] - Email or immutable Id of the group
- *
- * [memberKey] - Email or immutable Id of the member
- *
- * Completes with a [Member].
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
+ /// Retrieve Group Member
+ ///
+ /// Request parameters:
+ ///
+ /// [groupKey] - Email or immutable Id of the group
+ ///
+ /// [memberKey] - Email or immutable Id of the member
+ ///
+ /// Completes with a [Member].
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
async.Future<Member> get(core.String groupKey, core.String memberKey) {
var _url = null;
var _queryParams = new core.Map();
@@ -1687,35 +1670,35 @@ class MembersResourceApi {
throw new core.ArgumentError("Parameter memberKey is required.");
}
- _url = 'groups/' + commons.Escaper.ecapeVariable('$groupKey') + '/members/' + commons.Escaper.ecapeVariable('$memberKey');
+ _url = 'groups/' +
+ commons.Escaper.ecapeVariable('$groupKey') +
+ '/members/' +
+ commons.Escaper.ecapeVariable('$memberKey');
- var _response = _requester.request(_url,
- "GET",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ var _response = _requester.request(_url, "GET",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => new Member.fromJson(data));
}
- /**
- * Add user to the specified group.
- *
- * [request] - The metadata request object.
- *
- * Request parameters:
- *
- * [groupKey] - Email or immutable Id of the group
- *
- * Completes with a [Member].
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
+ /// Add user to the specified group.
+ ///
+ /// [request] - The metadata request object.
+ ///
+ /// Request parameters:
+ ///
+ /// [groupKey] - Email or immutable Id of the group
+ ///
+ /// Completes with a [Member].
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
async.Future<Member> insert(Member request, core.String groupKey) {
var _url = null;
var _queryParams = new core.Map();
@@ -1733,38 +1716,36 @@ class MembersResourceApi {
_url = 'groups/' + commons.Escaper.ecapeVariable('$groupKey') + '/members';
- var _response = _requester.request(_url,
- "POST",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ var _response = _requester.request(_url, "POST",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => new Member.fromJson(data));
}
- /**
- * Retrieve all members in a group (paginated)
- *
- * Request parameters:
- *
- * [groupKey] - Email or immutable Id of the group
- *
- * [maxResults] - Maximum number of results to return. Default is 200
- *
- * [pageToken] - Token to specify next page in the list
- *
- * [roles] - Comma separated role values to filter list results on.
- *
- * Completes with a [Members].
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
- async.Future<Members> list(core.String groupKey, {core.int maxResults, core.String pageToken, core.String roles}) {
+ /// Retrieve all members in a group (paginated)
+ ///
+ /// Request parameters:
+ ///
+ /// [groupKey] - Email or immutable Id of the group
+ ///
+ /// [maxResults] - Maximum number of results to return. Default is 200
+ ///
+ /// [pageToken] - Token to specify next page in the list
+ ///
+ /// [roles] - Comma separated role values to filter list results on.
+ ///
+ /// Completes with a [Members].
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
+ async.Future<Members> list(core.String groupKey,
+ {core.int maxResults, core.String pageToken, core.String roles}) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -1787,39 +1768,37 @@ class MembersResourceApi {
_url = 'groups/' + commons.Escaper.ecapeVariable('$groupKey') + '/members';
- var _response = _requester.request(_url,
- "GET",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ var _response = _requester.request(_url, "GET",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => new Members.fromJson(data));
}
- /**
- * Update membership of a user in the specified group. This method supports
- * patch semantics.
- *
- * [request] - The metadata request object.
- *
- * Request parameters:
- *
- * [groupKey] - Email or immutable Id of the group. If Id, it should match
- * with id of group object
- *
- * [memberKey] - Email or immutable Id of the user. If Id, it should match
- * with id of member object
- *
- * Completes with a [Member].
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
- async.Future<Member> patch(Member request, core.String groupKey, core.String memberKey) {
+ /// Update membership of a user in the specified group. This method supports
+ /// patch semantics.
+ ///
+ /// [request] - The metadata request object.
+ ///
+ /// Request parameters:
+ ///
+ /// [groupKey] - Email or immutable Id of the group. If Id, it should match
+ /// with id of group object
+ ///
+ /// [memberKey] - Email or immutable Id of the user. If Id, it should match
+ /// with id of member object
+ ///
+ /// Completes with a [Member].
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
+ async.Future<Member> patch(
+ Member request, core.String groupKey, core.String memberKey) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -1837,40 +1816,41 @@ class MembersResourceApi {
throw new core.ArgumentError("Parameter memberKey is required.");
}
- _url = 'groups/' + commons.Escaper.ecapeVariable('$groupKey') + '/members/' + commons.Escaper.ecapeVariable('$memberKey');
+ _url = 'groups/' +
+ commons.Escaper.ecapeVariable('$groupKey') +
+ '/members/' +
+ commons.Escaper.ecapeVariable('$memberKey');
- var _response = _requester.request(_url,
- "PATCH",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ var _response = _requester.request(_url, "PATCH",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => new Member.fromJson(data));
}
- /**
- * Update membership of a user in the specified group.
- *
- * [request] - The metadata request object.
- *
- * Request parameters:
- *
- * [groupKey] - Email or immutable Id of the group. If Id, it should match
- * with id of group object
- *
- * [memberKey] - Email or immutable Id of the user. If Id, it should match
- * with id of member object
- *
- * Completes with a [Member].
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
- async.Future<Member> update(Member request, core.String groupKey, core.String memberKey) {
+ /// Update membership of a user in the specified group.
+ ///
+ /// [request] - The metadata request object.
+ ///
+ /// Request parameters:
+ ///
+ /// [groupKey] - Email or immutable Id of the group. If Id, it should match
+ /// with id of group object
+ ///
+ /// [memberKey] - Email or immutable Id of the user. If Id, it should match
+ /// with id of member object
+ ///
+ /// Completes with a [Member].
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
+ async.Future<Member> update(
+ Member request, core.String groupKey, core.String memberKey) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -1888,45 +1868,43 @@ class MembersResourceApi {
throw new core.ArgumentError("Parameter memberKey is required.");
}
- _url = 'groups/' + commons.Escaper.ecapeVariable('$groupKey') + '/members/' + commons.Escaper.ecapeVariable('$memberKey');
+ _url = 'groups/' +
+ commons.Escaper.ecapeVariable('$groupKey') +
+ '/members/' +
+ commons.Escaper.ecapeVariable('$memberKey');
- var _response = _requester.request(_url,
- "PUT",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ var _response = _requester.request(_url, "PUT",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => new Member.fromJson(data));
}
-
}
-
class MobiledevicesResourceApi {
final commons.ApiRequester _requester;
- MobiledevicesResourceApi(commons.ApiRequester client) :
- _requester = client;
-
- /**
- * Take action on Mobile Device
- *
- * [request] - The metadata request object.
- *
- * Request parameters:
- *
- * [customerId] - Immutable ID of the G Suite account
- *
- * [resourceId] - Immutable ID of Mobile Device
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
- async.Future action(MobileDeviceAction request, core.String customerId, core.String resourceId) {
+ MobiledevicesResourceApi(commons.ApiRequester client) : _requester = client;
+
+ /// Take action on Mobile Device
+ ///
+ /// [request] - The metadata request object.
+ ///
+ /// Request parameters:
+ ///
+ /// [customerId] - Immutable ID of the G Suite account
+ ///
+ /// [resourceId] - Immutable ID of Mobile Device
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
+ async.Future action(MobileDeviceAction request, core.String customerId,
+ core.String resourceId) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -1946,33 +1924,34 @@ class MobiledevicesResourceApi {
_downloadOptions = null;
- _url = 'customer/' + commons.Escaper.ecapeVariable('$customerId') + '/devices/mobile/' + commons.Escaper.ecapeVariable('$resourceId') + '/action';
-
- var _response = _requester.request(_url,
- "POST",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ _url = 'customer/' +
+ commons.Escaper.ecapeVariable('$customerId') +
+ '/devices/mobile/' +
+ commons.Escaper.ecapeVariable('$resourceId') +
+ '/action';
+
+ var _response = _requester.request(_url, "POST",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => null);
}
- /**
- * Delete Mobile Device
- *
- * Request parameters:
- *
- * [customerId] - Immutable ID of the G Suite account
- *
- * [resourceId] - Immutable ID of Mobile Device
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
+ /// Delete Mobile Device
+ ///
+ /// Request parameters:
+ ///
+ /// [customerId] - Immutable ID of the G Suite account
+ ///
+ /// [resourceId] - Immutable ID of Mobile Device
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
async.Future delete(core.String customerId, core.String resourceId) {
var _url = null;
var _queryParams = new core.Map();
@@ -1990,42 +1969,43 @@ class MobiledevicesResourceApi {
_downloadOptions = null;
- _url = 'customer/' + commons.Escaper.ecapeVariable('$customerId') + '/devices/mobile/' + commons.Escaper.ecapeVariable('$resourceId');
-
- var _response = _requester.request(_url,
- "DELETE",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ _url = 'customer/' +
+ commons.Escaper.ecapeVariable('$customerId') +
+ '/devices/mobile/' +
+ commons.Escaper.ecapeVariable('$resourceId');
+
+ var _response = _requester.request(_url, "DELETE",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => null);
}
- /**
- * Retrieve Mobile Device
- *
- * Request parameters:
- *
- * [customerId] - Immutable ID of the G Suite account
- *
- * [resourceId] - Immutable ID of Mobile Device
- *
- * [projection] - Restrict information returned to a set of selected fields.
- * Possible string values are:
- * - "BASIC" : Includes only the basic metadata fields (e.g., deviceId, model,
- * status, type, and status)
- * - "FULL" : Includes all metadata fields
- *
- * Completes with a [MobileDevice].
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
- async.Future<MobileDevice> get(core.String customerId, core.String resourceId, {core.String projection}) {
+ /// Retrieve Mobile Device
+ ///
+ /// Request parameters:
+ ///
+ /// [customerId] - Immutable ID of the G Suite account
+ ///
+ /// [resourceId] - Immutable ID of Mobile Device
+ ///
+ /// [projection] - Restrict information returned to a set of selected fields.
+ /// Possible string values are:
+ /// - "BASIC" : Includes only the basic metadata fields (e.g., deviceId,
+ /// model, status, type, and status)
+ /// - "FULL" : Includes all metadata fields
+ ///
+ /// Completes with a [MobileDevice].
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
+ async.Future<MobileDevice> get(core.String customerId, core.String resourceId,
+ {core.String projection}) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -2043,64 +2023,70 @@ class MobiledevicesResourceApi {
_queryParams["projection"] = [projection];
}
- _url = 'customer/' + commons.Escaper.ecapeVariable('$customerId') + '/devices/mobile/' + commons.Escaper.ecapeVariable('$resourceId');
+ _url = 'customer/' +
+ commons.Escaper.ecapeVariable('$customerId') +
+ '/devices/mobile/' +
+ commons.Escaper.ecapeVariable('$resourceId');
- var _response = _requester.request(_url,
- "GET",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ var _response = _requester.request(_url, "GET",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => new MobileDevice.fromJson(data));
}
- /**
- * Retrieve all Mobile Devices of a customer (paginated)
- *
- * Request parameters:
- *
- * [customerId] - Immutable ID of the G Suite account
- *
- * [maxResults] - Maximum number of results to return. Default is 100
- *
- * [orderBy] - Column to use for sorting results
- * Possible string values are:
- * - "deviceId" : Mobile Device serial number.
- * - "email" : Owner user email.
- * - "lastSync" : Last policy settings sync date time of the device.
- * - "model" : Mobile Device model.
- * - "name" : Owner user name.
- * - "os" : Mobile operating system.
- * - "status" : Status of the device.
- * - "type" : Type of the device.
- *
- * [pageToken] - Token to specify next page in the list
- *
- * [projection] - Restrict information returned to a set of selected fields.
- * Possible string values are:
- * - "BASIC" : Includes only the basic metadata fields (e.g., deviceId, model,
- * status, type, and status)
- * - "FULL" : Includes all metadata fields
- *
- * [query] - Search string in the format given at
- * http://support.google.com/a/bin/answer.py?hl=en&answer=1408863#search
- *
- * [sortOrder] - Whether to return results in ascending or descending order.
- * Only of use when orderBy is also used
- * Possible string values are:
- * - "ASCENDING" : Ascending order.
- * - "DESCENDING" : Descending order.
- *
- * Completes with a [MobileDevices].
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
- async.Future<MobileDevices> list(core.String customerId, {core.int maxResults, core.String orderBy, core.String pageToken, core.String projection, core.String query, core.String sortOrder}) {
+ /// Retrieve all Mobile Devices of a customer (paginated)
+ ///
+ /// Request parameters:
+ ///
+ /// [customerId] - Immutable ID of the G Suite account
+ ///
+ /// [maxResults] - Maximum number of results to return. Default is 100
+ ///
+ /// [orderBy] - Column to use for sorting results
+ /// Possible string values are:
+ /// - "deviceId" : Mobile Device serial number.
+ /// - "email" : Owner user email.
+ /// - "lastSync" : Last policy settings sync date time of the device.
+ /// - "model" : Mobile Device model.
+ /// - "name" : Owner user name.
+ /// - "os" : Mobile operating system.
+ /// - "status" : Status of the device.
+ /// - "type" : Type of the device.
+ ///
+ /// [pageToken] - Token to specify next page in the list
+ ///
+ /// [projection] - Restrict information returned to a set of selected fields.
+ /// Possible string values are:
+ /// - "BASIC" : Includes only the basic metadata fields (e.g., deviceId,
+ /// model, status, type, and status)
+ /// - "FULL" : Includes all metadata fields
+ ///
+ /// [query] - Search string in the format given at
+ /// http://support.google.com/a/bin/answer.py?hl=en&answer=1408863#search
+ ///
+ /// [sortOrder] - Whether to return results in ascending or descending order.
+ /// Only of use when orderBy is also used
+ /// Possible string values are:
+ /// - "ASCENDING" : Ascending order.
+ /// - "DESCENDING" : Descending order.
+ ///
+ /// Completes with a [MobileDevices].
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
+ async.Future<MobileDevices> list(core.String customerId,
+ {core.int maxResults,
+ core.String orderBy,
+ core.String pageToken,
+ core.String projection,
+ core.String query,
+ core.String sortOrder}) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -2130,43 +2116,39 @@ class MobiledevicesResourceApi {
_queryParams["sortOrder"] = [sortOrder];
}
- _url = 'customer/' + commons.Escaper.ecapeVariable('$customerId') + '/devices/mobile';
+ _url = 'customer/' +
+ commons.Escaper.ecapeVariable('$customerId') +
+ '/devices/mobile';
- var _response = _requester.request(_url,
- "GET",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ var _response = _requester.request(_url, "GET",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => new MobileDevices.fromJson(data));
}
-
}
-
class NotificationsResourceApi {
final commons.ApiRequester _requester;
- NotificationsResourceApi(commons.ApiRequester client) :
- _requester = client;
-
- /**
- * Deletes a notification
- *
- * Request parameters:
- *
- * [customer] - The unique ID for the customer's G Suite account. The
- * customerId is also returned as part of the Users resource.
- *
- * [notificationId] - The unique ID of the notification.
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
+ NotificationsResourceApi(commons.ApiRequester client) : _requester = client;
+
+ /// Deletes a notification
+ ///
+ /// Request parameters:
+ ///
+ /// [customer] - The unique ID for the customer's G Suite account. The
+ /// customerId is also returned as part of the Users resource.
+ ///
+ /// [notificationId] - The unique ID of the notification.
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
async.Future delete(core.String customer, core.String notificationId) {
var _url = null;
var _queryParams = new core.Map();
@@ -2184,37 +2166,38 @@ class NotificationsResourceApi {
_downloadOptions = null;
- _url = 'customer/' + commons.Escaper.ecapeVariable('$customer') + '/notifications/' + commons.Escaper.ecapeVariable('$notificationId');
-
- var _response = _requester.request(_url,
- "DELETE",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ _url = 'customer/' +
+ commons.Escaper.ecapeVariable('$customer') +
+ '/notifications/' +
+ commons.Escaper.ecapeVariable('$notificationId');
+
+ var _response = _requester.request(_url, "DELETE",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => null);
}
- /**
- * Retrieves a notification.
- *
- * Request parameters:
- *
- * [customer] - The unique ID for the customer's G Suite account. The
- * customerId is also returned as part of the Users resource.
- *
- * [notificationId] - The unique ID of the notification.
- *
- * Completes with a [Notification].
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
- async.Future<Notification> get(core.String customer, core.String notificationId) {
+ /// Retrieves a notification.
+ ///
+ /// Request parameters:
+ ///
+ /// [customer] - The unique ID for the customer's G Suite account. The
+ /// customerId is also returned as part of the Users resource.
+ ///
+ /// [notificationId] - The unique ID of the notification.
+ ///
+ /// Completes with a [Notification].
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
+ async.Future<Notification> get(
+ core.String customer, core.String notificationId) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -2229,42 +2212,43 @@ class NotificationsResourceApi {
throw new core.ArgumentError("Parameter notificationId is required.");
}
- _url = 'customer/' + commons.Escaper.ecapeVariable('$customer') + '/notifications/' + commons.Escaper.ecapeVariable('$notificationId');
+ _url = 'customer/' +
+ commons.Escaper.ecapeVariable('$customer') +
+ '/notifications/' +
+ commons.Escaper.ecapeVariable('$notificationId');
- var _response = _requester.request(_url,
- "GET",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ var _response = _requester.request(_url, "GET",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => new Notification.fromJson(data));
}
- /**
- * Retrieves a list of notifications.
- *
- * Request parameters:
- *
- * [customer] - The unique ID for the customer's G Suite account.
- *
- * [language] - The ISO 639-1 code of the language notifications are returned
- * in. The default is English (en).
- *
- * [maxResults] - Maximum number of notifications to return per page. The
- * default is 100.
- *
- * [pageToken] - The token to specify the page of results to retrieve.
- *
- * Completes with a [Notifications].
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
- async.Future<Notifications> list(core.String customer, {core.String language, core.int maxResults, core.String pageToken}) {
+ /// Retrieves a list of notifications.
+ ///
+ /// Request parameters:
+ ///
+ /// [customer] - The unique ID for the customer's G Suite account.
+ ///
+ /// [language] - The ISO 639-1 code of the language notifications are
+ /// returned in. The default is English (en).
+ ///
+ /// [maxResults] - Maximum number of notifications to return per page. The
+ /// default is 100.
+ ///
+ /// [pageToken] - The token to specify the page of results to retrieve.
+ ///
+ /// Completes with a [Notifications].
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
+ async.Future<Notifications> list(core.String customer,
+ {core.String language, core.int maxResults, core.String pageToken}) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -2285,38 +2269,38 @@ class NotificationsResourceApi {
_queryParams["pageToken"] = [pageToken];
}
- _url = 'customer/' + commons.Escaper.ecapeVariable('$customer') + '/notifications';
+ _url = 'customer/' +
+ commons.Escaper.ecapeVariable('$customer') +
+ '/notifications';
- var _response = _requester.request(_url,
- "GET",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ var _response = _requester.request(_url, "GET",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => new Notifications.fromJson(data));
}
- /**
- * Updates a notification. This method supports patch semantics.
- *
- * [request] - The metadata request object.
- *
- * Request parameters:
- *
- * [customer] - The unique ID for the customer's G Suite account.
- *
- * [notificationId] - The unique ID of the notification.
- *
- * Completes with a [Notification].
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
- async.Future<Notification> patch(Notification request, core.String customer, core.String notificationId) {
+ /// Updates a notification. This method supports patch semantics.
+ ///
+ /// [request] - The metadata request object.
+ ///
+ /// Request parameters:
+ ///
+ /// [customer] - The unique ID for the customer's G Suite account.
+ ///
+ /// [notificationId] - The unique ID of the notification.
+ ///
+ /// Completes with a [Notification].
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
+ async.Future<Notification> patch(
+ Notification request, core.String customer, core.String notificationId) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -2334,38 +2318,39 @@ class NotificationsResourceApi {
throw new core.ArgumentError("Parameter notificationId is required.");
}
- _url = 'customer/' + commons.Escaper.ecapeVariable('$customer') + '/notifications/' + commons.Escaper.ecapeVariable('$notificationId');
+ _url = 'customer/' +
+ commons.Escaper.ecapeVariable('$customer') +
+ '/notifications/' +
+ commons.Escaper.ecapeVariable('$notificationId');
- var _response = _requester.request(_url,
- "PATCH",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ var _response = _requester.request(_url, "PATCH",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => new Notification.fromJson(data));
}
- /**
- * Updates a notification.
- *
- * [request] - The metadata request object.
- *
- * Request parameters:
- *
- * [customer] - The unique ID for the customer's G Suite account.
- *
- * [notificationId] - The unique ID of the notification.
- *
- * Completes with a [Notification].
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
- async.Future<Notification> update(Notification request, core.String customer, core.String notificationId) {
+ /// Updates a notification.
+ ///
+ /// [request] - The metadata request object.
+ ///
+ /// Request parameters:
+ ///
+ /// [customer] - The unique ID for the customer's G Suite account.
+ ///
+ /// [notificationId] - The unique ID of the notification.
+ ///
+ /// Completes with a [Notification].
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
+ async.Future<Notification> update(
+ Notification request, core.String customer, core.String notificationId) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -2383,43 +2368,41 @@ class NotificationsResourceApi {
throw new core.ArgumentError("Parameter notificationId is required.");
}
- _url = 'customer/' + commons.Escaper.ecapeVariable('$customer') + '/notifications/' + commons.Escaper.ecapeVariable('$notificationId');
+ _url = 'customer/' +
+ commons.Escaper.ecapeVariable('$customer') +
+ '/notifications/' +
+ commons.Escaper.ecapeVariable('$notificationId');
- var _response = _requester.request(_url,
- "PUT",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ var _response = _requester.request(_url, "PUT",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => new Notification.fromJson(data));
}
-
}
-
class OrgunitsResourceApi {
final commons.ApiRequester _requester;
- OrgunitsResourceApi(commons.ApiRequester client) :
- _requester = client;
-
- /**
- * Remove Organization Unit
- *
- * Request parameters:
- *
- * [customerId] - Immutable ID of the G Suite account
- *
- * [orgUnitPath] - Full path of the organization unit or its Id
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
- async.Future delete(core.String customerId, core.List<core.String> orgUnitPath) {
+ OrgunitsResourceApi(commons.ApiRequester client) : _requester = client;
+
+ /// Remove Organization Unit
+ ///
+ /// Request parameters:
+ ///
+ /// [customerId] - Immutable ID of the G Suite account
+ ///
+ /// [orgUnitPath] - Full path of the organization unit or its Id
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
+ async.Future delete(
+ core.String customerId, core.List<core.String> orgUnitPath) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -2436,36 +2419,40 @@ class OrgunitsResourceApi {
_downloadOptions = null;
- _url = 'customer/' + commons.Escaper.ecapeVariable('$customerId') + '/orgunits' + '/' + (orgUnitPath).map((item) => commons.Escaper.ecapePathComponent(item)).join('/');
-
- var _response = _requester.request(_url,
- "DELETE",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ _url = 'customer/' +
+ commons.Escaper.ecapeVariable('$customerId') +
+ '/orgunits' +
+ '/' +
+ (orgUnitPath)
+ .map((item) => commons.Escaper.ecapePathComponent(item))
+ .join('/');
+
+ var _response = _requester.request(_url, "DELETE",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => null);
}
- /**
- * Retrieve Organization Unit
- *
- * Request parameters:
- *
- * [customerId] - Immutable ID of the G Suite account
- *
- * [orgUnitPath] - Full path of the organization unit or its Id
- *
- * Completes with a [OrgUnit].
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
- async.Future<OrgUnit> get(core.String customerId, core.List<core.String> orgUnitPath) {
+ /// Retrieve Organization Unit
+ ///
+ /// Request parameters:
+ ///
+ /// [customerId] - Immutable ID of the G Suite account
+ ///
+ /// [orgUnitPath] - Full path of the organization unit or its Id
+ ///
+ /// Completes with a [OrgUnit].
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
+ async.Future<OrgUnit> get(
+ core.String customerId, core.List<core.String> orgUnitPath) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -2480,35 +2467,38 @@ class OrgunitsResourceApi {
throw new core.ArgumentError("Parameter orgUnitPath is required.");
}
- _url = 'customer/' + commons.Escaper.ecapeVariable('$customerId') + '/orgunits' + '/' + (orgUnitPath).map((item) => commons.Escaper.ecapePathComponent(item)).join('/');
-
- var _response = _requester.request(_url,
- "GET",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ _url = 'customer/' +
+ commons.Escaper.ecapeVariable('$customerId') +
+ '/orgunits' +
+ '/' +
+ (orgUnitPath)
+ .map((item) => commons.Escaper.ecapePathComponent(item))
+ .join('/');
+
+ var _response = _requester.request(_url, "GET",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => new OrgUnit.fromJson(data));
}
- /**
- * Add Organization Unit
- *
- * [request] - The metadata request object.
- *
- * Request parameters:
- *
- * [customerId] - Immutable ID of the G Suite account
- *
- * Completes with a [OrgUnit].
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
+ /// Add Organization Unit
+ ///
+ /// [request] - The metadata request object.
+ ///
+ /// Request parameters:
+ ///
+ /// [customerId] - Immutable ID of the G Suite account
+ ///
+ /// Completes with a [OrgUnit].
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
async.Future<OrgUnit> insert(OrgUnit request, core.String customerId) {
var _url = null;
var _queryParams = new core.Map();
@@ -2524,41 +2514,42 @@ class OrgunitsResourceApi {
throw new core.ArgumentError("Parameter customerId is required.");
}
- _url = 'customer/' + commons.Escaper.ecapeVariable('$customerId') + '/orgunits';
+ _url = 'customer/' +
+ commons.Escaper.ecapeVariable('$customerId') +
+ '/orgunits';
- var _response = _requester.request(_url,
- "POST",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ var _response = _requester.request(_url, "POST",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => new OrgUnit.fromJson(data));
}
- /**
- * Retrieve all Organization Units
- *
- * Request parameters:
- *
- * [customerId] - Immutable ID of the G Suite account
- *
- * [orgUnitPath] - the URL-encoded organization unit's path or its Id
- *
- * [type] - Whether to return all sub-organizations or just immediate children
- * Possible string values are:
- * - "all" : All sub-organization units.
- * - "children" : Immediate children only (default).
- *
- * Completes with a [OrgUnits].
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
- async.Future<OrgUnits> list(core.String customerId, {core.String orgUnitPath, core.String type}) {
+ /// Retrieve all Organization Units
+ ///
+ /// Request parameters:
+ ///
+ /// [customerId] - Immutable ID of the G Suite account
+ ///
+ /// [orgUnitPath] - the URL-encoded organization unit's path or its Id
+ ///
+ /// [type] - Whether to return all sub-organizations or just immediate
+ /// children
+ /// Possible string values are:
+ /// - "all" : All sub-organization units.
+ /// - "children" : Immediate children only (default).
+ ///
+ /// Completes with a [OrgUnits].
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
+ async.Future<OrgUnits> list(core.String customerId,
+ {core.String orgUnitPath, core.String type}) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -2576,38 +2567,38 @@ class OrgunitsResourceApi {
_queryParams["type"] = [type];
}
- _url = 'customer/' + commons.Escaper.ecapeVariable('$customerId') + '/orgunits';
+ _url = 'customer/' +
+ commons.Escaper.ecapeVariable('$customerId') +
+ '/orgunits';
- var _response = _requester.request(_url,
- "GET",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ var _response = _requester.request(_url, "GET",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => new OrgUnits.fromJson(data));
}
- /**
- * Update Organization Unit. This method supports patch semantics.
- *
- * [request] - The metadata request object.
- *
- * Request parameters:
- *
- * [customerId] - Immutable ID of the G Suite account
- *
- * [orgUnitPath] - Full path of the organization unit or its Id
- *
- * Completes with a [OrgUnit].
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
- async.Future<OrgUnit> patch(OrgUnit request, core.String customerId, core.List<core.String> orgUnitPath) {
+ /// Update Organization Unit. This method supports patch semantics.
+ ///
+ /// [request] - The metadata request object.
+ ///
+ /// Request parameters:
+ ///
+ /// [customerId] - Immutable ID of the G Suite account
+ ///
+ /// [orgUnitPath] - Full path of the organization unit or its Id
+ ///
+ /// Completes with a [OrgUnit].
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
+ async.Future<OrgUnit> patch(OrgUnit request, core.String customerId,
+ core.List<core.String> orgUnitPath) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -2625,38 +2616,42 @@ class OrgunitsResourceApi {
throw new core.ArgumentError("Parameter orgUnitPath is required.");
}
- _url = 'customer/' + commons.Escaper.ecapeVariable('$customerId') + '/orgunits' + '/' + (orgUnitPath).map((item) => commons.Escaper.ecapePathComponent(item)).join('/');
-
- var _response = _requester.request(_url,
- "PATCH",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ _url = 'customer/' +
+ commons.Escaper.ecapeVariable('$customerId') +
+ '/orgunits' +
+ '/' +
+ (orgUnitPath)
+ .map((item) => commons.Escaper.ecapePathComponent(item))
+ .join('/');
+
+ var _response = _requester.request(_url, "PATCH",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => new OrgUnit.fromJson(data));
}
- /**
- * Update Organization Unit
- *
- * [request] - The metadata request object.
- *
- * Request parameters:
- *
- * [customerId] - Immutable ID of the G Suite account
- *
- * [orgUnitPath] - Full path of the organization unit or its Id
- *
- * Completes with a [OrgUnit].
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
- async.Future<OrgUnit> update(OrgUnit request, core.String customerId, core.List<core.String> orgUnitPath) {
+ /// Update Organization Unit
+ ///
+ /// [request] - The metadata request object.
+ ///
+ /// Request parameters:
+ ///
+ /// [customerId] - Immutable ID of the G Suite account
+ ///
+ /// [orgUnitPath] - Full path of the organization unit or its Id
+ ///
+ /// Completes with a [OrgUnit].
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
+ async.Future<OrgUnit> update(OrgUnit request, core.String customerId,
+ core.List<core.String> orgUnitPath) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -2674,42 +2669,42 @@ class OrgunitsResourceApi {
throw new core.ArgumentError("Parameter orgUnitPath is required.");
}
- _url = 'customer/' + commons.Escaper.ecapeVariable('$customerId') + '/orgunits' + '/' + (orgUnitPath).map((item) => commons.Escaper.ecapePathComponent(item)).join('/');
-
- var _response = _requester.request(_url,
- "PUT",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ _url = 'customer/' +
+ commons.Escaper.ecapeVariable('$customerId') +
+ '/orgunits' +
+ '/' +
+ (orgUnitPath)
+ .map((item) => commons.Escaper.ecapePathComponent(item))
+ .join('/');
+
+ var _response = _requester.request(_url, "PUT",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => new OrgUnit.fromJson(data));
}
-
}
-
class PrivilegesResourceApi {
final commons.ApiRequester _requester;
- PrivilegesResourceApi(commons.ApiRequester client) :
- _requester = client;
-
- /**
- * Retrieves a paginated list of all privileges for a customer.
- *
- * Request parameters:
- *
- * [customer] - Immutable ID of the G Suite account.
- *
- * Completes with a [Privileges].
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
+ PrivilegesResourceApi(commons.ApiRequester client) : _requester = client;
+
+ /// Retrieves a paginated list of all privileges for a customer.
+ ///
+ /// Request parameters:
+ ///
+ /// [customer] - Immutable ID of the G Suite account.
+ ///
+ /// Completes with a [Privileges].
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
async.Future<Privileges> list(core.String customer) {
var _url = null;
var _queryParams = new core.Map();
@@ -2722,54 +2717,50 @@ class PrivilegesResourceApi {
throw new core.ArgumentError("Parameter customer is required.");
}
- _url = 'customer/' + commons.Escaper.ecapeVariable('$customer') + '/roles/ALL/privileges';
+ _url = 'customer/' +
+ commons.Escaper.ecapeVariable('$customer') +
+ '/roles/ALL/privileges';
- var _response = _requester.request(_url,
- "GET",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ var _response = _requester.request(_url, "GET",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => new Privileges.fromJson(data));
}
-
}
-
class ResourcesResourceApi {
final commons.ApiRequester _requester;
- ResourcesCalendarsResourceApi get calendars => new ResourcesCalendarsResourceApi(_requester);
+ ResourcesCalendarsResourceApi get calendars =>
+ new ResourcesCalendarsResourceApi(_requester);
- ResourcesResourceApi(commons.ApiRequester client) :
- _requester = client;
+ ResourcesResourceApi(commons.ApiRequester client) : _requester = client;
}
-
class ResourcesCalendarsResourceApi {
final commons.ApiRequester _requester;
- ResourcesCalendarsResourceApi(commons.ApiRequester client) :
- _requester = client;
-
- /**
- * Deletes a calendar resource.
- *
- * Request parameters:
- *
- * [customer] - The unique ID for the customer's G Suite account. As an
- * account administrator, you can also use the my_customer alias to represent
- * your account's customer ID.
- *
- * [calendarResourceId] - The unique ID of the calendar resource to delete.
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
+ ResourcesCalendarsResourceApi(commons.ApiRequester client)
+ : _requester = client;
+
+ /// Deletes a calendar resource.
+ ///
+ /// Request parameters:
+ ///
+ /// [customer] - The unique ID for the customer's G Suite account. As an
+ /// account administrator, you can also use the my_customer alias to
+ /// represent your account's customer ID.
+ ///
+ /// [calendarResourceId] - The unique ID of the calendar resource to delete.
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
async.Future delete(core.String customer, core.String calendarResourceId) {
var _url = null;
var _queryParams = new core.Map();
@@ -2787,38 +2778,40 @@ class ResourcesCalendarsResourceApi {
_downloadOptions = null;
- _url = 'customer/' + commons.Escaper.ecapeVariable('$customer') + '/resources/calendars/' + commons.Escaper.ecapeVariable('$calendarResourceId');
-
- var _response = _requester.request(_url,
- "DELETE",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ _url = 'customer/' +
+ commons.Escaper.ecapeVariable('$customer') +
+ '/resources/calendars/' +
+ commons.Escaper.ecapeVariable('$calendarResourceId');
+
+ var _response = _requester.request(_url, "DELETE",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => null);
}
- /**
- * Retrieves a calendar resource.
- *
- * Request parameters:
- *
- * [customer] - The unique ID for the customer's G Suite account. As an
- * account administrator, you can also use the my_customer alias to represent
- * your account's customer ID.
- *
- * [calendarResourceId] - The unique ID of the calendar resource to retrieve.
- *
- * Completes with a [CalendarResource].
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
- async.Future<CalendarResource> get(core.String customer, core.String calendarResourceId) {
+ /// Retrieves a calendar resource.
+ ///
+ /// Request parameters:
+ ///
+ /// [customer] - The unique ID for the customer's G Suite account. As an
+ /// account administrator, you can also use the my_customer alias to
+ /// represent your account's customer ID.
+ ///
+ /// [calendarResourceId] - The unique ID of the calendar resource to
+ /// retrieve.
+ ///
+ /// Completes with a [CalendarResource].
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
+ async.Future<CalendarResource> get(
+ core.String customer, core.String calendarResourceId) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -2833,38 +2826,39 @@ class ResourcesCalendarsResourceApi {
throw new core.ArgumentError("Parameter calendarResourceId is required.");
}
- _url = 'customer/' + commons.Escaper.ecapeVariable('$customer') + '/resources/calendars/' + commons.Escaper.ecapeVariable('$calendarResourceId');
+ _url = 'customer/' +
+ commons.Escaper.ecapeVariable('$customer') +
+ '/resources/calendars/' +
+ commons.Escaper.ecapeVariable('$calendarResourceId');
- var _response = _requester.request(_url,
- "GET",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ var _response = _requester.request(_url, "GET",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => new CalendarResource.fromJson(data));
}
- /**
- * Inserts a calendar resource.
- *
- * [request] - The metadata request object.
- *
- * Request parameters:
- *
- * [customer] - The unique ID for the customer's G Suite account. As an
- * account administrator, you can also use the my_customer alias to represent
- * your account's customer ID.
- *
- * Completes with a [CalendarResource].
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
- async.Future<CalendarResource> insert(CalendarResource request, core.String customer) {
+ /// Inserts a calendar resource.
+ ///
+ /// [request] - The metadata request object.
+ ///
+ /// Request parameters:
+ ///
+ /// [customer] - The unique ID for the customer's G Suite account. As an
+ /// account administrator, you can also use the my_customer alias to
+ /// represent your account's customer ID.
+ ///
+ /// Completes with a [CalendarResource].
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
+ async.Future<CalendarResource> insert(
+ CalendarResource request, core.String customer) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -2879,41 +2873,41 @@ class ResourcesCalendarsResourceApi {
throw new core.ArgumentError("Parameter customer is required.");
}
- _url = 'customer/' + commons.Escaper.ecapeVariable('$customer') + '/resources/calendars';
+ _url = 'customer/' +
+ commons.Escaper.ecapeVariable('$customer') +
+ '/resources/calendars';
- var _response = _requester.request(_url,
- "POST",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ var _response = _requester.request(_url, "POST",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => new CalendarResource.fromJson(data));
}
- /**
- * Retrieves a list of calendar resources for an account.
- *
- * Request parameters:
- *
- * [customer] - The unique ID for the customer's G Suite account. As an
- * account administrator, you can also use the my_customer alias to represent
- * your account's customer ID.
- *
- * [maxResults] - Maximum number of results to return.
- * Value must be between "1" and "500".
- *
- * [pageToken] - Token to specify the next page in the list.
- *
- * Completes with a [CalendarResources].
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
- async.Future<CalendarResources> list(core.String customer, {core.int maxResults, core.String pageToken}) {
+ /// Retrieves a list of calendar resources for an account.
+ ///
+ /// Request parameters:
+ ///
+ /// [customer] - The unique ID for the customer's G Suite account. As an
+ /// account administrator, you can also use the my_customer alias to
+ /// represent your account's customer ID.
+ ///
+ /// [maxResults] - Maximum number of results to return.
+ /// Value must be between "1" and "500".
+ ///
+ /// [pageToken] - Token to specify the next page in the list.
+ ///
+ /// Completes with a [CalendarResources].
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
+ async.Future<CalendarResources> list(core.String customer,
+ {core.int maxResults, core.String pageToken}) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -2931,40 +2925,40 @@ class ResourcesCalendarsResourceApi {
_queryParams["pageToken"] = [pageToken];
}
- _url = 'customer/' + commons.Escaper.ecapeVariable('$customer') + '/resources/calendars';
+ _url = 'customer/' +
+ commons.Escaper.ecapeVariable('$customer') +
+ '/resources/calendars';
- var _response = _requester.request(_url,
- "GET",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ var _response = _requester.request(_url, "GET",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => new CalendarResources.fromJson(data));
}
- /**
- * Updates a calendar resource. This method supports patch semantics.
- *
- * [request] - The metadata request object.
- *
- * Request parameters:
- *
- * [customer] - The unique ID for the customer's G Suite account. As an
- * account administrator, you can also use the my_customer alias to represent
- * your account's customer ID.
- *
- * [calendarResourceId] - The unique ID of the calendar resource to update.
- *
- * Completes with a [CalendarResource].
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
- async.Future<CalendarResource> patch(CalendarResource request, core.String customer, core.String calendarResourceId) {
+ /// Updates a calendar resource. This method supports patch semantics.
+ ///
+ /// [request] - The metadata request object.
+ ///
+ /// Request parameters:
+ ///
+ /// [customer] - The unique ID for the customer's G Suite account. As an
+ /// account administrator, you can also use the my_customer alias to
+ /// represent your account's customer ID.
+ ///
+ /// [calendarResourceId] - The unique ID of the calendar resource to update.
+ ///
+ /// Completes with a [CalendarResource].
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
+ async.Future<CalendarResource> patch(CalendarResource request,
+ core.String customer, core.String calendarResourceId) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -2982,40 +2976,41 @@ class ResourcesCalendarsResourceApi {
throw new core.ArgumentError("Parameter calendarResourceId is required.");
}
- _url = 'customer/' + commons.Escaper.ecapeVariable('$customer') + '/resources/calendars/' + commons.Escaper.ecapeVariable('$calendarResourceId');
+ _url = 'customer/' +
+ commons.Escaper.ecapeVariable('$customer') +
+ '/resources/calendars/' +
+ commons.Escaper.ecapeVariable('$calendarResourceId');
- var _response = _requester.request(_url,
- "PATCH",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ var _response = _requester.request(_url, "PATCH",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => new CalendarResource.fromJson(data));
}
- /**
- * Updates a calendar resource.
- *
- * [request] - The metadata request object.
- *
- * Request parameters:
- *
- * [customer] - The unique ID for the customer's G Suite account. As an
- * account administrator, you can also use the my_customer alias to represent
- * your account's customer ID.
- *
- * [calendarResourceId] - The unique ID of the calendar resource to update.
- *
- * Completes with a [CalendarResource].
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
- async.Future<CalendarResource> update(CalendarResource request, core.String customer, core.String calendarResourceId) {
+ /// Updates a calendar resource.
+ ///
+ /// [request] - The metadata request object.
+ ///
+ /// Request parameters:
+ ///
+ /// [customer] - The unique ID for the customer's G Suite account. As an
+ /// account administrator, you can also use the my_customer alias to
+ /// represent your account's customer ID.
+ ///
+ /// [calendarResourceId] - The unique ID of the calendar resource to update.
+ ///
+ /// Completes with a [CalendarResource].
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
+ async.Future<CalendarResource> update(CalendarResource request,
+ core.String customer, core.String calendarResourceId) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -3033,42 +3028,39 @@ class ResourcesCalendarsResourceApi {
throw new core.ArgumentError("Parameter calendarResourceId is required.");
}
- _url = 'customer/' + commons.Escaper.ecapeVariable('$customer') + '/resources/calendars/' + commons.Escaper.ecapeVariable('$calendarResourceId');
+ _url = 'customer/' +
+ commons.Escaper.ecapeVariable('$customer') +
+ '/resources/calendars/' +
+ commons.Escaper.ecapeVariable('$calendarResourceId');
- var _response = _requester.request(_url,
- "PUT",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ var _response = _requester.request(_url, "PUT",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => new CalendarResource.fromJson(data));
}
-
}
-
class RoleAssignmentsResourceApi {
final commons.ApiRequester _requester;
- RoleAssignmentsResourceApi(commons.ApiRequester client) :
- _requester = client;
-
- /**
- * Deletes a role assignment.
- *
- * Request parameters:
- *
- * [customer] - Immutable ID of the G Suite account.
- *
- * [roleAssignmentId] - Immutable ID of the role assignment.
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
+ RoleAssignmentsResourceApi(commons.ApiRequester client) : _requester = client;
+
+ /// Deletes a role assignment.
+ ///
+ /// Request parameters:
+ ///
+ /// [customer] - Immutable ID of the G Suite account.
+ ///
+ /// [roleAssignmentId] - Immutable ID of the role assignment.
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
async.Future delete(core.String customer, core.String roleAssignmentId) {
var _url = null;
var _queryParams = new core.Map();
@@ -3086,36 +3078,37 @@ class RoleAssignmentsResourceApi {
_downloadOptions = null;
- _url = 'customer/' + commons.Escaper.ecapeVariable('$customer') + '/roleassignments/' + commons.Escaper.ecapeVariable('$roleAssignmentId');
-
- var _response = _requester.request(_url,
- "DELETE",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ _url = 'customer/' +
+ commons.Escaper.ecapeVariable('$customer') +
+ '/roleassignments/' +
+ commons.Escaper.ecapeVariable('$roleAssignmentId');
+
+ var _response = _requester.request(_url, "DELETE",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => null);
}
- /**
- * Retrieve a role assignment.
- *
- * Request parameters:
- *
- * [customer] - Immutable ID of the G Suite account.
- *
- * [roleAssignmentId] - Immutable ID of the role assignment.
- *
- * Completes with a [RoleAssignment].
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
- async.Future<RoleAssignment> get(core.String customer, core.String roleAssignmentId) {
+ /// Retrieve a role assignment.
+ ///
+ /// Request parameters:
+ ///
+ /// [customer] - Immutable ID of the G Suite account.
+ ///
+ /// [roleAssignmentId] - Immutable ID of the role assignment.
+ ///
+ /// Completes with a [RoleAssignment].
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
+ async.Future<RoleAssignment> get(
+ core.String customer, core.String roleAssignmentId) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -3130,36 +3123,37 @@ class RoleAssignmentsResourceApi {
throw new core.ArgumentError("Parameter roleAssignmentId is required.");
}
- _url = 'customer/' + commons.Escaper.ecapeVariable('$customer') + '/roleassignments/' + commons.Escaper.ecapeVariable('$roleAssignmentId');
+ _url = 'customer/' +
+ commons.Escaper.ecapeVariable('$customer') +
+ '/roleassignments/' +
+ commons.Escaper.ecapeVariable('$roleAssignmentId');
- var _response = _requester.request(_url,
- "GET",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ var _response = _requester.request(_url, "GET",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => new RoleAssignment.fromJson(data));
}
- /**
- * Creates a role assignment.
- *
- * [request] - The metadata request object.
- *
- * Request parameters:
- *
- * [customer] - Immutable ID of the G Suite account.
- *
- * Completes with a [RoleAssignment].
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
- async.Future<RoleAssignment> insert(RoleAssignment request, core.String customer) {
+ /// Creates a role assignment.
+ ///
+ /// [request] - The metadata request object.
+ ///
+ /// Request parameters:
+ ///
+ /// [customer] - Immutable ID of the G Suite account.
+ ///
+ /// Completes with a [RoleAssignment].
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
+ async.Future<RoleAssignment> insert(
+ RoleAssignment request, core.String customer) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -3174,46 +3168,49 @@ class RoleAssignmentsResourceApi {
throw new core.ArgumentError("Parameter customer is required.");
}
- _url = 'customer/' + commons.Escaper.ecapeVariable('$customer') + '/roleassignments';
+ _url = 'customer/' +
+ commons.Escaper.ecapeVariable('$customer') +
+ '/roleassignments';
- var _response = _requester.request(_url,
- "POST",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ var _response = _requester.request(_url, "POST",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => new RoleAssignment.fromJson(data));
}
- /**
- * Retrieves a paginated list of all roleAssignments.
- *
- * Request parameters:
- *
- * [customer] - Immutable ID of the G Suite account.
- *
- * [maxResults] - Maximum number of results to return.
- * Value must be between "1" and "200".
- *
- * [pageToken] - Token to specify the next page in the list.
- *
- * [roleId] - Immutable ID of a role. If included in the request, returns only
- * role assignments containing this role ID.
- *
- * [userKey] - The user's primary email address, alias email address, or
- * unique user ID. If included in the request, returns role assignments only
- * for this user.
- *
- * Completes with a [RoleAssignments].
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
- async.Future<RoleAssignments> list(core.String customer, {core.int maxResults, core.String pageToken, core.String roleId, core.String userKey}) {
+ /// Retrieves a paginated list of all roleAssignments.
+ ///
+ /// Request parameters:
+ ///
+ /// [customer] - Immutable ID of the G Suite account.
+ ///
+ /// [maxResults] - Maximum number of results to return.
+ /// Value must be between "1" and "200".
+ ///
+ /// [pageToken] - Token to specify the next page in the list.
+ ///
+ /// [roleId] - Immutable ID of a role. If included in the request, returns
+ /// only role assignments containing this role ID.
+ ///
+ /// [userKey] - The user's primary email address, alias email address, or
+ /// unique user ID. If included in the request, returns role assignments only
+ /// for this user.
+ ///
+ /// Completes with a [RoleAssignments].
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
+ async.Future<RoleAssignments> list(core.String customer,
+ {core.int maxResults,
+ core.String pageToken,
+ core.String roleId,
+ core.String userKey}) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -3237,42 +3234,38 @@ class RoleAssignmentsResourceApi {
_queryParams["userKey"] = [userKey];
}
- _url = 'customer/' + commons.Escaper.ecapeVariable('$customer') + '/roleassignments';
+ _url = 'customer/' +
+ commons.Escaper.ecapeVariable('$customer') +
+ '/roleassignments';
- var _response = _requester.request(_url,
- "GET",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ var _response = _requester.request(_url, "GET",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => new RoleAssignments.fromJson(data));
}
-
}
-
class RolesResourceApi {
final commons.ApiRequester _requester;
- RolesResourceApi(commons.ApiRequester client) :
- _requester = client;
-
- /**
- * Deletes a role.
- *
- * Request parameters:
- *
- * [customer] - Immutable ID of the G Suite account.
- *
- * [roleId] - Immutable ID of the role.
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
+ RolesResourceApi(commons.ApiRequester client) : _requester = client;
+
+ /// Deletes a role.
+ ///
+ /// Request parameters:
+ ///
+ /// [customer] - Immutable ID of the G Suite account.
+ ///
+ /// [roleId] - Immutable ID of the role.
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
async.Future delete(core.String customer, core.String roleId) {
var _url = null;
var _queryParams = new core.Map();
@@ -3290,35 +3283,35 @@ class RolesResourceApi {
_downloadOptions = null;
- _url = 'customer/' + commons.Escaper.ecapeVariable('$customer') + '/roles/' + commons.Escaper.ecapeVariable('$roleId');
-
- var _response = _requester.request(_url,
- "DELETE",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ _url = 'customer/' +
+ commons.Escaper.ecapeVariable('$customer') +
+ '/roles/' +
+ commons.Escaper.ecapeVariable('$roleId');
+
+ var _response = _requester.request(_url, "DELETE",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => null);
}
- /**
- * Retrieves a role.
- *
- * Request parameters:
- *
- * [customer] - Immutable ID of the G Suite account.
- *
- * [roleId] - Immutable ID of the role.
- *
- * Completes with a [Role].
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
+ /// Retrieves a role.
+ ///
+ /// Request parameters:
+ ///
+ /// [customer] - Immutable ID of the G Suite account.
+ ///
+ /// [roleId] - Immutable ID of the role.
+ ///
+ /// Completes with a [Role].
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
async.Future<Role> get(core.String customer, core.String roleId) {
var _url = null;
var _queryParams = new core.Map();
@@ -3334,35 +3327,35 @@ class RolesResourceApi {
throw new core.ArgumentError("Parameter roleId is required.");
}
- _url = 'customer/' + commons.Escaper.ecapeVariable('$customer') + '/roles/' + commons.Escaper.ecapeVariable('$roleId');
+ _url = 'customer/' +
+ commons.Escaper.ecapeVariable('$customer') +
+ '/roles/' +
+ commons.Escaper.ecapeVariable('$roleId');
- var _response = _requester.request(_url,
- "GET",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ var _response = _requester.request(_url, "GET",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => new Role.fromJson(data));
}
- /**
- * Creates a role.
- *
- * [request] - The metadata request object.
- *
- * Request parameters:
- *
- * [customer] - Immutable ID of the G Suite account.
- *
- * Completes with a [Role].
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
+ /// Creates a role.
+ ///
+ /// [request] - The metadata request object.
+ ///
+ /// Request parameters:
+ ///
+ /// [customer] - Immutable ID of the G Suite account.
+ ///
+ /// Completes with a [Role].
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
async.Future<Role> insert(Role request, core.String customer) {
var _url = null;
var _queryParams = new core.Map();
@@ -3380,37 +3373,35 @@ class RolesResourceApi {
_url = 'customer/' + commons.Escaper.ecapeVariable('$customer') + '/roles';
- var _response = _requester.request(_url,
- "POST",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ var _response = _requester.request(_url, "POST",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => new Role.fromJson(data));
}
- /**
- * Retrieves a paginated list of all the roles in a domain.
- *
- * Request parameters:
- *
- * [customer] - Immutable ID of the G Suite account.
- *
- * [maxResults] - Maximum number of results to return.
- * Value must be between "1" and "100".
- *
- * [pageToken] - Token to specify the next page in the list.
- *
- * Completes with a [Roles].
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
- async.Future<Roles> list(core.String customer, {core.int maxResults, core.String pageToken}) {
+ /// Retrieves a paginated list of all the roles in a domain.
+ ///
+ /// Request parameters:
+ ///
+ /// [customer] - Immutable ID of the G Suite account.
+ ///
+ /// [maxResults] - Maximum number of results to return.
+ /// Value must be between "1" and "100".
+ ///
+ /// [pageToken] - Token to specify the next page in the list.
+ ///
+ /// Completes with a [Roles].
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
+ async.Future<Roles> list(core.String customer,
+ {core.int maxResults, core.String pageToken}) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -3430,36 +3421,34 @@ class RolesResourceApi {
_url = 'customer/' + commons.Escaper.ecapeVariable('$customer') + '/roles';
- var _response = _requester.request(_url,
- "GET",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ var _response = _requester.request(_url, "GET",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => new Roles.fromJson(data));
}
- /**
- * Updates a role. This method supports patch semantics.
- *
- * [request] - The metadata request object.
- *
- * Request parameters:
- *
- * [customer] - Immutable ID of the G Suite account.
- *
- * [roleId] - Immutable ID of the role.
- *
- * Completes with a [Role].
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
- async.Future<Role> patch(Role request, core.String customer, core.String roleId) {
+ /// Updates a role. This method supports patch semantics.
+ ///
+ /// [request] - The metadata request object.
+ ///
+ /// Request parameters:
+ ///
+ /// [customer] - Immutable ID of the G Suite account.
+ ///
+ /// [roleId] - Immutable ID of the role.
+ ///
+ /// Completes with a [Role].
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
+ async.Future<Role> patch(
+ Role request, core.String customer, core.String roleId) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -3477,38 +3466,39 @@ class RolesResourceApi {
throw new core.ArgumentError("Parameter roleId is required.");
}
- _url = 'customer/' + commons.Escaper.ecapeVariable('$customer') + '/roles/' + commons.Escaper.ecapeVariable('$roleId');
+ _url = 'customer/' +
+ commons.Escaper.ecapeVariable('$customer') +
+ '/roles/' +
+ commons.Escaper.ecapeVariable('$roleId');
- var _response = _requester.request(_url,
- "PATCH",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ var _response = _requester.request(_url, "PATCH",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => new Role.fromJson(data));
}
- /**
- * Updates a role.
- *
- * [request] - The metadata request object.
- *
- * Request parameters:
- *
- * [customer] - Immutable ID of the G Suite account.
- *
- * [roleId] - Immutable ID of the role.
- *
- * Completes with a [Role].
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
- async.Future<Role> update(Role request, core.String customer, core.String roleId) {
+ /// Updates a role.
+ ///
+ /// [request] - The metadata request object.
+ ///
+ /// Request parameters:
+ ///
+ /// [customer] - Immutable ID of the G Suite account.
+ ///
+ /// [roleId] - Immutable ID of the role.
+ ///
+ /// Completes with a [Role].
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
+ async.Future<Role> update(
+ Role request, core.String customer, core.String roleId) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -3526,42 +3516,39 @@ class RolesResourceApi {
throw new core.ArgumentError("Parameter roleId is required.");
}
- _url = 'customer/' + commons.Escaper.ecapeVariable('$customer') + '/roles/' + commons.Escaper.ecapeVariable('$roleId');
+ _url = 'customer/' +
+ commons.Escaper.ecapeVariable('$customer') +
+ '/roles/' +
+ commons.Escaper.ecapeVariable('$roleId');
- var _response = _requester.request(_url,
- "PUT",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ var _response = _requester.request(_url, "PUT",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => new Role.fromJson(data));
}
-
}
-
class SchemasResourceApi {
final commons.ApiRequester _requester;
- SchemasResourceApi(commons.ApiRequester client) :
- _requester = client;
-
- /**
- * Delete schema
- *
- * Request parameters:
- *
- * [customerId] - Immutable ID of the G Suite account
- *
- * [schemaKey] - Name or immutable Id of the schema
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
+ SchemasResourceApi(commons.ApiRequester client) : _requester = client;
+
+ /// Delete schema
+ ///
+ /// Request parameters:
+ ///
+ /// [customerId] - Immutable ID of the G Suite account
+ ///
+ /// [schemaKey] - Name or immutable Id of the schema
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
async.Future delete(core.String customerId, core.String schemaKey) {
var _url = null;
var _queryParams = new core.Map();
@@ -3579,35 +3566,35 @@ class SchemasResourceApi {
_downloadOptions = null;
- _url = 'customer/' + commons.Escaper.ecapeVariable('$customerId') + '/schemas/' + commons.Escaper.ecapeVariable('$schemaKey');
-
- var _response = _requester.request(_url,
- "DELETE",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ _url = 'customer/' +
+ commons.Escaper.ecapeVariable('$customerId') +
+ '/schemas/' +
+ commons.Escaper.ecapeVariable('$schemaKey');
+
+ var _response = _requester.request(_url, "DELETE",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => null);
}
- /**
- * Retrieve schema
- *
- * Request parameters:
- *
- * [customerId] - Immutable ID of the G Suite account
- *
- * [schemaKey] - Name or immutable Id of the schema
- *
- * Completes with a [Schema].
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
+ /// Retrieve schema
+ ///
+ /// Request parameters:
+ ///
+ /// [customerId] - Immutable ID of the G Suite account
+ ///
+ /// [schemaKey] - Name or immutable Id of the schema
+ ///
+ /// Completes with a [Schema].
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
async.Future<Schema> get(core.String customerId, core.String schemaKey) {
var _url = null;
var _queryParams = new core.Map();
@@ -3623,35 +3610,35 @@ class SchemasResourceApi {
throw new core.ArgumentError("Parameter schemaKey is required.");
}
- _url = 'customer/' + commons.Escaper.ecapeVariable('$customerId') + '/schemas/' + commons.Escaper.ecapeVariable('$schemaKey');
+ _url = 'customer/' +
+ commons.Escaper.ecapeVariable('$customerId') +
+ '/schemas/' +
+ commons.Escaper.ecapeVariable('$schemaKey');
- var _response = _requester.request(_url,
- "GET",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ var _response = _requester.request(_url, "GET",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => new Schema.fromJson(data));
}
- /**
- * Create schema.
- *
- * [request] - The metadata request object.
- *
- * Request parameters:
- *
- * [customerId] - Immutable ID of the G Suite account
- *
- * Completes with a [Schema].
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
+ /// Create schema.
+ ///
+ /// [request] - The metadata request object.
+ ///
+ /// Request parameters:
+ ///
+ /// [customerId] - Immutable ID of the G Suite account
+ ///
+ /// Completes with a [Schema].
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
async.Future<Schema> insert(Schema request, core.String customerId) {
var _url = null;
var _queryParams = new core.Map();
@@ -3667,33 +3654,31 @@ class SchemasResourceApi {
throw new core.ArgumentError("Parameter customerId is required.");
}
- _url = 'customer/' + commons.Escaper.ecapeVariable('$customerId') + '/schemas';
+ _url =
+ 'customer/' + commons.Escaper.ecapeVariable('$customerId') + '/schemas';
- var _response = _requester.request(_url,
- "POST",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ var _response = _requester.request(_url, "POST",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => new Schema.fromJson(data));
}
- /**
- * Retrieve all schemas for a customer
- *
- * Request parameters:
- *
- * [customerId] - Immutable ID of the G Suite account
- *
- * Completes with a [Schemas].
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
+ /// Retrieve all schemas for a customer
+ ///
+ /// Request parameters:
+ ///
+ /// [customerId] - Immutable ID of the G Suite account
+ ///
+ /// Completes with a [Schemas].
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
async.Future<Schemas> list(core.String customerId) {
var _url = null;
var _queryParams = new core.Map();
@@ -3706,38 +3691,37 @@ class SchemasResourceApi {
throw new core.ArgumentError("Parameter customerId is required.");
}
- _url = 'customer/' + commons.Escaper.ecapeVariable('$customerId') + '/schemas';
+ _url =
+ 'customer/' + commons.Escaper.ecapeVariable('$customerId') + '/schemas';
- var _response = _requester.request(_url,
- "GET",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ var _response = _requester.request(_url, "GET",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => new Schemas.fromJson(data));
}
- /**
- * Update schema. This method supports patch semantics.
- *
- * [request] - The metadata request object.
- *
- * Request parameters:
- *
- * [customerId] - Immutable ID of the G Suite account
- *
- * [schemaKey] - Name or immutable Id of the schema.
- *
- * Completes with a [Schema].
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
- async.Future<Schema> patch(Schema request, core.String customerId, core.String schemaKey) {
+ /// Update schema. This method supports patch semantics.
+ ///
+ /// [request] - The metadata request object.
+ ///
+ /// Request parameters:
+ ///
+ /// [customerId] - Immutable ID of the G Suite account
+ ///
+ /// [schemaKey] - Name or immutable Id of the schema.
+ ///
+ /// Completes with a [Schema].
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
+ async.Future<Schema> patch(
+ Schema request, core.String customerId, core.String schemaKey) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -3755,38 +3739,39 @@ class SchemasResourceApi {
throw new core.ArgumentError("Parameter schemaKey is required.");
}
- _url = 'customer/' + commons.Escaper.ecapeVariable('$customerId') + '/schemas/' + commons.Escaper.ecapeVariable('$schemaKey');
+ _url = 'customer/' +
+ commons.Escaper.ecapeVariable('$customerId') +
+ '/schemas/' +
+ commons.Escaper.ecapeVariable('$schemaKey');
- var _response = _requester.request(_url,
- "PATCH",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ var _response = _requester.request(_url, "PATCH",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => new Schema.fromJson(data));
}
- /**
- * Update schema
- *
- * [request] - The metadata request object.
- *
- * Request parameters:
- *
- * [customerId] - Immutable ID of the G Suite account
- *
- * [schemaKey] - Name or immutable Id of the schema.
- *
- * Completes with a [Schema].
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
- async.Future<Schema> update(Schema request, core.String customerId, core.String schemaKey) {
+ /// Update schema
+ ///
+ /// [request] - The metadata request object.
+ ///
+ /// Request parameters:
+ ///
+ /// [customerId] - Immutable ID of the G Suite account
+ ///
+ /// [schemaKey] - Name or immutable Id of the schema.
+ ///
+ /// Completes with a [Schema].
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
+ async.Future<Schema> update(
+ Schema request, core.String customerId, core.String schemaKey) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -3804,43 +3789,40 @@ class SchemasResourceApi {
throw new core.ArgumentError("Parameter schemaKey is required.");
}
- _url = 'customer/' + commons.Escaper.ecapeVariable('$customerId') + '/schemas/' + commons.Escaper.ecapeVariable('$schemaKey');
+ _url = 'customer/' +
+ commons.Escaper.ecapeVariable('$customerId') +
+ '/schemas/' +
+ commons.Escaper.ecapeVariable('$schemaKey');
- var _response = _requester.request(_url,
- "PUT",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ var _response = _requester.request(_url, "PUT",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => new Schema.fromJson(data));
}
-
}
-
class TokensResourceApi {
final commons.ApiRequester _requester;
- TokensResourceApi(commons.ApiRequester client) :
- _requester = client;
-
- /**
- * Delete all access tokens issued by a user for an application.
- *
- * Request parameters:
- *
- * [userKey] - Identifies the user in the API request. The value can be the
- * user's primary email address, alias email address, or unique user ID.
- *
- * [clientId] - The Client ID of the application the token is issued to.
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
+ TokensResourceApi(commons.ApiRequester client) : _requester = client;
+
+ /// Delete all access tokens issued by a user for an application.
+ ///
+ /// Request parameters:
+ ///
+ /// [userKey] - Identifies the user in the API request. The value can be the
+ /// user's primary email address, alias email address, or unique user ID.
+ ///
+ /// [clientId] - The Client ID of the application the token is issued to.
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
async.Future delete(core.String userKey, core.String clientId) {
var _url = null;
var _queryParams = new core.Map();
@@ -3858,36 +3840,36 @@ class TokensResourceApi {
_downloadOptions = null;
- _url = 'users/' + commons.Escaper.ecapeVariable('$userKey') + '/tokens/' + commons.Escaper.ecapeVariable('$clientId');
-
- var _response = _requester.request(_url,
- "DELETE",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ _url = 'users/' +
+ commons.Escaper.ecapeVariable('$userKey') +
+ '/tokens/' +
+ commons.Escaper.ecapeVariable('$clientId');
+
+ var _response = _requester.request(_url, "DELETE",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => null);
}
- /**
- * Get information about an access token issued by a user.
- *
- * Request parameters:
- *
- * [userKey] - Identifies the user in the API request. The value can be the
- * user's primary email address, alias email address, or unique user ID.
- *
- * [clientId] - The Client ID of the application the token is issued to.
- *
- * Completes with a [Token].
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
+ /// Get information about an access token issued by a user.
+ ///
+ /// Request parameters:
+ ///
+ /// [userKey] - Identifies the user in the API request. The value can be the
+ /// user's primary email address, alias email address, or unique user ID.
+ ///
+ /// [clientId] - The Client ID of the application the token is issued to.
+ ///
+ /// Completes with a [Token].
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
async.Future<Token> get(core.String userKey, core.String clientId) {
var _url = null;
var _queryParams = new core.Map();
@@ -3903,35 +3885,35 @@ class TokensResourceApi {
throw new core.ArgumentError("Parameter clientId is required.");
}
- _url = 'users/' + commons.Escaper.ecapeVariable('$userKey') + '/tokens/' + commons.Escaper.ecapeVariable('$clientId');
+ _url = 'users/' +
+ commons.Escaper.ecapeVariable('$userKey') +
+ '/tokens/' +
+ commons.Escaper.ecapeVariable('$clientId');
- var _response = _requester.request(_url,
- "GET",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ var _response = _requester.request(_url, "GET",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => new Token.fromJson(data));
}
- /**
- * Returns the set of tokens specified user has issued to 3rd party
- * applications.
- *
- * Request parameters:
- *
- * [userKey] - Identifies the user in the API request. The value can be the
- * user's primary email address, alias email address, or unique user ID.
- *
- * Completes with a [Tokens].
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
+ /// Returns the set of tokens specified user has issued to 3rd party
+ /// applications.
+ ///
+ /// Request parameters:
+ ///
+ /// [userKey] - Identifies the user in the API request. The value can be the
+ /// user's primary email address, alias email address, or unique user ID.
+ ///
+ /// Completes with a [Tokens].
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
async.Future<Tokens> list(core.String userKey) {
var _url = null;
var _queryParams = new core.Map();
@@ -3946,41 +3928,36 @@ class TokensResourceApi {
_url = 'users/' + commons.Escaper.ecapeVariable('$userKey') + '/tokens';
- var _response = _requester.request(_url,
- "GET",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ var _response = _requester.request(_url, "GET",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => new Tokens.fromJson(data));
}
-
}
-
class UsersResourceApi {
final commons.ApiRequester _requester;
- UsersAliasesResourceApi get aliases => new UsersAliasesResourceApi(_requester);
+ UsersAliasesResourceApi get aliases =>
+ new UsersAliasesResourceApi(_requester);
UsersPhotosResourceApi get photos => new UsersPhotosResourceApi(_requester);
- UsersResourceApi(commons.ApiRequester client) :
- _requester = client;
-
- /**
- * Delete user
- *
- * Request parameters:
- *
- * [userKey] - Email or immutable Id of the user
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
+ UsersResourceApi(commons.ApiRequester client) : _requester = client;
+
+ /// Delete user
+ ///
+ /// Request parameters:
+ ///
+ /// [userKey] - Email or immutable Id of the user
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
async.Future delete(core.String userKey) {
var _url = null;
var _queryParams = new core.Map();
@@ -3997,48 +3974,49 @@ class UsersResourceApi {
_url = 'users/' + commons.Escaper.ecapeVariable('$userKey');
- var _response = _requester.request(_url,
- "DELETE",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ var _response = _requester.request(_url, "DELETE",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => null);
}
- /**
- * retrieve user
- *
- * Request parameters:
- *
- * [userKey] - Email or immutable Id of the user
- *
- * [customFieldMask] - Comma-separated list of schema names. All fields from
- * these schemas are fetched. This should only be set when projection=custom.
- *
- * [projection] - What subset of fields to fetch for this user.
- * Possible string values are:
- * - "basic" : Do not include any custom fields for the user.
- * - "custom" : Include custom fields from schemas mentioned in
- * customFieldMask.
- * - "full" : Include all fields associated with this user.
- *
- * [viewType] - Whether to fetch the ADMIN_VIEW or DOMAIN_PUBLIC view of the
- * user.
- * Possible string values are:
- * - "admin_view" : Fetches the ADMIN_VIEW of the user.
- * - "domain_public" : Fetches the DOMAIN_PUBLIC view of the user.
- *
- * Completes with a [User].
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
- async.Future<User> get(core.String userKey, {core.String customFieldMask, core.String projection, core.String viewType}) {
+ /// retrieve user
+ ///
+ /// Request parameters:
+ ///
+ /// [userKey] - Email or immutable Id of the user
+ ///
+ /// [customFieldMask] - Comma-separated list of schema names. All fields from
+ /// these schemas are fetched. This should only be set when
+ /// projection=custom.
+ ///
+ /// [projection] - What subset of fields to fetch for this user.
+ /// Possible string values are:
+ /// - "basic" : Do not include any custom fields for the user.
+ /// - "custom" : Include custom fields from schemas mentioned in
+ /// customFieldMask.
+ /// - "full" : Include all fields associated with this user.
+ ///
+ /// [viewType] - Whether to fetch the ADMIN_VIEW or DOMAIN_PUBLIC view of the
+ /// user.
+ /// Possible string values are:
+ /// - "admin_view" : Fetches the ADMIN_VIEW of the user.
+ /// - "domain_public" : Fetches the DOMAIN_PUBLIC view of the user.
+ ///
+ /// Completes with a [User].
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
+ async.Future<User> get(core.String userKey,
+ {core.String customFieldMask,
+ core.String projection,
+ core.String viewType}) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -4061,31 +4039,28 @@ class UsersResourceApi {
_url = 'users/' + commons.Escaper.ecapeVariable('$userKey');
- var _response = _requester.request(_url,
- "GET",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ var _response = _requester.request(_url, "GET",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => new User.fromJson(data));
}
- /**
- * create user.
- *
- * [request] - The metadata request object.
- *
- * Request parameters:
- *
- * Completes with a [User].
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
+ /// create user.
+ ///
+ /// [request] - The metadata request object.
+ ///
+ /// Request parameters:
+ ///
+ /// Completes with a [User].
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
async.Future<User> insert(User request) {
var _url = null;
var _queryParams = new core.Map();
@@ -4100,84 +4075,96 @@ class UsersResourceApi {
_url = 'users';
- var _response = _requester.request(_url,
- "POST",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ var _response = _requester.request(_url, "POST",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => new User.fromJson(data));
}
- /**
- * Retrieve either deleted users or all users in a domain (paginated)
- *
- * Request parameters:
- *
- * [customFieldMask] - Comma-separated list of schema names. All fields from
- * these schemas are fetched. This should only be set when projection=custom.
- *
- * [customer] - Immutable ID of the G Suite account. In case of multi-domain,
- * to fetch all users for a customer, fill this field instead of domain.
- *
- * [domain] - Name of the domain. Fill this field to get users from only this
- * domain. To return all users in a multi-domain fill customer field instead.
- *
- * [event] - Event on which subscription is intended (if subscribing)
- * Possible string values are:
- * - "add" : User Created Event
- * - "delete" : User Deleted Event
- * - "makeAdmin" : User Admin Status Change Event
- * - "undelete" : User Undeleted Event
- * - "update" : User Updated Event
- *
- * [maxResults] - Maximum number of results to return. Default is 100. Max
- * allowed is 500
- * Value must be between "1" and "500".
- *
- * [orderBy] - Column to use for sorting results
- * Possible string values are:
- * - "email" : Primary email of the user.
- * - "familyName" : User's family name.
- * - "givenName" : User's given name.
- *
- * [pageToken] - Token to specify next page in the list
- *
- * [projection] - What subset of fields to fetch for this user.
- * Possible string values are:
- * - "basic" : Do not include any custom fields for the user.
- * - "custom" : Include custom fields from schemas mentioned in
- * customFieldMask.
- * - "full" : Include all fields associated with this user.
- *
- * [query] - Query string search. Should be of the form "". Complete
- * documentation is at
- * https://developers.google.com/admin-sdk/directory/v1/guides/search-users
- *
- * [showDeleted] - If set to true retrieves the list of deleted users. Default
- * is false
- *
- * [sortOrder] - Whether to return results in ascending or descending order.
- * Possible string values are:
- * - "ASCENDING" : Ascending order.
- * - "DESCENDING" : Descending order.
- *
- * [viewType] - Whether to fetch the ADMIN_VIEW or DOMAIN_PUBLIC view of the
- * user.
- * Possible string values are:
- * - "admin_view" : Fetches the ADMIN_VIEW of the user.
- * - "domain_public" : Fetches the DOMAIN_PUBLIC view of the user.
- *
- * Completes with a [Users].
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
- async.Future<Users> list({core.String customFieldMask, core.String customer, core.String domain, core.String event, core.int maxResults, core.String orderBy, core.String pageToken, core.String projection, core.String query, core.String showDeleted, core.String sortOrder, core.String viewType}) {
+ /// Retrieve either deleted users or all users in a domain (paginated)
+ ///
+ /// Request parameters:
+ ///
+ /// [customFieldMask] - Comma-separated list of schema names. All fields from
+ /// these schemas are fetched. This should only be set when
+ /// projection=custom.
+ ///
+ /// [customer] - Immutable ID of the G Suite account. In case of
+ /// multi-domain, to fetch all users for a customer, fill this field instead
+ /// of domain.
+ ///
+ /// [domain] - Name of the domain. Fill this field to get users from only
+ /// this domain. To return all users in a multi-domain fill customer field
+ /// instead.
+ ///
+ /// [event] - Event on which subscription is intended (if subscribing)
+ /// Possible string values are:
+ /// - "add" : User Created Event
+ /// - "delete" : User Deleted Event
+ /// - "makeAdmin" : User Admin Status Change Event
+ /// - "undelete" : User Undeleted Event
+ /// - "update" : User Updated Event
+ ///
+ /// [maxResults] - Maximum number of results to return. Default is 100. Max
+ /// allowed is 500
+ /// Value must be between "1" and "500".
+ ///
+ /// [orderBy] - Column to use for sorting results
+ /// Possible string values are:
+ /// - "email" : Primary email of the user.
+ /// - "familyName" : User's family name.
+ /// - "givenName" : User's given name.
+ ///
+ /// [pageToken] - Token to specify next page in the list
+ ///
+ /// [projection] - What subset of fields to fetch for this user.
+ /// Possible string values are:
+ /// - "basic" : Do not include any custom fields for the user.
+ /// - "custom" : Include custom fields from schemas mentioned in
+ /// customFieldMask.
+ /// - "full" : Include all fields associated with this user.
+ ///
+ /// [query] - Query string search. Should be of the form "". Complete
+ /// documentation is at
+ /// https://developers.google.com/admin-sdk/directory/v1/guides/search-users
+ ///
+ /// [showDeleted] - If set to true retrieves the list of deleted users.
+ /// Default is false
+ ///
+ /// [sortOrder] - Whether to return results in ascending or descending order.
+ /// Possible string values are:
+ /// - "ASCENDING" : Ascending order.
+ /// - "DESCENDING" : Descending order.
+ ///
+ /// [viewType] - Whether to fetch the ADMIN_VIEW or DOMAIN_PUBLIC view of the
+ /// user.
+ /// Possible string values are:
+ /// - "admin_view" : Fetches the ADMIN_VIEW of the user.
+ /// - "domain_public" : Fetches the DOMAIN_PUBLIC view of the user.
+ ///
+ /// Completes with a [Users].
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
+ async.Future<Users> list(
+ {core.String customFieldMask,
+ core.String customer,
+ core.String domain,
+ core.String event,
+ core.int maxResults,
+ core.String orderBy,
+ core.String pageToken,
+ core.String projection,
+ core.String query,
+ core.String showDeleted,
+ core.String sortOrder,
+ core.String viewType}) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -4224,31 +4211,28 @@ class UsersResourceApi {
_url = 'users';
- var _response = _requester.request(_url,
- "GET",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ var _response = _requester.request(_url, "GET",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => new Users.fromJson(data));
}
- /**
- * change admin status of a user
- *
- * [request] - The metadata request object.
- *
- * Request parameters:
- *
- * [userKey] - Email or immutable Id of the user as admin
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
+ /// change admin status of a user
+ ///
+ /// [request] - The metadata request object.
+ ///
+ /// Request parameters:
+ ///
+ /// [userKey] - Email or immutable Id of the user as admin
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
async.Future makeAdmin(UserMakeAdmin request, core.String userKey) {
var _url = null;
var _queryParams = new core.Map();
@@ -4268,34 +4252,31 @@ class UsersResourceApi {
_url = 'users/' + commons.Escaper.ecapeVariable('$userKey') + '/makeAdmin';
- var _response = _requester.request(_url,
- "POST",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ var _response = _requester.request(_url, "POST",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => null);
}
- /**
- * update user. This method supports patch semantics.
- *
- * [request] - The metadata request object.
- *
- * Request parameters:
- *
- * [userKey] - Email or immutable Id of the user. If Id, it should match with
- * id of user object
- *
- * Completes with a [User].
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
+ /// update user. This method supports patch semantics.
+ ///
+ /// [request] - The metadata request object.
+ ///
+ /// Request parameters:
+ ///
+ /// [userKey] - Email or immutable Id of the user. If Id, it should match
+ /// with id of user object
+ ///
+ /// Completes with a [User].
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
async.Future<User> patch(User request, core.String userKey) {
var _url = null;
var _queryParams = new core.Map();
@@ -4313,31 +4294,28 @@ class UsersResourceApi {
_url = 'users/' + commons.Escaper.ecapeVariable('$userKey');
- var _response = _requester.request(_url,
- "PATCH",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ var _response = _requester.request(_url, "PATCH",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => new User.fromJson(data));
}
- /**
- * Undelete a deleted user
- *
- * [request] - The metadata request object.
- *
- * Request parameters:
- *
- * [userKey] - The immutable id of the user
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
+ /// Undelete a deleted user
+ ///
+ /// [request] - The metadata request object.
+ ///
+ /// Request parameters:
+ ///
+ /// [userKey] - The immutable id of the user
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
async.Future undelete(UserUndelete request, core.String userKey) {
var _url = null;
var _queryParams = new core.Map();
@@ -4357,34 +4335,31 @@ class UsersResourceApi {
_url = 'users/' + commons.Escaper.ecapeVariable('$userKey') + '/undelete';
- var _response = _requester.request(_url,
- "POST",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ var _response = _requester.request(_url, "POST",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => null);
}
- /**
- * update user
- *
- * [request] - The metadata request object.
- *
- * Request parameters:
- *
- * [userKey] - Email or immutable Id of the user. If Id, it should match with
- * id of user object
- *
- * Completes with a [User].
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
+ /// update user
+ ///
+ /// [request] - The metadata request object.
+ ///
+ /// Request parameters:
+ ///
+ /// [userKey] - Email or immutable Id of the user. If Id, it should match
+ /// with id of user object
+ ///
+ /// Completes with a [User].
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
async.Future<User> update(User request, core.String userKey) {
var _url = null;
var _queryParams = new core.Map();
@@ -4402,86 +4377,98 @@ class UsersResourceApi {
_url = 'users/' + commons.Escaper.ecapeVariable('$userKey');
- var _response = _requester.request(_url,
- "PUT",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ var _response = _requester.request(_url, "PUT",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => new User.fromJson(data));
}
- /**
- * Watch for changes in users list
- *
- * [request] - The metadata request object.
- *
- * Request parameters:
- *
- * [customFieldMask] - Comma-separated list of schema names. All fields from
- * these schemas are fetched. This should only be set when projection=custom.
- *
- * [customer] - Immutable ID of the G Suite account. In case of multi-domain,
- * to fetch all users for a customer, fill this field instead of domain.
- *
- * [domain] - Name of the domain. Fill this field to get users from only this
- * domain. To return all users in a multi-domain fill customer field instead.
- *
- * [event] - Event on which subscription is intended (if subscribing)
- * Possible string values are:
- * - "add" : User Created Event
- * - "delete" : User Deleted Event
- * - "makeAdmin" : User Admin Status Change Event
- * - "undelete" : User Undeleted Event
- * - "update" : User Updated Event
- *
- * [maxResults] - Maximum number of results to return. Default is 100. Max
- * allowed is 500
- * Value must be between "1" and "500".
- *
- * [orderBy] - Column to use for sorting results
- * Possible string values are:
- * - "email" : Primary email of the user.
- * - "familyName" : User's family name.
- * - "givenName" : User's given name.
- *
- * [pageToken] - Token to specify next page in the list
- *
- * [projection] - What subset of fields to fetch for this user.
- * Possible string values are:
- * - "basic" : Do not include any custom fields for the user.
- * - "custom" : Include custom fields from schemas mentioned in
- * customFieldMask.
- * - "full" : Include all fields associated with this user.
- *
- * [query] - Query string search. Should be of the form "". Complete
- * documentation is at
- * https://developers.google.com/admin-sdk/directory/v1/guides/search-users
- *
- * [showDeleted] - If set to true retrieves the list of deleted users. Default
- * is false
- *
- * [sortOrder] - Whether to return results in ascending or descending order.
- * Possible string values are:
- * - "ASCENDING" : Ascending order.
- * - "DESCENDING" : Descending order.
- *
- * [viewType] - Whether to fetch the ADMIN_VIEW or DOMAIN_PUBLIC view of the
- * user.
- * Possible string values are:
- * - "admin_view" : Fetches the ADMIN_VIEW of the user.
- * - "domain_public" : Fetches the DOMAIN_PUBLIC view of the user.
- *
- * Completes with a [Channel].
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
- async.Future<Channel> watch(Channel request, {core.String customFieldMask, core.String customer, core.String domain, core.String event, core.int maxResults, core.String orderBy, core.String pageToken, core.String projection, core.String query, core.String showDeleted, core.String sortOrder, core.String viewType}) {
+ /// Watch for changes in users list
+ ///
+ /// [request] - The metadata request object.
+ ///
+ /// Request parameters:
+ ///
+ /// [customFieldMask] - Comma-separated list of schema names. All fields from
+ /// these schemas are fetched. This should only be set when
+ /// projection=custom.
+ ///
+ /// [customer] - Immutable ID of the G Suite account. In case of
+ /// multi-domain, to fetch all users for a customer, fill this field instead
+ /// of domain.
+ ///
+ /// [domain] - Name of the domain. Fill this field to get users from only
+ /// this domain. To return all users in a multi-domain fill customer field
+ /// instead.
+ ///
+ /// [event] - Event on which subscription is intended (if subscribing)
+ /// Possible string values are:
+ /// - "add" : User Created Event
+ /// - "delete" : User Deleted Event
+ /// - "makeAdmin" : User Admin Status Change Event
+ /// - "undelete" : User Undeleted Event
+ /// - "update" : User Updated Event
+ ///
+ /// [maxResults] - Maximum number of results to return. Default is 100. Max
+ /// allowed is 500
+ /// Value must be between "1" and "500".
+ ///
+ /// [orderBy] - Column to use for sorting results
+ /// Possible string values are:
+ /// - "email" : Primary email of the user.
+ /// - "familyName" : User's family name.
+ /// - "givenName" : User's given name.
+ ///
+ /// [pageToken] - Token to specify next page in the list
+ ///
+ /// [projection] - What subset of fields to fetch for this user.
+ /// Possible string values are:
+ /// - "basic" : Do not include any custom fields for the user.
+ /// - "custom" : Include custom fields from schemas mentioned in
+ /// customFieldMask.
+ /// - "full" : Include all fields associated with this user.
+ ///
+ /// [query] - Query string search. Should be of the form "". Complete
+ /// documentation is at
+ /// https://developers.google.com/admin-sdk/directory/v1/guides/search-users
+ ///
+ /// [showDeleted] - If set to true retrieves the list of deleted users.
+ /// Default is false
+ ///
+ /// [sortOrder] - Whether to return results in ascending or descending order.
+ /// Possible string values are:
+ /// - "ASCENDING" : Ascending order.
+ /// - "DESCENDING" : Descending order.
+ ///
+ /// [viewType] - Whether to fetch the ADMIN_VIEW or DOMAIN_PUBLIC view of the
+ /// user.
+ /// Possible string values are:
+ /// - "admin_view" : Fetches the ADMIN_VIEW of the user.
+ /// - "domain_public" : Fetches the DOMAIN_PUBLIC view of the user.
+ ///
+ /// Completes with a [Channel].
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
+ async.Future<Channel> watch(Channel request,
+ {core.String customFieldMask,
+ core.String customer,
+ core.String domain,
+ core.String event,
+ core.int maxResults,
+ core.String orderBy,
+ core.String pageToken,
+ core.String projection,
+ core.String query,
+ core.String showDeleted,
+ core.String sortOrder,
+ core.String viewType}) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -4531,40 +4518,34 @@ class UsersResourceApi {
_url = 'users/watch';
- var _response = _requester.request(_url,
- "POST",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ var _response = _requester.request(_url, "POST",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => new Channel.fromJson(data));
}
-
}
-
class UsersAliasesResourceApi {
final commons.ApiRequester _requester;
- UsersAliasesResourceApi(commons.ApiRequester client) :
- _requester = client;
-
- /**
- * Remove a alias for the user
- *
- * Request parameters:
- *
- * [userKey] - Email or immutable Id of the user
- *
- * [alias] - The alias to be removed
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
+ UsersAliasesResourceApi(commons.ApiRequester client) : _requester = client;
+
+ /// Remove a alias for the user
+ ///
+ /// Request parameters:
+ ///
+ /// [userKey] - Email or immutable Id of the user
+ ///
+ /// [alias] - The alias to be removed
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
async.Future delete(core.String userKey, core.String alias) {
var _url = null;
var _queryParams = new core.Map();
@@ -4582,35 +4563,35 @@ class UsersAliasesResourceApi {
_downloadOptions = null;
- _url = 'users/' + commons.Escaper.ecapeVariable('$userKey') + '/aliases/' + commons.Escaper.ecapeVariable('$alias');
-
- var _response = _requester.request(_url,
- "DELETE",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ _url = 'users/' +
+ commons.Escaper.ecapeVariable('$userKey') +
+ '/aliases/' +
+ commons.Escaper.ecapeVariable('$alias');
+
+ var _response = _requester.request(_url, "DELETE",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => null);
}
- /**
- * Add a alias for the user
- *
- * [request] - The metadata request object.
- *
- * Request parameters:
- *
- * [userKey] - Email or immutable Id of the user
- *
- * Completes with a [Alias].
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
+ /// Add a alias for the user
+ ///
+ /// [request] - The metadata request object.
+ ///
+ /// Request parameters:
+ ///
+ /// [userKey] - Email or immutable Id of the user
+ ///
+ /// Completes with a [Alias].
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
async.Future<Alias> insert(Alias request, core.String userKey) {
var _url = null;
var _queryParams = new core.Map();
@@ -4628,36 +4609,33 @@ class UsersAliasesResourceApi {
_url = 'users/' + commons.Escaper.ecapeVariable('$userKey') + '/aliases';
- var _response = _requester.request(_url,
- "POST",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ var _response = _requester.request(_url, "POST",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => new Alias.fromJson(data));
}
- /**
- * List all aliases for a user
- *
- * Request parameters:
- *
- * [userKey] - Email or immutable Id of the user
- *
- * [event] - Event on which subscription is intended (if subscribing)
- * Possible string values are:
- * - "add" : Alias Created Event
- * - "delete" : Alias Deleted Event
- *
- * Completes with a [Aliases].
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
+ /// List all aliases for a user
+ ///
+ /// Request parameters:
+ ///
+ /// [userKey] - Email or immutable Id of the user
+ ///
+ /// [event] - Event on which subscription is intended (if subscribing)
+ /// Possible string values are:
+ /// - "add" : Alias Created Event
+ /// - "delete" : Alias Deleted Event
+ ///
+ /// Completes with a [Aliases].
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
async.Future<Aliases> list(core.String userKey, {core.String event}) {
var _url = null;
var _queryParams = new core.Map();
@@ -4675,39 +4653,37 @@ class UsersAliasesResourceApi {
_url = 'users/' + commons.Escaper.ecapeVariable('$userKey') + '/aliases';
- var _response = _requester.request(_url,
- "GET",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ var _response = _requester.request(_url, "GET",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => new Aliases.fromJson(data));
}
- /**
- * Watch for changes in user aliases list
- *
- * [request] - The metadata request object.
- *
- * Request parameters:
- *
- * [userKey] - Email or immutable Id of the user
- *
- * [event] - Event on which subscription is intended (if subscribing)
- * Possible string values are:
- * - "add" : Alias Created Event
- * - "delete" : Alias Deleted Event
- *
- * Completes with a [Channel].
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
- async.Future<Channel> watch(Channel request, core.String userKey, {core.String event}) {
+ /// Watch for changes in user aliases list
+ ///
+ /// [request] - The metadata request object.
+ ///
+ /// Request parameters:
+ ///
+ /// [userKey] - Email or immutable Id of the user
+ ///
+ /// [event] - Event on which subscription is intended (if subscribing)
+ /// Possible string values are:
+ /// - "add" : Alias Created Event
+ /// - "delete" : Alias Deleted Event
+ ///
+ /// Completes with a [Channel].
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
+ async.Future<Channel> watch(Channel request, core.String userKey,
+ {core.String event}) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -4725,40 +4701,35 @@ class UsersAliasesResourceApi {
_queryParams["event"] = [event];
}
- _url = 'users/' + commons.Escaper.ecapeVariable('$userKey') + '/aliases/watch';
+ _url =
+ 'users/' + commons.Escaper.ecapeVariable('$userKey') + '/aliases/watch';
- var _response = _requester.request(_url,
- "POST",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ var _response = _requester.request(_url, "POST",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => new Channel.fromJson(data));
}
-
}
-
class UsersPhotosResourceApi {
final commons.ApiRequester _requester;
- UsersPhotosResourceApi(commons.ApiRequester client) :
- _requester = client;
-
- /**
- * Remove photos for the user
- *
- * Request parameters:
- *
- * [userKey] - Email or immutable Id of the user
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
+ UsersPhotosResourceApi(commons.ApiRequester client) : _requester = client;
+
+ /// Remove photos for the user
+ ///
+ /// Request parameters:
+ ///
+ /// [userKey] - Email or immutable Id of the user
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
async.Future delete(core.String userKey) {
var _url = null;
var _queryParams = new core.Map();
@@ -4773,33 +4744,32 @@ class UsersPhotosResourceApi {
_downloadOptions = null;
- _url = 'users/' + commons.Escaper.ecapeVariable('$userKey') + '/photos/thumbnail';
+ _url = 'users/' +
+ commons.Escaper.ecapeVariable('$userKey') +
+ '/photos/thumbnail';
- var _response = _requester.request(_url,
- "DELETE",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ var _response = _requester.request(_url, "DELETE",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => null);
}
- /**
- * Retrieve photo of a user
- *
- * Request parameters:
- *
- * [userKey] - Email or immutable Id of the user
- *
- * Completes with a [UserPhoto].
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
+ /// Retrieve photo of a user
+ ///
+ /// Request parameters:
+ ///
+ /// [userKey] - Email or immutable Id of the user
+ ///
+ /// Completes with a [UserPhoto].
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
async.Future<UserPhoto> get(core.String userKey) {
var _url = null;
var _queryParams = new core.Map();
@@ -4812,35 +4782,34 @@ class UsersPhotosResourceApi {
throw new core.ArgumentError("Parameter userKey is required.");
}
- _url = 'users/' + commons.Escaper.ecapeVariable('$userKey') + '/photos/thumbnail';
+ _url = 'users/' +
+ commons.Escaper.ecapeVariable('$userKey') +
+ '/photos/thumbnail';
- var _response = _requester.request(_url,
- "GET",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ var _response = _requester.request(_url, "GET",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => new UserPhoto.fromJson(data));
}
- /**
- * Add a photo for the user. This method supports patch semantics.
- *
- * [request] - The metadata request object.
- *
- * Request parameters:
- *
- * [userKey] - Email or immutable Id of the user
- *
- * Completes with a [UserPhoto].
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
+ /// Add a photo for the user. This method supports patch semantics.
+ ///
+ /// [request] - The metadata request object.
+ ///
+ /// Request parameters:
+ ///
+ /// [userKey] - Email or immutable Id of the user
+ ///
+ /// Completes with a [UserPhoto].
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
async.Future<UserPhoto> patch(UserPhoto request, core.String userKey) {
var _url = null;
var _queryParams = new core.Map();
@@ -4856,35 +4825,34 @@ class UsersPhotosResourceApi {
throw new core.ArgumentError("Parameter userKey is required.");
}
- _url = 'users/' + commons.Escaper.ecapeVariable('$userKey') + '/photos/thumbnail';
+ _url = 'users/' +
+ commons.Escaper.ecapeVariable('$userKey') +
+ '/photos/thumbnail';
- var _response = _requester.request(_url,
- "PATCH",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ var _response = _requester.request(_url, "PATCH",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => new UserPhoto.fromJson(data));
}
- /**
- * Add a photo for the user
- *
- * [request] - The metadata request object.
- *
- * Request parameters:
- *
- * [userKey] - Email or immutable Id of the user
- *
- * Completes with a [UserPhoto].
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
+ /// Add a photo for the user
+ ///
+ /// [request] - The metadata request object.
+ ///
+ /// Request parameters:
+ ///
+ /// [userKey] - Email or immutable Id of the user
+ ///
+ /// Completes with a [UserPhoto].
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
async.Future<UserPhoto> update(UserPhoto request, core.String userKey) {
var _url = null;
var _queryParams = new core.Map();
@@ -4900,40 +4868,37 @@ class UsersPhotosResourceApi {
throw new core.ArgumentError("Parameter userKey is required.");
}
- _url = 'users/' + commons.Escaper.ecapeVariable('$userKey') + '/photos/thumbnail';
+ _url = 'users/' +
+ commons.Escaper.ecapeVariable('$userKey') +
+ '/photos/thumbnail';
- var _response = _requester.request(_url,
- "PUT",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ var _response = _requester.request(_url, "PUT",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => new UserPhoto.fromJson(data));
}
-
}
-
class VerificationCodesResourceApi {
final commons.ApiRequester _requester;
- VerificationCodesResourceApi(commons.ApiRequester client) :
- _requester = client;
-
- /**
- * Generate new backup verification codes for the user.
- *
- * Request parameters:
- *
- * [userKey] - Email or immutable Id of the user
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
+ VerificationCodesResourceApi(commons.ApiRequester client)
+ : _requester = client;
+
+ /// Generate new backup verification codes for the user.
+ ///
+ /// Request parameters:
+ ///
+ /// [userKey] - Email or immutable Id of the user
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
async.Future generate(core.String userKey) {
var _url = null;
var _queryParams = new core.Map();
@@ -4948,31 +4913,30 @@ class VerificationCodesResourceApi {
_downloadOptions = null;
- _url = 'users/' + commons.Escaper.ecapeVariable('$userKey') + '/verificationCodes/generate';
+ _url = 'users/' +
+ commons.Escaper.ecapeVariable('$userKey') +
+ '/verificationCodes/generate';
- var _response = _requester.request(_url,
- "POST",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ var _response = _requester.request(_url, "POST",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => null);
}
- /**
- * Invalidate the current backup verification codes for the user.
- *
- * Request parameters:
- *
- * [userKey] - Email or immutable Id of the user
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
+ /// Invalidate the current backup verification codes for the user.
+ ///
+ /// Request parameters:
+ ///
+ /// [userKey] - Email or immutable Id of the user
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
async.Future invalidate(core.String userKey) {
var _url = null;
var _queryParams = new core.Map();
@@ -4987,35 +4951,34 @@ class VerificationCodesResourceApi {
_downloadOptions = null;
- _url = 'users/' + commons.Escaper.ecapeVariable('$userKey') + '/verificationCodes/invalidate';
+ _url = 'users/' +
+ commons.Escaper.ecapeVariable('$userKey') +
+ '/verificationCodes/invalidate';
- var _response = _requester.request(_url,
- "POST",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ var _response = _requester.request(_url, "POST",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => null);
}
- /**
- * Returns the current set of valid backup verification codes for the
- * specified user.
- *
- * Request parameters:
- *
- * [userKey] - Identifies the user in the API request. The value can be the
- * user's primary email address, alias email address, or unique user ID.
- *
- * Completes with a [VerificationCodes].
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
+ /// Returns the current set of valid backup verification codes for the
+ /// specified user.
+ ///
+ /// Request parameters:
+ ///
+ /// [userKey] - Identifies the user in the API request. The value can be the
+ /// user's primary email address, alias email address, or unique user ID.
+ ///
+ /// Completes with a [VerificationCodes].
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
async.Future<VerificationCodes> list(core.String userKey) {
var _url = null;
var _queryParams = new core.Map();
@@ -5028,33 +4991,35 @@ class VerificationCodesResourceApi {
throw new core.ArgumentError("Parameter userKey is required.");
}
- _url = 'users/' + commons.Escaper.ecapeVariable('$userKey') + '/verificationCodes';
+ _url = 'users/' +
+ commons.Escaper.ecapeVariable('$userKey') +
+ '/verificationCodes';
- var _response = _requester.request(_url,
- "GET",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ var _response = _requester.request(_url, "GET",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => new VerificationCodes.fromJson(data));
}
-
}
-
-
-/** JSON template for Alias object in Directory API. */
+/// JSON template for Alias object in Directory API.
class Alias {
- /** A alias email */
+ /// A alias email
core.String alias;
- /** ETag of the resource. */
+
+ /// ETag of the resource.
core.String etag;
- /** Unique id of the group (Read-only) Unique id of the user (Read-only) */
+
+ /// Unique id of the group (Read-only) Unique id of the user (Read-only)
core.String id;
- /** Kind of resource this is. */
+
+ /// Kind of resource this is.
core.String kind;
- /** Group's primary email (Read-only) User's primary email (Read-only) */
+
+ /// Group's primary email (Read-only) User's primary email (Read-only)
core.String primaryEmail;
Alias();
@@ -5078,7 +5043,8 @@ class Alias {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (alias != null) {
_json["alias"] = alias;
}
@@ -5098,18 +5064,18 @@ class Alias {
}
}
-/** JSON response template to list aliases in Directory API. */
+/// JSON response template to list aliases in Directory API.
class Aliases {
- /**
- * List of alias objects.
- *
- * The values for Object must be JSON objects. It can consist of `num`,
- * `String`, `bool` and `null` as well as `Map` and `List` values.
- */
+ /// List of alias objects.
+ ///
+ /// The values for Object must be JSON objects. It can consist of `num`,
+ /// `String`, `bool` and `null` as well as `Map` and `List` values.
core.List<core.Object> aliases;
- /** ETag of the resource. */
+
+ /// ETag of the resource.
core.String etag;
- /** Kind of resource this is. */
+
+ /// Kind of resource this is.
core.String kind;
Aliases();
@@ -5127,7 +5093,8 @@ class Aliases {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (aliases != null) {
_json["aliases"] = aliases;
}
@@ -5141,24 +5108,28 @@ class Aliases {
}
}
-/** The template that returns individual ASP (Access Code) data. */
+/// The template that returns individual ASP (Access Code) data.
class Asp {
- /** The unique ID of the ASP. */
+ /// The unique ID of the ASP.
core.int codeId;
- /** The time when the ASP was created. Expressed in Unix time format. */
+
+ /// The time when the ASP was created. Expressed in Unix time format.
core.String creationTime;
- /** ETag of the ASP. */
+
+ /// ETag of the ASP.
core.String etag;
- /** The type of the API resource. This is always admin#directory#asp. */
+
+ /// The type of the API resource. This is always admin#directory#asp.
core.String kind;
- /** The time when the ASP was last used. Expressed in Unix time format. */
+
+ /// The time when the ASP was last used. Expressed in Unix time format.
core.String lastTimeUsed;
- /**
- * The name of the application that the user, represented by their userId,
- * entered when the ASP was created.
- */
+
+ /// The name of the application that the user, represented by their userId,
+ /// entered when the ASP was created.
core.String name;
- /** The unique ID of the user who issued the ASP. */
+
+ /// The unique ID of the user who issued the ASP.
core.String userKey;
Asp();
@@ -5188,7 +5159,8 @@ class Asp {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (codeId != null) {
_json["codeId"] = codeId;
}
@@ -5215,11 +5187,13 @@ class Asp {
}
class Asps {
- /** ETag of the resource. */
+ /// ETag of the resource.
core.String etag;
- /** A list of ASP resources. */
+
+ /// A list of ASP resources.
core.List<Asp> items;
- /** The type of the API resource. This is always admin#directory#aspList. */
+
+ /// The type of the API resource. This is always admin#directory#aspList.
core.String kind;
Asps();
@@ -5237,7 +5211,8 @@ class Asps {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (etag != null) {
_json["etag"] = etag;
}
@@ -5251,30 +5226,30 @@ class Asps {
}
}
-/** JSON template for Calendar Resource object in Directory API. */
+/// JSON template for Calendar Resource object in Directory API.
class CalendarResource {
- /** ETag of the resource. */
+ /// ETag of the resource.
core.String etags;
- /**
- * The type of the resource. For calendar resources, the value is
- * admin#directory#resources#calendars#CalendarResource.
- */
+
+ /// The type of the resource. For calendar resources, the value is
+ /// admin#directory#resources#calendars#CalendarResource.
core.String kind;
- /** The brief description of the calendar resource. */
+
+ /// The brief description of the calendar resource.
core.String resourceDescription;
- /**
- * The read-only email ID for the calendar resource. Generated as part of
- * creating a new calendar resource.
- */
+
+ /// The read-only email ID for the calendar resource. Generated as part of
+ /// creating a new calendar resource.
core.String resourceEmail;
- /** The unique ID for the calendar resource. */
+
+ /// The unique ID for the calendar resource.
core.String resourceId;
- /** The name of the calendar resource. For example, Training Room 1A */
+
+ /// The name of the calendar resource. For example, Training Room 1A
core.String resourceName;
- /**
- * The type of the calendar resource. Used for grouping resources in the
- * calendar user interface.
- */
+
+ /// The type of the calendar resource. Used for grouping resources in the
+ /// calendar user interface.
core.String resourceType;
CalendarResource();
@@ -5304,7 +5279,8 @@ class CalendarResource {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (etags != null) {
_json["etags"] = etags;
}
@@ -5330,23 +5306,20 @@ class CalendarResource {
}
}
-/**
- * JSON template for Calendar Resource List Response object in Directory API.
- */
+/// JSON template for Calendar Resource List Response object in Directory API.
class CalendarResources {
- /** ETag of the resource. */
+ /// ETag of the resource.
core.String etag;
- /** The CalendarResources in this page of results. */
+
+ /// The CalendarResources in this page of results.
core.List<CalendarResource> items;
- /**
- * Identifies this as a collection of CalendarResources. This is always
- * admin#directory#resources#calendars#calendarResourcesList.
- */
+
+ /// Identifies this as a collection of CalendarResources. This is always
+ /// admin#directory#resources#calendars#calendarResourcesList.
core.String kind;
- /**
- * The continuation token, used to page through large result sets. Provide
- * this value in a subsequent request to return the next page of results.
- */
+
+ /// The continuation token, used to page through large result sets. Provide
+ /// this value in a subsequent request to return the next page of results.
core.String nextPageToken;
CalendarResources();
@@ -5356,7 +5329,9 @@ class CalendarResources {
etag = _json["etag"];
}
if (_json.containsKey("items")) {
- items = _json["items"].map((value) => new CalendarResource.fromJson(value)).toList();
+ items = _json["items"]
+ .map((value) => new CalendarResource.fromJson(value))
+ .toList();
}
if (_json.containsKey("kind")) {
kind = _json["kind"];
@@ -5367,7 +5342,8 @@ class CalendarResources {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (etag != null) {
_json["etag"] = etag;
}
@@ -5384,39 +5360,40 @@ class CalendarResources {
}
}
-/** An notification channel used to watch for resource changes. */
+/// An notification channel used to watch for resource changes.
class Channel {
- /** The address where notifications are delivered for this channel. */
+ /// The address where notifications are delivered for this channel.
core.String address;
- /**
- * Date and time of notification channel expiration, expressed as a Unix
- * timestamp, in milliseconds. Optional.
- */
+
+ /// Date and time of notification channel expiration, expressed as a Unix
+ /// timestamp, in milliseconds. Optional.
core.String expiration;
- /** A UUID or similar unique string that identifies this channel. */
+
+ /// A UUID or similar unique string that identifies this channel.
core.String id;
- /**
- * Identifies this as a notification channel used to watch for changes to a
- * resource. Value: the fixed string "api#channel".
- */
+
+ /// Identifies this as a notification channel used to watch for changes to a
+ /// resource. Value: the fixed string "api#channel".
core.String kind;
- /** Additional parameters controlling delivery channel behavior. Optional. */
+
+ /// Additional parameters controlling delivery channel behavior. Optional.
core.Map<core.String, core.String> params;
- /** A Boolean value to indicate whether payload is wanted. Optional. */
+
+ /// A Boolean value to indicate whether payload is wanted. Optional.
core.bool payload;
- /**
- * An opaque ID that identifies the resource being watched on this channel.
- * Stable across different API versions.
- */
+
+ /// An opaque ID that identifies the resource being watched on this channel.
+ /// Stable across different API versions.
core.String resourceId;
- /** A version-specific identifier for the watched resource. */
+
+ /// A version-specific identifier for the watched resource.
core.String resourceUri;
- /**
- * An arbitrary string delivered to the target address with each notification
- * delivered over this channel. Optional.
- */
+
+ /// An arbitrary string delivered to the target address with each
+ /// notification delivered over this channel. Optional.
core.String token;
- /** The type of delivery mechanism used for this channel. */
+
+ /// The type of delivery mechanism used for this channel.
core.String type;
Channel();
@@ -5455,7 +5432,8 @@ class Channel {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (address != null) {
_json["address"] = address;
}
@@ -5491,9 +5469,10 @@ class Channel {
}
class ChromeOsDeviceActiveTimeRanges {
- /** Duration in milliseconds */
+ /// Duration in milliseconds
core.int activeTime;
- /** Date of usage */
+
+ /// Date of usage
core.DateTime date;
ChromeOsDeviceActiveTimeRanges();
@@ -5508,21 +5487,24 @@ class ChromeOsDeviceActiveTimeRanges {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (activeTime != null) {
_json["activeTime"] = activeTime;
}
if (date != null) {
- _json["date"] = "${(date).year.toString().padLeft(4, '0')}-${(date).month.toString().padLeft(2, '0')}-${(date).day.toString().padLeft(2, '0')}";
+ _json["date"] =
+ "${(date).year.toString().padLeft(4, '0')}-${(date).month.toString().padLeft(2, '0')}-${(date).day.toString().padLeft(2, '0')}";
}
return _json;
}
}
class ChromeOsDeviceRecentUsers {
- /** Email address of the user. Present only if the user type is managed */
+ /// Email address of the user. Present only if the user type is managed
core.String email;
- /** The type of the user */
+
+ /// The type of the user
core.String type;
ChromeOsDeviceRecentUsers();
@@ -5537,7 +5519,8 @@ class ChromeOsDeviceRecentUsers {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (email != null) {
_json["email"] = email;
}
@@ -5548,73 +5531,93 @@ class ChromeOsDeviceRecentUsers {
}
}
-/** JSON template for Chrome Os Device resource in Directory API. */
+/// JSON template for Chrome Os Device resource in Directory API.
class ChromeOsDevice {
- /** List of active time ranges (Read-only) */
+ /// List of active time ranges (Read-only)
core.List<ChromeOsDeviceActiveTimeRanges> activeTimeRanges;
- /** AssetId specified during enrollment or through later annotation */
+
+ /// AssetId specified during enrollment or through later annotation
core.String annotatedAssetId;
- /** Address or location of the device as noted by the administrator */
+
+ /// Address or location of the device as noted by the administrator
core.String annotatedLocation;
- /** User of the device */
+
+ /// User of the device
core.String annotatedUser;
- /** Chromebook boot mode (Read-only) */
+
+ /// Chromebook boot mode (Read-only)
core.String bootMode;
- /** Unique identifier of Chrome OS Device (Read-only) */
+
+ /// Unique identifier of Chrome OS Device (Read-only)
core.String deviceId;
- /** ETag of the resource. */
+
+ /// ETag of the resource.
core.String etag;
- /** Chromebook Mac Address on ethernet network interface (Read-only) */
+
+ /// Chromebook Mac Address on ethernet network interface (Read-only)
core.String ethernetMacAddress;
- /** Chromebook firmware version (Read-only) */
+
+ /// Chromebook firmware version (Read-only)
core.String firmwareVersion;
- /** Kind of resource this is. */
+
+ /// Kind of resource this is.
core.String kind;
- /** Date and time the device was last enrolled (Read-only) */
+
+ /// Date and time the device was last enrolled (Read-only)
core.DateTime lastEnrollmentTime;
- /**
- * Date and time the device was last synchronized with the policy settings in
- * the G Suite administrator control panel (Read-only)
- */
+
+ /// Date and time the device was last synchronized with the policy settings
+ /// in the G Suite administrator control panel (Read-only)
core.DateTime lastSync;
- /** Chromebook Mac Address on wifi network interface (Read-only) */
+
+ /// Chromebook Mac Address on wifi network interface (Read-only)
core.String macAddress;
- /**
- * Mobile Equipment identifier for the 3G mobile card in the Chromebook
- * (Read-only)
- */
+
+ /// Mobile Equipment identifier for the 3G mobile card in the Chromebook
+ /// (Read-only)
core.String meid;
- /** Chromebook Model (Read-only) */
+
+ /// Chromebook Model (Read-only)
core.String model;
- /** Notes added by the administrator */
+
+ /// Notes added by the administrator
core.String notes;
- /** Chromebook order number (Read-only) */
+
+ /// Chromebook order number (Read-only)
core.String orderNumber;
- /** OrgUnit of the device */
+
+ /// OrgUnit of the device
core.String orgUnitPath;
- /** Chromebook Os Version (Read-only) */
+
+ /// Chromebook Os Version (Read-only)
core.String osVersion;
- /** Chromebook platform version (Read-only) */
+
+ /// Chromebook platform version (Read-only)
core.String platformVersion;
- /**
- * List of recent device users, in descending order by last login time
- * (Read-only)
- */
+
+ /// List of recent device users, in descending order by last login time
+ /// (Read-only)
core.List<ChromeOsDeviceRecentUsers> recentUsers;
- /** Chromebook serial number (Read-only) */
+
+ /// Chromebook serial number (Read-only)
core.String serialNumber;
- /** status of the device (Read-only) */
+
+ /// status of the device (Read-only)
core.String status;
- /** Final date the device will be supported (Read-only) */
+
+ /// Final date the device will be supported (Read-only)
core.DateTime supportEndDate;
- /** Will Chromebook auto renew after support end date (Read-only) */
+
+ /// Will Chromebook auto renew after support end date (Read-only)
core.bool willAutoRenew;
ChromeOsDevice();
ChromeOsDevice.fromJson(core.Map _json) {
if (_json.containsKey("activeTimeRanges")) {
- activeTimeRanges = _json["activeTimeRanges"].map((value) => new ChromeOsDeviceActiveTimeRanges.fromJson(value)).toList();
+ activeTimeRanges = _json["activeTimeRanges"]
+ .map((value) => new ChromeOsDeviceActiveTimeRanges.fromJson(value))
+ .toList();
}
if (_json.containsKey("annotatedAssetId")) {
annotatedAssetId = _json["annotatedAssetId"];
@@ -5674,7 +5677,9 @@ class ChromeOsDevice {
platformVersion = _json["platformVersion"];
}
if (_json.containsKey("recentUsers")) {
- recentUsers = _json["recentUsers"].map((value) => new ChromeOsDeviceRecentUsers.fromJson(value)).toList();
+ recentUsers = _json["recentUsers"]
+ .map((value) => new ChromeOsDeviceRecentUsers.fromJson(value))
+ .toList();
}
if (_json.containsKey("serialNumber")) {
serialNumber = _json["serialNumber"];
@@ -5691,9 +5696,11 @@ class ChromeOsDevice {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (activeTimeRanges != null) {
- _json["activeTimeRanges"] = activeTimeRanges.map((value) => (value).toJson()).toList();
+ _json["activeTimeRanges"] =
+ activeTimeRanges.map((value) => (value).toJson()).toList();
}
if (annotatedAssetId != null) {
_json["annotatedAssetId"] = annotatedAssetId;
@@ -5753,7 +5760,8 @@ class ChromeOsDevice {
_json["platformVersion"] = platformVersion;
}
if (recentUsers != null) {
- _json["recentUsers"] = recentUsers.map((value) => (value).toJson()).toList();
+ _json["recentUsers"] =
+ recentUsers.map((value) => (value).toJson()).toList();
}
if (serialNumber != null) {
_json["serialNumber"] = serialNumber;
@@ -5771,12 +5779,10 @@ class ChromeOsDevice {
}
}
-/**
- * JSON request template for firing actions on ChromeOs Device in Directory
- * Devices API.
- */
+/// JSON request template for firing actions on ChromeOs Device in Directory
+/// Devices API.
class ChromeOsDeviceAction {
- /** Action to be taken on the ChromeOs Device */
+ /// Action to be taken on the ChromeOs Device
core.String action;
core.String deprovisionReason;
@@ -5792,7 +5798,8 @@ class ChromeOsDeviceAction {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (action != null) {
_json["action"] = action;
}
@@ -5803,24 +5810,28 @@ class ChromeOsDeviceAction {
}
}
-/**
- * JSON response template for List Chrome OS Devices operation in Directory API.
- */
+/// JSON response template for List Chrome OS Devices operation in Directory
+/// API.
class ChromeOsDevices {
- /** List of Chrome OS Device objects. */
+ /// List of Chrome OS Device objects.
core.List<ChromeOsDevice> chromeosdevices;
- /** ETag of the resource. */
+
+ /// ETag of the resource.
core.String etag;
- /** Kind of resource this is. */
+
+ /// Kind of resource this is.
core.String kind;
- /** Token used to access next page of this result. */
+
+ /// Token used to access next page of this result.
core.String nextPageToken;
ChromeOsDevices();
ChromeOsDevices.fromJson(core.Map _json) {
if (_json.containsKey("chromeosdevices")) {
- chromeosdevices = _json["chromeosdevices"].map((value) => new ChromeOsDevice.fromJson(value)).toList();
+ chromeosdevices = _json["chromeosdevices"]
+ .map((value) => new ChromeOsDevice.fromJson(value))
+ .toList();
}
if (_json.containsKey("etag")) {
etag = _json["etag"];
@@ -5834,9 +5845,11 @@ class ChromeOsDevices {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (chromeosdevices != null) {
- _json["chromeosdevices"] = chromeosdevices.map((value) => (value).toJson()).toList();
+ _json["chromeosdevices"] =
+ chromeosdevices.map((value) => (value).toJson()).toList();
}
if (etag != null) {
_json["etag"] = etag;
@@ -5851,12 +5864,10 @@ class ChromeOsDevices {
}
}
-/**
- * JSON request template for moving ChromeOs Device to given OU in Directory
- * Devices API.
- */
+/// JSON request template for moving ChromeOs Device to given OU in Directory
+/// Devices API.
class ChromeOsMoveDevicesToOu {
- /** ChromeOs Devices to be moved to OU */
+ /// ChromeOs Devices to be moved to OU
core.List<core.String> deviceIds;
ChromeOsMoveDevicesToOu();
@@ -5868,7 +5879,8 @@ class ChromeOsMoveDevicesToOu {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (deviceIds != null) {
_json["deviceIds"] = deviceIds;
}
@@ -5876,31 +5888,35 @@ class ChromeOsMoveDevicesToOu {
}
}
-/** JSON template for Customer Resource object in Directory API. */
+/// JSON template for Customer Resource object in Directory API.
class Customer {
- /**
- * The customer's secondary contact email address. This email address cannot
- * be on the same domain as the customerDomain
- */
+ /// The customer's secondary contact email address. This email address cannot
+ /// be on the same domain as the customerDomain
core.String alternateEmail;
- /** The customer's creation time (Readonly) */
+
+ /// The customer's creation time (Readonly)
core.DateTime customerCreationTime;
- /**
- * The customer's primary domain name string. Do not include the www prefix
- * when creating a new customer.
- */
+
+ /// The customer's primary domain name string. Do not include the www prefix
+ /// when creating a new customer.
core.String customerDomain;
- /** ETag of the resource. */
+
+ /// ETag of the resource.
core.String etag;
- /** The unique ID for the customer's G Suite account. (Readonly) */
+
+ /// The unique ID for the customer's G Suite account. (Readonly)
core.String id;
- /** Identifies the resource as a customer. Value: admin#directory#customer */
+
+ /// Identifies the resource as a customer. Value: admin#directory#customer
core.String kind;
- /** The customer's ISO 639-2 language code. The default value is en-US */
+
+ /// The customer's ISO 639-2 language code. The default value is en-US
core.String language;
- /** The customer's contact phone number in E.164 format. */
+
+ /// The customer's contact phone number in E.164 format.
core.String phoneNumber;
- /** The customer's postal address information. */
+
+ /// The customer's postal address information.
CustomerPostalAddress postalAddress;
Customer();
@@ -5931,12 +5947,14 @@ class Customer {
phoneNumber = _json["phoneNumber"];
}
if (_json.containsKey("postalAddress")) {
- postalAddress = new CustomerPostalAddress.fromJson(_json["postalAddress"]);
+ postalAddress =
+ new CustomerPostalAddress.fromJson(_json["postalAddress"]);
}
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (alternateEmail != null) {
_json["alternateEmail"] = alternateEmail;
}
@@ -5968,41 +5986,39 @@ class Customer {
}
}
-/** JSON template for postal address of a customer. */
+/// JSON template for postal address of a customer.
class CustomerPostalAddress {
- /**
- * A customer's physical address. The address can be composed of one to three
- * lines.
- */
+ /// A customer's physical address. The address can be composed of one to
+ /// three lines.
core.String addressLine1;
- /** Address line 2 of the address. */
+
+ /// Address line 2 of the address.
core.String addressLine2;
- /** Address line 3 of the address. */
+
+ /// Address line 3 of the address.
core.String addressLine3;
- /** The customer contact's name. */
+
+ /// The customer contact's name.
core.String contactName;
- /**
- * This is a required property. For countryCode information see the ISO 3166
- * country code elements.
- */
+
+ /// This is a required property. For countryCode information see the ISO 3166
+ /// country code elements.
core.String countryCode;
- /**
- * Name of the locality. An example of a locality value is the city of San
- * Francisco.
- */
+
+ /// Name of the locality. An example of a locality value is the city of San
+ /// Francisco.
core.String locality;
- /** The company or company division name. */
+
+ /// The company or company division name.
core.String organizationName;
- /**
- * The postal code. A postalCode example is a postal zip code such as 10009.
- * This is in accordance with -
- * http://portablecontacts.net/draft-spec.html#address_element.
- */
+
+ /// The postal code. A postalCode example is a postal zip code such as 10009.
+ /// This is in accordance with -
+ /// http://portablecontacts.net/draft-spec.html#address_element.
core.String postalCode;
- /**
- * Name of the region. An example of a region value is NY for the state of New
- * York.
- */
+
+ /// Name of the region. An example of a region value is NY for the state of
+ /// New York.
core.String region;
CustomerPostalAddress();
@@ -6038,7 +6054,8 @@ class CustomerPostalAddress {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (addressLine1 != null) {
_json["addressLine1"] = addressLine1;
}
@@ -6070,22 +6087,25 @@ class CustomerPostalAddress {
}
}
-/** JSON template for Domain Alias object in Directory API. */
+/// JSON template for Domain Alias object in Directory API.
class DomainAlias {
- /** The creation time of the domain alias. (Read-only). */
+ /// The creation time of the domain alias. (Read-only).
core.String creationTime;
- /** The domain alias name. */
+
+ /// The domain alias name.
core.String domainAliasName;
- /** ETag of the resource. */
+
+ /// ETag of the resource.
core.String etag;
- /** Kind of resource this is. */
+
+ /// Kind of resource this is.
core.String kind;
- /**
- * The parent domain name that the domain alias is associated with. This can
- * either be a primary or secondary domain name within a customer.
- */
+
+ /// The parent domain name that the domain alias is associated with. This can
+ /// either be a primary or secondary domain name within a customer.
core.String parentDomainName;
- /** Indicates the verification state of a domain alias. (Read-only) */
+
+ /// Indicates the verification state of a domain alias. (Read-only)
core.bool verified;
DomainAlias();
@@ -6112,7 +6132,8 @@ class DomainAlias {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (creationTime != null) {
_json["creationTime"] = creationTime;
}
@@ -6135,20 +6156,24 @@ class DomainAlias {
}
}
-/** JSON response template to list domain aliases in Directory API. */
+/// JSON response template to list domain aliases in Directory API.
class DomainAliases {
- /** List of domain alias objects. */
+ /// List of domain alias objects.
core.List<DomainAlias> domainAliases;
- /** ETag of the resource. */
+
+ /// ETag of the resource.
core.String etag;
- /** Kind of resource this is. */
+
+ /// Kind of resource this is.
core.String kind;
DomainAliases();
DomainAliases.fromJson(core.Map _json) {
if (_json.containsKey("domainAliases")) {
- domainAliases = _json["domainAliases"].map((value) => new DomainAlias.fromJson(value)).toList();
+ domainAliases = _json["domainAliases"]
+ .map((value) => new DomainAlias.fromJson(value))
+ .toList();
}
if (_json.containsKey("etag")) {
etag = _json["etag"];
@@ -6159,9 +6184,11 @@ class DomainAliases {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (domainAliases != null) {
- _json["domainAliases"] = domainAliases.map((value) => (value).toJson()).toList();
+ _json["domainAliases"] =
+ domainAliases.map((value) => (value).toJson()).toList();
}
if (etag != null) {
_json["etag"] = etag;
@@ -6173,21 +6200,27 @@ class DomainAliases {
}
}
-/** JSON template for Domain object in Directory API. */
+/// JSON template for Domain object in Directory API.
class Domains {
- /** Creation time of the domain. (Read-only). */
+ /// Creation time of the domain. (Read-only).
core.String creationTime;
- /** List of domain alias objects. (Read-only) */
+
+ /// List of domain alias objects. (Read-only)
core.List<DomainAlias> domainAliases;
- /** The domain name of the customer. */
+
+ /// The domain name of the customer.
core.String domainName;
- /** ETag of the resource. */
+
+ /// ETag of the resource.
core.String etag;
- /** Indicates if the domain is a primary domain (Read-only). */
+
+ /// Indicates if the domain is a primary domain (Read-only).
core.bool isPrimary;
- /** Kind of resource this is. */
+
+ /// Kind of resource this is.
core.String kind;
- /** Indicates the verification state of a domain. (Read-only). */
+
+ /// Indicates the verification state of a domain. (Read-only).
core.bool verified;
Domains();
@@ -6197,7 +6230,9 @@ class Domains {
creationTime = _json["creationTime"];
}
if (_json.containsKey("domainAliases")) {
- domainAliases = _json["domainAliases"].map((value) => new DomainAlias.fromJson(value)).toList();
+ domainAliases = _json["domainAliases"]
+ .map((value) => new DomainAlias.fromJson(value))
+ .toList();
}
if (_json.containsKey("domainName")) {
domainName = _json["domainName"];
@@ -6217,12 +6252,14 @@ class Domains {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (creationTime != null) {
_json["creationTime"] = creationTime;
}
if (domainAliases != null) {
- _json["domainAliases"] = domainAliases.map((value) => (value).toJson()).toList();
+ _json["domainAliases"] =
+ domainAliases.map((value) => (value).toJson()).toList();
}
if (domainName != null) {
_json["domainName"] = domainName;
@@ -6243,20 +6280,23 @@ class Domains {
}
}
-/** JSON response template to list Domains in Directory API. */
+/// JSON response template to list Domains in Directory API.
class Domains2 {
- /** List of domain objects. */
+ /// List of domain objects.
core.List<Domains> domains;
- /** ETag of the resource. */
+
+ /// ETag of the resource.
core.String etag;
- /** Kind of resource this is. */
+
+ /// Kind of resource this is.
core.String kind;
Domains2();
Domains2.fromJson(core.Map _json) {
if (_json.containsKey("domains")) {
- domains = _json["domains"].map((value) => new Domains.fromJson(value)).toList();
+ domains =
+ _json["domains"].map((value) => new Domains.fromJson(value)).toList();
}
if (_json.containsKey("etag")) {
etag = _json["etag"];
@@ -6267,7 +6307,8 @@ class Domains2 {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (domains != null) {
_json["domains"] = domains.map((value) => (value).toJson()).toList();
}
@@ -6281,27 +6322,36 @@ class Domains2 {
}
}
-/** JSON template for Group resource in Directory API. */
+/// JSON template for Group resource in Directory API.
class Group {
- /** Is the group created by admin (Read-only) * */
+ /// Is the group created by admin (Read-only) *
core.bool adminCreated;
- /** List of aliases (Read-only) */
+
+ /// List of aliases (Read-only)
core.List<core.String> aliases;
- /** Description of the group */
+
+ /// Description of the group
core.String description;
- /** Group direct members count */
+
+ /// Group direct members count
core.String directMembersCount;
- /** Email of Group */
+
+ /// Email of Group
core.String email;
- /** ETag of the resource. */
+
+ /// ETag of the resource.
core.String etag;
- /** Unique identifier of Group (Read-only) */
+
+ /// Unique identifier of Group (Read-only)
core.String id;
- /** Kind of resource this is. */
+
+ /// Kind of resource this is.
core.String kind;
- /** Group name */
+
+ /// Group name
core.String name;
- /** List of non editable aliases (Read-only) */
+
+ /// List of non editable aliases (Read-only)
core.List<core.String> nonEditableAliases;
Group();
@@ -6340,7 +6390,8 @@ class Group {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (adminCreated != null) {
_json["adminCreated"] = adminCreated;
}
@@ -6375,15 +6426,18 @@ class Group {
}
}
-/** JSON response template for List Groups operation in Directory API. */
+/// JSON response template for List Groups operation in Directory API.
class Groups {
- /** ETag of the resource. */
+ /// ETag of the resource.
core.String etag;
- /** List of group objects. */
+
+ /// List of group objects.
core.List<Group> groups;
- /** Kind of resource this is. */
+
+ /// Kind of resource this is.
core.String kind;
- /** Token used to access next page of this result. */
+
+ /// Token used to access next page of this result.
core.String nextPageToken;
Groups();
@@ -6393,7 +6447,8 @@ class Groups {
etag = _json["etag"];
}
if (_json.containsKey("groups")) {
- groups = _json["groups"].map((value) => new Group.fromJson(value)).toList();
+ groups =
+ _json["groups"].map((value) => new Group.fromJson(value)).toList();
}
if (_json.containsKey("kind")) {
kind = _json["kind"];
@@ -6404,7 +6459,8 @@ class Groups {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (etag != null) {
_json["etag"] = etag;
}
@@ -6421,24 +6477,28 @@ class Groups {
}
}
-/** JSON template for Member resource in Directory API. */
+/// JSON template for Member resource in Directory API.
class Member {
- /** Email of member (Read-only) */
+ /// Email of member (Read-only)
core.String email;
- /** ETag of the resource. */
+
+ /// ETag of the resource.
core.String etag;
- /**
- * Unique identifier of customer member (Read-only) Unique identifier of group
- * (Read-only) Unique identifier of member (Read-only)
- */
+
+ /// Unique identifier of customer member (Read-only) Unique identifier of
+ /// group (Read-only) Unique identifier of member (Read-only)
core.String id;
- /** Kind of resource this is. */
+
+ /// Kind of resource this is.
core.String kind;
- /** Role of member */
+
+ /// Role of member
core.String role;
- /** Status of member (Immutable) */
+
+ /// Status of member (Immutable)
core.String status;
- /** Type of member (Immutable) */
+
+ /// Type of member (Immutable)
core.String type;
Member();
@@ -6468,7 +6528,8 @@ class Member {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (email != null) {
_json["email"] = email;
}
@@ -6494,15 +6555,18 @@ class Member {
}
}
-/** JSON response template for List Members operation in Directory API. */
+/// JSON response template for List Members operation in Directory API.
class Members {
- /** ETag of the resource. */
+ /// ETag of the resource.
core.String etag;
- /** Kind of resource this is. */
+
+ /// Kind of resource this is.
core.String kind;
- /** List of member objects. */
+
+ /// List of member objects.
core.List<Member> members;
- /** Token used to access next page of this result. */
+
+ /// Token used to access next page of this result.
core.String nextPageToken;
Members();
@@ -6515,7 +6579,8 @@ class Members {
kind = _json["kind"];
}
if (_json.containsKey("members")) {
- members = _json["members"].map((value) => new Member.fromJson(value)).toList();
+ members =
+ _json["members"].map((value) => new Member.fromJson(value)).toList();
}
if (_json.containsKey("nextPageToken")) {
nextPageToken = _json["nextPageToken"];
@@ -6523,7 +6588,8 @@ class Members {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (etag != null) {
_json["etag"] = etag;
}
@@ -6541,15 +6607,19 @@ class Members {
}
class MobileDeviceApplications {
- /** Display name of application */
+ /// Display name of application
core.String displayName;
- /** Package name of application */
+
+ /// Package name of application
core.String packageName;
- /** List of Permissions for application */
+
+ /// List of Permissions for application
core.List<core.String> permission;
- /** Version code of application */
+
+ /// Version code of application
core.int versionCode;
- /** Version name of application */
+
+ /// Version name of application
core.String versionName;
MobileDeviceApplications();
@@ -6573,7 +6643,8 @@ class MobileDeviceApplications {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (displayName != null) {
_json["displayName"] = displayName;
}
@@ -6593,96 +6664,129 @@ class MobileDeviceApplications {
}
}
-/** JSON template for Mobile Device resource in Directory API. */
+/// JSON template for Mobile Device resource in Directory API.
class MobileDevice {
- /** Adb (USB debugging) enabled or disabled on device (Read-only) */
+ /// Adb (USB debugging) enabled or disabled on device (Read-only)
core.bool adbStatus;
- /** List of applications installed on Mobile Device */
+
+ /// List of applications installed on Mobile Device
core.List<MobileDeviceApplications> applications;
- /** Mobile Device Baseband version (Read-only) */
+
+ /// Mobile Device Baseband version (Read-only)
core.String basebandVersion;
- /** Mobile Device Bootloader version (Read-only) */
+
+ /// Mobile Device Bootloader version (Read-only)
core.String bootloaderVersion;
- /** Mobile Device Brand (Read-only) */
+
+ /// Mobile Device Brand (Read-only)
core.String brand;
- /** Mobile Device Build number (Read-only) */
+
+ /// Mobile Device Build number (Read-only)
core.String buildNumber;
- /** The default locale used on the Mobile Device (Read-only) */
+
+ /// The default locale used on the Mobile Device (Read-only)
core.String defaultLanguage;
- /** Developer options enabled or disabled on device (Read-only) */
+
+ /// Developer options enabled or disabled on device (Read-only)
core.bool developerOptionsStatus;
- /** Mobile Device compromised status (Read-only) */
+
+ /// Mobile Device compromised status (Read-only)
core.String deviceCompromisedStatus;
- /** Mobile Device serial number (Read-only) */
+
+ /// Mobile Device serial number (Read-only)
core.String deviceId;
- /** DevicePasswordStatus (Read-only) */
+
+ /// DevicePasswordStatus (Read-only)
core.String devicePasswordStatus;
- /** List of owner user's email addresses (Read-only) */
+
+ /// List of owner user's email addresses (Read-only)
core.List<core.String> email;
- /** Mobile Device Encryption Status (Read-only) */
+
+ /// Mobile Device Encryption Status (Read-only)
core.String encryptionStatus;
- /** ETag of the resource. */
+
+ /// ETag of the resource.
core.String etag;
- /**
- * Date and time the device was first synchronized with the policy settings in
- * the G Suite administrator control panel (Read-only)
- */
+
+ /// Date and time the device was first synchronized with the policy settings
+ /// in the G Suite administrator control panel (Read-only)
core.DateTime firstSync;
- /** Mobile Device Hardware (Read-only) */
+
+ /// Mobile Device Hardware (Read-only)
core.String hardware;
- /** Mobile Device Hardware Id (Read-only) */
+
+ /// Mobile Device Hardware Id (Read-only)
core.String hardwareId;
- /** Mobile Device IMEI number (Read-only) */
+
+ /// Mobile Device IMEI number (Read-only)
core.String imei;
- /** Mobile Device Kernel version (Read-only) */
+
+ /// Mobile Device Kernel version (Read-only)
core.String kernelVersion;
- /** Kind of resource this is. */
+
+ /// Kind of resource this is.
core.String kind;
- /**
- * Date and time the device was last synchronized with the policy settings in
- * the G Suite administrator control panel (Read-only)
- */
+
+ /// Date and time the device was last synchronized with the policy settings
+ /// in the G Suite administrator control panel (Read-only)
core.DateTime lastSync;
- /**
- * Boolean indicating if this account is on owner/primary profile or not
- * (Read-only)
- */
+
+ /// Boolean indicating if this account is on owner/primary profile or not
+ /// (Read-only)
core.bool managedAccountIsOnOwnerProfile;
- /** Mobile Device manufacturer (Read-only) */
+
+ /// Mobile Device manufacturer (Read-only)
core.String manufacturer;
- /** Mobile Device MEID number (Read-only) */
+
+ /// Mobile Device MEID number (Read-only)
core.String meid;
- /** Name of the model of the device */
+
+ /// Name of the model of the device
core.String model;
- /** List of owner user's names (Read-only) */
+
+ /// List of owner user's names (Read-only)
core.List<core.String> name;
- /** Mobile Device mobile or network operator (if available) (Read-only) */
+
+ /// Mobile Device mobile or network operator (if available) (Read-only)
core.String networkOperator;
- /** Name of the mobile operating system */
+
+ /// Name of the mobile operating system
core.String os;
- /** List of accounts added on device (Read-only) */
+
+ /// List of accounts added on device (Read-only)
core.List<core.String> otherAccountsInfo;
- /** DMAgentPermission (Read-only) */
+
+ /// DMAgentPermission (Read-only)
core.String privilege;
- /** Mobile Device release version version (Read-only) */
+
+ /// Mobile Device release version version (Read-only)
core.String releaseVersion;
- /** Unique identifier of Mobile Device (Read-only) */
+
+ /// Unique identifier of Mobile Device (Read-only)
core.String resourceId;
- /** Mobile Device Security patch level (Read-only) */
+
+ /// Mobile Device Security patch level (Read-only)
core.String securityPatchLevel;
- /** Mobile Device SSN or Serial Number (Read-only) */
+
+ /// Mobile Device SSN or Serial Number (Read-only)
core.String serialNumber;
- /** Status of the device (Read-only) */
+
+ /// Status of the device (Read-only)
core.String status;
- /** Work profile supported on device (Read-only) */
+
+ /// Work profile supported on device (Read-only)
core.bool supportsWorkProfile;
- /** The type of device (Read-only) */
+
+ /// The type of device (Read-only)
core.String type;
- /** Unknown sources enabled or disabled on device (Read-only) */
+
+ /// Unknown sources enabled or disabled on device (Read-only)
core.bool unknownSourcesStatus;
- /** Mobile Device user agent */
+
+ /// Mobile Device user agent
core.String userAgent;
- /** Mobile Device WiFi MAC address (Read-only) */
+
+ /// Mobile Device WiFi MAC address (Read-only)
core.String wifiMacAddress;
MobileDevice();
@@ -6692,7 +6796,9 @@ class MobileDevice {
adbStatus = _json["adbStatus"];
}
if (_json.containsKey("applications")) {
- applications = _json["applications"].map((value) => new MobileDeviceApplications.fromJson(value)).toList();
+ applications = _json["applications"]
+ .map((value) => new MobileDeviceApplications.fromJson(value))
+ .toList();
}
if (_json.containsKey("basebandVersion")) {
basebandVersion = _json["basebandVersion"];
@@ -6811,12 +6917,14 @@ class MobileDevice {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (adbStatus != null) {
_json["adbStatus"] = adbStatus;
}
if (applications != null) {
- _json["applications"] = applications.map((value) => (value).toJson()).toList();
+ _json["applications"] =
+ applications.map((value) => (value).toJson()).toList();
}
if (basebandVersion != null) {
_json["basebandVersion"] = basebandVersion;
@@ -6936,12 +7044,10 @@ class MobileDevice {
}
}
-/**
- * JSON request template for firing commands on Mobile Device in Directory
- * Devices API.
- */
+/// JSON request template for firing commands on Mobile Device in Directory
+/// Devices API.
class MobileDeviceAction {
- /** Action to be taken on the Mobile Device */
+ /// Action to be taken on the Mobile Device
core.String action;
MobileDeviceAction();
@@ -6953,7 +7059,8 @@ class MobileDeviceAction {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (action != null) {
_json["action"] = action;
}
@@ -6961,17 +7068,18 @@ class MobileDeviceAction {
}
}
-/**
- * JSON response template for List Mobile Devices operation in Directory API.
- */
+/// JSON response template for List Mobile Devices operation in Directory API.
class MobileDevices {
- /** ETag of the resource. */
+ /// ETag of the resource.
core.String etag;
- /** Kind of resource this is. */
+
+ /// Kind of resource this is.
core.String kind;
- /** List of Mobile Device objects. */
+
+ /// List of Mobile Device objects.
core.List<MobileDevice> mobiledevices;
- /** Token used to access next page of this result. */
+
+ /// Token used to access next page of this result.
core.String nextPageToken;
MobileDevices();
@@ -6984,7 +7092,9 @@ class MobileDevices {
kind = _json["kind"];
}
if (_json.containsKey("mobiledevices")) {
- mobiledevices = _json["mobiledevices"].map((value) => new MobileDevice.fromJson(value)).toList();
+ mobiledevices = _json["mobiledevices"]
+ .map((value) => new MobileDevice.fromJson(value))
+ .toList();
}
if (_json.containsKey("nextPageToken")) {
nextPageToken = _json["nextPageToken"];
@@ -6992,7 +7102,8 @@ class MobileDevices {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (etag != null) {
_json["etag"] = etag;
}
@@ -7000,7 +7111,8 @@ class MobileDevices {
_json["kind"] = kind;
}
if (mobiledevices != null) {
- _json["mobiledevices"] = mobiledevices.map((value) => (value).toJson()).toList();
+ _json["mobiledevices"] =
+ mobiledevices.map((value) => (value).toJson()).toList();
}
if (nextPageToken != null) {
_json["nextPageToken"] = nextPageToken;
@@ -7009,22 +7121,28 @@ class MobileDevices {
}
}
-/** Template for a notification resource. */
+/// Template for a notification resource.
class Notification {
- /** Body of the notification (Read-only) */
+ /// Body of the notification (Read-only)
core.String body;
- /** ETag of the resource. */
+
+ /// ETag of the resource.
core.String etag;
- /** Address from which the notification is received (Read-only) */
+
+ /// Address from which the notification is received (Read-only)
core.String fromAddress;
- /** Boolean indicating whether the notification is unread or not. */
+
+ /// Boolean indicating whether the notification is unread or not.
core.bool isUnread;
- /** The type of the resource. */
+
+ /// The type of the resource.
core.String kind;
core.String notificationId;
- /** Time at which notification was sent (Read-only) */
+
+ /// Time at which notification was sent (Read-only)
core.DateTime sendTime;
- /** Subject of the notification (Read-only) */
+
+ /// Subject of the notification (Read-only)
core.String subject;
Notification();
@@ -7057,7 +7175,8 @@ class Notification {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (body != null) {
_json["body"] = body;
}
@@ -7086,17 +7205,21 @@ class Notification {
}
}
-/** Template for notifications list response. */
+/// Template for notifications list response.
class Notifications {
- /** ETag of the resource. */
+ /// ETag of the resource.
core.String etag;
- /** List of notifications in this page. */
+
+ /// List of notifications in this page.
core.List<Notification> items;
- /** The type of the resource. */
+
+ /// The type of the resource.
core.String kind;
- /** Token for fetching the next page of notifications. */
+
+ /// Token for fetching the next page of notifications.
core.String nextPageToken;
- /** Number of unread notification for the domain. */
+
+ /// Number of unread notification for the domain.
core.int unreadNotificationsCount;
Notifications();
@@ -7106,7 +7229,9 @@ class Notifications {
etag = _json["etag"];
}
if (_json.containsKey("items")) {
- items = _json["items"].map((value) => new Notification.fromJson(value)).toList();
+ items = _json["items"]
+ .map((value) => new Notification.fromJson(value))
+ .toList();
}
if (_json.containsKey("kind")) {
kind = _json["kind"];
@@ -7120,7 +7245,8 @@ class Notifications {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (etag != null) {
_json["etag"] = etag;
}
@@ -7140,25 +7266,33 @@ class Notifications {
}
}
-/** JSON template for Org Unit resource in Directory API. */
+/// JSON template for Org Unit resource in Directory API.
class OrgUnit {
- /** Should block inheritance */
+ /// Should block inheritance
core.bool blockInheritance;
- /** Description of OrgUnit */
+
+ /// Description of OrgUnit
core.String description;
- /** ETag of the resource. */
+
+ /// ETag of the resource.
core.String etag;
- /** Kind of resource this is. */
+
+ /// Kind of resource this is.
core.String kind;
- /** Name of OrgUnit */
+
+ /// Name of OrgUnit
core.String name;
- /** Id of OrgUnit */
+
+ /// Id of OrgUnit
core.String orgUnitId;
- /** Path of OrgUnit */
+
+ /// Path of OrgUnit
core.String orgUnitPath;
- /** Id of parent OrgUnit */
+
+ /// Id of parent OrgUnit
core.String parentOrgUnitId;
- /** Path of parent OrgUnit */
+
+ /// Path of parent OrgUnit
core.String parentOrgUnitPath;
OrgUnit();
@@ -7194,7 +7328,8 @@ class OrgUnit {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (blockInheritance != null) {
_json["blockInheritance"] = blockInheritance;
}
@@ -7226,16 +7361,16 @@ class OrgUnit {
}
}
-/**
- * JSON response template for List Organization Units operation in Directory
- * API.
- */
+/// JSON response template for List Organization Units operation in Directory
+/// API.
class OrgUnits {
- /** ETag of the resource. */
+ /// ETag of the resource.
core.String etag;
- /** Kind of resource this is. */
+
+ /// Kind of resource this is.
core.String kind;
- /** List of user objects. */
+
+ /// List of user objects.
core.List<OrgUnit> organizationUnits;
OrgUnits();
@@ -7248,12 +7383,15 @@ class OrgUnits {
kind = _json["kind"];
}
if (_json.containsKey("organizationUnits")) {
- organizationUnits = _json["organizationUnits"].map((value) => new OrgUnit.fromJson(value)).toList();
+ organizationUnits = _json["organizationUnits"]
+ .map((value) => new OrgUnit.fromJson(value))
+ .toList();
}
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (etag != null) {
_json["etag"] = etag;
}
@@ -7261,40 +7399,45 @@ class OrgUnits {
_json["kind"] = kind;
}
if (organizationUnits != null) {
- _json["organizationUnits"] = organizationUnits.map((value) => (value).toJson()).toList();
+ _json["organizationUnits"] =
+ organizationUnits.map((value) => (value).toJson()).toList();
}
return _json;
}
}
-/** JSON template for privilege resource in Directory API. */
+/// JSON template for privilege resource in Directory API.
class Privilege {
- /**
- * A list of child privileges. Privileges for a service form a tree. Each
- * privilege can have a list of child privileges; this list is empty for a
- * leaf privilege.
- */
+ /// A list of child privileges. Privileges for a service form a tree. Each
+ /// privilege can have a list of child privileges; this list is empty for a
+ /// leaf privilege.
core.List<Privilege> childPrivileges;
- /** ETag of the resource. */
+
+ /// ETag of the resource.
core.String etag;
- /** If the privilege can be restricted to an organization unit. */
+
+ /// If the privilege can be restricted to an organization unit.
core.bool isOuScopable;
- /**
- * The type of the API resource. This is always admin#directory#privilege.
- */
+
+ /// The type of the API resource. This is always admin#directory#privilege.
core.String kind;
- /** The name of the privilege. */
+
+ /// The name of the privilege.
core.String privilegeName;
- /** The obfuscated ID of the service this privilege is for. */
+
+ /// The obfuscated ID of the service this privilege is for.
core.String serviceId;
- /** The name of the service this privilege is for. */
+
+ /// The name of the service this privilege is for.
core.String serviceName;
Privilege();
Privilege.fromJson(core.Map _json) {
if (_json.containsKey("childPrivileges")) {
- childPrivileges = _json["childPrivileges"].map((value) => new Privilege.fromJson(value)).toList();
+ childPrivileges = _json["childPrivileges"]
+ .map((value) => new Privilege.fromJson(value))
+ .toList();
}
if (_json.containsKey("etag")) {
etag = _json["etag"];
@@ -7317,9 +7460,11 @@ class Privilege {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (childPrivileges != null) {
- _json["childPrivileges"] = childPrivileges.map((value) => (value).toJson()).toList();
+ _json["childPrivileges"] =
+ childPrivileges.map((value) => (value).toJson()).toList();
}
if (etag != null) {
_json["etag"] = etag;
@@ -7343,15 +7488,15 @@ class Privilege {
}
}
-/** JSON response template for List privileges operation in Directory API. */
+/// JSON response template for List privileges operation in Directory API.
class Privileges {
- /** ETag of the resource. */
+ /// ETag of the resource.
core.String etag;
- /** A list of Privilege resources. */
+
+ /// A list of Privilege resources.
core.List<Privilege> items;
- /**
- * The type of the API resource. This is always admin#directory#privileges.
- */
+
+ /// The type of the API resource. This is always admin#directory#privileges.
core.String kind;
Privileges();
@@ -7361,7 +7506,8 @@ class Privileges {
etag = _json["etag"];
}
if (_json.containsKey("items")) {
- items = _json["items"].map((value) => new Privilege.fromJson(value)).toList();
+ items =
+ _json["items"].map((value) => new Privilege.fromJson(value)).toList();
}
if (_json.containsKey("kind")) {
kind = _json["kind"];
@@ -7369,7 +7515,8 @@ class Privileges {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (etag != null) {
_json["etag"] = etag;
}
@@ -7384,9 +7531,10 @@ class Privileges {
}
class RoleRolePrivileges {
- /** The name of the privilege. */
+ /// The name of the privilege.
core.String privilegeName;
- /** The obfuscated ID of the service this privilege is for. */
+
+ /// The obfuscated ID of the service this privilege is for.
core.String serviceId;
RoleRolePrivileges();
@@ -7401,7 +7549,8 @@ class RoleRolePrivileges {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (privilegeName != null) {
_json["privilegeName"] = privilegeName;
}
@@ -7412,23 +7561,30 @@ class RoleRolePrivileges {
}
}
-/** JSON template for role resource in Directory API. */
+/// JSON template for role resource in Directory API.
class Role {
- /** ETag of the resource. */
+ /// ETag of the resource.
core.String etag;
- /** Returns true if the role is a super admin role. */
+
+ /// Returns true if the role is a super admin role.
core.bool isSuperAdminRole;
- /** Returns true if this is a pre-defined system role. */
+
+ /// Returns true if this is a pre-defined system role.
core.bool isSystemRole;
- /** The type of the API resource. This is always admin#directory#role. */
+
+ /// The type of the API resource. This is always admin#directory#role.
core.String kind;
- /** A short description of the role. */
+
+ /// A short description of the role.
core.String roleDescription;
- /** ID of the role. */
+
+ /// ID of the role.
core.String roleId;
- /** Name of the role. */
+
+ /// Name of the role.
core.String roleName;
- /** The set of privileges that are granted to this role. */
+
+ /// The set of privileges that are granted to this role.
core.List<RoleRolePrivileges> rolePrivileges;
Role();
@@ -7456,12 +7612,15 @@ class Role {
roleName = _json["roleName"];
}
if (_json.containsKey("rolePrivileges")) {
- rolePrivileges = _json["rolePrivileges"].map((value) => new RoleRolePrivileges.fromJson(value)).toList();
+ rolePrivileges = _json["rolePrivileges"]
+ .map((value) => new RoleRolePrivileges.fromJson(value))
+ .toList();
}
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (etag != null) {
_json["etag"] = etag;
}
@@ -7484,37 +7643,38 @@ class Role {
_json["roleName"] = roleName;
}
if (rolePrivileges != null) {
- _json["rolePrivileges"] = rolePrivileges.map((value) => (value).toJson()).toList();
+ _json["rolePrivileges"] =
+ rolePrivileges.map((value) => (value).toJson()).toList();
}
return _json;
}
}
-/** JSON template for roleAssignment resource in Directory API. */
+/// JSON template for roleAssignment resource in Directory API.
class RoleAssignment {
- /** The unique ID of the user this role is assigned to. */
+ /// The unique ID of the user this role is assigned to.
core.String assignedTo;
- /** ETag of the resource. */
+
+ /// ETag of the resource.
core.String etag;
- /**
- * The type of the API resource. This is always
- * admin#directory#roleAssignment.
- */
+
+ /// The type of the API resource. This is always
+ /// admin#directory#roleAssignment.
core.String kind;
- /**
- * If the role is restricted to an organization unit, this contains the ID for
- * the organization unit the exercise of this role is restricted to.
- */
+
+ /// If the role is restricted to an organization unit, this contains the ID
+ /// for the organization unit the exercise of this role is restricted to.
core.String orgUnitId;
- /** ID of this roleAssignment. */
+
+ /// ID of this roleAssignment.
core.String roleAssignmentId;
- /** The ID of the role that is assigned. */
+
+ /// The ID of the role that is assigned.
core.String roleId;
- /**
- * The scope in which this role is assigned. Possible values are:
- * - CUSTOMER
- * - ORG_UNIT
- */
+
+ /// The scope in which this role is assigned. Possible values are:
+ /// - CUSTOMER
+ /// - ORG_UNIT
core.String scopeType;
RoleAssignment();
@@ -7544,7 +7704,8 @@ class RoleAssignment {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (assignedTo != null) {
_json["assignedTo"] = assignedTo;
}
@@ -7570,18 +7731,16 @@ class RoleAssignment {
}
}
-/**
- * JSON response template for List roleAssignments operation in Directory API.
- */
+/// JSON response template for List roleAssignments operation in Directory API.
class RoleAssignments {
- /** ETag of the resource. */
+ /// ETag of the resource.
core.String etag;
- /** A list of RoleAssignment resources. */
+
+ /// A list of RoleAssignment resources.
core.List<RoleAssignment> items;
- /**
- * The type of the API resource. This is always
- * admin#directory#roleAssignments.
- */
+
+ /// The type of the API resource. This is always
+ /// admin#directory#roleAssignments.
core.String kind;
core.String nextPageToken;
@@ -7592,7 +7751,9 @@ class RoleAssignments {
etag = _json["etag"];
}
if (_json.containsKey("items")) {
- items = _json["items"].map((value) => new RoleAssignment.fromJson(value)).toList();
+ items = _json["items"]
+ .map((value) => new RoleAssignment.fromJson(value))
+ .toList();
}
if (_json.containsKey("kind")) {
kind = _json["kind"];
@@ -7603,7 +7764,8 @@ class RoleAssignments {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (etag != null) {
_json["etag"] = etag;
}
@@ -7620,13 +7782,15 @@ class RoleAssignments {
}
}
-/** JSON response template for List roles operation in Directory API. */
+/// JSON response template for List roles operation in Directory API.
class Roles {
- /** ETag of the resource. */
+ /// ETag of the resource.
core.String etag;
- /** A list of Role resources. */
+
+ /// A list of Role resources.
core.List<Role> items;
- /** The type of the API resource. This is always admin#directory#roles. */
+
+ /// The type of the API resource. This is always admin#directory#roles.
core.String kind;
core.String nextPageToken;
@@ -7648,7 +7812,8 @@ class Roles {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (etag != null) {
_json["etag"] = etag;
}
@@ -7665,17 +7830,21 @@ class Roles {
}
}
-/** JSON template for Schema resource in Directory API. */
+/// JSON template for Schema resource in Directory API.
class Schema {
- /** ETag of the resource. */
+ /// ETag of the resource.
core.String etag;
- /** Fields of Schema */
+
+ /// Fields of Schema
core.List<SchemaFieldSpec> fields;
- /** Kind of resource this is. */
+
+ /// Kind of resource this is.
core.String kind;
- /** Unique identifier of Schema (Read-only) */
+
+ /// Unique identifier of Schema (Read-only)
core.String schemaId;
- /** Schema name */
+
+ /// Schema name
core.String schemaName;
Schema();
@@ -7685,7 +7854,9 @@ class Schema {
etag = _json["etag"];
}
if (_json.containsKey("fields")) {
- fields = _json["fields"].map((value) => new SchemaFieldSpec.fromJson(value)).toList();
+ fields = _json["fields"]
+ .map((value) => new SchemaFieldSpec.fromJson(value))
+ .toList();
}
if (_json.containsKey("kind")) {
kind = _json["kind"];
@@ -7699,7 +7870,8 @@ class Schema {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (etag != null) {
_json["etag"] = etag;
}
@@ -7719,23 +7891,18 @@ class Schema {
}
}
-/**
- * Indexing spec for a numeric field. By default, only exact match queries will
- * be supported for numeric fields. Setting the numericIndexingSpec allows range
- * queries to be supported.
- */
+/// Indexing spec for a numeric field. By default, only exact match queries
+/// will be supported for numeric fields. Setting the numericIndexingSpec
+/// allows range queries to be supported.
class SchemaFieldSpecNumericIndexingSpec {
- /**
- * Maximum value of this field. This is meant to be indicative rather than
- * enforced. Values outside this range will still be indexed, but search may
- * not be as performant.
- */
+ /// Maximum value of this field. This is meant to be indicative rather than
+ /// enforced. Values outside this range will still be indexed, but search may
+ /// not be as performant.
core.double maxValue;
- /**
- * Minimum value of this field. This is meant to be indicative rather than
- * enforced. Values outside this range will still be indexed, but search may
- * not be as performant.
- */
+
+ /// Minimum value of this field. This is meant to be indicative rather than
+ /// enforced. Values outside this range will still be indexed, but search may
+ /// not be as performant.
core.double minValue;
SchemaFieldSpecNumericIndexingSpec();
@@ -7750,7 +7917,8 @@ class SchemaFieldSpecNumericIndexingSpec {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (maxValue != null) {
_json["maxValue"] = maxValue;
}
@@ -7761,32 +7929,36 @@ class SchemaFieldSpecNumericIndexingSpec {
}
}
-/** JSON template for FieldSpec resource for Schemas in Directory API. */
+/// JSON template for FieldSpec resource for Schemas in Directory API.
class SchemaFieldSpec {
- /** ETag of the resource. */
+ /// ETag of the resource.
core.String etag;
- /** Unique identifier of Field (Read-only) */
+
+ /// Unique identifier of Field (Read-only)
core.String fieldId;
- /** Name of the field. */
+
+ /// Name of the field.
core.String fieldName;
- /** Type of the field. */
+
+ /// Type of the field.
core.String fieldType;
- /** Boolean specifying whether the field is indexed or not. */
+
+ /// Boolean specifying whether the field is indexed or not.
core.bool indexed;
- /** Kind of resource this is. */
+
+ /// Kind of resource this is.
core.String kind;
- /** Boolean specifying whether this is a multi-valued field or not. */
+
+ /// Boolean specifying whether this is a multi-valued field or not.
core.bool multiValued;
- /**
- * Indexing spec for a numeric field. By default, only exact match queries
- * will be supported for numeric fields. Setting the numericIndexingSpec
- * allows range queries to be supported.
- */
+
+ /// Indexing spec for a numeric field. By default, only exact match queries
+ /// will be supported for numeric fields. Setting the numericIndexingSpec
+ /// allows range queries to be supported.
SchemaFieldSpecNumericIndexingSpec numericIndexingSpec;
- /**
- * Read ACLs on the field specifying who can view values of this field. Valid
- * values are "ALL_DOMAIN_USERS" and "ADMINS_AND_SELF".
- */
+
+ /// Read ACLs on the field specifying who can view values of this field.
+ /// Valid values are "ALL_DOMAIN_USERS" and "ADMINS_AND_SELF".
core.String readAccessType;
SchemaFieldSpec();
@@ -7814,7 +7986,8 @@ class SchemaFieldSpec {
multiValued = _json["multiValued"];
}
if (_json.containsKey("numericIndexingSpec")) {
- numericIndexingSpec = new SchemaFieldSpecNumericIndexingSpec.fromJson(_json["numericIndexingSpec"]);
+ numericIndexingSpec = new SchemaFieldSpecNumericIndexingSpec.fromJson(
+ _json["numericIndexingSpec"]);
}
if (_json.containsKey("readAccessType")) {
readAccessType = _json["readAccessType"];
@@ -7822,7 +7995,8 @@ class SchemaFieldSpec {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (etag != null) {
_json["etag"] = etag;
}
@@ -7854,13 +8028,15 @@ class SchemaFieldSpec {
}
}
-/** JSON response template for List Schema operation in Directory API. */
+/// JSON response template for List Schema operation in Directory API.
class Schemas {
- /** ETag of the resource. */
+ /// ETag of the resource.
core.String etag;
- /** Kind of resource this is. */
+
+ /// Kind of resource this is.
core.String kind;
- /** List of UserSchema objects. */
+
+ /// List of UserSchema objects.
core.List<Schema> schemas;
Schemas();
@@ -7873,12 +8049,14 @@ class Schemas {
kind = _json["kind"];
}
if (_json.containsKey("schemas")) {
- schemas = _json["schemas"].map((value) => new Schema.fromJson(value)).toList();
+ schemas =
+ _json["schemas"].map((value) => new Schema.fromJson(value)).toList();
}
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (etag != null) {
_json["etag"] = etag;
}
@@ -7892,29 +8070,32 @@ class Schemas {
}
}
-/** JSON template for token resource in Directory API. */
+/// JSON template for token resource in Directory API.
class Token {
- /**
- * Whether the application is registered with Google. The value is true if the
- * application has an anonymous Client ID.
- */
+ /// Whether the application is registered with Google. The value is true if
+ /// the application has an anonymous Client ID.
core.bool anonymous;
- /** The Client ID of the application the token is issued to. */
+
+ /// The Client ID of the application the token is issued to.
core.String clientId;
- /** The displayable name of the application the token is issued to. */
+
+ /// The displayable name of the application the token is issued to.
core.String displayText;
- /** ETag of the resource. */
+
+ /// ETag of the resource.
core.String etag;
- /** The type of the API resource. This is always admin#directory#token. */
+
+ /// The type of the API resource. This is always admin#directory#token.
core.String kind;
- /**
- * Whether the token is issued to an installed application. The value is true
- * if the application is installed to a desktop or mobile device.
- */
+
+ /// Whether the token is issued to an installed application. The value is
+ /// true if the application is installed to a desktop or mobile device.
core.bool nativeApp;
- /** A list of authorization scopes the application is granted. */
+
+ /// A list of authorization scopes the application is granted.
core.List<core.String> scopes;
- /** The unique ID of the user that issued the token. */
+
+ /// The unique ID of the user that issued the token.
core.String userKey;
Token();
@@ -7947,7 +8128,8 @@ class Token {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (anonymous != null) {
_json["anonymous"] = anonymous;
}
@@ -7976,15 +8158,15 @@ class Token {
}
}
-/** JSON response template for List tokens operation in Directory API. */
+/// JSON response template for List tokens operation in Directory API.
class Tokens {
- /** ETag of the resource. */
+ /// ETag of the resource.
core.String etag;
- /** A list of Token resources. */
+
+ /// A list of Token resources.
core.List<Token> items;
- /**
- * The type of the API resource. This is always admin#directory#tokenList.
- */
+
+ /// The type of the API resource. This is always admin#directory#tokenList.
core.String kind;
Tokens();
@@ -8002,7 +8184,8 @@ class Tokens {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (etag != null) {
_json["etag"] = etag;
}
@@ -8016,160 +8199,172 @@ class Tokens {
}
}
-/** JSON template for User object in Directory API. */
+/// JSON template for User object in Directory API.
class User {
- /**
- *
- *
- * The values for Object must be JSON objects. It can consist of `num`,
- * `String`, `bool` and `null` as well as `Map` and `List` values.
- */
+ ///
+ ///
+ /// The values for Object must be JSON objects. It can consist of `num`,
+ /// `String`, `bool` and `null` as well as `Map` and `List` values.
core.Object addresses;
- /** Indicates if user has agreed to terms (Read-only) */
+
+ /// Indicates if user has agreed to terms (Read-only)
core.bool agreedToTerms;
- /** List of aliases (Read-only) */
+
+ /// List of aliases (Read-only)
core.List<core.String> aliases;
- /** Boolean indicating if the user should change password in next login */
+
+ /// Boolean indicating if the user should change password in next login
core.bool changePasswordAtNextLogin;
- /** User's G Suite account creation time. (Read-only) */
+
+ /// User's G Suite account creation time. (Read-only)
core.DateTime creationTime;
- /** Custom fields of the user. */
+
+ /// Custom fields of the user.
core.Map<core.String, UserCustomProperties> customSchemas;
- /** CustomerId of User (Read-only) */
+
+ /// CustomerId of User (Read-only)
core.String customerId;
core.DateTime deletionTime;
- /**
- *
- *
- * The values for Object must be JSON objects. It can consist of `num`,
- * `String`, `bool` and `null` as well as `Map` and `List` values.
- */
+
+ ///
+ ///
+ /// The values for Object must be JSON objects. It can consist of `num`,
+ /// `String`, `bool` and `null` as well as `Map` and `List` values.
core.Object emails;
- /** ETag of the resource. */
+
+ /// ETag of the resource.
core.String etag;
- /**
- *
- *
- * The values for Object must be JSON objects. It can consist of `num`,
- * `String`, `bool` and `null` as well as `Map` and `List` values.
- */
+
+ ///
+ ///
+ /// The values for Object must be JSON objects. It can consist of `num`,
+ /// `String`, `bool` and `null` as well as `Map` and `List` values.
core.Object externalIds;
- /** Hash function name for password. Supported are MD5, SHA-1 and crypt */
+
+ /// Hash function name for password. Supported are MD5, SHA-1 and crypt
core.String hashFunction;
- /** Unique identifier of User (Read-only) */
+
+ /// Unique identifier of User (Read-only)
core.String id;
- /**
- *
- *
- * The values for Object must be JSON objects. It can consist of `num`,
- * `String`, `bool` and `null` as well as `Map` and `List` values.
- */
+
+ ///
+ ///
+ /// The values for Object must be JSON objects. It can consist of `num`,
+ /// `String`, `bool` and `null` as well as `Map` and `List` values.
core.Object ims;
- /** Boolean indicating if user is included in Global Address List */
+
+ /// Boolean indicating if user is included in Global Address List
core.bool includeInGlobalAddressList;
- /** Boolean indicating if ip is whitelisted */
+
+ /// Boolean indicating if ip is whitelisted
core.bool ipWhitelisted;
- /** Boolean indicating if the user is admin (Read-only) */
+
+ /// Boolean indicating if the user is admin (Read-only)
core.bool isAdmin;
- /** Boolean indicating if the user is delegated admin (Read-only) */
+
+ /// Boolean indicating if the user is delegated admin (Read-only)
core.bool isDelegatedAdmin;
- /** Is 2-step verification enforced (Read-only) */
+
+ /// Is 2-step verification enforced (Read-only)
core.bool isEnforcedIn2Sv;
- /** Is enrolled in 2-step verification (Read-only) */
+
+ /// Is enrolled in 2-step verification (Read-only)
core.bool isEnrolledIn2Sv;
- /** Is mailbox setup (Read-only) */
+
+ /// Is mailbox setup (Read-only)
core.bool isMailboxSetup;
- /**
- *
- *
- * The values for Object must be JSON objects. It can consist of `num`,
- * `String`, `bool` and `null` as well as `Map` and `List` values.
- */
+
+ ///
+ ///
+ /// The values for Object must be JSON objects. It can consist of `num`,
+ /// `String`, `bool` and `null` as well as `Map` and `List` values.
core.Object keywords;
- /** Kind of resource this is. */
+
+ /// Kind of resource this is.
core.String kind;
- /**
- *
- *
- * The values for Object must be JSON objects. It can consist of `num`,
- * `String`, `bool` and `null` as well as `Map` and `List` values.
- */
+
+ ///
+ ///
+ /// The values for Object must be JSON objects. It can consist of `num`,
+ /// `String`, `bool` and `null` as well as `Map` and `List` values.
core.Object languages;
- /** User's last login time. (Read-only) */
+
+ /// User's last login time. (Read-only)
core.DateTime lastLoginTime;
- /**
- *
- *
- * The values for Object must be JSON objects. It can consist of `num`,
- * `String`, `bool` and `null` as well as `Map` and `List` values.
- */
+
+ ///
+ ///
+ /// The values for Object must be JSON objects. It can consist of `num`,
+ /// `String`, `bool` and `null` as well as `Map` and `List` values.
core.Object locations;
- /** User's name */
+
+ /// User's name
UserName name;
- /** List of non editable aliases (Read-only) */
+
+ /// List of non editable aliases (Read-only)
core.List<core.String> nonEditableAliases;
- /**
- *
- *
- * The values for Object must be JSON objects. It can consist of `num`,
- * `String`, `bool` and `null` as well as `Map` and `List` values.
- */
+
+ ///
+ ///
+ /// The values for Object must be JSON objects. It can consist of `num`,
+ /// `String`, `bool` and `null` as well as `Map` and `List` values.
core.Object notes;
- /** OrgUnit of User */
+
+ /// OrgUnit of User
core.String orgUnitPath;
- /**
- *
- *
- * The values for Object must be JSON objects. It can consist of `num`,
- * `String`, `bool` and `null` as well as `Map` and `List` values.
- */
+
+ ///
+ ///
+ /// The values for Object must be JSON objects. It can consist of `num`,
+ /// `String`, `bool` and `null` as well as `Map` and `List` values.
core.Object organizations;
- /** User's password */
+
+ /// User's password
core.String password;
- /**
- *
- *
- * The values for Object must be JSON objects. It can consist of `num`,
- * `String`, `bool` and `null` as well as `Map` and `List` values.
- */
+
+ ///
+ ///
+ /// The values for Object must be JSON objects. It can consist of `num`,
+ /// `String`, `bool` and `null` as well as `Map` and `List` values.
core.Object phones;
- /**
- *
- *
- * The values for Object must be JSON objects. It can consist of `num`,
- * `String`, `bool` and `null` as well as `Map` and `List` values.
- */
+
+ ///
+ ///
+ /// The values for Object must be JSON objects. It can consist of `num`,
+ /// `String`, `bool` and `null` as well as `Map` and `List` values.
core.Object posixAccounts;
- /** username of User */
+
+ /// username of User
core.String primaryEmail;
- /**
- *
- *
- * The values for Object must be JSON objects. It can consist of `num`,
- * `String`, `bool` and `null` as well as `Map` and `List` values.
- */
+
+ ///
+ ///
+ /// The values for Object must be JSON objects. It can consist of `num`,
+ /// `String`, `bool` and `null` as well as `Map` and `List` values.
core.Object relations;
- /**
- *
- *
- * The values for Object must be JSON objects. It can consist of `num`,
- * `String`, `bool` and `null` as well as `Map` and `List` values.
- */
+
+ ///
+ ///
+ /// The values for Object must be JSON objects. It can consist of `num`,
+ /// `String`, `bool` and `null` as well as `Map` and `List` values.
core.Object sshPublicKeys;
- /** Indicates if user is suspended */
+
+ /// Indicates if user is suspended
core.bool suspended;
- /** Suspension reason if user is suspended (Read-only) */
+
+ /// Suspension reason if user is suspended (Read-only)
core.String suspensionReason;
- /** ETag of the user's photo (Read-only) */
+
+ /// ETag of the user's photo (Read-only)
core.String thumbnailPhotoEtag;
- /** Photo Url of the user (Read-only) */
+
+ /// Photo Url of the user (Read-only)
core.String thumbnailPhotoUrl;
- /**
- *
- *
- * The values for Object must be JSON objects. It can consist of `num`,
- * `String`, `bool` and `null` as well as `Map` and `List` values.
- */
+
+ ///
+ ///
+ /// The values for Object must be JSON objects. It can consist of `num`,
+ /// `String`, `bool` and `null` as well as `Map` and `List` values.
core.Object websites;
User();
@@ -8191,7 +8386,11 @@ class User {
creationTime = core.DateTime.parse(_json["creationTime"]);
}
if (_json.containsKey("customSchemas")) {
- customSchemas = commons.mapMap<core.Map<core.String, core.Object>, UserCustomProperties>(_json["customSchemas"], (core.Map<core.String, core.Object> item) => new UserCustomProperties.fromJson(item));
+ customSchemas = commons
+ .mapMap<core.Map<core.String, core.Object>, UserCustomProperties>(
+ _json["customSchemas"],
+ (core.Map<core.String, core.Object> item) =>
+ new UserCustomProperties.fromJson(item));
}
if (_json.containsKey("customerId")) {
customerId = _json["customerId"];
@@ -8304,7 +8503,8 @@ class User {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (addresses != null) {
_json["addresses"] = addresses;
}
@@ -8435,15 +8635,14 @@ class User {
}
}
-/** JSON template for About (notes) of a user in Directory API. */
+/// JSON template for About (notes) of a user in Directory API.
class UserAbout {
- /**
- * About entry can have a type which indicates the content type. It can either
- * be plain or html. By default, notes contents are assumed to contain plain
- * text.
- */
+ /// About entry can have a type which indicates the content type. It can
+ /// either be plain or html. By default, notes contents are assumed to
+ /// contain plain text.
core.String contentType;
- /** Actual value of notes. */
+
+ /// Actual value of notes.
core.String value;
UserAbout();
@@ -8458,7 +8657,8 @@ class UserAbout {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (contentType != null) {
_json["contentType"] = contentType;
}
@@ -8469,45 +8669,52 @@ class UserAbout {
}
}
-/** JSON template for address. */
+/// JSON template for address.
class UserAddress {
- /** Country. */
+ /// Country.
core.String country;
- /** Country code. */
+
+ /// Country code.
core.String countryCode;
- /** Custom type. */
+
+ /// Custom type.
core.String customType;
- /** Extended Address. */
+
+ /// Extended Address.
core.String extendedAddress;
- /** Formatted address. */
+
+ /// Formatted address.
core.String formatted;
- /** Locality. */
+
+ /// Locality.
core.String locality;
- /** Other parts of address. */
+
+ /// Other parts of address.
core.String poBox;
- /** Postal code. */
+
+ /// Postal code.
core.String postalCode;
- /**
- * If this is user's primary address. Only one entry could be marked as
- * primary.
- */
+
+ /// If this is user's primary address. Only one entry could be marked as
+ /// primary.
core.bool primary;
- /** Region. */
+
+ /// Region.
core.String region;
- /**
- * User supplied address was structured. Structured addresses are NOT
- * supported at this time. You might be able to write structured addresses,
- * but any values will eventually be clobbered.
- */
+
+ /// User supplied address was structured. Structured addresses are NOT
+ /// supported at this time. You might be able to write structured addresses,
+ /// but any values will eventually be clobbered.
core.bool sourceIsStructured;
- /** Street. */
+
+ /// Street.
core.String streetAddress;
- /**
- * Each entry can have a type which indicates standard values of that entry.
- * For example address could be of home, work etc. In addition to the standard
- * type, an entry can have a custom type and can take any value. Such type
- * should have the CUSTOM value as type and also have a customType value.
- */
+
+ /// Each entry can have a type which indicates standard values of that entry.
+ /// For example address could be of home, work etc. In addition to the
+ /// standard type, an entry can have a custom type and can take any value.
+ /// Such type should have the CUSTOM value as type and also have a customType
+ /// value.
core.String type;
UserAddress();
@@ -8555,7 +8762,8 @@ class UserAddress {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (country != null) {
_json["country"] = country;
}
@@ -8599,10 +8807,8 @@ class UserAddress {
}
}
-/**
- * JSON template for a set of custom properties (i.e. all fields in a particular
- * schema)
- */
+/// JSON template for a set of custom properties (i.e. all fields in a
+/// particular schema)
class UserCustomProperties
extends collection.MapBase<core.String, core.Object> {
final core.Map _innerMap = {};
@@ -8616,15 +8822,15 @@ class UserCustomProperties
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = <core.String, core.Object>{};
+ final core.Map<core.String, core.Object> _json =
+ <core.String, core.Object>{};
this.forEach((core.String key, value) {
_json[key] = value;
});
return _json;
}
- core.Object operator [](core.Object key)
- => _innerMap[key];
+ core.Object operator [](core.Object key) => _innerMap[key];
operator []=(core.String key, core.Object value) {
_innerMap[key] = value;
@@ -8639,22 +8845,22 @@ class UserCustomProperties
core.Object remove(core.Object key) => _innerMap.remove(key);
}
-/** JSON template for an email. */
+/// JSON template for an email.
class UserEmail {
- /** Email id of the user. */
+ /// Email id of the user.
core.String address;
- /** Custom Type. */
+
+ /// Custom Type.
core.String customType;
- /**
- * If this is user's primary email. Only one entry could be marked as primary.
- */
+
+ /// If this is user's primary email. Only one entry could be marked as
+ /// primary.
core.bool primary;
- /**
- * Each entry can have a type which indicates standard types of that entry.
- * For example email could be of home, work etc. In addition to the standard
- * type, an entry can have a custom type and can take any value Such types
- * should have the CUSTOM value as type and also have a customType value.
- */
+
+ /// Each entry can have a type which indicates standard types of that entry.
+ /// For example email could be of home, work etc. In addition to the standard
+ /// type, an entry can have a custom type and can take any value Such types
+ /// should have the CUSTOM value as type and also have a customType value.
core.String type;
UserEmail();
@@ -8675,7 +8881,8 @@ class UserEmail {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (address != null) {
_json["address"] = address;
}
@@ -8692,13 +8899,15 @@ class UserEmail {
}
}
-/** JSON template for an externalId entry. */
+/// JSON template for an externalId entry.
class UserExternalId {
- /** Custom type. */
+ /// Custom type.
core.String customType;
- /** The type of the Id. */
+
+ /// The type of the Id.
core.String type;
- /** The value of the id. */
+
+ /// The value of the id.
core.String value;
UserExternalId();
@@ -8716,7 +8925,8 @@ class UserExternalId {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (customType != null) {
_json["customType"] = customType;
}
@@ -8730,31 +8940,30 @@ class UserExternalId {
}
}
-/** JSON template for instant messenger of an user. */
+/// JSON template for instant messenger of an user.
class UserIm {
- /** Custom protocol. */
+ /// Custom protocol.
core.String customProtocol;
- /** Custom type. */
+
+ /// Custom type.
core.String customType;
- /** Instant messenger id. */
+
+ /// Instant messenger id.
core.String im;
- /**
- * If this is user's primary im. Only one entry could be marked as primary.
- */
+
+ /// If this is user's primary im. Only one entry could be marked as primary.
core.bool primary;
- /**
- * Protocol used in the instant messenger. It should be one of the values from
- * ImProtocolTypes map. Similar to type, it can take a CUSTOM value and
- * specify the custom name in customProtocol field.
- */
+
+ /// Protocol used in the instant messenger. It should be one of the values
+ /// from ImProtocolTypes map. Similar to type, it can take a CUSTOM value and
+ /// specify the custom name in customProtocol field.
core.String protocol;
- /**
- * Each entry can have a type which indicates standard types of that entry.
- * For example instant messengers could be of home, work etc. In addition to
- * the standard type, an entry can have a custom type and can take any value.
- * Such types should have the CUSTOM value as type and also have a customType
- * value.
- */
+
+ /// Each entry can have a type which indicates standard types of that entry.
+ /// For example instant messengers could be of home, work etc. In addition to
+ /// the standard type, an entry can have a custom type and can take any
+ /// value. Such types should have the CUSTOM value as type and also have a
+ /// customType value.
core.String type;
UserIm();
@@ -8781,7 +8990,8 @@ class UserIm {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (customProtocol != null) {
_json["customProtocol"] = customProtocol;
}
@@ -8804,19 +9014,19 @@ class UserIm {
}
}
-/** JSON template for a keyword entry. */
+/// JSON template for a keyword entry.
class UserKeyword {
- /** Custom Type. */
+ /// Custom Type.
core.String customType;
- /**
- * Each entry can have a type which indicates standard type of that entry. For
- * example, keyword could be of type occupation or outlook. In addition to the
- * standard type, an entry can have a custom type and can give it any name.
- * Such types should have the CUSTOM value as type and also have a customType
- * value.
- */
+
+ /// Each entry can have a type which indicates standard type of that entry.
+ /// For example, keyword could be of type occupation or outlook. In addition
+ /// to the standard type, an entry can have a custom type and can give it any
+ /// name. Such types should have the CUSTOM value as type and also have a
+ /// customType value.
core.String type;
- /** Keyword. */
+
+ /// Keyword.
core.String value;
UserKeyword();
@@ -8834,7 +9044,8 @@ class UserKeyword {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (customType != null) {
_json["customType"] = customType;
}
@@ -8848,18 +9059,15 @@ class UserKeyword {
}
}
-/** JSON template for a language entry. */
+/// JSON template for a language entry.
class UserLanguage {
- /**
- * Other language. User can provide own language name if there is no
- * corresponding Google III language code. If this is set LanguageCode can't
- * be set
- */
+ /// Other language. User can provide own language name if there is no
+ /// corresponding Google III language code. If this is set LanguageCode can't
+ /// be set
core.String customLanguage;
- /**
- * Language Code. Should be used for storing Google III LanguageCode string
- * representation for language. Illegal values cause SchemaException.
- */
+
+ /// Language Code. Should be used for storing Google III LanguageCode string
+ /// representation for language. Illegal values cause SchemaException.
core.String languageCode;
UserLanguage();
@@ -8874,7 +9082,8 @@ class UserLanguage {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (customLanguage != null) {
_json["customLanguage"] = customLanguage;
}
@@ -8885,34 +9094,34 @@ class UserLanguage {
}
}
-/** JSON template for a location entry. */
+/// JSON template for a location entry.
class UserLocation {
- /**
- * Textual location. This is most useful for display purposes to concisely
- * describe the location. For example, "Mountain View, CA", "Near Seattle",
- * "US-NYC-9TH 9A209A".
- */
+ /// Textual location. This is most useful for display purposes to concisely
+ /// describe the location. For example, "Mountain View, CA", "Near Seattle",
+ /// "US-NYC-9TH 9A209A".
core.String area;
- /** Building Identifier. */
+
+ /// Building Identifier.
core.String buildingId;
- /** Custom Type. */
+
+ /// Custom Type.
core.String customType;
- /** Most specific textual code of individual desk location. */
+
+ /// Most specific textual code of individual desk location.
core.String deskCode;
- /** Floor name/number. */
+
+ /// Floor name/number.
core.String floorName;
- /**
- * Floor section. More specific location within the floor. For example, if a
- * floor is divided into sections "A", "B", and "C", this field would identify
- * one of those values.
- */
+
+ /// Floor section. More specific location within the floor. For example, if a
+ /// floor is divided into sections "A", "B", and "C", this field would
+ /// identify one of those values.
core.String floorSection;
- /**
- * Each entry can have a type which indicates standard types of that entry.
- * For example location could be of types default and desk. In addition to
- * standard type, an entry can have a custom type and can give it any name.
- * Such types should have "custom" as type and also have a customType value.
- */
+
+ /// Each entry can have a type which indicates standard types of that entry.
+ /// For example location could be of types default and desk. In addition to
+ /// standard type, an entry can have a custom type and can give it any name.
+ /// Such types should have "custom" as type and also have a customType value.
core.String type;
UserLocation();
@@ -8942,7 +9151,8 @@ class UserLocation {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (area != null) {
_json["area"] = area;
}
@@ -8968,12 +9178,10 @@ class UserLocation {
}
}
-/**
- * JSON request template for setting/revoking admin status of a user in
- * Directory API.
- */
+/// JSON request template for setting/revoking admin status of a user in
+/// Directory API.
class UserMakeAdmin {
- /** Boolean indicating new admin status of the user */
+ /// Boolean indicating new admin status of the user
core.bool status;
UserMakeAdmin();
@@ -8985,7 +9193,8 @@ class UserMakeAdmin {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (status != null) {
_json["status"] = status;
}
@@ -8993,13 +9202,15 @@ class UserMakeAdmin {
}
}
-/** JSON template for name of a user in Directory API. */
+/// JSON template for name of a user in Directory API.
class UserName {
- /** Last Name */
+ /// Last Name
core.String familyName;
- /** Full Name */
+
+ /// Full Name
core.String fullName;
- /** First Name */
+
+ /// First Name
core.String givenName;
UserName();
@@ -9017,7 +9228,8 @@ class UserName {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (familyName != null) {
_json["familyName"] = familyName;
}
@@ -9031,41 +9243,46 @@ class UserName {
}
}
-/** JSON template for an organization entry. */
+/// JSON template for an organization entry.
class UserOrganization {
- /** The cost center of the users department. */
+ /// The cost center of the users department.
core.String costCenter;
- /** Custom type. */
+
+ /// Custom type.
core.String customType;
- /** Department within the organization. */
+
+ /// Department within the organization.
core.String department;
- /** Description of the organization. */
+
+ /// Description of the organization.
core.String description;
- /** The domain to which the organization belongs to. */
+
+ /// The domain to which the organization belongs to.
core.String domain;
- /**
- * The full-time equivalent percent within the organization (100000 = 100%).
- */
+
+ /// The full-time equivalent percent within the organization (100000 = 100%).
core.int fullTimeEquivalent;
- /**
- * Location of the organization. This need not be fully qualified address.
- */
+
+ /// Location of the organization. This need not be fully qualified address.
core.String location;
- /** Name of the organization */
+
+ /// Name of the organization
core.String name;
- /** If it user's primary organization. */
+
+ /// If it user's primary organization.
core.bool primary;
- /** Symbol of the organization. */
+
+ /// Symbol of the organization.
core.String symbol;
- /** Title (designation) of the user in the organization. */
+
+ /// Title (designation) of the user in the organization.
core.String title;
- /**
- * Each entry can have a type which indicates standard types of that entry.
- * For example organization could be of school, work etc. In addition to the
- * standard type, an entry can have a custom type and can give it any name.
- * Such types should have the CUSTOM value as type and also have a CustomType
- * value.
- */
+
+ /// Each entry can have a type which indicates standard types of that entry.
+ /// For example organization could be of school, work etc. In addition to the
+ /// standard type, an entry can have a custom type and can give it any name.
+ /// Such types should have the CUSTOM value as type and also have a
+ /// CustomType value.
core.String type;
UserOrganization();
@@ -9110,7 +9327,8 @@ class UserOrganization {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (costCenter != null) {
_json["costCenter"] = costCenter;
}
@@ -9151,21 +9369,22 @@ class UserOrganization {
}
}
-/** JSON template for a phone entry. */
+/// JSON template for a phone entry.
class UserPhone {
- /** Custom Type. */
+ /// Custom Type.
core.String customType;
- /** If this is user's primary phone or not. */
+
+ /// If this is user's primary phone or not.
core.bool primary;
- /**
- * Each entry can have a type which indicates standard types of that entry.
- * For example phone could be of home_fax, work, mobile etc. In addition to
- * the standard type, an entry can have a custom type and can give it any
- * name. Such types should have the CUSTOM value as type and also have a
- * customType value.
- */
+
+ /// Each entry can have a type which indicates standard types of that entry.
+ /// For example phone could be of home_fax, work, mobile etc. In addition to
+ /// the standard type, an entry can have a custom type and can give it any
+ /// name. Such types should have the CUSTOM value as type and also have a
+ /// customType value.
core.String type;
- /** Phone number. */
+
+ /// Phone number.
core.String value;
UserPhone();
@@ -9186,7 +9405,8 @@ class UserPhone {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (customType != null) {
_json["customType"] = customType;
}
@@ -9203,30 +9423,38 @@ class UserPhone {
}
}
-/** JSON template for Photo object in Directory API. */
+/// JSON template for Photo object in Directory API.
class UserPhoto {
- /** ETag of the resource. */
+ /// ETag of the resource.
core.String etag;
- /** Height in pixels of the photo */
+
+ /// Height in pixels of the photo
core.int height;
- /** Unique identifier of User (Read-only) */
+
+ /// Unique identifier of User (Read-only)
core.String id;
- /** Kind of resource this is. */
+
+ /// Kind of resource this is.
core.String kind;
- /** Mime Type of the photo */
+
+ /// Mime Type of the photo
core.String mimeType;
- /** Base64 encoded photo data */
+
+ /// Base64 encoded photo data
core.String photoData;
core.List<core.int> get photoDataAsBytes {
return convert.BASE64.decode(photoData);
}
void set photoDataAsBytes(core.List<core.int> _bytes) {
- photoData = convert.BASE64.encode(_bytes).replaceAll("/", "_").replaceAll("+", "-");
+ photoData =
+ convert.BASE64.encode(_bytes).replaceAll("/", "_").replaceAll("+", "-");
}
- /** Primary email of User (Read-only) */
+
+ /// Primary email of User (Read-only)
core.String primaryEmail;
- /** Width in pixels of the photo */
+
+ /// Width in pixels of the photo
core.int width;
UserPhoto();
@@ -9259,7 +9487,8 @@ class UserPhoto {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (etag != null) {
_json["etag"] = etag;
}
@@ -9288,26 +9517,31 @@ class UserPhoto {
}
}
-/**
- * JSON template for a POSIX account entry. Description of the field family:
- * go/fbs-posix.
- */
+/// JSON template for a POSIX account entry. Description of the field family:
+/// go/fbs-posix.
class UserPosixAccount {
- /** The GECOS (user information) for this account. */
+ /// The GECOS (user information) for this account.
core.String gecos;
- /** The default group ID. */
+
+ /// The default group ID.
core.int gid;
- /** The path to the home directory for this account. */
+
+ /// The path to the home directory for this account.
core.String homeDirectory;
- /** If this is user's primary account within the SystemId. */
+
+ /// If this is user's primary account within the SystemId.
core.bool primary;
- /** The path to the login shell for this account. */
+
+ /// The path to the login shell for this account.
core.String shell;
- /** System identifier for which account Username or Uid apply to. */
+
+ /// System identifier for which account Username or Uid apply to.
core.String systemId;
- /** The POSIX compliant user ID. */
+
+ /// The POSIX compliant user ID.
core.int uid;
- /** The username of the account. */
+
+ /// The username of the account.
core.String username;
UserPosixAccount();
@@ -9340,7 +9574,8 @@ class UserPosixAccount {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (gecos != null) {
_json["gecos"] = gecos;
}
@@ -9369,16 +9604,16 @@ class UserPosixAccount {
}
}
-/** JSON template for a relation entry. */
+/// JSON template for a relation entry.
class UserRelation {
- /** Custom Type. */
+ /// Custom Type.
core.String customType;
- /**
- * The relation of the user. Some of the possible values are mother, father,
- * sister, brother, manager, assistant, partner.
- */
+
+ /// The relation of the user. Some of the possible values are mother, father,
+ /// sister, brother, manager, assistant, partner.
core.String type;
- /** The name of the relation. */
+
+ /// The name of the relation.
core.String value;
UserRelation();
@@ -9396,7 +9631,8 @@ class UserRelation {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (customType != null) {
_json["customType"] = customType;
}
@@ -9410,13 +9646,15 @@ class UserRelation {
}
}
-/** JSON template for a POSIX account entry. */
+/// JSON template for a POSIX account entry.
class UserSshPublicKey {
- /** An expiration time in microseconds since epoch. */
+ /// An expiration time in microseconds since epoch.
core.String expirationTimeUsec;
- /** A SHA-256 fingerprint of the SSH public key. (Read-only) */
+
+ /// A SHA-256 fingerprint of the SSH public key. (Read-only)
core.String fingerprint;
- /** An SSH public key. */
+
+ /// An SSH public key.
core.String key;
UserSshPublicKey();
@@ -9434,7 +9672,8 @@ class UserSshPublicKey {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (expirationTimeUsec != null) {
_json["expirationTimeUsec"] = expirationTimeUsec;
}
@@ -9448,9 +9687,9 @@ class UserSshPublicKey {
}
}
-/** JSON request template to undelete a user in Directory API. */
+/// JSON request template to undelete a user in Directory API.
class UserUndelete {
- /** OrgUnit of User */
+ /// OrgUnit of User
core.String orgUnitPath;
UserUndelete();
@@ -9462,7 +9701,8 @@ class UserUndelete {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (orgUnitPath != null) {
_json["orgUnitPath"] = orgUnitPath;
}
@@ -9470,21 +9710,22 @@ class UserUndelete {
}
}
-/** JSON template for a website entry. */
+/// JSON template for a website entry.
class UserWebsite {
- /** Custom Type. */
+ /// Custom Type.
core.String customType;
- /** If this is user's primary website or not. */
+
+ /// If this is user's primary website or not.
core.bool primary;
- /**
- * Each entry can have a type which indicates standard types of that entry.
- * For example website could be of home, work, blog etc. In addition to the
- * standard type, an entry can have a custom type and can give it any name.
- * Such types should have the CUSTOM value as type and also have a customType
- * value.
- */
+
+ /// Each entry can have a type which indicates standard types of that entry.
+ /// For example website could be of home, work, blog etc. In addition to the
+ /// standard type, an entry can have a custom type and can give it any name.
+ /// Such types should have the CUSTOM value as type and also have a
+ /// customType value.
core.String type;
- /** Website. */
+
+ /// Website.
core.String value;
UserWebsite();
@@ -9505,7 +9746,8 @@ class UserWebsite {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (customType != null) {
_json["customType"] = customType;
}
@@ -9522,19 +9764,21 @@ class UserWebsite {
}
}
-/** JSON response template for List Users operation in Apps Directory API. */
+/// JSON response template for List Users operation in Apps Directory API.
class Users {
- /** ETag of the resource. */
+ /// ETag of the resource.
core.String etag;
- /** Kind of resource this is. */
+
+ /// Kind of resource this is.
core.String kind;
- /** Token used to access next page of this result. */
+
+ /// Token used to access next page of this result.
core.String nextPageToken;
- /**
- * Event that triggered this response (only used in case of Push Response)
- */
+
+ /// Event that triggered this response (only used in case of Push Response)
core.String triggerEvent;
- /** List of user objects. */
+
+ /// List of user objects.
core.List<User> users;
Users();
@@ -9558,7 +9802,8 @@ class Users {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (etag != null) {
_json["etag"] = etag;
}
@@ -9578,20 +9823,20 @@ class Users {
}
}
-/** JSON template for verification codes in Directory API. */
+/// JSON template for verification codes in Directory API.
class VerificationCode {
- /** ETag of the resource. */
+ /// ETag of the resource.
core.String etag;
- /**
- * The type of the resource. This is always admin#directory#verificationCode.
- */
+
+ /// The type of the resource. This is always
+ /// admin#directory#verificationCode.
core.String kind;
- /** The obfuscated unique ID of the user. */
+
+ /// The obfuscated unique ID of the user.
core.String userId;
- /**
- * A current verification code for the user. Invalidated or used verification
- * codes are not returned as part of the result.
- */
+
+ /// A current verification code for the user. Invalidated or used
+ /// verification codes are not returned as part of the result.
core.String verificationCode;
VerificationCode();
@@ -9612,7 +9857,8 @@ class VerificationCode {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (etag != null) {
_json["etag"] = etag;
}
@@ -9629,19 +9875,17 @@ class VerificationCode {
}
}
-/**
- * JSON response template for List verification codes operation in Directory
- * API.
- */
+/// JSON response template for List verification codes operation in Directory
+/// API.
class VerificationCodes {
- /** ETag of the resource. */
+ /// ETag of the resource.
core.String etag;
- /** A list of verification code resources. */
+
+ /// A list of verification code resources.
core.List<VerificationCode> items;
- /**
- * The type of the resource. This is always
- * admin#directory#verificationCodesList.
- */
+
+ /// The type of the resource. This is always
+ /// admin#directory#verificationCodesList.
core.String kind;
VerificationCodes();
@@ -9651,7 +9895,9 @@ class VerificationCodes {
etag = _json["etag"];
}
if (_json.containsKey("items")) {
- items = _json["items"].map((value) => new VerificationCode.fromJson(value)).toList();
+ items = _json["items"]
+ .map((value) => new VerificationCode.fromJson(value))
+ .toList();
}
if (_json.containsKey("kind")) {
kind = _json["kind"];
@@ -9659,7 +9905,8 @@ class VerificationCodes {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (etag != null) {
_json["etag"] = etag;
}
« no previous file with comments | « generated/googleapis/lib/admin/datatransfer_v1.dart ('k') | generated/googleapis/lib/admin/reports_v1.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698