@googleapis/chromemanagement 25.2.0 → 27.0.0
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.
- package/CHANGELOG.md +22 -0
- package/build/tsconfig.tsbuildinfo +1 -1
- package/build/v1.d.ts +1005 -124
- package/build/v1.js +288 -0
- package/build/v1.js.map +1 -1
- package/package.json +1 -1
- package/v1.ts +1713 -114
package/build/v1.d.ts
CHANGED
|
@@ -630,6 +630,23 @@ export declare namespace chromemanagement_v1 {
|
|
|
630
630
|
*/
|
|
631
631
|
storageReports?: Schema$GoogleChromeManagementV1DeviceHardwareCountReport[];
|
|
632
632
|
}
|
|
633
|
+
/**
|
|
634
|
+
* Response containing requested managed profile versions details and counts.
|
|
635
|
+
*/
|
|
636
|
+
export interface Schema$GoogleChromeManagementV1CountChromeProfileVersionsResponse {
|
|
637
|
+
/**
|
|
638
|
+
* Token to specify the next page of the request.
|
|
639
|
+
*/
|
|
640
|
+
nextPageToken?: string | null;
|
|
641
|
+
/**
|
|
642
|
+
* List of all browser versions reported for profiles and their install counts.
|
|
643
|
+
*/
|
|
644
|
+
profileBrowserVersions?: Schema$GoogleChromeManagementV1BrowserVersion[];
|
|
645
|
+
/**
|
|
646
|
+
* Total number browser versions matching request.
|
|
647
|
+
*/
|
|
648
|
+
totalSize?: number | null;
|
|
649
|
+
}
|
|
633
650
|
/**
|
|
634
651
|
* Response containing requested browser versions details and counts.
|
|
635
652
|
*/
|
|
@@ -1233,6 +1250,10 @@ export declare namespace chromemanagement_v1 {
|
|
|
1233
1250
|
* Output only. Permissions of the installed app.
|
|
1234
1251
|
*/
|
|
1235
1252
|
permissions?: string[] | null;
|
|
1253
|
+
/**
|
|
1254
|
+
* Output only. Count of Chrome Profiles with this app installed.
|
|
1255
|
+
*/
|
|
1256
|
+
profileCount?: string | null;
|
|
1236
1257
|
/**
|
|
1237
1258
|
* Output only. If available, the risk assessment data about this extension.
|
|
1238
1259
|
*/
|
|
@@ -2464,6 +2485,15 @@ export declare namespace chromemanagement_v1 {
|
|
|
2464
2485
|
*/
|
|
2465
2486
|
subjectPublicKeyInfo?: string | null;
|
|
2466
2487
|
}
|
|
2488
|
+
/**
|
|
2489
|
+
* Response from checking the enablement status of insights for the customer.
|
|
2490
|
+
*/
|
|
2491
|
+
export interface Schema$GoogleChromeManagementVersionsV1CheckEnablementStatusResponse {
|
|
2492
|
+
/**
|
|
2493
|
+
* The state of the insights feature.
|
|
2494
|
+
*/
|
|
2495
|
+
insightsState?: string | null;
|
|
2496
|
+
}
|
|
2467
2497
|
/**
|
|
2468
2498
|
* A representation of a Chrome browser profile.
|
|
2469
2499
|
*/
|
|
@@ -2760,6 +2790,40 @@ export declare namespace chromemanagement_v1 {
|
|
|
2760
2790
|
*/
|
|
2761
2791
|
updateTime?: string | null;
|
|
2762
2792
|
}
|
|
2793
|
+
/**
|
|
2794
|
+
* A content transfers summary for a given breakdown dimension.
|
|
2795
|
+
*/
|
|
2796
|
+
export interface Schema$GoogleChromeManagementVersionsV1ContentTransfersBreakdown {
|
|
2797
|
+
/**
|
|
2798
|
+
* The content category of the content transfers.
|
|
2799
|
+
*/
|
|
2800
|
+
contentCategory?: string | null;
|
|
2801
|
+
/**
|
|
2802
|
+
* The event domain of the content transfers.
|
|
2803
|
+
*/
|
|
2804
|
+
eventDomain?: string | null;
|
|
2805
|
+
/**
|
|
2806
|
+
* The summary of content transfers for the breakdown dimension.
|
|
2807
|
+
*/
|
|
2808
|
+
summary?: Schema$GoogleChromeManagementVersionsV1ContentTransfersSummary;
|
|
2809
|
+
/**
|
|
2810
|
+
* The user that transferred the content.
|
|
2811
|
+
*/
|
|
2812
|
+
user?: string | null;
|
|
2813
|
+
}
|
|
2814
|
+
/**
|
|
2815
|
+
* Summary of content transfers for a given metric.
|
|
2816
|
+
*/
|
|
2817
|
+
export interface Schema$GoogleChromeManagementVersionsV1ContentTransfersSummary {
|
|
2818
|
+
/**
|
|
2819
|
+
* The count of the content transfers metric.
|
|
2820
|
+
*/
|
|
2821
|
+
count?: string | null;
|
|
2822
|
+
/**
|
|
2823
|
+
* The type of content transfers metric.
|
|
2824
|
+
*/
|
|
2825
|
+
metric?: string | null;
|
|
2826
|
+
}
|
|
2763
2827
|
/**
|
|
2764
2828
|
* CrowdStrike connector config.
|
|
2765
2829
|
*/
|
|
@@ -2853,6 +2917,38 @@ export declare namespace chromemanagement_v1 {
|
|
|
2853
2917
|
*/
|
|
2854
2918
|
urlMatchers?: string[] | null;
|
|
2855
2919
|
}
|
|
2920
|
+
/**
|
|
2921
|
+
* Request to disable insights for the customer.
|
|
2922
|
+
*/
|
|
2923
|
+
export interface Schema$GoogleChromeManagementVersionsV1DisableInsightsRequest {
|
|
2924
|
+
}
|
|
2925
|
+
/**
|
|
2926
|
+
* Response from disabling insights for the customer.
|
|
2927
|
+
*/
|
|
2928
|
+
export interface Schema$GoogleChromeManagementVersionsV1DisableInsightsResponse {
|
|
2929
|
+
/**
|
|
2930
|
+
* The state of the insights feature.
|
|
2931
|
+
*/
|
|
2932
|
+
insightsState?: string | null;
|
|
2933
|
+
}
|
|
2934
|
+
/**
|
|
2935
|
+
* Request to enable insights for the customer.
|
|
2936
|
+
*/
|
|
2937
|
+
export interface Schema$GoogleChromeManagementVersionsV1EnableInsightsRequest {
|
|
2938
|
+
/**
|
|
2939
|
+
* Optional. The Organizational Units to set up required connectors for. Organizational Units are provided as paths relative to root. If this field is not set, connectors will be set up at root OU (as if it were set to ["/"]). Example: ["/corp/sales", "/eng"]
|
|
2940
|
+
*/
|
|
2941
|
+
targetOus?: string[] | null;
|
|
2942
|
+
}
|
|
2943
|
+
/**
|
|
2944
|
+
* Response from enabling insights for the customer.
|
|
2945
|
+
*/
|
|
2946
|
+
export interface Schema$GoogleChromeManagementVersionsV1EnableInsightsResponse {
|
|
2947
|
+
/**
|
|
2948
|
+
* The state of the insights feature.
|
|
2949
|
+
*/
|
|
2950
|
+
insightsState?: string | null;
|
|
2951
|
+
}
|
|
2856
2952
|
/**
|
|
2857
2953
|
* Describes a generic Certificate Authority Connection.
|
|
2858
2954
|
*/
|
|
@@ -3009,6 +3105,50 @@ export declare namespace chromemanagement_v1 {
|
|
|
3009
3105
|
*/
|
|
3010
3106
|
xdrSettings?: Schema$GoogleChromeManagementVersionsV1XdrSettings;
|
|
3011
3107
|
}
|
|
3108
|
+
/**
|
|
3109
|
+
* Response message for QueryContentTransfersBreakdowns.
|
|
3110
|
+
*/
|
|
3111
|
+
export interface Schema$GoogleChromeManagementVersionsV1QueryContentTransfersBreakdownsResponse {
|
|
3112
|
+
/**
|
|
3113
|
+
* The content transfer breakdowns from the specified insight.
|
|
3114
|
+
*/
|
|
3115
|
+
contentTransfersBreakdowns?: Schema$GoogleChromeManagementVersionsV1ContentTransfersBreakdown[];
|
|
3116
|
+
/**
|
|
3117
|
+
* A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.
|
|
3118
|
+
*/
|
|
3119
|
+
nextPageToken?: string | null;
|
|
3120
|
+
}
|
|
3121
|
+
/**
|
|
3122
|
+
* Response message for QueryContentTransfers.
|
|
3123
|
+
*/
|
|
3124
|
+
export interface Schema$GoogleChromeManagementVersionsV1QueryContentTransfersResponse {
|
|
3125
|
+
/**
|
|
3126
|
+
* A collection of summaries for various content transfers metrics.
|
|
3127
|
+
*/
|
|
3128
|
+
summaries?: Schema$GoogleChromeManagementVersionsV1ContentTransfersSummary[];
|
|
3129
|
+
}
|
|
3130
|
+
/**
|
|
3131
|
+
* Response message for QueryUrlVisitsBreakdowns.
|
|
3132
|
+
*/
|
|
3133
|
+
export interface Schema$GoogleChromeManagementVersionsV1QueryUrlVisitsBreakdownsResponse {
|
|
3134
|
+
/**
|
|
3135
|
+
* A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.
|
|
3136
|
+
*/
|
|
3137
|
+
nextPageToken?: string | null;
|
|
3138
|
+
/**
|
|
3139
|
+
* The URL visit breakdowns from the specified insight.
|
|
3140
|
+
*/
|
|
3141
|
+
urlVisitsBreakdowns?: Schema$GoogleChromeManagementVersionsV1UrlVisitsBreakdown[];
|
|
3142
|
+
}
|
|
3143
|
+
/**
|
|
3144
|
+
* Response message for QueryUrlVisits.
|
|
3145
|
+
*/
|
|
3146
|
+
export interface Schema$GoogleChromeManagementVersionsV1QueryUrlVisitsResponse {
|
|
3147
|
+
/**
|
|
3148
|
+
* A collection of summaries for various URL visit metrics.
|
|
3149
|
+
*/
|
|
3150
|
+
summaries?: Schema$GoogleChromeManagementVersionsV1UrlVisitsSummary[];
|
|
3151
|
+
}
|
|
3012
3152
|
/**
|
|
3013
3153
|
* Reporting data of a Chrome browser profile.
|
|
3014
3154
|
*/
|
|
@@ -3319,6 +3459,36 @@ export declare namespace chromemanagement_v1 {
|
|
|
3319
3459
|
*/
|
|
3320
3460
|
export interface Schema$GoogleChromeManagementVersionsV1UploadCertificateResponse {
|
|
3321
3461
|
}
|
|
3462
|
+
/**
|
|
3463
|
+
* A URL visits summary for a given breakdown dimension.
|
|
3464
|
+
*/
|
|
3465
|
+
export interface Schema$GoogleChromeManagementVersionsV1UrlVisitsBreakdown {
|
|
3466
|
+
/**
|
|
3467
|
+
* The event domain of the URL visits.
|
|
3468
|
+
*/
|
|
3469
|
+
eventDomain?: string | null;
|
|
3470
|
+
/**
|
|
3471
|
+
* The summary of URL visits for the breakdown dimension.
|
|
3472
|
+
*/
|
|
3473
|
+
summary?: Schema$GoogleChromeManagementVersionsV1UrlVisitsSummary;
|
|
3474
|
+
/**
|
|
3475
|
+
* The user that visited the URL.
|
|
3476
|
+
*/
|
|
3477
|
+
user?: string | null;
|
|
3478
|
+
}
|
|
3479
|
+
/**
|
|
3480
|
+
* Summary of URL visits for a given metric.
|
|
3481
|
+
*/
|
|
3482
|
+
export interface Schema$GoogleChromeManagementVersionsV1UrlVisitsSummary {
|
|
3483
|
+
/**
|
|
3484
|
+
* The count of the URL visits metric.
|
|
3485
|
+
*/
|
|
3486
|
+
count?: string | null;
|
|
3487
|
+
/**
|
|
3488
|
+
* The type of URL visits metric.
|
|
3489
|
+
*/
|
|
3490
|
+
metric?: string | null;
|
|
3491
|
+
}
|
|
3322
3492
|
/**
|
|
3323
3493
|
* XDR settings for connector configs.
|
|
3324
3494
|
*/
|
|
@@ -3425,6 +3595,7 @@ export declare namespace chromemanagement_v1 {
|
|
|
3425
3595
|
apps: Resource$Customers$Apps;
|
|
3426
3596
|
certificateProvisioningProcesses: Resource$Customers$Certificateprovisioningprocesses;
|
|
3427
3597
|
connectorConfigs: Resource$Customers$Connectorconfigs;
|
|
3598
|
+
enterprise: Resource$Customers$Enterprise;
|
|
3428
3599
|
profiles: Resource$Customers$Profiles;
|
|
3429
3600
|
reports: Resource$Customers$Reports;
|
|
3430
3601
|
telemetry: Resource$Customers$Telemetry;
|
|
@@ -4511,7 +4682,7 @@ export declare namespace chromemanagement_v1 {
|
|
|
4511
4682
|
*
|
|
4512
4683
|
* // Do the magic
|
|
4513
4684
|
* const res = await chromemanagement.customers.connectorConfigs.create({
|
|
4514
|
-
* // Optional. ID to use for the connector config, which becomes the final component of the connector config's resource name. If provided, the ID must be 1-
|
|
4685
|
+
* // Optional. ID to use for the connector config, which becomes the final component of the connector config's resource name. If provided, the ID must be 1-36 characters long, and contain only lowercase letters, digits, and hyphens. It must start with a letter, and end with a letter or number. If not provided, the connector config will be assigned a random UUID.
|
|
4515
4686
|
* connectorConfigId: 'placeholder-value',
|
|
4516
4687
|
* // Required. Format: customers/{customer\}
|
|
4517
4688
|
* parent: 'customers/my-customer',
|
|
@@ -4826,7 +4997,7 @@ export declare namespace chromemanagement_v1 {
|
|
|
4826
4997
|
}
|
|
4827
4998
|
export interface Params$Resource$Customers$Connectorconfigs$Create extends StandardParameters {
|
|
4828
4999
|
/**
|
|
4829
|
-
* Optional. ID to use for the connector config, which becomes the final component of the connector config's resource name. If provided, the ID must be 1-
|
|
5000
|
+
* Optional. ID to use for the connector config, which becomes the final component of the connector config's resource name. If provided, the ID must be 1-36 characters long, and contain only lowercase letters, digits, and hyphens. It must start with a letter, and end with a letter or number. If not provided, the connector config will be assigned a random UUID.
|
|
4830
5001
|
*/
|
|
4831
5002
|
connectorConfigId?: string;
|
|
4832
5003
|
/**
|
|
@@ -4878,12 +5049,16 @@ export declare namespace chromemanagement_v1 {
|
|
|
4878
5049
|
*/
|
|
4879
5050
|
requestBody?: Schema$GoogleChromeManagementVersionsV1ConnectorConfig;
|
|
4880
5051
|
}
|
|
4881
|
-
export class Resource$Customers$
|
|
5052
|
+
export class Resource$Customers$Enterprise {
|
|
5053
|
+
context: APIRequestContext;
|
|
5054
|
+
securityInsights: Resource$Customers$Enterprise$Securityinsights;
|
|
5055
|
+
constructor(context: APIRequestContext);
|
|
5056
|
+
}
|
|
5057
|
+
export class Resource$Customers$Enterprise$Securityinsights {
|
|
4882
5058
|
context: APIRequestContext;
|
|
4883
|
-
commands: Resource$Customers$Profiles$Commands;
|
|
4884
5059
|
constructor(context: APIRequestContext);
|
|
4885
5060
|
/**
|
|
4886
|
-
*
|
|
5061
|
+
* Gets the setting state of the insights feature for the customer.
|
|
4887
5062
|
* @example
|
|
4888
5063
|
* ```js
|
|
4889
5064
|
* // Before running the sample:
|
|
@@ -4904,7 +5079,10 @@ export declare namespace chromemanagement_v1 {
|
|
|
4904
5079
|
* async function main() {
|
|
4905
5080
|
* const auth = new google.auth.GoogleAuth({
|
|
4906
5081
|
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
4907
|
-
* scopes: [
|
|
5082
|
+
* scopes: [
|
|
5083
|
+
* 'https://www.googleapis.com/auth/chrome.management.securityinsights',
|
|
5084
|
+
* 'https://www.googleapis.com/auth/chrome.management.securityinsights.readonly',
|
|
5085
|
+
* ],
|
|
4908
5086
|
* });
|
|
4909
5087
|
*
|
|
4910
5088
|
* // Acquire an auth client, and bind it to all future calls
|
|
@@ -4912,14 +5090,19 @@ export declare namespace chromemanagement_v1 {
|
|
|
4912
5090
|
* google.options({auth: authClient});
|
|
4913
5091
|
*
|
|
4914
5092
|
* // Do the magic
|
|
4915
|
-
* const res =
|
|
4916
|
-
*
|
|
4917
|
-
*
|
|
4918
|
-
*
|
|
5093
|
+
* const res =
|
|
5094
|
+
* await chromemanagement.customers.enterprise.securityInsights.checkEnablementStatus(
|
|
5095
|
+
* {
|
|
5096
|
+
* // Required. The customer to check the enablement status for. Format: customers/{customer_id\}
|
|
5097
|
+
* customer: 'customers/my-customer',
|
|
5098
|
+
* },
|
|
5099
|
+
* );
|
|
4919
5100
|
* console.log(res.data);
|
|
4920
5101
|
*
|
|
4921
5102
|
* // Example response
|
|
4922
|
-
* // {
|
|
5103
|
+
* // {
|
|
5104
|
+
* // "insightsState": "my_insightsState"
|
|
5105
|
+
* // }
|
|
4923
5106
|
* }
|
|
4924
5107
|
*
|
|
4925
5108
|
* main().catch(e => {
|
|
@@ -4934,14 +5117,14 @@ export declare namespace chromemanagement_v1 {
|
|
|
4934
5117
|
* @param callback - Optional callback that handles the response.
|
|
4935
5118
|
* @returns A promise if used with async/await, or void if used with a callback.
|
|
4936
5119
|
*/
|
|
4937
|
-
|
|
4938
|
-
|
|
4939
|
-
|
|
4940
|
-
|
|
4941
|
-
|
|
4942
|
-
|
|
5120
|
+
checkEnablementStatus(params: Params$Resource$Customers$Enterprise$Securityinsights$Checkenablementstatus, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
5121
|
+
checkEnablementStatus(params?: Params$Resource$Customers$Enterprise$Securityinsights$Checkenablementstatus, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$GoogleChromeManagementVersionsV1CheckEnablementStatusResponse>>;
|
|
5122
|
+
checkEnablementStatus(params: Params$Resource$Customers$Enterprise$Securityinsights$Checkenablementstatus, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
5123
|
+
checkEnablementStatus(params: Params$Resource$Customers$Enterprise$Securityinsights$Checkenablementstatus, options: MethodOptions | BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1CheckEnablementStatusResponse>, callback: BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1CheckEnablementStatusResponse>): void;
|
|
5124
|
+
checkEnablementStatus(params: Params$Resource$Customers$Enterprise$Securityinsights$Checkenablementstatus, callback: BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1CheckEnablementStatusResponse>): void;
|
|
5125
|
+
checkEnablementStatus(callback: BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1CheckEnablementStatusResponse>): void;
|
|
4943
5126
|
/**
|
|
4944
|
-
*
|
|
5127
|
+
* Disables insights for the customer.
|
|
4945
5128
|
* @example
|
|
4946
5129
|
* ```js
|
|
4947
5130
|
* // Before running the sample:
|
|
@@ -4963,8 +5146,7 @@ export declare namespace chromemanagement_v1 {
|
|
|
4963
5146
|
* const auth = new google.auth.GoogleAuth({
|
|
4964
5147
|
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
4965
5148
|
* scopes: [
|
|
4966
|
-
* 'https://www.googleapis.com/auth/chrome.management.
|
|
4967
|
-
* 'https://www.googleapis.com/auth/chrome.management.profiles.readonly',
|
|
5149
|
+
* 'https://www.googleapis.com/auth/chrome.management.securityinsights',
|
|
4968
5150
|
* ],
|
|
4969
5151
|
* });
|
|
4970
5152
|
*
|
|
@@ -4973,41 +5155,22 @@ export declare namespace chromemanagement_v1 {
|
|
|
4973
5155
|
* google.options({auth: authClient});
|
|
4974
5156
|
*
|
|
4975
5157
|
* // Do the magic
|
|
4976
|
-
* const res =
|
|
4977
|
-
*
|
|
4978
|
-
*
|
|
4979
|
-
*
|
|
5158
|
+
* const res =
|
|
5159
|
+
* await chromemanagement.customers.enterprise.securityInsights.disable({
|
|
5160
|
+
* // Required. The customer to disable insights for. Format: customers/{customer\}
|
|
5161
|
+
* customer: 'customers/my-customer',
|
|
5162
|
+
*
|
|
5163
|
+
* // Request body metadata
|
|
5164
|
+
* requestBody: {
|
|
5165
|
+
* // request body parameters
|
|
5166
|
+
* // {}
|
|
5167
|
+
* },
|
|
5168
|
+
* });
|
|
4980
5169
|
* console.log(res.data);
|
|
4981
5170
|
*
|
|
4982
5171
|
* // Example response
|
|
4983
5172
|
* // {
|
|
4984
|
-
* // "
|
|
4985
|
-
* // "annotatedLocation": "my_annotatedLocation",
|
|
4986
|
-
* // "annotatedUser": "my_annotatedUser",
|
|
4987
|
-
* // "attestationCredential": {},
|
|
4988
|
-
* // "browserChannel": "my_browserChannel",
|
|
4989
|
-
* // "browserVersion": "my_browserVersion",
|
|
4990
|
-
* // "deviceInfo": {},
|
|
4991
|
-
* // "displayName": "my_displayName",
|
|
4992
|
-
* // "etag": "my_etag",
|
|
4993
|
-
* // "extensionCount": "my_extensionCount",
|
|
4994
|
-
* // "firstEnrollmentTime": "my_firstEnrollmentTime",
|
|
4995
|
-
* // "identityProvider": "my_identityProvider",
|
|
4996
|
-
* // "lastActivityTime": "my_lastActivityTime",
|
|
4997
|
-
* // "lastPolicyFetchTime": "my_lastPolicyFetchTime",
|
|
4998
|
-
* // "lastPolicySyncTime": "my_lastPolicySyncTime",
|
|
4999
|
-
* // "lastStatusReportTime": "my_lastStatusReportTime",
|
|
5000
|
-
* // "name": "my_name",
|
|
5001
|
-
* // "osPlatformType": "my_osPlatformType",
|
|
5002
|
-
* // "osPlatformVersion": "my_osPlatformVersion",
|
|
5003
|
-
* // "osVersion": "my_osVersion",
|
|
5004
|
-
* // "policyCount": "my_policyCount",
|
|
5005
|
-
* // "profileId": "my_profileId",
|
|
5006
|
-
* // "profilePermanentId": "my_profilePermanentId",
|
|
5007
|
-
* // "reportingData": {},
|
|
5008
|
-
* // "supportsFcmNotifications": false,
|
|
5009
|
-
* // "userEmail": "my_userEmail",
|
|
5010
|
-
* // "userId": "my_userId"
|
|
5173
|
+
* // "insightsState": "my_insightsState"
|
|
5011
5174
|
* // }
|
|
5012
5175
|
* }
|
|
5013
5176
|
*
|
|
@@ -5023,14 +5186,14 @@ export declare namespace chromemanagement_v1 {
|
|
|
5023
5186
|
* @param callback - Optional callback that handles the response.
|
|
5024
5187
|
* @returns A promise if used with async/await, or void if used with a callback.
|
|
5025
5188
|
*/
|
|
5026
|
-
|
|
5027
|
-
|
|
5028
|
-
|
|
5029
|
-
|
|
5030
|
-
|
|
5031
|
-
|
|
5189
|
+
disable(params: Params$Resource$Customers$Enterprise$Securityinsights$Disable, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
5190
|
+
disable(params?: Params$Resource$Customers$Enterprise$Securityinsights$Disable, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$GoogleChromeManagementVersionsV1DisableInsightsResponse>>;
|
|
5191
|
+
disable(params: Params$Resource$Customers$Enterprise$Securityinsights$Disable, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
5192
|
+
disable(params: Params$Resource$Customers$Enterprise$Securityinsights$Disable, options: MethodOptions | BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1DisableInsightsResponse>, callback: BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1DisableInsightsResponse>): void;
|
|
5193
|
+
disable(params: Params$Resource$Customers$Enterprise$Securityinsights$Disable, callback: BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1DisableInsightsResponse>): void;
|
|
5194
|
+
disable(callback: BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1DisableInsightsResponse>): void;
|
|
5032
5195
|
/**
|
|
5033
|
-
*
|
|
5196
|
+
* Enables insights for the customer and sets up required chrome connectors.
|
|
5034
5197
|
* @example
|
|
5035
5198
|
* ```js
|
|
5036
5199
|
* // Before running the sample:
|
|
@@ -5052,8 +5215,7 @@ export declare namespace chromemanagement_v1 {
|
|
|
5052
5215
|
* const auth = new google.auth.GoogleAuth({
|
|
5053
5216
|
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
5054
5217
|
* scopes: [
|
|
5055
|
-
* 'https://www.googleapis.com/auth/chrome.management.
|
|
5056
|
-
* 'https://www.googleapis.com/auth/chrome.management.profiles.readonly',
|
|
5218
|
+
* 'https://www.googleapis.com/auth/chrome.management.securityinsights',
|
|
5057
5219
|
* ],
|
|
5058
5220
|
* });
|
|
5059
5221
|
*
|
|
@@ -5062,25 +5224,24 @@ export declare namespace chromemanagement_v1 {
|
|
|
5062
5224
|
* google.options({auth: authClient});
|
|
5063
5225
|
*
|
|
5064
5226
|
* // Do the magic
|
|
5065
|
-
* const res =
|
|
5066
|
-
*
|
|
5067
|
-
*
|
|
5068
|
-
*
|
|
5069
|
-
*
|
|
5070
|
-
*
|
|
5071
|
-
*
|
|
5072
|
-
*
|
|
5073
|
-
*
|
|
5074
|
-
*
|
|
5075
|
-
*
|
|
5076
|
-
*
|
|
5227
|
+
* const res =
|
|
5228
|
+
* await chromemanagement.customers.enterprise.securityInsights.enable({
|
|
5229
|
+
* // Required. The customer to enable insights for. Format: customers/{customer\}
|
|
5230
|
+
* customer: 'customers/my-customer',
|
|
5231
|
+
*
|
|
5232
|
+
* // Request body metadata
|
|
5233
|
+
* requestBody: {
|
|
5234
|
+
* // request body parameters
|
|
5235
|
+
* // {
|
|
5236
|
+
* // "targetOus": []
|
|
5237
|
+
* // }
|
|
5238
|
+
* },
|
|
5239
|
+
* });
|
|
5077
5240
|
* console.log(res.data);
|
|
5078
5241
|
*
|
|
5079
5242
|
* // Example response
|
|
5080
5243
|
* // {
|
|
5081
|
-
* // "
|
|
5082
|
-
* // "nextPageToken": "my_nextPageToken",
|
|
5083
|
-
* // "totalSize": "my_totalSize"
|
|
5244
|
+
* // "insightsState": "my_insightsState"
|
|
5084
5245
|
* // }
|
|
5085
5246
|
* }
|
|
5086
5247
|
*
|
|
@@ -5096,52 +5257,14 @@ export declare namespace chromemanagement_v1 {
|
|
|
5096
5257
|
* @param callback - Optional callback that handles the response.
|
|
5097
5258
|
* @returns A promise if used with async/await, or void if used with a callback.
|
|
5098
5259
|
*/
|
|
5099
|
-
|
|
5100
|
-
|
|
5101
|
-
|
|
5102
|
-
|
|
5103
|
-
|
|
5104
|
-
|
|
5105
|
-
}
|
|
5106
|
-
export interface Params$Resource$Customers$Profiles$Delete extends StandardParameters {
|
|
5107
|
-
/**
|
|
5108
|
-
* Required. Format: customers/{customer_id\}/profiles/{profile_permanent_id\}
|
|
5109
|
-
*/
|
|
5110
|
-
name?: string;
|
|
5111
|
-
}
|
|
5112
|
-
export interface Params$Resource$Customers$Profiles$Get extends StandardParameters {
|
|
5113
|
-
/**
|
|
5114
|
-
* Required. Format: customers/{customer_id\}/profiles/{profile_permanent_id\}
|
|
5115
|
-
*/
|
|
5116
|
-
name?: string;
|
|
5117
|
-
}
|
|
5118
|
-
export interface Params$Resource$Customers$Profiles$List extends StandardParameters {
|
|
5119
|
-
/**
|
|
5120
|
-
* Optional. The filter used to filter profiles. The following fields can be used in the filter: - profile_id - display_name - user_email - last_activity_time - last_policy_sync_time - last_status_report_time - first_enrollment_time - os_platform_type - os_version - browser_version - browser_channel - policy_count - extension_count - identity_provider - affiliation_state - os_platform_version - ouId Any of the above fields can be used to specify a filter, and filtering by multiple fields is supported with AND operator. String type fields and enum type fields support '=' and '!=' operators. The integer type and the timestamp type fields support '=', '!=', '<', '\>', '<=' and '\>=' operators. Timestamps expect an RFC-3339 formatted string (e.g. 2012-04-21T11:30:00-04:00). Wildcard '*' can be used with a string type field filter. In addition, string literal filtering is also supported, for example, 'ABC' as a filter maps to a filter that checks if any of the filterable string type fields contains 'ABC'. Organization unit number can be used as a filtering criteria here by specifying 'ouId = ${your_org_unit_id\}', please note that only single OU ID matching is supported.
|
|
5121
|
-
*/
|
|
5122
|
-
filter?: string;
|
|
5123
|
-
/**
|
|
5124
|
-
* Optional. The fields used to specify the ordering of the results. The supported fields are: - profile_id - display_name - user_email - last_activity_time - last_policy_sync_time - last_status_report_time - first_enrollment_time - os_platform_type - os_version - browser_version - browser_channel - policy_count - extension_count - identity_provider - affiliation_state - os_platform_version By default, sorting is in ascending order, to specify descending order for a field, a suffix " desc" should be added to the field name. The default ordering is the descending order of last_status_report_time.
|
|
5125
|
-
*/
|
|
5126
|
-
orderBy?: string;
|
|
5127
|
-
/**
|
|
5128
|
-
* Optional. The maximum number of profiles to return. The default page size is 100 if page_size is unspecified, and the maximum page size allowed is 200.
|
|
5129
|
-
*/
|
|
5130
|
-
pageSize?: number;
|
|
5131
|
-
/**
|
|
5132
|
-
* Optional. The page token used to retrieve a specific page of the listing request.
|
|
5133
|
-
*/
|
|
5134
|
-
pageToken?: string;
|
|
5135
|
-
/**
|
|
5136
|
-
* Required. Format: customers/{customer_id\}
|
|
5137
|
-
*/
|
|
5138
|
-
parent?: string;
|
|
5139
|
-
}
|
|
5140
|
-
export class Resource$Customers$Profiles$Commands {
|
|
5141
|
-
context: APIRequestContext;
|
|
5142
|
-
constructor(context: APIRequestContext);
|
|
5260
|
+
enable(params: Params$Resource$Customers$Enterprise$Securityinsights$Enable, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
5261
|
+
enable(params?: Params$Resource$Customers$Enterprise$Securityinsights$Enable, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$GoogleChromeManagementVersionsV1EnableInsightsResponse>>;
|
|
5262
|
+
enable(params: Params$Resource$Customers$Enterprise$Securityinsights$Enable, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
5263
|
+
enable(params: Params$Resource$Customers$Enterprise$Securityinsights$Enable, options: MethodOptions | BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1EnableInsightsResponse>, callback: BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1EnableInsightsResponse>): void;
|
|
5264
|
+
enable(params: Params$Resource$Customers$Enterprise$Securityinsights$Enable, callback: BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1EnableInsightsResponse>): void;
|
|
5265
|
+
enable(callback: BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1EnableInsightsResponse>): void;
|
|
5143
5266
|
/**
|
|
5144
|
-
*
|
|
5267
|
+
* Returns a high-level summary of content transfers for a given customer.
|
|
5145
5268
|
* @example
|
|
5146
5269
|
* ```js
|
|
5147
5270
|
* // Before running the sample:
|
|
@@ -5162,7 +5285,10 @@ export declare namespace chromemanagement_v1 {
|
|
|
5162
5285
|
* async function main() {
|
|
5163
5286
|
* const auth = new google.auth.GoogleAuth({
|
|
5164
5287
|
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
5165
|
-
* scopes: [
|
|
5288
|
+
* scopes: [
|
|
5289
|
+
* 'https://www.googleapis.com/auth/chrome.management.securityinsights',
|
|
5290
|
+
* 'https://www.googleapis.com/auth/chrome.management.securityinsights.readonly',
|
|
5291
|
+
* ],
|
|
5166
5292
|
* });
|
|
5167
5293
|
*
|
|
5168
5294
|
* // Acquire an auth client, and bind it to all future calls
|
|
@@ -5170,9 +5296,669 @@ export declare namespace chromemanagement_v1 {
|
|
|
5170
5296
|
* google.options({auth: authClient});
|
|
5171
5297
|
*
|
|
5172
5298
|
* // Do the magic
|
|
5173
|
-
* const res =
|
|
5174
|
-
*
|
|
5175
|
-
*
|
|
5299
|
+
* const res =
|
|
5300
|
+
* await chromemanagement.customers.enterprise.securityInsights.queryContentTransfers(
|
|
5301
|
+
* {
|
|
5302
|
+
* // Required. The customer ID in the format "customers/{customer_id\}".
|
|
5303
|
+
* customer: 'customers/my-customer',
|
|
5304
|
+
* // Optional. The filter to apply to the request. For syntax, see AIP-160. Data is not available for events older than 180 days, and may be unavailable or inaccurate for time ranges less than 4 hours. If `event_time` is not specified, results will be returned for the last 30 days. Supported fields for filtering: - `event_time` Supported operators: - `\>=` and `<=` for `event_time` Supported conjunctions: - `AND` Example: `event_time \>= "2024-01-01T00:00:00Z" AND event_time <= "2024-01-02T00:00:00Z"`
|
|
5305
|
+
* filter: 'placeholder-value',
|
|
5306
|
+
* },
|
|
5307
|
+
* );
|
|
5308
|
+
* console.log(res.data);
|
|
5309
|
+
*
|
|
5310
|
+
* // Example response
|
|
5311
|
+
* // {
|
|
5312
|
+
* // "summaries": []
|
|
5313
|
+
* // }
|
|
5314
|
+
* }
|
|
5315
|
+
*
|
|
5316
|
+
* main().catch(e => {
|
|
5317
|
+
* console.error(e);
|
|
5318
|
+
* throw e;
|
|
5319
|
+
* });
|
|
5320
|
+
*
|
|
5321
|
+
* ```
|
|
5322
|
+
*
|
|
5323
|
+
* @param params - Parameters for request
|
|
5324
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
5325
|
+
* @param callback - Optional callback that handles the response.
|
|
5326
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
5327
|
+
*/
|
|
5328
|
+
queryContentTransfers(params: Params$Resource$Customers$Enterprise$Securityinsights$Querycontenttransfers, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
5329
|
+
queryContentTransfers(params?: Params$Resource$Customers$Enterprise$Securityinsights$Querycontenttransfers, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$GoogleChromeManagementVersionsV1QueryContentTransfersResponse>>;
|
|
5330
|
+
queryContentTransfers(params: Params$Resource$Customers$Enterprise$Securityinsights$Querycontenttransfers, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
5331
|
+
queryContentTransfers(params: Params$Resource$Customers$Enterprise$Securityinsights$Querycontenttransfers, options: MethodOptions | BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1QueryContentTransfersResponse>, callback: BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1QueryContentTransfersResponse>): void;
|
|
5332
|
+
queryContentTransfers(params: Params$Resource$Customers$Enterprise$Securityinsights$Querycontenttransfers, callback: BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1QueryContentTransfersResponse>): void;
|
|
5333
|
+
queryContentTransfers(callback: BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1QueryContentTransfersResponse>): void;
|
|
5334
|
+
/**
|
|
5335
|
+
* Returns summaries of content transfers for a given metric and breakdown dimension.
|
|
5336
|
+
* @example
|
|
5337
|
+
* ```js
|
|
5338
|
+
* // Before running the sample:
|
|
5339
|
+
* // - Enable the API at:
|
|
5340
|
+
* // https://console.developers.google.com/apis/api/chromemanagement.googleapis.com
|
|
5341
|
+
* // - Login into gcloud by running:
|
|
5342
|
+
* // ```sh
|
|
5343
|
+
* // $ gcloud auth application-default login
|
|
5344
|
+
* // ```
|
|
5345
|
+
* // - Install the npm module by running:
|
|
5346
|
+
* // ```sh
|
|
5347
|
+
* // $ npm install googleapis
|
|
5348
|
+
* // ```
|
|
5349
|
+
*
|
|
5350
|
+
* const {google} = require('googleapis');
|
|
5351
|
+
* const chromemanagement = google.chromemanagement('v1');
|
|
5352
|
+
*
|
|
5353
|
+
* async function main() {
|
|
5354
|
+
* const auth = new google.auth.GoogleAuth({
|
|
5355
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
5356
|
+
* scopes: [
|
|
5357
|
+
* 'https://www.googleapis.com/auth/chrome.management.securityinsights',
|
|
5358
|
+
* 'https://www.googleapis.com/auth/chrome.management.securityinsights.readonly',
|
|
5359
|
+
* ],
|
|
5360
|
+
* });
|
|
5361
|
+
*
|
|
5362
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
5363
|
+
* const authClient = await auth.getClient();
|
|
5364
|
+
* google.options({auth: authClient});
|
|
5365
|
+
*
|
|
5366
|
+
* // Do the magic
|
|
5367
|
+
* const res =
|
|
5368
|
+
* await chromemanagement.customers.enterprise.securityInsights.queryContentTransfersBreakdowns(
|
|
5369
|
+
* {
|
|
5370
|
+
* // Optional. The dimension to break down the content transfers by. Defaults to USER.
|
|
5371
|
+
* breakdown: 'placeholder-value',
|
|
5372
|
+
* // Required. The customer ID in the format "customers/{customer_id\}".
|
|
5373
|
+
* customer: 'customers/my-customer',
|
|
5374
|
+
* // Optional. The filter to apply to the request. For syntax, see AIP-160. Data is not available for events older than 180 days or more recent than 48 hours ago. If `event_time` is not specified, results will end 48 hours ago. Supported fields for filtering: - `user` - `event_domain` - `content_category` - `event_time` Filtering by `user` or `event_domain` requires the `breakdown` dimension to be set to the corresponding value (e.g., you must set `breakdown = USER` to filter by `user`). Supported operators: - `=` for `user`, `event_domain`, and `content_category`. - `<=` for `event_time`. Supported conjunctions: - `AND` Example: `user = "testuser" AND event_time <= "2024-01-02T00:00:00Z"`
|
|
5375
|
+
* filter: 'placeholder-value',
|
|
5376
|
+
* // Optional. The fixed time range to return the breakdowns for. Defaults to FIXED_TIME_RANGE_FOUR_WEEKS. Fixed time ranges are used to allow for precomputation and optimize response times.
|
|
5377
|
+
* fixedTimeRange: 'placeholder-value',
|
|
5378
|
+
* // Optional. The metric to return the breakdowns for. Defaults to CONTENT_TRANSFERS_METRIC_TOTAL_TRANSFERS.
|
|
5379
|
+
* metric: 'placeholder-value',
|
|
5380
|
+
* // Optional. The maximum number of breakdowns to return. The service may return fewer than this value. If unspecified, at most 50 breakdowns will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.
|
|
5381
|
+
* pageSize: 'placeholder-value',
|
|
5382
|
+
* // Optional. A page token, received from a previous `QueryContentTransfersBreakdowns` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `QueryContentTransfersBreakdowns` must match the call that provided the page token.
|
|
5383
|
+
* pageToken: 'placeholder-value',
|
|
5384
|
+
* },
|
|
5385
|
+
* );
|
|
5386
|
+
* console.log(res.data);
|
|
5387
|
+
*
|
|
5388
|
+
* // Example response
|
|
5389
|
+
* // {
|
|
5390
|
+
* // "contentTransfersBreakdowns": [],
|
|
5391
|
+
* // "nextPageToken": "my_nextPageToken"
|
|
5392
|
+
* // }
|
|
5393
|
+
* }
|
|
5394
|
+
*
|
|
5395
|
+
* main().catch(e => {
|
|
5396
|
+
* console.error(e);
|
|
5397
|
+
* throw e;
|
|
5398
|
+
* });
|
|
5399
|
+
*
|
|
5400
|
+
* ```
|
|
5401
|
+
*
|
|
5402
|
+
* @param params - Parameters for request
|
|
5403
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
5404
|
+
* @param callback - Optional callback that handles the response.
|
|
5405
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
5406
|
+
*/
|
|
5407
|
+
queryContentTransfersBreakdowns(params: Params$Resource$Customers$Enterprise$Securityinsights$Querycontenttransfersbreakdowns, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
5408
|
+
queryContentTransfersBreakdowns(params?: Params$Resource$Customers$Enterprise$Securityinsights$Querycontenttransfersbreakdowns, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$GoogleChromeManagementVersionsV1QueryContentTransfersBreakdownsResponse>>;
|
|
5409
|
+
queryContentTransfersBreakdowns(params: Params$Resource$Customers$Enterprise$Securityinsights$Querycontenttransfersbreakdowns, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
5410
|
+
queryContentTransfersBreakdowns(params: Params$Resource$Customers$Enterprise$Securityinsights$Querycontenttransfersbreakdowns, options: MethodOptions | BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1QueryContentTransfersBreakdownsResponse>, callback: BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1QueryContentTransfersBreakdownsResponse>): void;
|
|
5411
|
+
queryContentTransfersBreakdowns(params: Params$Resource$Customers$Enterprise$Securityinsights$Querycontenttransfersbreakdowns, callback: BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1QueryContentTransfersBreakdownsResponse>): void;
|
|
5412
|
+
queryContentTransfersBreakdowns(callback: BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1QueryContentTransfersBreakdownsResponse>): void;
|
|
5413
|
+
/**
|
|
5414
|
+
* Returns a high-level summary of URL visits for a given customer. Requires a Chrome Enterprise Premium subscription. If the customer does not have this subscription, query results will be empty.
|
|
5415
|
+
* @example
|
|
5416
|
+
* ```js
|
|
5417
|
+
* // Before running the sample:
|
|
5418
|
+
* // - Enable the API at:
|
|
5419
|
+
* // https://console.developers.google.com/apis/api/chromemanagement.googleapis.com
|
|
5420
|
+
* // - Login into gcloud by running:
|
|
5421
|
+
* // ```sh
|
|
5422
|
+
* // $ gcloud auth application-default login
|
|
5423
|
+
* // ```
|
|
5424
|
+
* // - Install the npm module by running:
|
|
5425
|
+
* // ```sh
|
|
5426
|
+
* // $ npm install googleapis
|
|
5427
|
+
* // ```
|
|
5428
|
+
*
|
|
5429
|
+
* const {google} = require('googleapis');
|
|
5430
|
+
* const chromemanagement = google.chromemanagement('v1');
|
|
5431
|
+
*
|
|
5432
|
+
* async function main() {
|
|
5433
|
+
* const auth = new google.auth.GoogleAuth({
|
|
5434
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
5435
|
+
* scopes: [
|
|
5436
|
+
* 'https://www.googleapis.com/auth/chrome.management.securityinsights',
|
|
5437
|
+
* 'https://www.googleapis.com/auth/chrome.management.securityinsights.readonly',
|
|
5438
|
+
* ],
|
|
5439
|
+
* });
|
|
5440
|
+
*
|
|
5441
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
5442
|
+
* const authClient = await auth.getClient();
|
|
5443
|
+
* google.options({auth: authClient});
|
|
5444
|
+
*
|
|
5445
|
+
* // Do the magic
|
|
5446
|
+
* const res =
|
|
5447
|
+
* await chromemanagement.customers.enterprise.securityInsights.queryUrlVisits(
|
|
5448
|
+
* {
|
|
5449
|
+
* // Required. The customer ID in the format "customers/{customer_id\}".
|
|
5450
|
+
* customer: 'customers/my-customer',
|
|
5451
|
+
* // Optional. The filter to apply to the request. For syntax, see AIP-160. Data is not available for events older than 180 days, and may be unavailable or inaccurate for time ranges less than 4 hours. If `event_time` is not specified, results will be returned for the last 30 days. Supported fields for filtering: - `event_time` Supported operators: - `\>=` and `<=` for `event_time` Supported conjunctions: - `AND` Example: `event_time \>= "2024-01-01T00:00:00Z" AND event_time <= "2024-01-02T00:00:00Z"`
|
|
5452
|
+
* filter: 'placeholder-value',
|
|
5453
|
+
* },
|
|
5454
|
+
* );
|
|
5455
|
+
* console.log(res.data);
|
|
5456
|
+
*
|
|
5457
|
+
* // Example response
|
|
5458
|
+
* // {
|
|
5459
|
+
* // "summaries": []
|
|
5460
|
+
* // }
|
|
5461
|
+
* }
|
|
5462
|
+
*
|
|
5463
|
+
* main().catch(e => {
|
|
5464
|
+
* console.error(e);
|
|
5465
|
+
* throw e;
|
|
5466
|
+
* });
|
|
5467
|
+
*
|
|
5468
|
+
* ```
|
|
5469
|
+
*
|
|
5470
|
+
* @param params - Parameters for request
|
|
5471
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
5472
|
+
* @param callback - Optional callback that handles the response.
|
|
5473
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
5474
|
+
*/
|
|
5475
|
+
queryUrlVisits(params: Params$Resource$Customers$Enterprise$Securityinsights$Queryurlvisits, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
5476
|
+
queryUrlVisits(params?: Params$Resource$Customers$Enterprise$Securityinsights$Queryurlvisits, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$GoogleChromeManagementVersionsV1QueryUrlVisitsResponse>>;
|
|
5477
|
+
queryUrlVisits(params: Params$Resource$Customers$Enterprise$Securityinsights$Queryurlvisits, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
5478
|
+
queryUrlVisits(params: Params$Resource$Customers$Enterprise$Securityinsights$Queryurlvisits, options: MethodOptions | BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1QueryUrlVisitsResponse>, callback: BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1QueryUrlVisitsResponse>): void;
|
|
5479
|
+
queryUrlVisits(params: Params$Resource$Customers$Enterprise$Securityinsights$Queryurlvisits, callback: BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1QueryUrlVisitsResponse>): void;
|
|
5480
|
+
queryUrlVisits(callback: BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1QueryUrlVisitsResponse>): void;
|
|
5481
|
+
/**
|
|
5482
|
+
* Returns summaries of URL visits for a given metric and breakdown dimension. Requires a Chrome Enterprise Premium subscription. If the customer does not have this subscription, query results will be empty.
|
|
5483
|
+
* @example
|
|
5484
|
+
* ```js
|
|
5485
|
+
* // Before running the sample:
|
|
5486
|
+
* // - Enable the API at:
|
|
5487
|
+
* // https://console.developers.google.com/apis/api/chromemanagement.googleapis.com
|
|
5488
|
+
* // - Login into gcloud by running:
|
|
5489
|
+
* // ```sh
|
|
5490
|
+
* // $ gcloud auth application-default login
|
|
5491
|
+
* // ```
|
|
5492
|
+
* // - Install the npm module by running:
|
|
5493
|
+
* // ```sh
|
|
5494
|
+
* // $ npm install googleapis
|
|
5495
|
+
* // ```
|
|
5496
|
+
*
|
|
5497
|
+
* const {google} = require('googleapis');
|
|
5498
|
+
* const chromemanagement = google.chromemanagement('v1');
|
|
5499
|
+
*
|
|
5500
|
+
* async function main() {
|
|
5501
|
+
* const auth = new google.auth.GoogleAuth({
|
|
5502
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
5503
|
+
* scopes: [
|
|
5504
|
+
* 'https://www.googleapis.com/auth/chrome.management.securityinsights',
|
|
5505
|
+
* 'https://www.googleapis.com/auth/chrome.management.securityinsights.readonly',
|
|
5506
|
+
* ],
|
|
5507
|
+
* });
|
|
5508
|
+
*
|
|
5509
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
5510
|
+
* const authClient = await auth.getClient();
|
|
5511
|
+
* google.options({auth: authClient});
|
|
5512
|
+
*
|
|
5513
|
+
* // Do the magic
|
|
5514
|
+
* const res =
|
|
5515
|
+
* await chromemanagement.customers.enterprise.securityInsights.queryUrlVisitsBreakdowns(
|
|
5516
|
+
* {
|
|
5517
|
+
* // Optional. The dimension to break down the URL visits by. Defaults to USER.
|
|
5518
|
+
* breakdown: 'placeholder-value',
|
|
5519
|
+
* // Required. The customer ID in the format "customers/{customer_id\}".
|
|
5520
|
+
* customer: 'customers/my-customer',
|
|
5521
|
+
* // Optional. The filter to apply to the request. For syntax, see AIP-160. Data is not available for events older than 180 days or more recent than 48 hours ago. If `event_time` is not specified, results will end 48 hours ago. Supported fields for filtering: - `user` - `event_domain` - `event_time` Filtering by `user` or `event_domain` requires the `breakdown` dimension to be set to the corresponding value (e.g., you must set `breakdown = USER` to filter by `user`). Supported operators: - `=` for `user` and `event_domain`. - `<=` for `event_time`. Supported conjunctions: - `AND` Example: `user = "testuser" AND event_time <= "2024-01-02T00:00:00Z"`
|
|
5522
|
+
* filter: 'placeholder-value',
|
|
5523
|
+
* // Optional. The fixed time range to return the breakdowns for. Defaults to FIXED_TIME_RANGE_FOUR_WEEKS. Fixed time ranges are used to allow for precomputation and optimize response times.
|
|
5524
|
+
* fixedTimeRange: 'placeholder-value',
|
|
5525
|
+
* // Optional. The metric to return the breakdowns for. Defaults to URL_VISITS_METRIC_TOTAL_SUSPICIOUS_URL_VISITS.
|
|
5526
|
+
* metric: 'placeholder-value',
|
|
5527
|
+
* // Optional. The maximum number of breakdowns to return. The service may return fewer than this value. If unspecified, at most 50 breakdowns will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.
|
|
5528
|
+
* pageSize: 'placeholder-value',
|
|
5529
|
+
* // Optional. A page token, received from a previous `QueryUrlVisitsBreakdowns` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `QueryUrlVisitsBreakdowns` must match the call that provided the page token.
|
|
5530
|
+
* pageToken: 'placeholder-value',
|
|
5531
|
+
* },
|
|
5532
|
+
* );
|
|
5533
|
+
* console.log(res.data);
|
|
5534
|
+
*
|
|
5535
|
+
* // Example response
|
|
5536
|
+
* // {
|
|
5537
|
+
* // "nextPageToken": "my_nextPageToken",
|
|
5538
|
+
* // "urlVisitsBreakdowns": []
|
|
5539
|
+
* // }
|
|
5540
|
+
* }
|
|
5541
|
+
*
|
|
5542
|
+
* main().catch(e => {
|
|
5543
|
+
* console.error(e);
|
|
5544
|
+
* throw e;
|
|
5545
|
+
* });
|
|
5546
|
+
*
|
|
5547
|
+
* ```
|
|
5548
|
+
*
|
|
5549
|
+
* @param params - Parameters for request
|
|
5550
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
5551
|
+
* @param callback - Optional callback that handles the response.
|
|
5552
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
5553
|
+
*/
|
|
5554
|
+
queryUrlVisitsBreakdowns(params: Params$Resource$Customers$Enterprise$Securityinsights$Queryurlvisitsbreakdowns, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
5555
|
+
queryUrlVisitsBreakdowns(params?: Params$Resource$Customers$Enterprise$Securityinsights$Queryurlvisitsbreakdowns, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$GoogleChromeManagementVersionsV1QueryUrlVisitsBreakdownsResponse>>;
|
|
5556
|
+
queryUrlVisitsBreakdowns(params: Params$Resource$Customers$Enterprise$Securityinsights$Queryurlvisitsbreakdowns, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
5557
|
+
queryUrlVisitsBreakdowns(params: Params$Resource$Customers$Enterprise$Securityinsights$Queryurlvisitsbreakdowns, options: MethodOptions | BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1QueryUrlVisitsBreakdownsResponse>, callback: BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1QueryUrlVisitsBreakdownsResponse>): void;
|
|
5558
|
+
queryUrlVisitsBreakdowns(params: Params$Resource$Customers$Enterprise$Securityinsights$Queryurlvisitsbreakdowns, callback: BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1QueryUrlVisitsBreakdownsResponse>): void;
|
|
5559
|
+
queryUrlVisitsBreakdowns(callback: BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1QueryUrlVisitsBreakdownsResponse>): void;
|
|
5560
|
+
}
|
|
5561
|
+
export interface Params$Resource$Customers$Enterprise$Securityinsights$Checkenablementstatus extends StandardParameters {
|
|
5562
|
+
/**
|
|
5563
|
+
* Required. The customer to check the enablement status for. Format: customers/{customer_id\}
|
|
5564
|
+
*/
|
|
5565
|
+
customer?: string;
|
|
5566
|
+
}
|
|
5567
|
+
export interface Params$Resource$Customers$Enterprise$Securityinsights$Disable extends StandardParameters {
|
|
5568
|
+
/**
|
|
5569
|
+
* Required. The customer to disable insights for. Format: customers/{customer\}
|
|
5570
|
+
*/
|
|
5571
|
+
customer?: string;
|
|
5572
|
+
/**
|
|
5573
|
+
* Request body metadata
|
|
5574
|
+
*/
|
|
5575
|
+
requestBody?: Schema$GoogleChromeManagementVersionsV1DisableInsightsRequest;
|
|
5576
|
+
}
|
|
5577
|
+
export interface Params$Resource$Customers$Enterprise$Securityinsights$Enable extends StandardParameters {
|
|
5578
|
+
/**
|
|
5579
|
+
* Required. The customer to enable insights for. Format: customers/{customer\}
|
|
5580
|
+
*/
|
|
5581
|
+
customer?: string;
|
|
5582
|
+
/**
|
|
5583
|
+
* Request body metadata
|
|
5584
|
+
*/
|
|
5585
|
+
requestBody?: Schema$GoogleChromeManagementVersionsV1EnableInsightsRequest;
|
|
5586
|
+
}
|
|
5587
|
+
export interface Params$Resource$Customers$Enterprise$Securityinsights$Querycontenttransfers extends StandardParameters {
|
|
5588
|
+
/**
|
|
5589
|
+
* Required. The customer ID in the format "customers/{customer_id\}".
|
|
5590
|
+
*/
|
|
5591
|
+
customer?: string;
|
|
5592
|
+
/**
|
|
5593
|
+
* Optional. The filter to apply to the request. For syntax, see AIP-160. Data is not available for events older than 180 days, and may be unavailable or inaccurate for time ranges less than 4 hours. If `event_time` is not specified, results will be returned for the last 30 days. Supported fields for filtering: - `event_time` Supported operators: - `\>=` and `<=` for `event_time` Supported conjunctions: - `AND` Example: `event_time \>= "2024-01-01T00:00:00Z" AND event_time <= "2024-01-02T00:00:00Z"`
|
|
5594
|
+
*/
|
|
5595
|
+
filter?: string;
|
|
5596
|
+
}
|
|
5597
|
+
export interface Params$Resource$Customers$Enterprise$Securityinsights$Querycontenttransfersbreakdowns extends StandardParameters {
|
|
5598
|
+
/**
|
|
5599
|
+
* Optional. The dimension to break down the content transfers by. Defaults to USER.
|
|
5600
|
+
*/
|
|
5601
|
+
breakdown?: string;
|
|
5602
|
+
/**
|
|
5603
|
+
* Required. The customer ID in the format "customers/{customer_id\}".
|
|
5604
|
+
*/
|
|
5605
|
+
customer?: string;
|
|
5606
|
+
/**
|
|
5607
|
+
* Optional. The filter to apply to the request. For syntax, see AIP-160. Data is not available for events older than 180 days or more recent than 48 hours ago. If `event_time` is not specified, results will end 48 hours ago. Supported fields for filtering: - `user` - `event_domain` - `content_category` - `event_time` Filtering by `user` or `event_domain` requires the `breakdown` dimension to be set to the corresponding value (e.g., you must set `breakdown = USER` to filter by `user`). Supported operators: - `=` for `user`, `event_domain`, and `content_category`. - `<=` for `event_time`. Supported conjunctions: - `AND` Example: `user = "testuser" AND event_time <= "2024-01-02T00:00:00Z"`
|
|
5608
|
+
*/
|
|
5609
|
+
filter?: string;
|
|
5610
|
+
/**
|
|
5611
|
+
* Optional. The fixed time range to return the breakdowns for. Defaults to FIXED_TIME_RANGE_FOUR_WEEKS. Fixed time ranges are used to allow for precomputation and optimize response times.
|
|
5612
|
+
*/
|
|
5613
|
+
fixedTimeRange?: string;
|
|
5614
|
+
/**
|
|
5615
|
+
* Optional. The metric to return the breakdowns for. Defaults to CONTENT_TRANSFERS_METRIC_TOTAL_TRANSFERS.
|
|
5616
|
+
*/
|
|
5617
|
+
metric?: string;
|
|
5618
|
+
/**
|
|
5619
|
+
* Optional. The maximum number of breakdowns to return. The service may return fewer than this value. If unspecified, at most 50 breakdowns will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.
|
|
5620
|
+
*/
|
|
5621
|
+
pageSize?: number;
|
|
5622
|
+
/**
|
|
5623
|
+
* Optional. A page token, received from a previous `QueryContentTransfersBreakdowns` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `QueryContentTransfersBreakdowns` must match the call that provided the page token.
|
|
5624
|
+
*/
|
|
5625
|
+
pageToken?: string;
|
|
5626
|
+
}
|
|
5627
|
+
export interface Params$Resource$Customers$Enterprise$Securityinsights$Queryurlvisits extends StandardParameters {
|
|
5628
|
+
/**
|
|
5629
|
+
* Required. The customer ID in the format "customers/{customer_id\}".
|
|
5630
|
+
*/
|
|
5631
|
+
customer?: string;
|
|
5632
|
+
/**
|
|
5633
|
+
* Optional. The filter to apply to the request. For syntax, see AIP-160. Data is not available for events older than 180 days, and may be unavailable or inaccurate for time ranges less than 4 hours. If `event_time` is not specified, results will be returned for the last 30 days. Supported fields for filtering: - `event_time` Supported operators: - `\>=` and `<=` for `event_time` Supported conjunctions: - `AND` Example: `event_time \>= "2024-01-01T00:00:00Z" AND event_time <= "2024-01-02T00:00:00Z"`
|
|
5634
|
+
*/
|
|
5635
|
+
filter?: string;
|
|
5636
|
+
}
|
|
5637
|
+
export interface Params$Resource$Customers$Enterprise$Securityinsights$Queryurlvisitsbreakdowns extends StandardParameters {
|
|
5638
|
+
/**
|
|
5639
|
+
* Optional. The dimension to break down the URL visits by. Defaults to USER.
|
|
5640
|
+
*/
|
|
5641
|
+
breakdown?: string;
|
|
5642
|
+
/**
|
|
5643
|
+
* Required. The customer ID in the format "customers/{customer_id\}".
|
|
5644
|
+
*/
|
|
5645
|
+
customer?: string;
|
|
5646
|
+
/**
|
|
5647
|
+
* Optional. The filter to apply to the request. For syntax, see AIP-160. Data is not available for events older than 180 days or more recent than 48 hours ago. If `event_time` is not specified, results will end 48 hours ago. Supported fields for filtering: - `user` - `event_domain` - `event_time` Filtering by `user` or `event_domain` requires the `breakdown` dimension to be set to the corresponding value (e.g., you must set `breakdown = USER` to filter by `user`). Supported operators: - `=` for `user` and `event_domain`. - `<=` for `event_time`. Supported conjunctions: - `AND` Example: `user = "testuser" AND event_time <= "2024-01-02T00:00:00Z"`
|
|
5648
|
+
*/
|
|
5649
|
+
filter?: string;
|
|
5650
|
+
/**
|
|
5651
|
+
* Optional. The fixed time range to return the breakdowns for. Defaults to FIXED_TIME_RANGE_FOUR_WEEKS. Fixed time ranges are used to allow for precomputation and optimize response times.
|
|
5652
|
+
*/
|
|
5653
|
+
fixedTimeRange?: string;
|
|
5654
|
+
/**
|
|
5655
|
+
* Optional. The metric to return the breakdowns for. Defaults to URL_VISITS_METRIC_TOTAL_SUSPICIOUS_URL_VISITS.
|
|
5656
|
+
*/
|
|
5657
|
+
metric?: string;
|
|
5658
|
+
/**
|
|
5659
|
+
* Optional. The maximum number of breakdowns to return. The service may return fewer than this value. If unspecified, at most 50 breakdowns will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.
|
|
5660
|
+
*/
|
|
5661
|
+
pageSize?: number;
|
|
5662
|
+
/**
|
|
5663
|
+
* Optional. A page token, received from a previous `QueryUrlVisitsBreakdowns` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `QueryUrlVisitsBreakdowns` must match the call that provided the page token.
|
|
5664
|
+
*/
|
|
5665
|
+
pageToken?: string;
|
|
5666
|
+
}
|
|
5667
|
+
export class Resource$Customers$Profiles {
|
|
5668
|
+
context: APIRequestContext;
|
|
5669
|
+
commands: Resource$Customers$Profiles$Commands;
|
|
5670
|
+
constructor(context: APIRequestContext);
|
|
5671
|
+
/**
|
|
5672
|
+
* Deletes the data collected from a Chrome browser profile.
|
|
5673
|
+
* @example
|
|
5674
|
+
* ```js
|
|
5675
|
+
* // Before running the sample:
|
|
5676
|
+
* // - Enable the API at:
|
|
5677
|
+
* // https://console.developers.google.com/apis/api/chromemanagement.googleapis.com
|
|
5678
|
+
* // - Login into gcloud by running:
|
|
5679
|
+
* // ```sh
|
|
5680
|
+
* // $ gcloud auth application-default login
|
|
5681
|
+
* // ```
|
|
5682
|
+
* // - Install the npm module by running:
|
|
5683
|
+
* // ```sh
|
|
5684
|
+
* // $ npm install googleapis
|
|
5685
|
+
* // ```
|
|
5686
|
+
*
|
|
5687
|
+
* const {google} = require('googleapis');
|
|
5688
|
+
* const chromemanagement = google.chromemanagement('v1');
|
|
5689
|
+
*
|
|
5690
|
+
* async function main() {
|
|
5691
|
+
* const auth = new google.auth.GoogleAuth({
|
|
5692
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
5693
|
+
* scopes: ['https://www.googleapis.com/auth/chrome.management.profiles'],
|
|
5694
|
+
* });
|
|
5695
|
+
*
|
|
5696
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
5697
|
+
* const authClient = await auth.getClient();
|
|
5698
|
+
* google.options({auth: authClient});
|
|
5699
|
+
*
|
|
5700
|
+
* // Do the magic
|
|
5701
|
+
* const res = await chromemanagement.customers.profiles.delete({
|
|
5702
|
+
* // Required. Format: customers/{customer_id\}/profiles/{profile_permanent_id\}
|
|
5703
|
+
* name: 'customers/my-customer/profiles/my-profile',
|
|
5704
|
+
* });
|
|
5705
|
+
* console.log(res.data);
|
|
5706
|
+
*
|
|
5707
|
+
* // Example response
|
|
5708
|
+
* // {}
|
|
5709
|
+
* }
|
|
5710
|
+
*
|
|
5711
|
+
* main().catch(e => {
|
|
5712
|
+
* console.error(e);
|
|
5713
|
+
* throw e;
|
|
5714
|
+
* });
|
|
5715
|
+
*
|
|
5716
|
+
* ```
|
|
5717
|
+
*
|
|
5718
|
+
* @param params - Parameters for request
|
|
5719
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
5720
|
+
* @param callback - Optional callback that handles the response.
|
|
5721
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
5722
|
+
*/
|
|
5723
|
+
delete(params: Params$Resource$Customers$Profiles$Delete, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
5724
|
+
delete(params?: Params$Resource$Customers$Profiles$Delete, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$GoogleProtobufEmpty>>;
|
|
5725
|
+
delete(params: Params$Resource$Customers$Profiles$Delete, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
5726
|
+
delete(params: Params$Resource$Customers$Profiles$Delete, options: MethodOptions | BodyResponseCallback<Schema$GoogleProtobufEmpty>, callback: BodyResponseCallback<Schema$GoogleProtobufEmpty>): void;
|
|
5727
|
+
delete(params: Params$Resource$Customers$Profiles$Delete, callback: BodyResponseCallback<Schema$GoogleProtobufEmpty>): void;
|
|
5728
|
+
delete(callback: BodyResponseCallback<Schema$GoogleProtobufEmpty>): void;
|
|
5729
|
+
/**
|
|
5730
|
+
* Gets a Chrome browser profile with customer ID and profile permanent ID.
|
|
5731
|
+
* @example
|
|
5732
|
+
* ```js
|
|
5733
|
+
* // Before running the sample:
|
|
5734
|
+
* // - Enable the API at:
|
|
5735
|
+
* // https://console.developers.google.com/apis/api/chromemanagement.googleapis.com
|
|
5736
|
+
* // - Login into gcloud by running:
|
|
5737
|
+
* // ```sh
|
|
5738
|
+
* // $ gcloud auth application-default login
|
|
5739
|
+
* // ```
|
|
5740
|
+
* // - Install the npm module by running:
|
|
5741
|
+
* // ```sh
|
|
5742
|
+
* // $ npm install googleapis
|
|
5743
|
+
* // ```
|
|
5744
|
+
*
|
|
5745
|
+
* const {google} = require('googleapis');
|
|
5746
|
+
* const chromemanagement = google.chromemanagement('v1');
|
|
5747
|
+
*
|
|
5748
|
+
* async function main() {
|
|
5749
|
+
* const auth = new google.auth.GoogleAuth({
|
|
5750
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
5751
|
+
* scopes: [
|
|
5752
|
+
* 'https://www.googleapis.com/auth/chrome.management.profiles',
|
|
5753
|
+
* 'https://www.googleapis.com/auth/chrome.management.profiles.readonly',
|
|
5754
|
+
* ],
|
|
5755
|
+
* });
|
|
5756
|
+
*
|
|
5757
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
5758
|
+
* const authClient = await auth.getClient();
|
|
5759
|
+
* google.options({auth: authClient});
|
|
5760
|
+
*
|
|
5761
|
+
* // Do the magic
|
|
5762
|
+
* const res = await chromemanagement.customers.profiles.get({
|
|
5763
|
+
* // Required. Format: customers/{customer_id\}/profiles/{profile_permanent_id\}
|
|
5764
|
+
* name: 'customers/my-customer/profiles/my-profile',
|
|
5765
|
+
* });
|
|
5766
|
+
* console.log(res.data);
|
|
5767
|
+
*
|
|
5768
|
+
* // Example response
|
|
5769
|
+
* // {
|
|
5770
|
+
* // "affiliationState": "my_affiliationState",
|
|
5771
|
+
* // "annotatedLocation": "my_annotatedLocation",
|
|
5772
|
+
* // "annotatedUser": "my_annotatedUser",
|
|
5773
|
+
* // "attestationCredential": {},
|
|
5774
|
+
* // "browserChannel": "my_browserChannel",
|
|
5775
|
+
* // "browserVersion": "my_browserVersion",
|
|
5776
|
+
* // "deviceInfo": {},
|
|
5777
|
+
* // "displayName": "my_displayName",
|
|
5778
|
+
* // "etag": "my_etag",
|
|
5779
|
+
* // "extensionCount": "my_extensionCount",
|
|
5780
|
+
* // "firstEnrollmentTime": "my_firstEnrollmentTime",
|
|
5781
|
+
* // "identityProvider": "my_identityProvider",
|
|
5782
|
+
* // "lastActivityTime": "my_lastActivityTime",
|
|
5783
|
+
* // "lastPolicyFetchTime": "my_lastPolicyFetchTime",
|
|
5784
|
+
* // "lastPolicySyncTime": "my_lastPolicySyncTime",
|
|
5785
|
+
* // "lastStatusReportTime": "my_lastStatusReportTime",
|
|
5786
|
+
* // "name": "my_name",
|
|
5787
|
+
* // "osPlatformType": "my_osPlatformType",
|
|
5788
|
+
* // "osPlatformVersion": "my_osPlatformVersion",
|
|
5789
|
+
* // "osVersion": "my_osVersion",
|
|
5790
|
+
* // "policyCount": "my_policyCount",
|
|
5791
|
+
* // "profileId": "my_profileId",
|
|
5792
|
+
* // "profilePermanentId": "my_profilePermanentId",
|
|
5793
|
+
* // "reportingData": {},
|
|
5794
|
+
* // "supportsFcmNotifications": false,
|
|
5795
|
+
* // "userEmail": "my_userEmail",
|
|
5796
|
+
* // "userId": "my_userId"
|
|
5797
|
+
* // }
|
|
5798
|
+
* }
|
|
5799
|
+
*
|
|
5800
|
+
* main().catch(e => {
|
|
5801
|
+
* console.error(e);
|
|
5802
|
+
* throw e;
|
|
5803
|
+
* });
|
|
5804
|
+
*
|
|
5805
|
+
* ```
|
|
5806
|
+
*
|
|
5807
|
+
* @param params - Parameters for request
|
|
5808
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
5809
|
+
* @param callback - Optional callback that handles the response.
|
|
5810
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
5811
|
+
*/
|
|
5812
|
+
get(params: Params$Resource$Customers$Profiles$Get, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
5813
|
+
get(params?: Params$Resource$Customers$Profiles$Get, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$GoogleChromeManagementVersionsV1ChromeBrowserProfile>>;
|
|
5814
|
+
get(params: Params$Resource$Customers$Profiles$Get, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
5815
|
+
get(params: Params$Resource$Customers$Profiles$Get, options: MethodOptions | BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1ChromeBrowserProfile>, callback: BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1ChromeBrowserProfile>): void;
|
|
5816
|
+
get(params: Params$Resource$Customers$Profiles$Get, callback: BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1ChromeBrowserProfile>): void;
|
|
5817
|
+
get(callback: BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1ChromeBrowserProfile>): void;
|
|
5818
|
+
/**
|
|
5819
|
+
* Lists Chrome browser profiles of a customer based on the given search and sorting criteria.
|
|
5820
|
+
* @example
|
|
5821
|
+
* ```js
|
|
5822
|
+
* // Before running the sample:
|
|
5823
|
+
* // - Enable the API at:
|
|
5824
|
+
* // https://console.developers.google.com/apis/api/chromemanagement.googleapis.com
|
|
5825
|
+
* // - Login into gcloud by running:
|
|
5826
|
+
* // ```sh
|
|
5827
|
+
* // $ gcloud auth application-default login
|
|
5828
|
+
* // ```
|
|
5829
|
+
* // - Install the npm module by running:
|
|
5830
|
+
* // ```sh
|
|
5831
|
+
* // $ npm install googleapis
|
|
5832
|
+
* // ```
|
|
5833
|
+
*
|
|
5834
|
+
* const {google} = require('googleapis');
|
|
5835
|
+
* const chromemanagement = google.chromemanagement('v1');
|
|
5836
|
+
*
|
|
5837
|
+
* async function main() {
|
|
5838
|
+
* const auth = new google.auth.GoogleAuth({
|
|
5839
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
5840
|
+
* scopes: [
|
|
5841
|
+
* 'https://www.googleapis.com/auth/chrome.management.profiles',
|
|
5842
|
+
* 'https://www.googleapis.com/auth/chrome.management.profiles.readonly',
|
|
5843
|
+
* ],
|
|
5844
|
+
* });
|
|
5845
|
+
*
|
|
5846
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
5847
|
+
* const authClient = await auth.getClient();
|
|
5848
|
+
* google.options({auth: authClient});
|
|
5849
|
+
*
|
|
5850
|
+
* // Do the magic
|
|
5851
|
+
* const res = await chromemanagement.customers.profiles.list({
|
|
5852
|
+
* // Optional. The filter used to filter profiles. The following fields can be used in the filter: - profile_id - display_name - user_email - last_activity_time - last_policy_sync_time - last_status_report_time - first_enrollment_time - os_platform_type - os_version - browser_version - browser_channel - policy_count - extension_count - identity_provider - affiliation_state - os_platform_version - ouId Any of the above fields can be used to specify a filter, and filtering by multiple fields is supported with AND operator. String type fields and enum type fields support '=' and '!=' operators. The integer type and the timestamp type fields support '=', '!=', '<', '\>', '<=' and '\>=' operators. Timestamps expect an RFC-3339 formatted string (e.g. 2012-04-21T11:30:00-04:00). Wildcard '*' can be used with a string type field filter. In addition, string literal filtering is also supported, for example, 'ABC' as a filter maps to a filter that checks if any of the filterable string type fields contains 'ABC'. Organization unit number can be used as a filtering criteria here by specifying 'ouId = ${your_org_unit_id\}', please note that only single OU ID matching is supported.
|
|
5853
|
+
* filter: 'placeholder-value',
|
|
5854
|
+
* // Optional. The fields used to specify the ordering of the results. The supported fields are: - profile_id - display_name - user_email - last_activity_time - last_policy_sync_time - last_status_report_time - first_enrollment_time - os_platform_type - os_version - browser_version - browser_channel - policy_count - extension_count - identity_provider - affiliation_state - os_platform_version By default, sorting is in ascending order, to specify descending order for a field, a suffix " desc" should be added to the field name. The default ordering is the descending order of last_status_report_time.
|
|
5855
|
+
* orderBy: 'placeholder-value',
|
|
5856
|
+
* // Optional. The maximum number of profiles to return. The default page size is 100 if page_size is unspecified, and the maximum page size allowed is 200.
|
|
5857
|
+
* pageSize: 'placeholder-value',
|
|
5858
|
+
* // Optional. The page token used to retrieve a specific page of the listing request.
|
|
5859
|
+
* pageToken: 'placeholder-value',
|
|
5860
|
+
* // Required. Format: customers/{customer_id\}
|
|
5861
|
+
* parent: 'customers/my-customer',
|
|
5862
|
+
* });
|
|
5863
|
+
* console.log(res.data);
|
|
5864
|
+
*
|
|
5865
|
+
* // Example response
|
|
5866
|
+
* // {
|
|
5867
|
+
* // "chromeBrowserProfiles": [],
|
|
5868
|
+
* // "nextPageToken": "my_nextPageToken",
|
|
5869
|
+
* // "totalSize": "my_totalSize"
|
|
5870
|
+
* // }
|
|
5871
|
+
* }
|
|
5872
|
+
*
|
|
5873
|
+
* main().catch(e => {
|
|
5874
|
+
* console.error(e);
|
|
5875
|
+
* throw e;
|
|
5876
|
+
* });
|
|
5877
|
+
*
|
|
5878
|
+
* ```
|
|
5879
|
+
*
|
|
5880
|
+
* @param params - Parameters for request
|
|
5881
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
5882
|
+
* @param callback - Optional callback that handles the response.
|
|
5883
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
5884
|
+
*/
|
|
5885
|
+
list(params: Params$Resource$Customers$Profiles$List, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
5886
|
+
list(params?: Params$Resource$Customers$Profiles$List, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$GoogleChromeManagementVersionsV1ListChromeBrowserProfilesResponse>>;
|
|
5887
|
+
list(params: Params$Resource$Customers$Profiles$List, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
5888
|
+
list(params: Params$Resource$Customers$Profiles$List, options: MethodOptions | BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1ListChromeBrowserProfilesResponse>, callback: BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1ListChromeBrowserProfilesResponse>): void;
|
|
5889
|
+
list(params: Params$Resource$Customers$Profiles$List, callback: BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1ListChromeBrowserProfilesResponse>): void;
|
|
5890
|
+
list(callback: BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1ListChromeBrowserProfilesResponse>): void;
|
|
5891
|
+
}
|
|
5892
|
+
export interface Params$Resource$Customers$Profiles$Delete extends StandardParameters {
|
|
5893
|
+
/**
|
|
5894
|
+
* Required. Format: customers/{customer_id\}/profiles/{profile_permanent_id\}
|
|
5895
|
+
*/
|
|
5896
|
+
name?: string;
|
|
5897
|
+
}
|
|
5898
|
+
export interface Params$Resource$Customers$Profiles$Get extends StandardParameters {
|
|
5899
|
+
/**
|
|
5900
|
+
* Required. Format: customers/{customer_id\}/profiles/{profile_permanent_id\}
|
|
5901
|
+
*/
|
|
5902
|
+
name?: string;
|
|
5903
|
+
}
|
|
5904
|
+
export interface Params$Resource$Customers$Profiles$List extends StandardParameters {
|
|
5905
|
+
/**
|
|
5906
|
+
* Optional. The filter used to filter profiles. The following fields can be used in the filter: - profile_id - display_name - user_email - last_activity_time - last_policy_sync_time - last_status_report_time - first_enrollment_time - os_platform_type - os_version - browser_version - browser_channel - policy_count - extension_count - identity_provider - affiliation_state - os_platform_version - ouId Any of the above fields can be used to specify a filter, and filtering by multiple fields is supported with AND operator. String type fields and enum type fields support '=' and '!=' operators. The integer type and the timestamp type fields support '=', '!=', '<', '\>', '<=' and '\>=' operators. Timestamps expect an RFC-3339 formatted string (e.g. 2012-04-21T11:30:00-04:00). Wildcard '*' can be used with a string type field filter. In addition, string literal filtering is also supported, for example, 'ABC' as a filter maps to a filter that checks if any of the filterable string type fields contains 'ABC'. Organization unit number can be used as a filtering criteria here by specifying 'ouId = ${your_org_unit_id\}', please note that only single OU ID matching is supported.
|
|
5907
|
+
*/
|
|
5908
|
+
filter?: string;
|
|
5909
|
+
/**
|
|
5910
|
+
* Optional. The fields used to specify the ordering of the results. The supported fields are: - profile_id - display_name - user_email - last_activity_time - last_policy_sync_time - last_status_report_time - first_enrollment_time - os_platform_type - os_version - browser_version - browser_channel - policy_count - extension_count - identity_provider - affiliation_state - os_platform_version By default, sorting is in ascending order, to specify descending order for a field, a suffix " desc" should be added to the field name. The default ordering is the descending order of last_status_report_time.
|
|
5911
|
+
*/
|
|
5912
|
+
orderBy?: string;
|
|
5913
|
+
/**
|
|
5914
|
+
* Optional. The maximum number of profiles to return. The default page size is 100 if page_size is unspecified, and the maximum page size allowed is 200.
|
|
5915
|
+
*/
|
|
5916
|
+
pageSize?: number;
|
|
5917
|
+
/**
|
|
5918
|
+
* Optional. The page token used to retrieve a specific page of the listing request.
|
|
5919
|
+
*/
|
|
5920
|
+
pageToken?: string;
|
|
5921
|
+
/**
|
|
5922
|
+
* Required. Format: customers/{customer_id\}
|
|
5923
|
+
*/
|
|
5924
|
+
parent?: string;
|
|
5925
|
+
}
|
|
5926
|
+
export class Resource$Customers$Profiles$Commands {
|
|
5927
|
+
context: APIRequestContext;
|
|
5928
|
+
constructor(context: APIRequestContext);
|
|
5929
|
+
/**
|
|
5930
|
+
* Creates a Chrome browser profile remote command.
|
|
5931
|
+
* @example
|
|
5932
|
+
* ```js
|
|
5933
|
+
* // Before running the sample:
|
|
5934
|
+
* // - Enable the API at:
|
|
5935
|
+
* // https://console.developers.google.com/apis/api/chromemanagement.googleapis.com
|
|
5936
|
+
* // - Login into gcloud by running:
|
|
5937
|
+
* // ```sh
|
|
5938
|
+
* // $ gcloud auth application-default login
|
|
5939
|
+
* // ```
|
|
5940
|
+
* // - Install the npm module by running:
|
|
5941
|
+
* // ```sh
|
|
5942
|
+
* // $ npm install googleapis
|
|
5943
|
+
* // ```
|
|
5944
|
+
*
|
|
5945
|
+
* const {google} = require('googleapis');
|
|
5946
|
+
* const chromemanagement = google.chromemanagement('v1');
|
|
5947
|
+
*
|
|
5948
|
+
* async function main() {
|
|
5949
|
+
* const auth = new google.auth.GoogleAuth({
|
|
5950
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
5951
|
+
* scopes: ['https://www.googleapis.com/auth/chrome.management.profiles'],
|
|
5952
|
+
* });
|
|
5953
|
+
*
|
|
5954
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
5955
|
+
* const authClient = await auth.getClient();
|
|
5956
|
+
* google.options({auth: authClient});
|
|
5957
|
+
*
|
|
5958
|
+
* // Do the magic
|
|
5959
|
+
* const res = await chromemanagement.customers.profiles.commands.create({
|
|
5960
|
+
* // Required. Format: customers/{customer_id\}/profiles/{profile_permanent_id\}
|
|
5961
|
+
* parent: 'customers/my-customer/profiles/my-profile',
|
|
5176
5962
|
*
|
|
5177
5963
|
* // Request body metadata
|
|
5178
5964
|
* requestBody: {
|
|
@@ -5812,6 +6598,79 @@ export declare namespace chromemanagement_v1 {
|
|
|
5812
6598
|
countChromeHardwareFleetDevices(params: Params$Resource$Customers$Reports$Countchromehardwarefleetdevices, options: MethodOptions | BodyResponseCallback<Schema$GoogleChromeManagementV1CountChromeHardwareFleetDevicesResponse>, callback: BodyResponseCallback<Schema$GoogleChromeManagementV1CountChromeHardwareFleetDevicesResponse>): void;
|
|
5813
6599
|
countChromeHardwareFleetDevices(params: Params$Resource$Customers$Reports$Countchromehardwarefleetdevices, callback: BodyResponseCallback<Schema$GoogleChromeManagementV1CountChromeHardwareFleetDevicesResponse>): void;
|
|
5814
6600
|
countChromeHardwareFleetDevices(callback: BodyResponseCallback<Schema$GoogleChromeManagementV1CountChromeHardwareFleetDevicesResponse>): void;
|
|
6601
|
+
/**
|
|
6602
|
+
* Generate report of installed Chrome versions on managed profiles.
|
|
6603
|
+
* @example
|
|
6604
|
+
* ```js
|
|
6605
|
+
* // Before running the sample:
|
|
6606
|
+
* // - Enable the API at:
|
|
6607
|
+
* // https://console.developers.google.com/apis/api/chromemanagement.googleapis.com
|
|
6608
|
+
* // - Login into gcloud by running:
|
|
6609
|
+
* // ```sh
|
|
6610
|
+
* // $ gcloud auth application-default login
|
|
6611
|
+
* // ```
|
|
6612
|
+
* // - Install the npm module by running:
|
|
6613
|
+
* // ```sh
|
|
6614
|
+
* // $ npm install googleapis
|
|
6615
|
+
* // ```
|
|
6616
|
+
*
|
|
6617
|
+
* const {google} = require('googleapis');
|
|
6618
|
+
* const chromemanagement = google.chromemanagement('v1');
|
|
6619
|
+
*
|
|
6620
|
+
* async function main() {
|
|
6621
|
+
* const auth = new google.auth.GoogleAuth({
|
|
6622
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
6623
|
+
* scopes: [
|
|
6624
|
+
* 'https://www.googleapis.com/auth/chrome.management.reports.readonly',
|
|
6625
|
+
* ],
|
|
6626
|
+
* });
|
|
6627
|
+
*
|
|
6628
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
6629
|
+
* const authClient = await auth.getClient();
|
|
6630
|
+
* google.options({auth: authClient});
|
|
6631
|
+
*
|
|
6632
|
+
* // Do the magic
|
|
6633
|
+
* const res =
|
|
6634
|
+
* await chromemanagement.customers.reports.countChromeProfileVersions({
|
|
6635
|
+
* // Required. Customer id or "my_customer" to use the customer associated to the account making the request.
|
|
6636
|
+
* customer: 'customers/my-customer',
|
|
6637
|
+
* // Optional. Query string to filter results, AND-separated fields in EBNF syntax. Note: OR operations are not supported in this filter. Supported filter fields: * last_active_date
|
|
6638
|
+
* filter: 'placeholder-value',
|
|
6639
|
+
* // The ID of the organizational unit. If omitted, all data will be returned.
|
|
6640
|
+
* orgUnitId: 'placeholder-value',
|
|
6641
|
+
* // Optional. Maximum number of results to return. Maximum and default are 100.
|
|
6642
|
+
* pageSize: 'placeholder-value',
|
|
6643
|
+
* // Optional. Token to specify the page of the request to be returned.
|
|
6644
|
+
* pageToken: 'placeholder-value',
|
|
6645
|
+
* });
|
|
6646
|
+
* console.log(res.data);
|
|
6647
|
+
*
|
|
6648
|
+
* // Example response
|
|
6649
|
+
* // {
|
|
6650
|
+
* // "nextPageToken": "my_nextPageToken",
|
|
6651
|
+
* // "profileBrowserVersions": [],
|
|
6652
|
+
* // "totalSize": 0
|
|
6653
|
+
* // }
|
|
6654
|
+
* }
|
|
6655
|
+
*
|
|
6656
|
+
* main().catch(e => {
|
|
6657
|
+
* console.error(e);
|
|
6658
|
+
* throw e;
|
|
6659
|
+
* });
|
|
6660
|
+
*
|
|
6661
|
+
* ```
|
|
6662
|
+
*
|
|
6663
|
+
* @param params - Parameters for request
|
|
6664
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
6665
|
+
* @param callback - Optional callback that handles the response.
|
|
6666
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
6667
|
+
*/
|
|
6668
|
+
countChromeProfileVersions(params: Params$Resource$Customers$Reports$Countchromeprofileversions, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
6669
|
+
countChromeProfileVersions(params?: Params$Resource$Customers$Reports$Countchromeprofileversions, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$GoogleChromeManagementV1CountChromeProfileVersionsResponse>>;
|
|
6670
|
+
countChromeProfileVersions(params: Params$Resource$Customers$Reports$Countchromeprofileversions, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
6671
|
+
countChromeProfileVersions(params: Params$Resource$Customers$Reports$Countchromeprofileversions, options: MethodOptions | BodyResponseCallback<Schema$GoogleChromeManagementV1CountChromeProfileVersionsResponse>, callback: BodyResponseCallback<Schema$GoogleChromeManagementV1CountChromeProfileVersionsResponse>): void;
|
|
6672
|
+
countChromeProfileVersions(params: Params$Resource$Customers$Reports$Countchromeprofileversions, callback: BodyResponseCallback<Schema$GoogleChromeManagementV1CountChromeProfileVersionsResponse>): void;
|
|
6673
|
+
countChromeProfileVersions(callback: BodyResponseCallback<Schema$GoogleChromeManagementV1CountChromeProfileVersionsResponse>): void;
|
|
5815
6674
|
/**
|
|
5816
6675
|
* Generate report of installed Chrome versions.
|
|
5817
6676
|
* @example
|
|
@@ -6577,6 +7436,28 @@ export declare namespace chromemanagement_v1 {
|
|
|
6577
7436
|
*/
|
|
6578
7437
|
readMask?: string;
|
|
6579
7438
|
}
|
|
7439
|
+
export interface Params$Resource$Customers$Reports$Countchromeprofileversions extends StandardParameters {
|
|
7440
|
+
/**
|
|
7441
|
+
* Required. Customer id or "my_customer" to use the customer associated to the account making the request.
|
|
7442
|
+
*/
|
|
7443
|
+
customer?: string;
|
|
7444
|
+
/**
|
|
7445
|
+
* Optional. Query string to filter results, AND-separated fields in EBNF syntax. Note: OR operations are not supported in this filter. Supported filter fields: * last_active_date
|
|
7446
|
+
*/
|
|
7447
|
+
filter?: string;
|
|
7448
|
+
/**
|
|
7449
|
+
* The ID of the organizational unit. If omitted, all data will be returned.
|
|
7450
|
+
*/
|
|
7451
|
+
orgUnitId?: string;
|
|
7452
|
+
/**
|
|
7453
|
+
* Optional. Maximum number of results to return. Maximum and default are 100.
|
|
7454
|
+
*/
|
|
7455
|
+
pageSize?: number;
|
|
7456
|
+
/**
|
|
7457
|
+
* Optional. Token to specify the page of the request to be returned.
|
|
7458
|
+
*/
|
|
7459
|
+
pageToken?: string;
|
|
7460
|
+
}
|
|
6580
7461
|
export interface Params$Resource$Customers$Reports$Countchromeversions extends StandardParameters {
|
|
6581
7462
|
/**
|
|
6582
7463
|
* Required. Customer id or "my_customer" to use the customer associated to the account making the request.
|