@maxim_mazurok/gapi.client.androidmanagement-v1 0.0.20240108 → 0.0.20240129

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.d.ts +173 -31
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -9,7 +9,7 @@
9
9
  // This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
10
10
  // In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
11
11
  // Generated from: https://androidmanagement.googleapis.com/$discovery/rest?version=v1
12
- // Revision: 20240108
12
+ // Revision: 20240129
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -132,6 +132,10 @@ declare namespace gapi.client {
132
132
  disabled?: boolean;
133
133
  /** Configuration to enable this app as an extension app, with the capability of interacting with Android Device Policy offline.This field can be set for at most one app. */
134
134
  extensionConfig?: ExtensionConfig;
135
+ /** Optional. The constraints for installing the app. You can specify a maximum of one InstallConstraint. Multiple constraints are rejected. */
136
+ installConstraint?: InstallConstraint[];
137
+ /** Optional. Amongst apps with installTypeset to:FORCE_INSTALLEDPREINSTALLED this controls the relative priority of installation. A value of 0 (default) means this app has no priority over other apps. For values between 1 and 10,000, a lower value means a higher priority. Values outside of the range 0 to 10,000 inclusive are rejected. */
138
+ installPriority?: number;
135
139
  /** The type of installation to perform. */
136
140
  installType?: string;
137
141
  /** Whether the app is allowed to lock itself in full-screen mode. DEPRECATED. Use InstallType KIOSK or kioskCustomLauncherEnabled to configure a dedicated device. */
@@ -386,6 +390,8 @@ declare namespace gapi.client {
386
390
  disabledReason?: UserFacingMessage;
387
391
  /** Detailed information about displays on the device. This information is only available if displayInfoEnabled is true in the device's policy. */
388
392
  displays?: Display[];
393
+ /** Output only. Information related to whether this device was migrated from being managed by another Device Policy Controller (DPC). */
394
+ dpcMigrationInfo?: DpcMigrationInfo;
389
395
  /** The time of device enrollment. */
390
396
  enrollmentTime?: string;
391
397
  /** If the device was enrolled with an enrollment token with additional data provided, this field contains that data. */
@@ -404,7 +410,7 @@ declare namespace gapi.client {
404
410
  lastStatusReportTime?: string;
405
411
  /** The type of management mode Android Device Policy takes on the device. This influences which policy settings are supported. */
406
412
  managementMode?: string;
407
- /** Events related to memory and storage measurements in chronological order. This information is only available if memoryInfoEnabled is true in the device's policy. */
413
+ /** Events related to memory and storage measurements in chronological order. This information is only available if memoryInfoEnabled is true in the device's policy.Events are retained for a certain period of time and old events are deleted. */
408
414
  memoryEvents?: MemoryEvent[];
409
415
  /** Memory information: contains information about device memory and storage. */
410
416
  memoryInfo?: MemoryInfo;
@@ -501,6 +507,12 @@ declare namespace gapi.client {
501
507
  /** The number of IP addresses returned from the DNS lookup event. May be higher than the amount of ip_addresses if there were too many addresses to log. */
502
508
  totalIpAddressesReturned?: string;
503
509
  }
510
+ interface DpcMigrationInfo {
511
+ /** Output only. If this device was migrated from another DPC, the additionalData field of the migration token is populated here. */
512
+ additionalData?: string;
513
+ /** Output only. If this device was migrated from another DPC, this is its package name. Not populated otherwise. */
514
+ previousDpc?: string;
515
+ }
504
516
  interface Empty {}
505
517
  interface EnrollmentCompleteEvent {}
506
518
  interface EnrollmentToken {
@@ -621,6 +633,14 @@ declare namespace gapi.client {
621
633
  /** Current device skin temperatures in Celsius. */
622
634
  skinTemperatures?: number[];
623
635
  }
636
+ interface InstallConstraint {
637
+ /** Optional. Charging constraint. */
638
+ chargingConstraint?: string;
639
+ /** Optional. Device idle constraint. */
640
+ deviceIdleConstraint?: string;
641
+ /** Optional. Network type constraint. */
642
+ networkTypeConstraint?: string;
643
+ }
624
644
  interface IssueCommandResponse {}
625
645
  interface KeyDestructionEvent {
626
646
  /** UID of the application which owns the key. */
@@ -708,6 +728,12 @@ declare namespace gapi.client {
708
728
  /** If there are more results, a token to retrieve next page of results. */
709
729
  nextPageToken?: string;
710
730
  }
731
+ interface ListMigrationTokensResponse {
732
+ /** The migration tokens from the specified enterprise. */
733
+ migrationTokens?: MigrationToken[];
734
+ /** A token, which can be sent as page_token to retrieve the next page. If this field is omitted, there are no subsequent pages. */
735
+ nextPageToken?: string;
736
+ }
711
737
  interface ListOperationsResponse {
712
738
  /** The standard List next-page token. */
713
739
  nextPageToken?: string;
@@ -796,6 +822,30 @@ declare namespace gapi.client {
796
822
  /** Total RAM on device in bytes. */
797
823
  totalRam?: string;
798
824
  }
825
+ interface MigrationToken {
826
+ /** Immutable. Optional EMM-specified additional data. Once the device is migrated this will be populated in the migrationAdditionalData field of the Device resource. This must be at most 1024 characters. */
827
+ additionalData?: string;
828
+ /** Output only. Time when this migration token was created. */
829
+ createTime?: string;
830
+ /** Output only. Once this migration token is used to migrate a device, the name of the resulting Device resource will be populated here, in the form enterprises/{enterprise}/devices/{device}. */
831
+ device?: string;
832
+ /** Required. Immutable. The id of the device, as in the Play EMM API. This corresponds to the deviceId parameter in Play EMM API's Devices.get (https://developers.google.com/android/work/play/emm-api/v1/devices/get#parameters) call. */
833
+ deviceId?: string;
834
+ /** Immutable. The time when this migration token expires. This can be at most seven days from the time of creation. The migration token is deleted seven days after it expires. */
835
+ expireTime?: string;
836
+ /** Required. Immutable. The management mode of the device or profile being migrated. */
837
+ managementMode?: string;
838
+ /** Output only. The name of the migration token, which is generated by the server during creation, in the form enterprises/{enterprise}/migrationTokens/{migration_token}. */
839
+ name?: string;
840
+ /** Required. Immutable. The name of the policy initially applied to the enrolled device, in the form enterprises/{enterprise}/policies/{policy}. */
841
+ policy?: string;
842
+ /** Input only. The time that this migration token is valid for. This is input-only, and for returning a migration token the server will populate the expireTime field. This can be at most seven days. The default is seven days. */
843
+ ttl?: string;
844
+ /** Required. Immutable. The user id of the Managed Google Play account on the device, as in the Play EMM API. This corresponds to the userId parameter in Play EMM API's Devices.get (https://developers.google.com/android/work/play/emm-api/v1/devices/get#parameters) call. */
845
+ userId?: string;
846
+ /** Output only. The value of the migration token. */
847
+ value?: string;
848
+ }
799
849
  interface NetworkInfo {
800
850
  /** IMEI number of the GSM device. For example, A1000031212. */
801
851
  imei?: string;
@@ -946,11 +996,11 @@ declare namespace gapi.client {
946
996
  addUserDisabled?: boolean;
947
997
  /** Whether adjusting the master volume is disabled. Also mutes the device. */
948
998
  adjustVolumeDisabled?: boolean;
949
- /** Security policies set to secure values by default. To maintain the security posture of a device, we don't recommend overriding any of the default values. */
999
+ /** Advanced security settings. In most cases, setting these is not needed. */
950
1000
  advancedSecurityOverrides?: AdvancedSecurityOverrides;
951
1001
  /** Configuration for an always-on VPN connection. Use with vpn_config_disabled to prevent modification of this setting. */
952
1002
  alwaysOnVpnPackage?: AlwaysOnVpnPackage;
953
- /** The app tracks for Android Device Policy the device can access. The device receives the latest version among all accessible tracks. If no tracks are specified, then the device only uses the production track. */
1003
+ /** This setting is not supported. Any value is ignored. */
954
1004
  androidDevicePolicyTracks?: string[];
955
1005
  /** Recommended alternative: autoUpdateMode which is set per app, provides greater flexibility around update frequency.When autoUpdateMode is set to AUTO_UPDATE_POSTPONED or AUTO_UPDATE_HIGH_PRIORITY, this field has no effect.The app auto update policy, which controls when automatic app updates can be applied. */
956
1006
  appAutoUpdatePolicy?: string;
@@ -1506,33 +1556,6 @@ declare namespace gapi.client {
1506
1556
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1507
1557
  uploadType?: string;
1508
1558
  }): Request<{}>;
1509
- /** Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns google.rpc.Code.UNIMPLEMENTED. */
1510
- delete(request?: {
1511
- /** V1 error format. */
1512
- '$.xgafv'?: string;
1513
- /** OAuth access token. */
1514
- access_token?: string;
1515
- /** Data format for response. */
1516
- alt?: string;
1517
- /** JSONP */
1518
- callback?: string;
1519
- /** Selector specifying which fields to include in a partial response. */
1520
- fields?: string;
1521
- /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1522
- key?: string;
1523
- /** The name of the operation resource to be deleted. */
1524
- name: string;
1525
- /** OAuth 2.0 token for the current user. */
1526
- oauth_token?: string;
1527
- /** Returns response with indentations and line breaks. */
1528
- prettyPrint?: boolean;
1529
- /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1530
- quotaUser?: string;
1531
- /** Upload protocol for media (e.g. "raw", "multipart"). */
1532
- upload_protocol?: string;
1533
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1534
- uploadType?: string;
1535
- }): Request<{}>;
1536
1559
  /** Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service. */
1537
1560
  get(request?: {
1538
1561
  /** V1 error format. */
@@ -1951,6 +1974,124 @@ declare namespace gapi.client {
1951
1974
  uploadType?: string;
1952
1975
  }): Request<ListEnrollmentTokensResponse>;
1953
1976
  }
1977
+ interface MigrationTokensResource {
1978
+ /** Creates a migration token, to migrate an existing device from being managed by the EMM's Device Policy Controller (DPC) to being managed by the Android Management API. */
1979
+ create(request: {
1980
+ /** V1 error format. */
1981
+ '$.xgafv'?: string;
1982
+ /** OAuth access token. */
1983
+ access_token?: string;
1984
+ /** Data format for response. */
1985
+ alt?: string;
1986
+ /** JSONP */
1987
+ callback?: string;
1988
+ /** Selector specifying which fields to include in a partial response. */
1989
+ fields?: string;
1990
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1991
+ key?: string;
1992
+ /** OAuth 2.0 token for the current user. */
1993
+ oauth_token?: string;
1994
+ /** Required. The enterprise in which this migration token will be created. Format: enterprises/{enterprise} */
1995
+ parent: string;
1996
+ /** Returns response with indentations and line breaks. */
1997
+ prettyPrint?: boolean;
1998
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1999
+ quotaUser?: string;
2000
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2001
+ upload_protocol?: string;
2002
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2003
+ uploadType?: string;
2004
+ /** Request body */
2005
+ resource: MigrationToken;
2006
+ }): Request<MigrationToken>;
2007
+ create(
2008
+ request: {
2009
+ /** V1 error format. */
2010
+ '$.xgafv'?: string;
2011
+ /** OAuth access token. */
2012
+ access_token?: string;
2013
+ /** Data format for response. */
2014
+ alt?: string;
2015
+ /** JSONP */
2016
+ callback?: string;
2017
+ /** Selector specifying which fields to include in a partial response. */
2018
+ fields?: string;
2019
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
2020
+ key?: string;
2021
+ /** OAuth 2.0 token for the current user. */
2022
+ oauth_token?: string;
2023
+ /** Required. The enterprise in which this migration token will be created. Format: enterprises/{enterprise} */
2024
+ parent: string;
2025
+ /** Returns response with indentations and line breaks. */
2026
+ prettyPrint?: boolean;
2027
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2028
+ quotaUser?: string;
2029
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2030
+ upload_protocol?: string;
2031
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2032
+ uploadType?: string;
2033
+ },
2034
+ body: MigrationToken
2035
+ ): Request<MigrationToken>;
2036
+ /** Gets a migration token. */
2037
+ get(request?: {
2038
+ /** V1 error format. */
2039
+ '$.xgafv'?: string;
2040
+ /** OAuth access token. */
2041
+ access_token?: string;
2042
+ /** Data format for response. */
2043
+ alt?: string;
2044
+ /** JSONP */
2045
+ callback?: string;
2046
+ /** Selector specifying which fields to include in a partial response. */
2047
+ fields?: string;
2048
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
2049
+ key?: string;
2050
+ /** Required. The name of the migration token to retrieve. Format: enterprises/{enterprise}/migrationTokens/{migration_token} */
2051
+ name: string;
2052
+ /** OAuth 2.0 token for the current user. */
2053
+ oauth_token?: string;
2054
+ /** Returns response with indentations and line breaks. */
2055
+ prettyPrint?: boolean;
2056
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2057
+ quotaUser?: string;
2058
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2059
+ upload_protocol?: string;
2060
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2061
+ uploadType?: string;
2062
+ }): Request<MigrationToken>;
2063
+ /** Lists migration tokens. */
2064
+ list(request?: {
2065
+ /** V1 error format. */
2066
+ '$.xgafv'?: string;
2067
+ /** OAuth access token. */
2068
+ access_token?: string;
2069
+ /** Data format for response. */
2070
+ alt?: string;
2071
+ /** JSONP */
2072
+ callback?: string;
2073
+ /** Selector specifying which fields to include in a partial response. */
2074
+ fields?: string;
2075
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
2076
+ key?: string;
2077
+ /** OAuth 2.0 token for the current user. */
2078
+ oauth_token?: string;
2079
+ /** The maximum number of migration tokens to return. Fewer migration tokens may be returned. If unspecified, at most 100 migration tokens will be returned. The maximum value is 100; values above 100 will be coerced to 100. */
2080
+ pageSize?: number;
2081
+ /** A page token, received from a previous ListMigrationTokens call. Provide this to retrieve the subsequent page.When paginating, all other parameters provided to ListMigrationTokens must match the call that provided the page token. */
2082
+ pageToken?: string;
2083
+ /** Required. The enterprise which the migration tokens belong to. Format: enterprises/{enterprise} */
2084
+ parent: string;
2085
+ /** Returns response with indentations and line breaks. */
2086
+ prettyPrint?: boolean;
2087
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2088
+ quotaUser?: string;
2089
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2090
+ upload_protocol?: string;
2091
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2092
+ uploadType?: string;
2093
+ }): Request<ListMigrationTokensResponse>;
2094
+ }
1954
2095
  interface PoliciesResource {
1955
2096
  /** Deletes a policy. This operation is only permitted if no devices are currently referencing the policy. */
1956
2097
  delete(request?: {
@@ -2590,6 +2731,7 @@ declare namespace gapi.client {
2590
2731
  applications: ApplicationsResource;
2591
2732
  devices: DevicesResource;
2592
2733
  enrollmentTokens: EnrollmentTokensResource;
2734
+ migrationTokens: MigrationTokensResource;
2593
2735
  policies: PoliciesResource;
2594
2736
  webApps: WebAppsResource;
2595
2737
  webTokens: WebTokensResource;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.androidmanagement-v1",
3
- "version": "0.0.20240108",
3
+ "version": "0.0.20240129",
4
4
  "description": "TypeScript typings for Android Management API v1",
5
5
  "repository": {
6
6
  "type": "git",