type
stringclasses 7
values | content
stringlengths 4
9.55k
| repo
stringlengths 7
96
| path
stringlengths 4
178
| language
stringclasses 1
value |
---|---|---|---|---|
InterfaceDeclaration |
export interface Params$Resource$Enterprises$Devices$Operations$Get
extends StandardParameters {
/**
* The name of the operation resource.
*/
name?: string;
} | GazeDev/google-api-nodejs-client | src/apis/androidmanagement/v1.ts | TypeScript |
InterfaceDeclaration |
export interface Params$Resource$Enterprises$Devices$Operations$List
extends StandardParameters {
/**
* The standard list filter.
*/
filter?: string;
/**
* The name of the operation's parent resource.
*/
name?: string;
/**
* The standard list page size.
*/
pageSize?: number;
/**
* The standard list page token.
*/
pageToken?: string;
} | GazeDev/google-api-nodejs-client | src/apis/androidmanagement/v1.ts | TypeScript |
InterfaceDeclaration |
export interface Params$Resource$Enterprises$Enrollmenttokens$Create
extends StandardParameters {
/**
* The name of the enterprise in the form enterprises/{enterpriseId\}.
*/
parent?: string;
/**
* Request body metadata
*/
requestBody?: Schema$EnrollmentToken;
} | GazeDev/google-api-nodejs-client | src/apis/androidmanagement/v1.ts | TypeScript |
InterfaceDeclaration |
export interface Params$Resource$Enterprises$Enrollmenttokens$Delete
extends StandardParameters {
/**
* The name of the enrollment token in the form enterprises/{enterpriseId\}/enrollmentTokens/{enrollmentTokenId\}.
*/
name?: string;
} | GazeDev/google-api-nodejs-client | src/apis/androidmanagement/v1.ts | TypeScript |
InterfaceDeclaration |
export interface Params$Resource$Enterprises$Policies$Delete
extends StandardParameters {
/**
* The name of the policy in the form enterprises/{enterpriseId\}/policies/{policyId\}.
*/
name?: string;
} | GazeDev/google-api-nodejs-client | src/apis/androidmanagement/v1.ts | TypeScript |
InterfaceDeclaration |
export interface Params$Resource$Enterprises$Policies$Get
extends StandardParameters {
/**
* The name of the policy in the form enterprises/{enterpriseId\}/policies/{policyId\}.
*/
name?: string;
} | GazeDev/google-api-nodejs-client | src/apis/androidmanagement/v1.ts | TypeScript |
InterfaceDeclaration |
export interface Params$Resource$Enterprises$Policies$List
extends StandardParameters {
/**
* The requested page size. The actual page size may be fixed to a min or max value.
*/
pageSize?: number;
/**
* A token identifying a page of results returned by the server.
*/
pageToken?: string;
/**
* The name of the enterprise in the form enterprises/{enterpriseId\}.
*/
parent?: string;
} | GazeDev/google-api-nodejs-client | src/apis/androidmanagement/v1.ts | TypeScript |
InterfaceDeclaration |
export interface Params$Resource$Enterprises$Policies$Patch
extends StandardParameters {
/**
* The name of the policy in the form enterprises/{enterpriseId\}/policies/{policyId\}.
*/
name?: string;
/**
* The field mask indicating the fields to update. If not set, all modifiable fields will be modified.
*/
updateMask?: string;
/**
* Request body metadata
*/
requestBody?: Schema$Policy;
} | GazeDev/google-api-nodejs-client | src/apis/androidmanagement/v1.ts | TypeScript |
InterfaceDeclaration |
export interface Params$Resource$Enterprises$Webapps$Create
extends StandardParameters {
/**
* The name of the enterprise in the form enterprises/{enterpriseId\}.
*/
parent?: string;
/**
* Request body metadata
*/
requestBody?: Schema$WebApp;
} | GazeDev/google-api-nodejs-client | src/apis/androidmanagement/v1.ts | TypeScript |
InterfaceDeclaration |
export interface Params$Resource$Enterprises$Webapps$Delete
extends StandardParameters {
/**
* The name of the web app in the form enterprises/{enterpriseId\}/webApps/{packageName\}.
*/
name?: string;
} | GazeDev/google-api-nodejs-client | src/apis/androidmanagement/v1.ts | TypeScript |
InterfaceDeclaration |
export interface Params$Resource$Enterprises$Webapps$Get
extends StandardParameters {
/**
* The name of the web app in the form enterprises/{enterpriseId\}/webApp/{packageName\}.
*/
name?: string;
} | GazeDev/google-api-nodejs-client | src/apis/androidmanagement/v1.ts | TypeScript |
InterfaceDeclaration |
export interface Params$Resource$Enterprises$Webapps$List
extends StandardParameters {
/**
* The requested page size. The actual page size may be fixed to a min or max value.
*/
pageSize?: number;
/**
* A token identifying a page of results returned by the server.
*/
pageToken?: string;
/**
* The name of the enterprise in the form enterprises/{enterpriseId\}.
*/
parent?: string;
} | GazeDev/google-api-nodejs-client | src/apis/androidmanagement/v1.ts | TypeScript |
InterfaceDeclaration |
export interface Params$Resource$Enterprises$Webapps$Patch
extends StandardParameters {
/**
* The name of the web app in the form enterprises/{enterpriseId\}/webApps/{packageName\}.
*/
name?: string;
/**
* The field mask indicating the fields to update. If not set, all modifiable fields will be modified.
*/
updateMask?: string;
/**
* Request body metadata
*/
requestBody?: Schema$WebApp;
} | GazeDev/google-api-nodejs-client | src/apis/androidmanagement/v1.ts | TypeScript |
InterfaceDeclaration |
export interface Params$Resource$Enterprises$Webtokens$Create
extends StandardParameters {
/**
* The name of the enterprise in the form enterprises/{enterpriseId\}.
*/
parent?: string;
/**
* Request body metadata
*/
requestBody?: Schema$WebToken;
} | GazeDev/google-api-nodejs-client | src/apis/androidmanagement/v1.ts | TypeScript |
InterfaceDeclaration |
export interface Params$Resource$Signupurls$Create
extends StandardParameters {
/**
* The callback URL that the admin will be redirected to after successfully creating an enterprise. Before redirecting there the system will add a query parameter to this URL named enterpriseToken which will contain an opaque token to be used for the create enterprise request. The URL will be parsed then reformatted in order to add the enterpriseToken parameter, so there may be some minor formatting changes.
*/
callbackUrl?: string;
/**
* The ID of the Google Cloud Platform project which will own the enterprise.
*/
projectId?: string;
} | GazeDev/google-api-nodejs-client | src/apis/androidmanagement/v1.ts | TypeScript |
MethodDeclaration | /**
* Creates an enterprise. This is the last step in the enterprise signup flow.
* @example
* ```js
* // Before running the sample:
* // - Enable the API at:
* // https://console.developers.google.com/apis/api/androidmanagement.googleapis.com
* // - Login into gcloud by running:
* // `$ gcloud auth application-default login`
* // - Install the npm module by running:
* // `$ npm install googleapis`
*
* const {google} = require('googleapis');
* const androidmanagement = google.androidmanagement('v1');
*
* async function main() {
* const auth = new google.auth.GoogleAuth({
* // Scopes can be specified either as an array or as a single, space-delimited string.
* scopes: ['https://www.googleapis.com/auth/androidmanagement'],
* });
*
* // Acquire an auth client, and bind it to all future calls
* const authClient = await auth.getClient();
* google.options({auth: authClient});
*
* // Do the magic
* const res = await androidmanagement.enterprises.create({
* // Whether the enterprise admin has seen and agreed to the managed Google Play Agreement (https://www.android.com/enterprise/terms/). Always set this to true when creating an EMM-managed enterprise. Do not create the enterprise until the admin has viewed and accepted the agreement.
* agreementAccepted: 'placeholder-value',
* // The enterprise token appended to the callback URL. Only set this when creating a customer-managed enterprise.
* enterpriseToken: 'placeholder-value',
* // The ID of the Google Cloud Platform project which will own the enterprise.
* projectId: 'placeholder-value',
* // The name of the SignupUrl used to sign up for the enterprise. Only set this when creating a customer-managed enterprise.
* signupUrlName: 'placeholder-value',
*
* // Request body metadata
* requestBody: {
* // request body parameters
* // {
* // "appAutoApprovalEnabled": false,
* // "contactInfo": {},
* // "enabledNotificationTypes": [],
* // "enterpriseDisplayName": "my_enterpriseDisplayName",
* // "logo": {},
* // "name": "my_name",
* // "primaryColor": 0,
* // "pubsubTopic": "my_pubsubTopic",
* // "signinDetails": [],
* // "termsAndConditions": []
* // }
* },
* });
* console.log(res.data);
*
* // Example response
* // {
* // "appAutoApprovalEnabled": false,
* // "contactInfo": {},
* // "enabledNotificationTypes": [],
* // "enterpriseDisplayName": "my_enterpriseDisplayName",
* // "logo": {},
* // "name": "my_name",
* // "primaryColor": 0,
* // "pubsubTopic": "my_pubsubTopic",
* // "signinDetails": [],
* // "termsAndConditions": []
* // }
* }
*
* main().catch(e => {
* console.error(e);
* throw e;
* });
*
* ```
*
* @param params - Parameters for request
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
* @param callback - Optional callback that handles the response.
* @returns A promise if used with async/await, or void if used with a callback.
*/
create(
params: Params$Resource$Enterprises$Create,
options: StreamMethodOptions
): GaxiosPromise<Readable>; | GazeDev/google-api-nodejs-client | src/apis/androidmanagement/v1.ts | TypeScript |
MethodDeclaration |
create(
params?: Params$Resource$Enterprises$Create,
options?: MethodOptions
): GaxiosPromise<Schema$Enterprise>; | GazeDev/google-api-nodejs-client | src/apis/androidmanagement/v1.ts | TypeScript |
MethodDeclaration |
create(
params: Params$Resource$Enterprises$Create,
options: StreamMethodOptions | BodyResponseCallback<Readable>,
callback: BodyResponseCallback<Readable>
): void; | GazeDev/google-api-nodejs-client | src/apis/androidmanagement/v1.ts | TypeScript |
MethodDeclaration |
create(
params: Params$Resource$Enterprises$Create,
options: MethodOptions | BodyResponseCallback<Schema$Enterprise>,
callback: BodyResponseCallback<Schema$Enterprise>
): void; | GazeDev/google-api-nodejs-client | src/apis/androidmanagement/v1.ts | TypeScript |
MethodDeclaration |
create(
params: Params$Resource$Enterprises$Create,
callback: BodyResponseCallback<Schema$Enterprise>
): void; | GazeDev/google-api-nodejs-client | src/apis/androidmanagement/v1.ts | TypeScript |
MethodDeclaration |
create(callback: BodyResponseCallback<Schema$Enterprise>): void; | GazeDev/google-api-nodejs-client | src/apis/androidmanagement/v1.ts | TypeScript |
MethodDeclaration |
create(
paramsOrCallback?:
| Params$Resource$Enterprises$Create
| BodyResponseCallback<Schema$Enterprise>
| BodyResponseCallback<Readable>,
optionsOrCallback?:
| MethodOptions
| StreamMethodOptions
| BodyResponseCallback<Schema$Enterprise>
| BodyResponseCallback<Readable>,
callback?:
| BodyResponseCallback<Schema$Enterprise>
| BodyResponseCallback<Readable>
): void | GaxiosPromise<Schema$Enterprise> | GaxiosPromise<Readable> {
let params = (paramsOrCallback ||
{}) as Params$Resource$Enterprises$Create;
let options = (optionsOrCallback || {}) as MethodOptions;
if (typeof paramsOrCallback === 'function') {
callback = paramsOrCallback;
params = {} as Params$Resource$Enterprises$Create;
options = {};
}
if (typeof optionsOrCallback === 'function') {
callback = optionsOrCallback;
options = {};
}
const rootUrl =
options.rootUrl || 'https://androidmanagement.googleapis.com/';
const parameters = {
options: Object.assign(
{
url: (rootUrl + '/v1/enterprises').replace(/([^:]\/)\/+/g, '$1'),
method: 'POST',
},
options
),
params,
requiredParams: [],
pathParams: [],
context: this.context,
};
if (callback) {
createAPIRequest<Schema$Enterprise>(
parameters,
callback as BodyResponseCallback<unknown>
);
} else {
return createAPIRequest<Schema$Enterprise>(parameters);
}
} | GazeDev/google-api-nodejs-client | src/apis/androidmanagement/v1.ts | TypeScript |
MethodDeclaration | /**
* Deletes an enterprise. Only available for EMM-managed enterprises.
* @example
* ```js
* // Before running the sample:
* // - Enable the API at:
* // https://console.developers.google.com/apis/api/androidmanagement.googleapis.com
* // - Login into gcloud by running:
* // `$ gcloud auth application-default login`
* // - Install the npm module by running:
* // `$ npm install googleapis`
*
* const {google} = require('googleapis');
* const androidmanagement = google.androidmanagement('v1');
*
* async function main() {
* const auth = new google.auth.GoogleAuth({
* // Scopes can be specified either as an array or as a single, space-delimited string.
* scopes: ['https://www.googleapis.com/auth/androidmanagement'],
* });
*
* // Acquire an auth client, and bind it to all future calls
* const authClient = await auth.getClient();
* google.options({auth: authClient});
*
* // Do the magic
* const res = await androidmanagement.enterprises.delete({
* // The name of the enterprise in the form enterprises/{enterpriseId\}.
* name: 'enterprises/my-enterprise',
* });
* console.log(res.data);
*
* // Example response
* // {}
* }
*
* main().catch(e => {
* console.error(e);
* throw e;
* });
*
* ```
*
* @param params - Parameters for request
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
* @param callback - Optional callback that handles the response.
* @returns A promise if used with async/await, or void if used with a callback.
*/
delete(
params: Params$Resource$Enterprises$Delete,
options: StreamMethodOptions
): GaxiosPromise<Readable>; | GazeDev/google-api-nodejs-client | src/apis/androidmanagement/v1.ts | TypeScript |
MethodDeclaration |
delete(
params?: Params$Resource$Enterprises$Delete,
options?: MethodOptions
): GaxiosPromise<Schema$Empty>; | GazeDev/google-api-nodejs-client | src/apis/androidmanagement/v1.ts | TypeScript |
MethodDeclaration |
delete(
params: Params$Resource$Enterprises$Delete,
options: StreamMethodOptions | BodyResponseCallback<Readable>,
callback: BodyResponseCallback<Readable>
): void; | GazeDev/google-api-nodejs-client | src/apis/androidmanagement/v1.ts | TypeScript |
MethodDeclaration |
delete(
params: Params$Resource$Enterprises$Delete,
options: MethodOptions | BodyResponseCallback<Schema$Empty>,
callback: BodyResponseCallback<Schema$Empty>
): void; | GazeDev/google-api-nodejs-client | src/apis/androidmanagement/v1.ts | TypeScript |
MethodDeclaration |
delete(
params: Params$Resource$Enterprises$Delete,
callback: BodyResponseCallback<Schema$Empty>
): void; | GazeDev/google-api-nodejs-client | src/apis/androidmanagement/v1.ts | TypeScript |
MethodDeclaration |
delete(
paramsOrCallback?:
| Params$Resource$Enterprises$Delete
| BodyResponseCallback<Schema$Empty>
| BodyResponseCallback<Readable>,
optionsOrCallback?:
| MethodOptions
| StreamMethodOptions
| BodyResponseCallback<Schema$Empty>
| BodyResponseCallback<Readable>,
callback?:
| BodyResponseCallback<Schema$Empty>
| BodyResponseCallback<Readable>
): void | GaxiosPromise<Schema$Empty> | GaxiosPromise<Readable> {
let params = (paramsOrCallback ||
{}) as Params$Resource$Enterprises$Delete;
let options = (optionsOrCallback || {}) as MethodOptions;
if (typeof paramsOrCallback === 'function') {
callback = paramsOrCallback;
params = {} as Params$Resource$Enterprises$Delete;
options = {};
}
if (typeof optionsOrCallback === 'function') {
callback = optionsOrCallback;
options = {};
}
const rootUrl =
options.rootUrl || 'https://androidmanagement.googleapis.com/';
const parameters = {
options: Object.assign(
{
url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
method: 'DELETE',
},
options
),
params,
requiredParams: ['name'],
pathParams: ['name'],
context: this.context,
};
if (callback) {
createAPIRequest<Schema$Empty>(
parameters,
callback as BodyResponseCallback<unknown>
);
} else {
return createAPIRequest<Schema$Empty>(parameters);
}
} | GazeDev/google-api-nodejs-client | src/apis/androidmanagement/v1.ts | TypeScript |
MethodDeclaration | /**
* Gets an enterprise.
* @example
* ```js
* // Before running the sample:
* // - Enable the API at:
* // https://console.developers.google.com/apis/api/androidmanagement.googleapis.com
* // - Login into gcloud by running:
* // `$ gcloud auth application-default login`
* // - Install the npm module by running:
* // `$ npm install googleapis`
*
* const {google} = require('googleapis');
* const androidmanagement = google.androidmanagement('v1');
*
* async function main() {
* const auth = new google.auth.GoogleAuth({
* // Scopes can be specified either as an array or as a single, space-delimited string.
* scopes: ['https://www.googleapis.com/auth/androidmanagement'],
* });
*
* // Acquire an auth client, and bind it to all future calls
* const authClient = await auth.getClient();
* google.options({auth: authClient});
*
* // Do the magic
* const res = await androidmanagement.enterprises.get({
* // The name of the enterprise in the form enterprises/{enterpriseId\}.
* name: 'enterprises/my-enterprise',
* });
* console.log(res.data);
*
* // Example response
* // {
* // "appAutoApprovalEnabled": false,
* // "contactInfo": {},
* // "enabledNotificationTypes": [],
* // "enterpriseDisplayName": "my_enterpriseDisplayName",
* // "logo": {},
* // "name": "my_name",
* // "primaryColor": 0,
* // "pubsubTopic": "my_pubsubTopic",
* // "signinDetails": [],
* // "termsAndConditions": []
* // }
* }
*
* main().catch(e => {
* console.error(e);
* throw e;
* });
*
* ```
*
* @param params - Parameters for request
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
* @param callback - Optional callback that handles the response.
* @returns A promise if used with async/await, or void if used with a callback.
*/
get(
params: Params$Resource$Enterprises$Get,
options: StreamMethodOptions
): GaxiosPromise<Readable>; | GazeDev/google-api-nodejs-client | src/apis/androidmanagement/v1.ts | TypeScript |
MethodDeclaration |
get(
params?: Params$Resource$Enterprises$Get,
options?: MethodOptions
): GaxiosPromise<Schema$Enterprise>; | GazeDev/google-api-nodejs-client | src/apis/androidmanagement/v1.ts | TypeScript |
MethodDeclaration |
get(
params: Params$Resource$Enterprises$Get,
options: StreamMethodOptions | BodyResponseCallback<Readable>,
callback: BodyResponseCallback<Readable>
): void; | GazeDev/google-api-nodejs-client | src/apis/androidmanagement/v1.ts | TypeScript |
MethodDeclaration |
get(
params: Params$Resource$Enterprises$Get,
options: MethodOptions | BodyResponseCallback<Schema$Enterprise>,
callback: BodyResponseCallback<Schema$Enterprise>
): void; | GazeDev/google-api-nodejs-client | src/apis/androidmanagement/v1.ts | TypeScript |
MethodDeclaration |
get(
params: Params$Resource$Enterprises$Get,
callback: BodyResponseCallback<Schema$Enterprise>
): void; | GazeDev/google-api-nodejs-client | src/apis/androidmanagement/v1.ts | TypeScript |
MethodDeclaration |
get(callback: BodyResponseCallback<Schema$Enterprise>): void; | GazeDev/google-api-nodejs-client | src/apis/androidmanagement/v1.ts | TypeScript |
MethodDeclaration |
get(
paramsOrCallback?:
| Params$Resource$Enterprises$Get
| BodyResponseCallback<Schema$Enterprise>
| BodyResponseCallback<Readable>,
optionsOrCallback?:
| MethodOptions
| StreamMethodOptions
| BodyResponseCallback<Schema$Enterprise>
| BodyResponseCallback<Readable>,
callback?:
| BodyResponseCallback<Schema$Enterprise>
| BodyResponseCallback<Readable>
): void | GaxiosPromise<Schema$Enterprise> | GaxiosPromise<Readable> {
let params = (paramsOrCallback || {}) as Params$Resource$Enterprises$Get;
let options = (optionsOrCallback || {}) as MethodOptions;
if (typeof paramsOrCallback === 'function') {
callback = paramsOrCallback;
params = {} as Params$Resource$Enterprises$Get;
options = {};
}
if (typeof optionsOrCallback === 'function') {
callback = optionsOrCallback;
options = {};
}
const rootUrl =
options.rootUrl || 'https://androidmanagement.googleapis.com/';
const parameters = {
options: Object.assign(
{
url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
method: 'GET',
},
options
),
params,
requiredParams: ['name'],
pathParams: ['name'],
context: this.context,
};
if (callback) {
createAPIRequest<Schema$Enterprise>(
parameters,
callback as BodyResponseCallback<unknown>
);
} else {
return createAPIRequest<Schema$Enterprise>(parameters);
}
} | GazeDev/google-api-nodejs-client | src/apis/androidmanagement/v1.ts | TypeScript |
MethodDeclaration | /**
* Lists EMM-managed enterprises. Only BASIC fields are returned.
* @example
* ```js
* // Before running the sample:
* // - Enable the API at:
* // https://console.developers.google.com/apis/api/androidmanagement.googleapis.com
* // - Login into gcloud by running:
* // `$ gcloud auth application-default login`
* // - Install the npm module by running:
* // `$ npm install googleapis`
*
* const {google} = require('googleapis');
* const androidmanagement = google.androidmanagement('v1');
*
* async function main() {
* const auth = new google.auth.GoogleAuth({
* // Scopes can be specified either as an array or as a single, space-delimited string.
* scopes: ['https://www.googleapis.com/auth/androidmanagement'],
* });
*
* // Acquire an auth client, and bind it to all future calls
* const authClient = await auth.getClient();
* google.options({auth: authClient});
*
* // Do the magic
* const res = await androidmanagement.enterprises.list({
* // The requested page size. The actual page size may be fixed to a min or max value.
* pageSize: 'placeholder-value',
* // A token identifying a page of results returned by the server.
* pageToken: 'placeholder-value',
* // Required. The Cloud project ID of the EMM managing the enterprises.
* projectId: 'placeholder-value',
* // Specifies which Enterprise fields to return. This method only supports BASIC.
* view: 'placeholder-value',
* });
* console.log(res.data);
*
* // Example response
* // {
* // "enterprises": [],
* // "nextPageToken": "my_nextPageToken"
* // }
* }
*
* main().catch(e => {
* console.error(e);
* throw e;
* });
*
* ```
*
* @param params - Parameters for request
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
* @param callback - Optional callback that handles the response.
* @returns A promise if used with async/await, or void if used with a callback.
*/
list(
params: Params$Resource$Enterprises$List,
options: StreamMethodOptions
): GaxiosPromise<Readable>; | GazeDev/google-api-nodejs-client | src/apis/androidmanagement/v1.ts | TypeScript |
MethodDeclaration |
list(
params?: Params$Resource$Enterprises$List,
options?: MethodOptions
): GaxiosPromise<Schema$ListEnterprisesResponse>; | GazeDev/google-api-nodejs-client | src/apis/androidmanagement/v1.ts | TypeScript |
MethodDeclaration |
list(
params: Params$Resource$Enterprises$List,
options: StreamMethodOptions | BodyResponseCallback<Readable>,
callback: BodyResponseCallback<Readable>
): void; | GazeDev/google-api-nodejs-client | src/apis/androidmanagement/v1.ts | TypeScript |
MethodDeclaration |
list(
params: Params$Resource$Enterprises$List,
options:
| MethodOptions
| BodyResponseCallback<Schema$ListEnterprisesResponse>,
callback: BodyResponseCallback<Schema$ListEnterprisesResponse>
): void; | GazeDev/google-api-nodejs-client | src/apis/androidmanagement/v1.ts | TypeScript |
MethodDeclaration |
list(
params: Params$Resource$Enterprises$List,
callback: BodyResponseCallback<Schema$ListEnterprisesResponse>
): void; | GazeDev/google-api-nodejs-client | src/apis/androidmanagement/v1.ts | TypeScript |
MethodDeclaration |
list(callback: BodyResponseCallback<Schema$ListEnterprisesResponse>): void; | GazeDev/google-api-nodejs-client | src/apis/androidmanagement/v1.ts | TypeScript |
MethodDeclaration |
list(
paramsOrCallback?:
| Params$Resource$Enterprises$List
| BodyResponseCallback<Schema$ListEnterprisesResponse>
| BodyResponseCallback<Readable>,
optionsOrCallback?:
| MethodOptions
| StreamMethodOptions
| BodyResponseCallback<Schema$ListEnterprisesResponse>
| BodyResponseCallback<Readable>,
callback?:
| BodyResponseCallback<Schema$ListEnterprisesResponse>
| BodyResponseCallback<Readable>
):
| void
| GaxiosPromise<Schema$ListEnterprisesResponse>
| GaxiosPromise<Readable> {
let params = (paramsOrCallback || {}) as Params$Resource$Enterprises$List;
let options = (optionsOrCallback || {}) as MethodOptions;
if (typeof paramsOrCallback === 'function') {
callback = paramsOrCallback;
params = {} as Params$Resource$Enterprises$List;
options = {};
}
if (typeof optionsOrCallback === 'function') {
callback = optionsOrCallback;
options = {};
}
const rootUrl =
options.rootUrl || 'https://androidmanagement.googleapis.com/';
const parameters = {
options: Object.assign(
{
url: (rootUrl + '/v1/enterprises').replace(/([^:]\/)\/+/g, '$1'),
method: 'GET',
},
options
),
params,
requiredParams: [],
pathParams: [],
context: this.context,
};
if (callback) {
createAPIRequest<Schema$ListEnterprisesResponse>(
parameters,
callback as BodyResponseCallback<unknown>
);
} else {
return createAPIRequest<Schema$ListEnterprisesResponse>(parameters);
}
} | GazeDev/google-api-nodejs-client | src/apis/androidmanagement/v1.ts | TypeScript |
MethodDeclaration | /**
* Updates an enterprise.
* @example
* ```js
* // Before running the sample:
* // - Enable the API at:
* // https://console.developers.google.com/apis/api/androidmanagement.googleapis.com
* // - Login into gcloud by running:
* // `$ gcloud auth application-default login`
* // - Install the npm module by running:
* // `$ npm install googleapis`
*
* const {google} = require('googleapis');
* const androidmanagement = google.androidmanagement('v1');
*
* async function main() {
* const auth = new google.auth.GoogleAuth({
* // Scopes can be specified either as an array or as a single, space-delimited string.
* scopes: ['https://www.googleapis.com/auth/androidmanagement'],
* });
*
* // Acquire an auth client, and bind it to all future calls
* const authClient = await auth.getClient();
* google.options({auth: authClient});
*
* // Do the magic
* const res = await androidmanagement.enterprises.patch({
* // The name of the enterprise in the form enterprises/{enterpriseId\}.
* name: 'enterprises/my-enterprise',
* // The field mask indicating the fields to update. If not set, all modifiable fields will be modified.
* updateMask: 'placeholder-value',
*
* // Request body metadata
* requestBody: {
* // request body parameters
* // {
* // "appAutoApprovalEnabled": false,
* // "contactInfo": {},
* // "enabledNotificationTypes": [],
* // "enterpriseDisplayName": "my_enterpriseDisplayName",
* // "logo": {},
* // "name": "my_name",
* // "primaryColor": 0,
* // "pubsubTopic": "my_pubsubTopic",
* // "signinDetails": [],
* // "termsAndConditions": []
* // }
* },
* });
* console.log(res.data);
*
* // Example response
* // {
* // "appAutoApprovalEnabled": false,
* // "contactInfo": {},
* // "enabledNotificationTypes": [],
* // "enterpriseDisplayName": "my_enterpriseDisplayName",
* // "logo": {},
* // "name": "my_name",
* // "primaryColor": 0,
* // "pubsubTopic": "my_pubsubTopic",
* // "signinDetails": [],
* // "termsAndConditions": []
* // }
* }
*
* main().catch(e => {
* console.error(e);
* throw e;
* });
*
* ```
*
* @param params - Parameters for request
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
* @param callback - Optional callback that handles the response.
* @returns A promise if used with async/await, or void if used with a callback.
*/
patch(
params: Params$Resource$Enterprises$Patch,
options: StreamMethodOptions
): GaxiosPromise<Readable>; | GazeDev/google-api-nodejs-client | src/apis/androidmanagement/v1.ts | TypeScript |
MethodDeclaration |
patch(
params?: Params$Resource$Enterprises$Patch,
options?: MethodOptions
): GaxiosPromise<Schema$Enterprise>; | GazeDev/google-api-nodejs-client | src/apis/androidmanagement/v1.ts | TypeScript |
MethodDeclaration |
patch(
params: Params$Resource$Enterprises$Patch,
options: StreamMethodOptions | BodyResponseCallback<Readable>,
callback: BodyResponseCallback<Readable>
): void; | GazeDev/google-api-nodejs-client | src/apis/androidmanagement/v1.ts | TypeScript |
MethodDeclaration |
patch(
params: Params$Resource$Enterprises$Patch,
options: MethodOptions | BodyResponseCallback<Schema$Enterprise>,
callback: BodyResponseCallback<Schema$Enterprise>
): void; | GazeDev/google-api-nodejs-client | src/apis/androidmanagement/v1.ts | TypeScript |
MethodDeclaration |
patch(
params: Params$Resource$Enterprises$Patch,
callback: BodyResponseCallback<Schema$Enterprise>
): void; | GazeDev/google-api-nodejs-client | src/apis/androidmanagement/v1.ts | TypeScript |
MethodDeclaration |
patch(callback: BodyResponseCallback<Schema$Enterprise>): void; | GazeDev/google-api-nodejs-client | src/apis/androidmanagement/v1.ts | TypeScript |
MethodDeclaration |
patch(
paramsOrCallback?:
| Params$Resource$Enterprises$Patch
| BodyResponseCallback<Schema$Enterprise>
| BodyResponseCallback<Readable>,
optionsOrCallback?:
| MethodOptions
| StreamMethodOptions
| BodyResponseCallback<Schema$Enterprise>
| BodyResponseCallback<Readable>,
callback?:
| BodyResponseCallback<Schema$Enterprise>
| BodyResponseCallback<Readable>
): void | GaxiosPromise<Schema$Enterprise> | GaxiosPromise<Readable> {
let params = (paramsOrCallback ||
{}) as Params$Resource$Enterprises$Patch;
let options = (optionsOrCallback || {}) as MethodOptions;
if (typeof paramsOrCallback === 'function') {
callback = paramsOrCallback;
params = {} as Params$Resource$Enterprises$Patch;
options = {};
}
if (typeof optionsOrCallback === 'function') {
callback = optionsOrCallback;
options = {};
}
const rootUrl =
options.rootUrl || 'https://androidmanagement.googleapis.com/';
const parameters = {
options: Object.assign(
{
url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
method: 'PATCH',
},
options
),
params,
requiredParams: ['name'],
pathParams: ['name'],
context: this.context,
};
if (callback) {
createAPIRequest<Schema$Enterprise>(
parameters,
callback as BodyResponseCallback<unknown>
);
} else {
return createAPIRequest<Schema$Enterprise>(parameters);
}
} | GazeDev/google-api-nodejs-client | src/apis/androidmanagement/v1.ts | TypeScript |
MethodDeclaration | /**
* Gets info about an application.
* @example
* ```js
* // Before running the sample:
* // - Enable the API at:
* // https://console.developers.google.com/apis/api/androidmanagement.googleapis.com
* // - Login into gcloud by running:
* // `$ gcloud auth application-default login`
* // - Install the npm module by running:
* // `$ npm install googleapis`
*
* const {google} = require('googleapis');
* const androidmanagement = google.androidmanagement('v1');
*
* async function main() {
* const auth = new google.auth.GoogleAuth({
* // Scopes can be specified either as an array or as a single, space-delimited string.
* scopes: ['https://www.googleapis.com/auth/androidmanagement'],
* });
*
* // Acquire an auth client, and bind it to all future calls
* const authClient = await auth.getClient();
* google.options({auth: authClient});
*
* // Do the magic
* const res = await androidmanagement.enterprises.applications.get({
* // The preferred language for localized application info, as a BCP47 tag (e.g. "en-US", "de"). If not specified the default language of the application will be used.
* languageCode: 'placeholder-value',
* // The name of the application in the form enterprises/{enterpriseId\}/applications/{package_name\}.
* name: 'enterprises/my-enterprise/applications/my-application',
* });
* console.log(res.data);
*
* // Example response
* // {
* // "appTracks": [],
* // "managedProperties": [],
* // "name": "my_name",
* // "permissions": [],
* // "title": "my_title"
* // }
* }
*
* main().catch(e => {
* console.error(e);
* throw e;
* });
*
* ```
*
* @param params - Parameters for request
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
* @param callback - Optional callback that handles the response.
* @returns A promise if used with async/await, or void if used with a callback.
*/
get(
params: Params$Resource$Enterprises$Applications$Get,
options: StreamMethodOptions
): GaxiosPromise<Readable>; | GazeDev/google-api-nodejs-client | src/apis/androidmanagement/v1.ts | TypeScript |
MethodDeclaration |
get(
params?: Params$Resource$Enterprises$Applications$Get,
options?: MethodOptions
): GaxiosPromise<Schema$Application>; | GazeDev/google-api-nodejs-client | src/apis/androidmanagement/v1.ts | TypeScript |
MethodDeclaration |
get(
params: Params$Resource$Enterprises$Applications$Get,
options: StreamMethodOptions | BodyResponseCallback<Readable>,
callback: BodyResponseCallback<Readable>
): void; | GazeDev/google-api-nodejs-client | src/apis/androidmanagement/v1.ts | TypeScript |
MethodDeclaration |
get(
params: Params$Resource$Enterprises$Applications$Get,
options: MethodOptions | BodyResponseCallback<Schema$Application>,
callback: BodyResponseCallback<Schema$Application>
): void; | GazeDev/google-api-nodejs-client | src/apis/androidmanagement/v1.ts | TypeScript |
MethodDeclaration |
get(
params: Params$Resource$Enterprises$Applications$Get,
callback: BodyResponseCallback<Schema$Application>
): void; | GazeDev/google-api-nodejs-client | src/apis/androidmanagement/v1.ts | TypeScript |
MethodDeclaration |
get(callback: BodyResponseCallback<Schema$Application>): void; | GazeDev/google-api-nodejs-client | src/apis/androidmanagement/v1.ts | TypeScript |
MethodDeclaration |
get(
paramsOrCallback?:
| Params$Resource$Enterprises$Applications$Get
| BodyResponseCallback<Schema$Application>
| BodyResponseCallback<Readable>,
optionsOrCallback?:
| MethodOptions
| StreamMethodOptions
| BodyResponseCallback<Schema$Application>
| BodyResponseCallback<Readable>,
callback?:
| BodyResponseCallback<Schema$Application>
| BodyResponseCallback<Readable>
): void | GaxiosPromise<Schema$Application> | GaxiosPromise<Readable> {
let params = (paramsOrCallback ||
{}) as Params$Resource$Enterprises$Applications$Get;
let options = (optionsOrCallback || {}) as MethodOptions;
if (typeof paramsOrCallback === 'function') {
callback = paramsOrCallback;
params = {} as Params$Resource$Enterprises$Applications$Get;
options = {};
}
if (typeof optionsOrCallback === 'function') {
callback = optionsOrCallback;
options = {};
}
const rootUrl =
options.rootUrl || 'https://androidmanagement.googleapis.com/';
const parameters = {
options: Object.assign(
{
url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
method: 'GET',
},
options
),
params,
requiredParams: ['name'],
pathParams: ['name'],
context: this.context,
};
if (callback) {
createAPIRequest<Schema$Application>(
parameters,
callback as BodyResponseCallback<unknown>
);
} else {
return createAPIRequest<Schema$Application>(parameters);
}
} | GazeDev/google-api-nodejs-client | src/apis/androidmanagement/v1.ts | TypeScript |
MethodDeclaration | /**
* Deletes a device. This operation wipes the device.
* @example
* ```js
* // Before running the sample:
* // - Enable the API at:
* // https://console.developers.google.com/apis/api/androidmanagement.googleapis.com
* // - Login into gcloud by running:
* // `$ gcloud auth application-default login`
* // - Install the npm module by running:
* // `$ npm install googleapis`
*
* const {google} = require('googleapis');
* const androidmanagement = google.androidmanagement('v1');
*
* async function main() {
* const auth = new google.auth.GoogleAuth({
* // Scopes can be specified either as an array or as a single, space-delimited string.
* scopes: ['https://www.googleapis.com/auth/androidmanagement'],
* });
*
* // Acquire an auth client, and bind it to all future calls
* const authClient = await auth.getClient();
* google.options({auth: authClient});
*
* // Do the magic
* const res = await androidmanagement.enterprises.devices.delete({
* // The name of the device in the form enterprises/{enterpriseId\}/devices/{deviceId\}.
* name: 'enterprises/my-enterprise/devices/my-device',
* // Optional flags that control the device wiping behavior.
* wipeDataFlags: 'placeholder-value',
* // Optional. A short message displayed to the user before wiping the work profile on personal devices. This has no effect on company owned devices. The maximum message length is 200 characters.
* wipeReasonMessage: 'placeholder-value',
* });
* console.log(res.data);
*
* // Example response
* // {}
* }
*
* main().catch(e => {
* console.error(e);
* throw e;
* });
*
* ```
*
* @param params - Parameters for request
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
* @param callback - Optional callback that handles the response.
* @returns A promise if used with async/await, or void if used with a callback.
*/
delete(
params: Params$Resource$Enterprises$Devices$Delete,
options: StreamMethodOptions
): GaxiosPromise<Readable>; | GazeDev/google-api-nodejs-client | src/apis/androidmanagement/v1.ts | TypeScript |
MethodDeclaration |
delete(
params?: Params$Resource$Enterprises$Devices$Delete,
options?: MethodOptions
): GaxiosPromise<Schema$Empty>; | GazeDev/google-api-nodejs-client | src/apis/androidmanagement/v1.ts | TypeScript |
MethodDeclaration |
delete(
params: Params$Resource$Enterprises$Devices$Delete,
options: StreamMethodOptions | BodyResponseCallback<Readable>,
callback: BodyResponseCallback<Readable>
): void; | GazeDev/google-api-nodejs-client | src/apis/androidmanagement/v1.ts | TypeScript |
MethodDeclaration |
delete(
params: Params$Resource$Enterprises$Devices$Delete,
options: MethodOptions | BodyResponseCallback<Schema$Empty>,
callback: BodyResponseCallback<Schema$Empty>
): void; | GazeDev/google-api-nodejs-client | src/apis/androidmanagement/v1.ts | TypeScript |
MethodDeclaration |
delete(
params: Params$Resource$Enterprises$Devices$Delete,
callback: BodyResponseCallback<Schema$Empty>
): void; | GazeDev/google-api-nodejs-client | src/apis/androidmanagement/v1.ts | TypeScript |
MethodDeclaration |
delete(
paramsOrCallback?:
| Params$Resource$Enterprises$Devices$Delete
| BodyResponseCallback<Schema$Empty>
| BodyResponseCallback<Readable>,
optionsOrCallback?:
| MethodOptions
| StreamMethodOptions
| BodyResponseCallback<Schema$Empty>
| BodyResponseCallback<Readable>,
callback?:
| BodyResponseCallback<Schema$Empty>
| BodyResponseCallback<Readable>
): void | GaxiosPromise<Schema$Empty> | GaxiosPromise<Readable> {
let params = (paramsOrCallback ||
{}) as Params$Resource$Enterprises$Devices$Delete;
let options = (optionsOrCallback || {}) as MethodOptions;
if (typeof paramsOrCallback === 'function') {
callback = paramsOrCallback;
params = {} as Params$Resource$Enterprises$Devices$Delete;
options = {};
}
if (typeof optionsOrCallback === 'function') {
callback = optionsOrCallback;
options = {};
}
const rootUrl =
options.rootUrl || 'https://androidmanagement.googleapis.com/';
const parameters = {
options: Object.assign(
{
url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
method: 'DELETE',
},
options
),
params,
requiredParams: ['name'],
pathParams: ['name'],
context: this.context,
};
if (callback) {
createAPIRequest<Schema$Empty>(
parameters,
callback as BodyResponseCallback<unknown>
);
} else {
return createAPIRequest<Schema$Empty>(parameters);
}
} | GazeDev/google-api-nodejs-client | src/apis/androidmanagement/v1.ts | TypeScript |
MethodDeclaration | /**
* Gets a device.
* @example
* ```js
* // Before running the sample:
* // - Enable the API at:
* // https://console.developers.google.com/apis/api/androidmanagement.googleapis.com
* // - Login into gcloud by running:
* // `$ gcloud auth application-default login`
* // - Install the npm module by running:
* // `$ npm install googleapis`
*
* const {google} = require('googleapis');
* const androidmanagement = google.androidmanagement('v1');
*
* async function main() {
* const auth = new google.auth.GoogleAuth({
* // Scopes can be specified either as an array or as a single, space-delimited string.
* scopes: ['https://www.googleapis.com/auth/androidmanagement'],
* });
*
* // Acquire an auth client, and bind it to all future calls
* const authClient = await auth.getClient();
* google.options({auth: authClient});
*
* // Do the magic
* const res = await androidmanagement.enterprises.devices.get({
* // The name of the device in the form enterprises/{enterpriseId\}/devices/{deviceId\}.
* name: 'enterprises/my-enterprise/devices/my-device',
* });
* console.log(res.data);
*
* // Example response
* // {
* // "apiLevel": 0,
* // "applicationReports": [],
* // "appliedPasswordPolicies": [],
* // "appliedPolicyName": "my_appliedPolicyName",
* // "appliedPolicyVersion": "my_appliedPolicyVersion",
* // "appliedState": "my_appliedState",
* // "commonCriteriaModeInfo": {},
* // "deviceSettings": {},
* // "disabledReason": {},
* // "displays": [],
* // "enrollmentTime": "my_enrollmentTime",
* // "enrollmentTokenData": "my_enrollmentTokenData",
* // "enrollmentTokenName": "my_enrollmentTokenName",
* // "hardwareInfo": {},
* // "hardwareStatusSamples": [],
* // "lastPolicyComplianceReportTime": "my_lastPolicyComplianceReportTime",
* // "lastPolicySyncTime": "my_lastPolicySyncTime",
* // "lastStatusReportTime": "my_lastStatusReportTime",
* // "managementMode": "my_managementMode",
* // "memoryEvents": [],
* // "memoryInfo": {},
* // "name": "my_name",
* // "networkInfo": {},
* // "nonComplianceDetails": [],
* // "ownership": "my_ownership",
* // "policyCompliant": false,
* // "policyName": "my_policyName",
* // "powerManagementEvents": [],
* // "previousDeviceNames": [],
* // "securityPosture": {},
* // "softwareInfo": {},
* // "state": "my_state",
* // "systemProperties": {},
* // "user": {},
* // "userName": "my_userName"
* // }
* }
*
* main().catch(e => {
* console.error(e);
* throw e;
* });
*
* ```
*
* @param params - Parameters for request
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
* @param callback - Optional callback that handles the response.
* @returns A promise if used with async/await, or void if used with a callback.
*/
get(
params: Params$Resource$Enterprises$Devices$Get,
options: StreamMethodOptions
): GaxiosPromise<Readable>; | GazeDev/google-api-nodejs-client | src/apis/androidmanagement/v1.ts | TypeScript |
MethodDeclaration |
get(
params?: Params$Resource$Enterprises$Devices$Get,
options?: MethodOptions
): GaxiosPromise<Schema$Device>; | GazeDev/google-api-nodejs-client | src/apis/androidmanagement/v1.ts | TypeScript |
MethodDeclaration |
get(
params: Params$Resource$Enterprises$Devices$Get,
options: StreamMethodOptions | BodyResponseCallback<Readable>,
callback: BodyResponseCallback<Readable>
): void; | GazeDev/google-api-nodejs-client | src/apis/androidmanagement/v1.ts | TypeScript |
MethodDeclaration |
get(
params: Params$Resource$Enterprises$Devices$Get,
options: MethodOptions | BodyResponseCallback<Schema$Device>,
callback: BodyResponseCallback<Schema$Device>
): void; | GazeDev/google-api-nodejs-client | src/apis/androidmanagement/v1.ts | TypeScript |
MethodDeclaration |
get(
params: Params$Resource$Enterprises$Devices$Get,
callback: BodyResponseCallback<Schema$Device>
): void; | GazeDev/google-api-nodejs-client | src/apis/androidmanagement/v1.ts | TypeScript |
MethodDeclaration |
get(callback: BodyResponseCallback<Schema$Device>): void; | GazeDev/google-api-nodejs-client | src/apis/androidmanagement/v1.ts | TypeScript |
MethodDeclaration |
get(
paramsOrCallback?:
| Params$Resource$Enterprises$Devices$Get
| BodyResponseCallback<Schema$Device>
| BodyResponseCallback<Readable>,
optionsOrCallback?:
| MethodOptions
| StreamMethodOptions
| BodyResponseCallback<Schema$Device>
| BodyResponseCallback<Readable>,
callback?:
| BodyResponseCallback<Schema$Device>
| BodyResponseCallback<Readable>
): void | GaxiosPromise<Schema$Device> | GaxiosPromise<Readable> {
let params = (paramsOrCallback ||
{}) as Params$Resource$Enterprises$Devices$Get;
let options = (optionsOrCallback || {}) as MethodOptions;
if (typeof paramsOrCallback === 'function') {
callback = paramsOrCallback;
params = {} as Params$Resource$Enterprises$Devices$Get;
options = {};
}
if (typeof optionsOrCallback === 'function') {
callback = optionsOrCallback;
options = {};
}
const rootUrl =
options.rootUrl || 'https://androidmanagement.googleapis.com/';
const parameters = {
options: Object.assign(
{
url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
method: 'GET',
},
options
),
params,
requiredParams: ['name'],
pathParams: ['name'],
context: this.context,
};
if (callback) {
createAPIRequest<Schema$Device>(
parameters,
callback as BodyResponseCallback<unknown>
);
} else {
return createAPIRequest<Schema$Device>(parameters);
}
} | GazeDev/google-api-nodejs-client | src/apis/androidmanagement/v1.ts | TypeScript |
MethodDeclaration | /**
* Issues a command to a device. The Operation resource returned contains a Command in its metadata field. Use the get operation method to get the status of the command.
* @example
* ```js
* // Before running the sample:
* // - Enable the API at:
* // https://console.developers.google.com/apis/api/androidmanagement.googleapis.com
* // - Login into gcloud by running:
* // `$ gcloud auth application-default login`
* // - Install the npm module by running:
* // `$ npm install googleapis`
*
* const {google} = require('googleapis');
* const androidmanagement = google.androidmanagement('v1');
*
* async function main() {
* const auth = new google.auth.GoogleAuth({
* // Scopes can be specified either as an array or as a single, space-delimited string.
* scopes: ['https://www.googleapis.com/auth/androidmanagement'],
* });
*
* // Acquire an auth client, and bind it to all future calls
* const authClient = await auth.getClient();
* google.options({auth: authClient});
*
* // Do the magic
* const res = await androidmanagement.enterprises.devices.issueCommand({
* // The name of the device in the form enterprises/{enterpriseId\}/devices/{deviceId\}.
* name: 'enterprises/my-enterprise/devices/my-device',
*
* // Request body metadata
* requestBody: {
* // request body parameters
* // {
* // "createTime": "my_createTime",
* // "duration": "my_duration",
* // "errorCode": "my_errorCode",
* // "newPassword": "my_newPassword",
* // "resetPasswordFlags": [],
* // "type": "my_type",
* // "userName": "my_userName"
* // }
* },
* });
* console.log(res.data);
*
* // Example response
* // {
* // "done": false,
* // "error": {},
* // "metadata": {},
* // "name": "my_name",
* // "response": {}
* // }
* }
*
* main().catch(e => {
* console.error(e);
* throw e;
* });
*
* ```
*
* @param params - Parameters for request
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
* @param callback - Optional callback that handles the response.
* @returns A promise if used with async/await, or void if used with a callback.
*/
issueCommand(
params: Params$Resource$Enterprises$Devices$Issuecommand,
options: StreamMethodOptions
): GaxiosPromise<Readable>; | GazeDev/google-api-nodejs-client | src/apis/androidmanagement/v1.ts | TypeScript |
MethodDeclaration |
issueCommand(
params?: Params$Resource$Enterprises$Devices$Issuecommand,
options?: MethodOptions
): GaxiosPromise<Schema$Operation>; | GazeDev/google-api-nodejs-client | src/apis/androidmanagement/v1.ts | TypeScript |
MethodDeclaration |
issueCommand(
params: Params$Resource$Enterprises$Devices$Issuecommand,
options: StreamMethodOptions | BodyResponseCallback<Readable>,
callback: BodyResponseCallback<Readable>
): void; | GazeDev/google-api-nodejs-client | src/apis/androidmanagement/v1.ts | TypeScript |
MethodDeclaration |
issueCommand(
params: Params$Resource$Enterprises$Devices$Issuecommand,
options: MethodOptions | BodyResponseCallback<Schema$Operation>,
callback: BodyResponseCallback<Schema$Operation>
): void; | GazeDev/google-api-nodejs-client | src/apis/androidmanagement/v1.ts | TypeScript |
MethodDeclaration |
issueCommand(
params: Params$Resource$Enterprises$Devices$Issuecommand,
callback: BodyResponseCallback<Schema$Operation>
): void; | GazeDev/google-api-nodejs-client | src/apis/androidmanagement/v1.ts | TypeScript |
MethodDeclaration |
issueCommand(callback: BodyResponseCallback<Schema$Operation>): void; | GazeDev/google-api-nodejs-client | src/apis/androidmanagement/v1.ts | TypeScript |
MethodDeclaration |
issueCommand(
paramsOrCallback?:
| Params$Resource$Enterprises$Devices$Issuecommand
| BodyResponseCallback<Schema$Operation>
| BodyResponseCallback<Readable>,
optionsOrCallback?:
| MethodOptions
| StreamMethodOptions
| BodyResponseCallback<Schema$Operation>
| BodyResponseCallback<Readable>,
callback?:
| BodyResponseCallback<Schema$Operation>
| BodyResponseCallback<Readable>
): void | GaxiosPromise<Schema$Operation> | GaxiosPromise<Readable> {
let params = (paramsOrCallback ||
{}) as Params$Resource$Enterprises$Devices$Issuecommand;
let options = (optionsOrCallback || {}) as MethodOptions;
if (typeof paramsOrCallback === 'function') {
callback = paramsOrCallback;
params = {} as Params$Resource$Enterprises$Devices$Issuecommand;
options = {};
}
if (typeof optionsOrCallback === 'function') {
callback = optionsOrCallback;
options = {};
}
const rootUrl =
options.rootUrl || 'https://androidmanagement.googleapis.com/';
const parameters = {
options: Object.assign(
{
url: (rootUrl + '/v1/{+name}:issueCommand').replace(
/([^:]\/)\/+/g,
'$1'
),
method: 'POST',
},
options
),
params,
requiredParams: ['name'],
pathParams: ['name'],
context: this.context,
};
if (callback) {
createAPIRequest<Schema$Operation>(
parameters,
callback as BodyResponseCallback<unknown>
);
} else {
return createAPIRequest<Schema$Operation>(parameters);
}
} | GazeDev/google-api-nodejs-client | src/apis/androidmanagement/v1.ts | TypeScript |
MethodDeclaration | /**
* Lists devices for a given enterprise.
* @example
* ```js
* // Before running the sample:
* // - Enable the API at:
* // https://console.developers.google.com/apis/api/androidmanagement.googleapis.com
* // - Login into gcloud by running:
* // `$ gcloud auth application-default login`
* // - Install the npm module by running:
* // `$ npm install googleapis`
*
* const {google} = require('googleapis');
* const androidmanagement = google.androidmanagement('v1');
*
* async function main() {
* const auth = new google.auth.GoogleAuth({
* // Scopes can be specified either as an array or as a single, space-delimited string.
* scopes: ['https://www.googleapis.com/auth/androidmanagement'],
* });
*
* // Acquire an auth client, and bind it to all future calls
* const authClient = await auth.getClient();
* google.options({auth: authClient});
*
* // Do the magic
* const res = await androidmanagement.enterprises.devices.list({
* // The requested page size. The actual page size may be fixed to a min or max value.
* pageSize: 'placeholder-value',
* // A token identifying a page of results returned by the server.
* pageToken: 'placeholder-value',
* // The name of the enterprise in the form enterprises/{enterpriseId\}.
* parent: 'enterprises/my-enterprise',
* });
* console.log(res.data);
*
* // Example response
* // {
* // "devices": [],
* // "nextPageToken": "my_nextPageToken"
* // }
* }
*
* main().catch(e => {
* console.error(e);
* throw e;
* });
*
* ```
*
* @param params - Parameters for request
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
* @param callback - Optional callback that handles the response.
* @returns A promise if used with async/await, or void if used with a callback.
*/
list(
params: Params$Resource$Enterprises$Devices$List,
options: StreamMethodOptions
): GaxiosPromise<Readable>; | GazeDev/google-api-nodejs-client | src/apis/androidmanagement/v1.ts | TypeScript |
MethodDeclaration |
list(
params?: Params$Resource$Enterprises$Devices$List,
options?: MethodOptions
): GaxiosPromise<Schema$ListDevicesResponse>; | GazeDev/google-api-nodejs-client | src/apis/androidmanagement/v1.ts | TypeScript |
MethodDeclaration |
list(
params: Params$Resource$Enterprises$Devices$List,
options: StreamMethodOptions | BodyResponseCallback<Readable>,
callback: BodyResponseCallback<Readable>
): void; | GazeDev/google-api-nodejs-client | src/apis/androidmanagement/v1.ts | TypeScript |
MethodDeclaration |
list(
params: Params$Resource$Enterprises$Devices$List,
options: MethodOptions | BodyResponseCallback<Schema$ListDevicesResponse>,
callback: BodyResponseCallback<Schema$ListDevicesResponse>
): void; | GazeDev/google-api-nodejs-client | src/apis/androidmanagement/v1.ts | TypeScript |
MethodDeclaration |
list(
params: Params$Resource$Enterprises$Devices$List,
callback: BodyResponseCallback<Schema$ListDevicesResponse>
): void; | GazeDev/google-api-nodejs-client | src/apis/androidmanagement/v1.ts | TypeScript |
MethodDeclaration |
list(callback: BodyResponseCallback<Schema$ListDevicesResponse>): void; | GazeDev/google-api-nodejs-client | src/apis/androidmanagement/v1.ts | TypeScript |
MethodDeclaration |
list(
paramsOrCallback?:
| Params$Resource$Enterprises$Devices$List
| BodyResponseCallback<Schema$ListDevicesResponse>
| BodyResponseCallback<Readable>,
optionsOrCallback?:
| MethodOptions
| StreamMethodOptions
| BodyResponseCallback<Schema$ListDevicesResponse>
| BodyResponseCallback<Readable>,
callback?:
| BodyResponseCallback<Schema$ListDevicesResponse>
| BodyResponseCallback<Readable>
):
| void
| GaxiosPromise<Schema$ListDevicesResponse>
| GaxiosPromise<Readable> {
let params = (paramsOrCallback ||
{}) as Params$Resource$Enterprises$Devices$List;
let options = (optionsOrCallback || {}) as MethodOptions;
if (typeof paramsOrCallback === 'function') {
callback = paramsOrCallback;
params = {} as Params$Resource$Enterprises$Devices$List;
options = {};
}
if (typeof optionsOrCallback === 'function') {
callback = optionsOrCallback;
options = {};
}
const rootUrl =
options.rootUrl || 'https://androidmanagement.googleapis.com/';
const parameters = {
options: Object.assign(
{
url: (rootUrl + '/v1/{+parent}/devices').replace(
/([^:]\/)\/+/g,
'$1'
),
method: 'GET',
},
options
),
params,
requiredParams: ['parent'],
pathParams: ['parent'],
context: this.context,
};
if (callback) {
createAPIRequest<Schema$ListDevicesResponse>(
parameters,
callback as BodyResponseCallback<unknown>
);
} else {
return createAPIRequest<Schema$ListDevicesResponse>(parameters);
}
} | GazeDev/google-api-nodejs-client | src/apis/androidmanagement/v1.ts | TypeScript |
MethodDeclaration | /**
* Updates a device.
* @example
* ```js
* // Before running the sample:
* // - Enable the API at:
* // https://console.developers.google.com/apis/api/androidmanagement.googleapis.com
* // - Login into gcloud by running:
* // `$ gcloud auth application-default login`
* // - Install the npm module by running:
* // `$ npm install googleapis`
*
* const {google} = require('googleapis');
* const androidmanagement = google.androidmanagement('v1');
*
* async function main() {
* const auth = new google.auth.GoogleAuth({
* // Scopes can be specified either as an array or as a single, space-delimited string.
* scopes: ['https://www.googleapis.com/auth/androidmanagement'],
* });
*
* // Acquire an auth client, and bind it to all future calls
* const authClient = await auth.getClient();
* google.options({auth: authClient});
*
* // Do the magic
* const res = await androidmanagement.enterprises.devices.patch({
* // The name of the device in the form enterprises/{enterpriseId\}/devices/{deviceId\}.
* name: 'enterprises/my-enterprise/devices/my-device',
* // The field mask indicating the fields to update. If not set, all modifiable fields will be modified.
* updateMask: 'placeholder-value',
*
* // Request body metadata
* requestBody: {
* // request body parameters
* // {
* // "apiLevel": 0,
* // "applicationReports": [],
* // "appliedPasswordPolicies": [],
* // "appliedPolicyName": "my_appliedPolicyName",
* // "appliedPolicyVersion": "my_appliedPolicyVersion",
* // "appliedState": "my_appliedState",
* // "commonCriteriaModeInfo": {},
* // "deviceSettings": {},
* // "disabledReason": {},
* // "displays": [],
* // "enrollmentTime": "my_enrollmentTime",
* // "enrollmentTokenData": "my_enrollmentTokenData",
* // "enrollmentTokenName": "my_enrollmentTokenName",
* // "hardwareInfo": {},
* // "hardwareStatusSamples": [],
* // "lastPolicyComplianceReportTime": "my_lastPolicyComplianceReportTime",
* // "lastPolicySyncTime": "my_lastPolicySyncTime",
* // "lastStatusReportTime": "my_lastStatusReportTime",
* // "managementMode": "my_managementMode",
* // "memoryEvents": [],
* // "memoryInfo": {},
* // "name": "my_name",
* // "networkInfo": {},
* // "nonComplianceDetails": [],
* // "ownership": "my_ownership",
* // "policyCompliant": false,
* // "policyName": "my_policyName",
* // "powerManagementEvents": [],
* // "previousDeviceNames": [],
* // "securityPosture": {},
* // "softwareInfo": {},
* // "state": "my_state",
* // "systemProperties": {},
* // "user": {},
* // "userName": "my_userName"
* // }
* },
* });
* console.log(res.data);
*
* // Example response
* // {
* // "apiLevel": 0,
* // "applicationReports": [],
* // "appliedPasswordPolicies": [],
* // "appliedPolicyName": "my_appliedPolicyName",
* // "appliedPolicyVersion": "my_appliedPolicyVersion",
* // "appliedState": "my_appliedState",
* // "commonCriteriaModeInfo": {},
* // "deviceSettings": {},
* // "disabledReason": {},
* // "displays": [],
* // "enrollmentTime": "my_enrollmentTime",
* // "enrollmentTokenData": "my_enrollmentTokenData",
* // "enrollmentTokenName": "my_enrollmentTokenName",
* // "hardwareInfo": {},
* // "hardwareStatusSamples": [],
* // "lastPolicyComplianceReportTime": "my_lastPolicyComplianceReportTime",
* // "lastPolicySyncTime": "my_lastPolicySyncTime",
* // "lastStatusReportTime": "my_lastStatusReportTime",
* // "managementMode": "my_managementMode",
* // "memoryEvents": [],
* // "memoryInfo": {},
* // "name": "my_name",
* // "networkInfo": {},
* // "nonComplianceDetails": [],
* // "ownership": "my_ownership",
* // "policyCompliant": false,
* // "policyName": "my_policyName",
* // "powerManagementEvents": [],
* // "previousDeviceNames": [],
* // "securityPosture": {},
* // "softwareInfo": {},
* // "state": "my_state",
* // "systemProperties": {},
* // "user": {},
* // "userName": "my_userName"
* // }
* }
*
* main().catch(e => {
* console.error(e);
* throw e;
* });
*
* ```
*
* @param params - Parameters for request
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
* @param callback - Optional callback that handles the response.
* @returns A promise if used with async/await, or void if used with a callback.
*/
patch(
params: Params$Resource$Enterprises$Devices$Patch,
options: StreamMethodOptions
): GaxiosPromise<Readable>; | GazeDev/google-api-nodejs-client | src/apis/androidmanagement/v1.ts | TypeScript |
MethodDeclaration |
patch(
params?: Params$Resource$Enterprises$Devices$Patch,
options?: MethodOptions
): GaxiosPromise<Schema$Device>; | GazeDev/google-api-nodejs-client | src/apis/androidmanagement/v1.ts | TypeScript |
MethodDeclaration |
patch(
params: Params$Resource$Enterprises$Devices$Patch,
options: StreamMethodOptions | BodyResponseCallback<Readable>,
callback: BodyResponseCallback<Readable>
): void; | GazeDev/google-api-nodejs-client | src/apis/androidmanagement/v1.ts | TypeScript |
MethodDeclaration |
patch(
params: Params$Resource$Enterprises$Devices$Patch,
options: MethodOptions | BodyResponseCallback<Schema$Device>,
callback: BodyResponseCallback<Schema$Device>
): void; | GazeDev/google-api-nodejs-client | src/apis/androidmanagement/v1.ts | TypeScript |
MethodDeclaration |
patch(
params: Params$Resource$Enterprises$Devices$Patch,
callback: BodyResponseCallback<Schema$Device>
): void; | GazeDev/google-api-nodejs-client | src/apis/androidmanagement/v1.ts | TypeScript |
MethodDeclaration |
patch(callback: BodyResponseCallback<Schema$Device>): void; | GazeDev/google-api-nodejs-client | src/apis/androidmanagement/v1.ts | TypeScript |
MethodDeclaration |
patch(
paramsOrCallback?:
| Params$Resource$Enterprises$Devices$Patch
| BodyResponseCallback<Schema$Device>
| BodyResponseCallback<Readable>,
optionsOrCallback?:
| MethodOptions
| StreamMethodOptions
| BodyResponseCallback<Schema$Device>
| BodyResponseCallback<Readable>,
callback?:
| BodyResponseCallback<Schema$Device>
| BodyResponseCallback<Readable>
): void | GaxiosPromise<Schema$Device> | GaxiosPromise<Readable> {
let params = (paramsOrCallback ||
{}) as Params$Resource$Enterprises$Devices$Patch;
let options = (optionsOrCallback || {}) as MethodOptions;
if (typeof paramsOrCallback === 'function') {
callback = paramsOrCallback;
params = {} as Params$Resource$Enterprises$Devices$Patch;
options = {};
}
if (typeof optionsOrCallback === 'function') {
callback = optionsOrCallback;
options = {};
}
const rootUrl =
options.rootUrl || 'https://androidmanagement.googleapis.com/';
const parameters = {
options: Object.assign(
{
url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
method: 'PATCH',
},
options
),
params,
requiredParams: ['name'],
pathParams: ['name'],
context: this.context,
};
if (callback) {
createAPIRequest<Schema$Device>(
parameters,
callback as BodyResponseCallback<unknown>
);
} else {
return createAPIRequest<Schema$Device>(parameters);
}
} | GazeDev/google-api-nodejs-client | src/apis/androidmanagement/v1.ts | TypeScript |
MethodDeclaration | /**
* Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns google.rpc.Code.UNIMPLEMENTED. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of 1, corresponding to Code.CANCELLED.
* @example
* ```js
* // Before running the sample:
* // - Enable the API at:
* // https://console.developers.google.com/apis/api/androidmanagement.googleapis.com
* // - Login into gcloud by running:
* // `$ gcloud auth application-default login`
* // - Install the npm module by running:
* // `$ npm install googleapis`
*
* const {google} = require('googleapis');
* const androidmanagement = google.androidmanagement('v1');
*
* async function main() {
* const auth = new google.auth.GoogleAuth({
* // Scopes can be specified either as an array or as a single, space-delimited string.
* scopes: ['https://www.googleapis.com/auth/androidmanagement'],
* });
*
* // Acquire an auth client, and bind it to all future calls
* const authClient = await auth.getClient();
* google.options({auth: authClient});
*
* // Do the magic
* const res = await androidmanagement.enterprises.devices.operations.cancel({
* // The name of the operation resource to be cancelled.
* name: 'enterprises/my-enterprise/devices/my-device/operations/my-operation',
* });
* console.log(res.data);
*
* // Example response
* // {}
* }
*
* main().catch(e => {
* console.error(e);
* throw e;
* });
*
* ```
*
* @param params - Parameters for request
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
* @param callback - Optional callback that handles the response.
* @returns A promise if used with async/await, or void if used with a callback.
*/
cancel(
params: Params$Resource$Enterprises$Devices$Operations$Cancel,
options: StreamMethodOptions
): GaxiosPromise<Readable>; | GazeDev/google-api-nodejs-client | src/apis/androidmanagement/v1.ts | TypeScript |
MethodDeclaration |
cancel(
params?: Params$Resource$Enterprises$Devices$Operations$Cancel,
options?: MethodOptions
): GaxiosPromise<Schema$Empty>; | GazeDev/google-api-nodejs-client | src/apis/androidmanagement/v1.ts | TypeScript |
MethodDeclaration |
cancel(
params: Params$Resource$Enterprises$Devices$Operations$Cancel,
options: StreamMethodOptions | BodyResponseCallback<Readable>,
callback: BodyResponseCallback<Readable>
): void; | GazeDev/google-api-nodejs-client | src/apis/androidmanagement/v1.ts | TypeScript |
MethodDeclaration |
cancel(
params: Params$Resource$Enterprises$Devices$Operations$Cancel,
options: MethodOptions | BodyResponseCallback<Schema$Empty>,
callback: BodyResponseCallback<Schema$Empty>
): void; | GazeDev/google-api-nodejs-client | src/apis/androidmanagement/v1.ts | TypeScript |
MethodDeclaration |
cancel(
params: Params$Resource$Enterprises$Devices$Operations$Cancel,
callback: BodyResponseCallback<Schema$Empty>
): void; | GazeDev/google-api-nodejs-client | src/apis/androidmanagement/v1.ts | TypeScript |
MethodDeclaration |
cancel(
paramsOrCallback?:
| Params$Resource$Enterprises$Devices$Operations$Cancel
| BodyResponseCallback<Schema$Empty>
| BodyResponseCallback<Readable>,
optionsOrCallback?:
| MethodOptions
| StreamMethodOptions
| BodyResponseCallback<Schema$Empty>
| BodyResponseCallback<Readable>,
callback?:
| BodyResponseCallback<Schema$Empty>
| BodyResponseCallback<Readable>
): void | GaxiosPromise<Schema$Empty> | GaxiosPromise<Readable> {
let params = (paramsOrCallback ||
{}) as Params$Resource$Enterprises$Devices$Operations$Cancel;
let options = (optionsOrCallback || {}) as MethodOptions;
if (typeof paramsOrCallback === 'function') {
callback = paramsOrCallback;
params = {} as Params$Resource$Enterprises$Devices$Operations$Cancel;
options = {};
}
if (typeof optionsOrCallback === 'function') {
callback = optionsOrCallback;
options = {};
}
const rootUrl =
options.rootUrl || 'https://androidmanagement.googleapis.com/';
const parameters = {
options: Object.assign(
{
url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'),
method: 'POST',
},
options
),
params,
requiredParams: ['name'],
pathParams: ['name'],
context: this.context,
};
if (callback) {
createAPIRequest<Schema$Empty>(
parameters,
callback as BodyResponseCallback<unknown>
);
} else {
return createAPIRequest<Schema$Empty>(parameters);
}
} | GazeDev/google-api-nodejs-client | src/apis/androidmanagement/v1.ts | TypeScript |
MethodDeclaration | /**
* 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.
* @example
* ```js
* // Before running the sample:
* // - Enable the API at:
* // https://console.developers.google.com/apis/api/androidmanagement.googleapis.com
* // - Login into gcloud by running:
* // `$ gcloud auth application-default login`
* // - Install the npm module by running:
* // `$ npm install googleapis`
*
* const {google} = require('googleapis');
* const androidmanagement = google.androidmanagement('v1');
*
* async function main() {
* const auth = new google.auth.GoogleAuth({
* // Scopes can be specified either as an array or as a single, space-delimited string.
* scopes: ['https://www.googleapis.com/auth/androidmanagement'],
* });
*
* // Acquire an auth client, and bind it to all future calls
* const authClient = await auth.getClient();
* google.options({auth: authClient});
*
* // Do the magic
* const res = await androidmanagement.enterprises.devices.operations.delete({
* // The name of the operation resource to be deleted.
* name: 'enterprises/my-enterprise/devices/my-device/operations/my-operation',
* });
* console.log(res.data);
*
* // Example response
* // {}
* }
*
* main().catch(e => {
* console.error(e);
* throw e;
* });
*
* ```
*
* @param params - Parameters for request
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
* @param callback - Optional callback that handles the response.
* @returns A promise if used with async/await, or void if used with a callback.
*/
delete(
params: Params$Resource$Enterprises$Devices$Operations$Delete,
options: StreamMethodOptions
): GaxiosPromise<Readable>; | GazeDev/google-api-nodejs-client | src/apis/androidmanagement/v1.ts | TypeScript |
MethodDeclaration |
delete(
params?: Params$Resource$Enterprises$Devices$Operations$Delete,
options?: MethodOptions
): GaxiosPromise<Schema$Empty>; | GazeDev/google-api-nodejs-client | src/apis/androidmanagement/v1.ts | TypeScript |
MethodDeclaration |
delete(
params: Params$Resource$Enterprises$Devices$Operations$Delete,
options: StreamMethodOptions | BodyResponseCallback<Readable>,
callback: BodyResponseCallback<Readable>
): void; | GazeDev/google-api-nodejs-client | src/apis/androidmanagement/v1.ts | TypeScript |
MethodDeclaration |
delete(
params: Params$Resource$Enterprises$Devices$Operations$Delete,
options: MethodOptions | BodyResponseCallback<Schema$Empty>,
callback: BodyResponseCallback<Schema$Empty>
): void; | GazeDev/google-api-nodejs-client | src/apis/androidmanagement/v1.ts | TypeScript |
Subsets and Splits