@googleapis/chromemanagement 26.0.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 +11 -0
- package/build/tsconfig.tsbuildinfo +1 -1
- package/build/v1.d.ts +610 -5
- package/build/v1.js +169 -0
- package/build/v1.js.map +1 -1
- package/package.json +1 -1
- package/v1.ts +1190 -143
package/v1.ts
CHANGED
|
@@ -685,6 +685,23 @@ export namespace chromemanagement_v1 {
|
|
|
685
685
|
*/
|
|
686
686
|
storageReports?: Schema$GoogleChromeManagementV1DeviceHardwareCountReport[];
|
|
687
687
|
}
|
|
688
|
+
/**
|
|
689
|
+
* Response containing requested managed profile versions details and counts.
|
|
690
|
+
*/
|
|
691
|
+
export interface Schema$GoogleChromeManagementV1CountChromeProfileVersionsResponse {
|
|
692
|
+
/**
|
|
693
|
+
* Token to specify the next page of the request.
|
|
694
|
+
*/
|
|
695
|
+
nextPageToken?: string | null;
|
|
696
|
+
/**
|
|
697
|
+
* List of all browser versions reported for profiles and their install counts.
|
|
698
|
+
*/
|
|
699
|
+
profileBrowserVersions?: Schema$GoogleChromeManagementV1BrowserVersion[];
|
|
700
|
+
/**
|
|
701
|
+
* Total number browser versions matching request.
|
|
702
|
+
*/
|
|
703
|
+
totalSize?: number | null;
|
|
704
|
+
}
|
|
688
705
|
/**
|
|
689
706
|
* Response containing requested browser versions details and counts.
|
|
690
707
|
*/
|
|
@@ -1288,6 +1305,10 @@ export namespace chromemanagement_v1 {
|
|
|
1288
1305
|
* Output only. Permissions of the installed app.
|
|
1289
1306
|
*/
|
|
1290
1307
|
permissions?: string[] | null;
|
|
1308
|
+
/**
|
|
1309
|
+
* Output only. Count of Chrome Profiles with this app installed.
|
|
1310
|
+
*/
|
|
1311
|
+
profileCount?: string | null;
|
|
1291
1312
|
/**
|
|
1292
1313
|
* Output only. If available, the risk assessment data about this extension.
|
|
1293
1314
|
*/
|
|
@@ -2820,6 +2841,40 @@ export namespace chromemanagement_v1 {
|
|
|
2820
2841
|
*/
|
|
2821
2842
|
updateTime?: string | null;
|
|
2822
2843
|
}
|
|
2844
|
+
/**
|
|
2845
|
+
* A content transfers summary for a given breakdown dimension.
|
|
2846
|
+
*/
|
|
2847
|
+
export interface Schema$GoogleChromeManagementVersionsV1ContentTransfersBreakdown {
|
|
2848
|
+
/**
|
|
2849
|
+
* The content category of the content transfers.
|
|
2850
|
+
*/
|
|
2851
|
+
contentCategory?: string | null;
|
|
2852
|
+
/**
|
|
2853
|
+
* The event domain of the content transfers.
|
|
2854
|
+
*/
|
|
2855
|
+
eventDomain?: string | null;
|
|
2856
|
+
/**
|
|
2857
|
+
* The summary of content transfers for the breakdown dimension.
|
|
2858
|
+
*/
|
|
2859
|
+
summary?: Schema$GoogleChromeManagementVersionsV1ContentTransfersSummary;
|
|
2860
|
+
/**
|
|
2861
|
+
* The user that transferred the content.
|
|
2862
|
+
*/
|
|
2863
|
+
user?: string | null;
|
|
2864
|
+
}
|
|
2865
|
+
/**
|
|
2866
|
+
* Summary of content transfers for a given metric.
|
|
2867
|
+
*/
|
|
2868
|
+
export interface Schema$GoogleChromeManagementVersionsV1ContentTransfersSummary {
|
|
2869
|
+
/**
|
|
2870
|
+
* The count of the content transfers metric.
|
|
2871
|
+
*/
|
|
2872
|
+
count?: string | null;
|
|
2873
|
+
/**
|
|
2874
|
+
* The type of content transfers metric.
|
|
2875
|
+
*/
|
|
2876
|
+
metric?: string | null;
|
|
2877
|
+
}
|
|
2823
2878
|
/**
|
|
2824
2879
|
* CrowdStrike connector config.
|
|
2825
2880
|
*/
|
|
@@ -3100,6 +3155,50 @@ export namespace chromemanagement_v1 {
|
|
|
3100
3155
|
*/
|
|
3101
3156
|
xdrSettings?: Schema$GoogleChromeManagementVersionsV1XdrSettings;
|
|
3102
3157
|
}
|
|
3158
|
+
/**
|
|
3159
|
+
* Response message for QueryContentTransfersBreakdowns.
|
|
3160
|
+
*/
|
|
3161
|
+
export interface Schema$GoogleChromeManagementVersionsV1QueryContentTransfersBreakdownsResponse {
|
|
3162
|
+
/**
|
|
3163
|
+
* The content transfer breakdowns from the specified insight.
|
|
3164
|
+
*/
|
|
3165
|
+
contentTransfersBreakdowns?: Schema$GoogleChromeManagementVersionsV1ContentTransfersBreakdown[];
|
|
3166
|
+
/**
|
|
3167
|
+
* A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.
|
|
3168
|
+
*/
|
|
3169
|
+
nextPageToken?: string | null;
|
|
3170
|
+
}
|
|
3171
|
+
/**
|
|
3172
|
+
* Response message for QueryContentTransfers.
|
|
3173
|
+
*/
|
|
3174
|
+
export interface Schema$GoogleChromeManagementVersionsV1QueryContentTransfersResponse {
|
|
3175
|
+
/**
|
|
3176
|
+
* A collection of summaries for various content transfers metrics.
|
|
3177
|
+
*/
|
|
3178
|
+
summaries?: Schema$GoogleChromeManagementVersionsV1ContentTransfersSummary[];
|
|
3179
|
+
}
|
|
3180
|
+
/**
|
|
3181
|
+
* Response message for QueryUrlVisitsBreakdowns.
|
|
3182
|
+
*/
|
|
3183
|
+
export interface Schema$GoogleChromeManagementVersionsV1QueryUrlVisitsBreakdownsResponse {
|
|
3184
|
+
/**
|
|
3185
|
+
* A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.
|
|
3186
|
+
*/
|
|
3187
|
+
nextPageToken?: string | null;
|
|
3188
|
+
/**
|
|
3189
|
+
* The URL visit breakdowns from the specified insight.
|
|
3190
|
+
*/
|
|
3191
|
+
urlVisitsBreakdowns?: Schema$GoogleChromeManagementVersionsV1UrlVisitsBreakdown[];
|
|
3192
|
+
}
|
|
3193
|
+
/**
|
|
3194
|
+
* Response message for QueryUrlVisits.
|
|
3195
|
+
*/
|
|
3196
|
+
export interface Schema$GoogleChromeManagementVersionsV1QueryUrlVisitsResponse {
|
|
3197
|
+
/**
|
|
3198
|
+
* A collection of summaries for various URL visit metrics.
|
|
3199
|
+
*/
|
|
3200
|
+
summaries?: Schema$GoogleChromeManagementVersionsV1UrlVisitsSummary[];
|
|
3201
|
+
}
|
|
3103
3202
|
/**
|
|
3104
3203
|
* Reporting data of a Chrome browser profile.
|
|
3105
3204
|
*/
|
|
@@ -3408,6 +3507,36 @@ export namespace chromemanagement_v1 {
|
|
|
3408
3507
|
* Response message for publishing an issued certificate for a certificate provisioning process.
|
|
3409
3508
|
*/
|
|
3410
3509
|
export interface Schema$GoogleChromeManagementVersionsV1UploadCertificateResponse {}
|
|
3510
|
+
/**
|
|
3511
|
+
* A URL visits summary for a given breakdown dimension.
|
|
3512
|
+
*/
|
|
3513
|
+
export interface Schema$GoogleChromeManagementVersionsV1UrlVisitsBreakdown {
|
|
3514
|
+
/**
|
|
3515
|
+
* The event domain of the URL visits.
|
|
3516
|
+
*/
|
|
3517
|
+
eventDomain?: string | null;
|
|
3518
|
+
/**
|
|
3519
|
+
* The summary of URL visits for the breakdown dimension.
|
|
3520
|
+
*/
|
|
3521
|
+
summary?: Schema$GoogleChromeManagementVersionsV1UrlVisitsSummary;
|
|
3522
|
+
/**
|
|
3523
|
+
* The user that visited the URL.
|
|
3524
|
+
*/
|
|
3525
|
+
user?: string | null;
|
|
3526
|
+
}
|
|
3527
|
+
/**
|
|
3528
|
+
* Summary of URL visits for a given metric.
|
|
3529
|
+
*/
|
|
3530
|
+
export interface Schema$GoogleChromeManagementVersionsV1UrlVisitsSummary {
|
|
3531
|
+
/**
|
|
3532
|
+
* The count of the URL visits metric.
|
|
3533
|
+
*/
|
|
3534
|
+
count?: string | null;
|
|
3535
|
+
/**
|
|
3536
|
+
* The type of URL visits metric.
|
|
3537
|
+
*/
|
|
3538
|
+
metric?: string | null;
|
|
3539
|
+
}
|
|
3411
3540
|
/**
|
|
3412
3541
|
* XDR settings for connector configs.
|
|
3413
3542
|
*/
|
|
@@ -5197,8 +5326,7 @@ export namespace chromemanagement_v1 {
|
|
|
5197
5326
|
signData(
|
|
5198
5327
|
params: Params$Resource$Customers$Certificateprovisioningprocesses$Signdata,
|
|
5199
5328
|
options:
|
|
5200
|
-
|
|
|
5201
|
-
| BodyResponseCallback<Schema$GoogleLongrunningOperation>,
|
|
5329
|
+
MethodOptions | BodyResponseCallback<Schema$GoogleLongrunningOperation>,
|
|
5202
5330
|
callback: BodyResponseCallback<Schema$GoogleLongrunningOperation>
|
|
5203
5331
|
): void;
|
|
5204
5332
|
signData(
|
|
@@ -5563,8 +5691,7 @@ export namespace chromemanagement_v1 {
|
|
|
5563
5691
|
get(
|
|
5564
5692
|
params: Params$Resource$Customers$Certificateprovisioningprocesses$Operations$Get,
|
|
5565
5693
|
options:
|
|
5566
|
-
|
|
|
5567
|
-
| BodyResponseCallback<Schema$GoogleLongrunningOperation>,
|
|
5694
|
+
MethodOptions | BodyResponseCallback<Schema$GoogleLongrunningOperation>,
|
|
5568
5695
|
callback: BodyResponseCallback<Schema$GoogleLongrunningOperation>
|
|
5569
5696
|
): void;
|
|
5570
5697
|
get(
|
|
@@ -5678,7 +5805,7 @@ export namespace chromemanagement_v1 {
|
|
|
5678
5805
|
*
|
|
5679
5806
|
* // Do the magic
|
|
5680
5807
|
* const res = await chromemanagement.customers.connectorConfigs.create({
|
|
5681
|
-
* // 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-
|
|
5808
|
+
* // 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.
|
|
5682
5809
|
* connectorConfigId: 'placeholder-value',
|
|
5683
5810
|
* // Required. Format: customers/{customer\}
|
|
5684
5811
|
* parent: 'customers/my-customer',
|
|
@@ -6414,7 +6541,7 @@ export namespace chromemanagement_v1 {
|
|
|
6414
6541
|
|
|
6415
6542
|
export interface Params$Resource$Customers$Connectorconfigs$Create extends StandardParameters {
|
|
6416
6543
|
/**
|
|
6417
|
-
* 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-
|
|
6544
|
+
* 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.
|
|
6418
6545
|
*/
|
|
6419
6546
|
connectorConfigId?: string;
|
|
6420
6547
|
/**
|
|
@@ -6507,7 +6634,10 @@ export namespace chromemanagement_v1 {
|
|
|
6507
6634
|
* async function main() {
|
|
6508
6635
|
* const auth = new google.auth.GoogleAuth({
|
|
6509
6636
|
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
6510
|
-
* scopes: [
|
|
6637
|
+
* scopes: [
|
|
6638
|
+
* 'https://www.googleapis.com/auth/chrome.management.securityinsights',
|
|
6639
|
+
* 'https://www.googleapis.com/auth/chrome.management.securityinsights.readonly',
|
|
6640
|
+
* ],
|
|
6511
6641
|
* });
|
|
6512
6642
|
*
|
|
6513
6643
|
* // Acquire an auth client, and bind it to all future calls
|
|
@@ -6659,7 +6789,9 @@ export namespace chromemanagement_v1 {
|
|
|
6659
6789
|
* async function main() {
|
|
6660
6790
|
* const auth = new google.auth.GoogleAuth({
|
|
6661
6791
|
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
6662
|
-
* scopes: [
|
|
6792
|
+
* scopes: [
|
|
6793
|
+
* 'https://www.googleapis.com/auth/chrome.management.securityinsights',
|
|
6794
|
+
* ],
|
|
6663
6795
|
* });
|
|
6664
6796
|
*
|
|
6665
6797
|
* // Acquire an auth client, and bind it to all future calls
|
|
@@ -6814,7 +6946,9 @@ export namespace chromemanagement_v1 {
|
|
|
6814
6946
|
* async function main() {
|
|
6815
6947
|
* const auth = new google.auth.GoogleAuth({
|
|
6816
6948
|
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
6817
|
-
* scopes: [
|
|
6949
|
+
* scopes: [
|
|
6950
|
+
* 'https://www.googleapis.com/auth/chrome.management.securityinsights',
|
|
6951
|
+
* ],
|
|
6818
6952
|
* });
|
|
6819
6953
|
*
|
|
6820
6954
|
* // Acquire an auth client, and bind it to all future calls
|
|
@@ -6948,47 +7082,9 @@ export namespace chromemanagement_v1 {
|
|
|
6948
7082
|
);
|
|
6949
7083
|
}
|
|
6950
7084
|
}
|
|
6951
|
-
}
|
|
6952
|
-
|
|
6953
|
-
export interface Params$Resource$Customers$Enterprise$Securityinsights$Checkenablementstatus extends StandardParameters {
|
|
6954
|
-
/**
|
|
6955
|
-
* Required. The customer to check the enablement status for. Format: customers/{customer_id\}
|
|
6956
|
-
*/
|
|
6957
|
-
customer?: string;
|
|
6958
|
-
}
|
|
6959
|
-
export interface Params$Resource$Customers$Enterprise$Securityinsights$Disable extends StandardParameters {
|
|
6960
|
-
/**
|
|
6961
|
-
* Required. The customer to disable insights for. Format: customers/{customer\}
|
|
6962
|
-
*/
|
|
6963
|
-
customer?: string;
|
|
6964
|
-
|
|
6965
|
-
/**
|
|
6966
|
-
* Request body metadata
|
|
6967
|
-
*/
|
|
6968
|
-
requestBody?: Schema$GoogleChromeManagementVersionsV1DisableInsightsRequest;
|
|
6969
|
-
}
|
|
6970
|
-
export interface Params$Resource$Customers$Enterprise$Securityinsights$Enable extends StandardParameters {
|
|
6971
|
-
/**
|
|
6972
|
-
* Required. The customer to enable insights for. Format: customers/{customer\}
|
|
6973
|
-
*/
|
|
6974
|
-
customer?: string;
|
|
6975
|
-
|
|
6976
|
-
/**
|
|
6977
|
-
* Request body metadata
|
|
6978
|
-
*/
|
|
6979
|
-
requestBody?: Schema$GoogleChromeManagementVersionsV1EnableInsightsRequest;
|
|
6980
|
-
}
|
|
6981
|
-
|
|
6982
|
-
export class Resource$Customers$Profiles {
|
|
6983
|
-
context: APIRequestContext;
|
|
6984
|
-
commands: Resource$Customers$Profiles$Commands;
|
|
6985
|
-
constructor(context: APIRequestContext) {
|
|
6986
|
-
this.context = context;
|
|
6987
|
-
this.commands = new Resource$Customers$Profiles$Commands(this.context);
|
|
6988
|
-
}
|
|
6989
7085
|
|
|
6990
7086
|
/**
|
|
6991
|
-
*
|
|
7087
|
+
* Returns a high-level summary of content transfers for a given customer.
|
|
6992
7088
|
* @example
|
|
6993
7089
|
* ```js
|
|
6994
7090
|
* // Before running the sample:
|
|
@@ -7009,7 +7105,10 @@ export namespace chromemanagement_v1 {
|
|
|
7009
7105
|
* async function main() {
|
|
7010
7106
|
* const auth = new google.auth.GoogleAuth({
|
|
7011
7107
|
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
7012
|
-
* scopes: [
|
|
7108
|
+
* scopes: [
|
|
7109
|
+
* 'https://www.googleapis.com/auth/chrome.management.securityinsights',
|
|
7110
|
+
* 'https://www.googleapis.com/auth/chrome.management.securityinsights.readonly',
|
|
7111
|
+
* ],
|
|
7013
7112
|
* });
|
|
7014
7113
|
*
|
|
7015
7114
|
* // Acquire an auth client, and bind it to all future calls
|
|
@@ -7017,14 +7116,21 @@ export namespace chromemanagement_v1 {
|
|
|
7017
7116
|
* google.options({auth: authClient});
|
|
7018
7117
|
*
|
|
7019
7118
|
* // Do the magic
|
|
7020
|
-
* const res =
|
|
7021
|
-
*
|
|
7022
|
-
*
|
|
7023
|
-
*
|
|
7119
|
+
* const res =
|
|
7120
|
+
* await chromemanagement.customers.enterprise.securityInsights.queryContentTransfers(
|
|
7121
|
+
* {
|
|
7122
|
+
* // Required. The customer ID in the format "customers/{customer_id\}".
|
|
7123
|
+
* customer: 'customers/my-customer',
|
|
7124
|
+
* // 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"`
|
|
7125
|
+
* filter: 'placeholder-value',
|
|
7126
|
+
* },
|
|
7127
|
+
* );
|
|
7024
7128
|
* console.log(res.data);
|
|
7025
7129
|
*
|
|
7026
7130
|
* // Example response
|
|
7027
|
-
* // {
|
|
7131
|
+
* // {
|
|
7132
|
+
* // "summaries": []
|
|
7133
|
+
* // }
|
|
7028
7134
|
* }
|
|
7029
7135
|
*
|
|
7030
7136
|
* main().catch(e => {
|
|
@@ -7039,53 +7145,62 @@ export namespace chromemanagement_v1 {
|
|
|
7039
7145
|
* @param callback - Optional callback that handles the response.
|
|
7040
7146
|
* @returns A promise if used with async/await, or void if used with a callback.
|
|
7041
7147
|
*/
|
|
7042
|
-
|
|
7043
|
-
params: Params$Resource$Customers$
|
|
7148
|
+
queryContentTransfers(
|
|
7149
|
+
params: Params$Resource$Customers$Enterprise$Securityinsights$Querycontenttransfers,
|
|
7044
7150
|
options: StreamMethodOptions
|
|
7045
7151
|
): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
7046
|
-
|
|
7047
|
-
params?: Params$Resource$Customers$
|
|
7152
|
+
queryContentTransfers(
|
|
7153
|
+
params?: Params$Resource$Customers$Enterprise$Securityinsights$Querycontenttransfers,
|
|
7048
7154
|
options?: MethodOptions
|
|
7049
|
-
): Promise<
|
|
7050
|
-
|
|
7051
|
-
|
|
7155
|
+
): Promise<
|
|
7156
|
+
GaxiosResponseWithHTTP2<Schema$GoogleChromeManagementVersionsV1QueryContentTransfersResponse>
|
|
7157
|
+
>;
|
|
7158
|
+
queryContentTransfers(
|
|
7159
|
+
params: Params$Resource$Customers$Enterprise$Securityinsights$Querycontenttransfers,
|
|
7052
7160
|
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
7053
7161
|
callback: BodyResponseCallback<Readable>
|
|
7054
7162
|
): void;
|
|
7055
|
-
|
|
7056
|
-
params: Params$Resource$Customers$
|
|
7057
|
-
options:
|
|
7058
|
-
|
|
7163
|
+
queryContentTransfers(
|
|
7164
|
+
params: Params$Resource$Customers$Enterprise$Securityinsights$Querycontenttransfers,
|
|
7165
|
+
options:
|
|
7166
|
+
| MethodOptions
|
|
7167
|
+
| BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1QueryContentTransfersResponse>,
|
|
7168
|
+
callback: BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1QueryContentTransfersResponse>
|
|
7059
7169
|
): void;
|
|
7060
|
-
|
|
7061
|
-
params: Params$Resource$Customers$
|
|
7062
|
-
callback: BodyResponseCallback<Schema$
|
|
7170
|
+
queryContentTransfers(
|
|
7171
|
+
params: Params$Resource$Customers$Enterprise$Securityinsights$Querycontenttransfers,
|
|
7172
|
+
callback: BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1QueryContentTransfersResponse>
|
|
7063
7173
|
): void;
|
|
7064
|
-
|
|
7065
|
-
|
|
7174
|
+
queryContentTransfers(
|
|
7175
|
+
callback: BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1QueryContentTransfersResponse>
|
|
7176
|
+
): void;
|
|
7177
|
+
queryContentTransfers(
|
|
7066
7178
|
paramsOrCallback?:
|
|
7067
|
-
| Params$Resource$Customers$
|
|
7068
|
-
| BodyResponseCallback<Schema$
|
|
7179
|
+
| Params$Resource$Customers$Enterprise$Securityinsights$Querycontenttransfers
|
|
7180
|
+
| BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1QueryContentTransfersResponse>
|
|
7069
7181
|
| BodyResponseCallback<Readable>,
|
|
7070
7182
|
optionsOrCallback?:
|
|
7071
7183
|
| MethodOptions
|
|
7072
7184
|
| StreamMethodOptions
|
|
7073
|
-
| BodyResponseCallback<Schema$
|
|
7185
|
+
| BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1QueryContentTransfersResponse>
|
|
7074
7186
|
| BodyResponseCallback<Readable>,
|
|
7075
7187
|
callback?:
|
|
7076
|
-
| BodyResponseCallback<Schema$
|
|
7188
|
+
| BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1QueryContentTransfersResponse>
|
|
7077
7189
|
| BodyResponseCallback<Readable>
|
|
7078
7190
|
):
|
|
7079
7191
|
| void
|
|
7080
|
-
| Promise<
|
|
7192
|
+
| Promise<
|
|
7193
|
+
GaxiosResponseWithHTTP2<Schema$GoogleChromeManagementVersionsV1QueryContentTransfersResponse>
|
|
7194
|
+
>
|
|
7081
7195
|
| Promise<GaxiosResponseWithHTTP2<Readable>> {
|
|
7082
7196
|
let params = (paramsOrCallback ||
|
|
7083
|
-
{}) as Params$Resource$Customers$
|
|
7197
|
+
{}) as Params$Resource$Customers$Enterprise$Securityinsights$Querycontenttransfers;
|
|
7084
7198
|
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
7085
7199
|
|
|
7086
7200
|
if (typeof paramsOrCallback === 'function') {
|
|
7087
7201
|
callback = paramsOrCallback;
|
|
7088
|
-
params =
|
|
7202
|
+
params =
|
|
7203
|
+
{} as Params$Resource$Customers$Enterprise$Securityinsights$Querycontenttransfers;
|
|
7089
7204
|
options = {};
|
|
7090
7205
|
}
|
|
7091
7206
|
|
|
@@ -7099,29 +7214,34 @@ export namespace chromemanagement_v1 {
|
|
|
7099
7214
|
const parameters = {
|
|
7100
7215
|
options: Object.assign(
|
|
7101
7216
|
{
|
|
7102
|
-
url: (
|
|
7103
|
-
|
|
7217
|
+
url: (
|
|
7218
|
+
rootUrl +
|
|
7219
|
+
'/v1/{+customer}/enterprise/securityInsights:queryContentTransfers'
|
|
7220
|
+
).replace(/([^:]\/)\/+/g, '$1'),
|
|
7221
|
+
method: 'GET',
|
|
7104
7222
|
apiVersion: '',
|
|
7105
7223
|
},
|
|
7106
7224
|
options
|
|
7107
7225
|
),
|
|
7108
7226
|
params,
|
|
7109
|
-
requiredParams: ['
|
|
7110
|
-
pathParams: ['
|
|
7227
|
+
requiredParams: ['customer'],
|
|
7228
|
+
pathParams: ['customer'],
|
|
7111
7229
|
context: this.context,
|
|
7112
7230
|
};
|
|
7113
7231
|
if (callback) {
|
|
7114
|
-
createAPIRequest<Schema$
|
|
7232
|
+
createAPIRequest<Schema$GoogleChromeManagementVersionsV1QueryContentTransfersResponse>(
|
|
7115
7233
|
parameters,
|
|
7116
7234
|
callback as BodyResponseCallback<unknown>
|
|
7117
7235
|
);
|
|
7118
7236
|
} else {
|
|
7119
|
-
return createAPIRequest<Schema$
|
|
7237
|
+
return createAPIRequest<Schema$GoogleChromeManagementVersionsV1QueryContentTransfersResponse>(
|
|
7238
|
+
parameters
|
|
7239
|
+
);
|
|
7120
7240
|
}
|
|
7121
7241
|
}
|
|
7122
7242
|
|
|
7123
7243
|
/**
|
|
7124
|
-
*
|
|
7244
|
+
* Returns summaries of content transfers for a given metric and breakdown dimension.
|
|
7125
7245
|
* @example
|
|
7126
7246
|
* ```js
|
|
7127
7247
|
* // Before running the sample:
|
|
@@ -7143,8 +7263,8 @@ export namespace chromemanagement_v1 {
|
|
|
7143
7263
|
* const auth = new google.auth.GoogleAuth({
|
|
7144
7264
|
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
7145
7265
|
* scopes: [
|
|
7146
|
-
* 'https://www.googleapis.com/auth/chrome.management.
|
|
7147
|
-
* 'https://www.googleapis.com/auth/chrome.management.
|
|
7266
|
+
* 'https://www.googleapis.com/auth/chrome.management.securityinsights',
|
|
7267
|
+
* 'https://www.googleapis.com/auth/chrome.management.securityinsights.readonly',
|
|
7148
7268
|
* ],
|
|
7149
7269
|
* });
|
|
7150
7270
|
*
|
|
@@ -7153,41 +7273,31 @@ export namespace chromemanagement_v1 {
|
|
|
7153
7273
|
* google.options({auth: authClient});
|
|
7154
7274
|
*
|
|
7155
7275
|
* // Do the magic
|
|
7156
|
-
* const res =
|
|
7157
|
-
*
|
|
7158
|
-
*
|
|
7159
|
-
*
|
|
7276
|
+
* const res =
|
|
7277
|
+
* await chromemanagement.customers.enterprise.securityInsights.queryContentTransfersBreakdowns(
|
|
7278
|
+
* {
|
|
7279
|
+
* // Optional. The dimension to break down the content transfers by. Defaults to USER.
|
|
7280
|
+
* breakdown: 'placeholder-value',
|
|
7281
|
+
* // Required. The customer ID in the format "customers/{customer_id\}".
|
|
7282
|
+
* customer: 'customers/my-customer',
|
|
7283
|
+
* // 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"`
|
|
7284
|
+
* filter: 'placeholder-value',
|
|
7285
|
+
* // 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.
|
|
7286
|
+
* fixedTimeRange: 'placeholder-value',
|
|
7287
|
+
* // Optional. The metric to return the breakdowns for. Defaults to CONTENT_TRANSFERS_METRIC_TOTAL_TRANSFERS.
|
|
7288
|
+
* metric: 'placeholder-value',
|
|
7289
|
+
* // 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.
|
|
7290
|
+
* pageSize: 'placeholder-value',
|
|
7291
|
+
* // 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.
|
|
7292
|
+
* pageToken: 'placeholder-value',
|
|
7293
|
+
* },
|
|
7294
|
+
* );
|
|
7160
7295
|
* console.log(res.data);
|
|
7161
7296
|
*
|
|
7162
7297
|
* // Example response
|
|
7163
7298
|
* // {
|
|
7164
|
-
* // "
|
|
7165
|
-
* // "
|
|
7166
|
-
* // "annotatedUser": "my_annotatedUser",
|
|
7167
|
-
* // "attestationCredential": {},
|
|
7168
|
-
* // "browserChannel": "my_browserChannel",
|
|
7169
|
-
* // "browserVersion": "my_browserVersion",
|
|
7170
|
-
* // "deviceInfo": {},
|
|
7171
|
-
* // "displayName": "my_displayName",
|
|
7172
|
-
* // "etag": "my_etag",
|
|
7173
|
-
* // "extensionCount": "my_extensionCount",
|
|
7174
|
-
* // "firstEnrollmentTime": "my_firstEnrollmentTime",
|
|
7175
|
-
* // "identityProvider": "my_identityProvider",
|
|
7176
|
-
* // "lastActivityTime": "my_lastActivityTime",
|
|
7177
|
-
* // "lastPolicyFetchTime": "my_lastPolicyFetchTime",
|
|
7178
|
-
* // "lastPolicySyncTime": "my_lastPolicySyncTime",
|
|
7179
|
-
* // "lastStatusReportTime": "my_lastStatusReportTime",
|
|
7180
|
-
* // "name": "my_name",
|
|
7181
|
-
* // "osPlatformType": "my_osPlatformType",
|
|
7182
|
-
* // "osPlatformVersion": "my_osPlatformVersion",
|
|
7183
|
-
* // "osVersion": "my_osVersion",
|
|
7184
|
-
* // "policyCount": "my_policyCount",
|
|
7185
|
-
* // "profileId": "my_profileId",
|
|
7186
|
-
* // "profilePermanentId": "my_profilePermanentId",
|
|
7187
|
-
* // "reportingData": {},
|
|
7188
|
-
* // "supportsFcmNotifications": false,
|
|
7189
|
-
* // "userEmail": "my_userEmail",
|
|
7190
|
-
* // "userId": "my_userId"
|
|
7299
|
+
* // "contentTransfersBreakdowns": [],
|
|
7300
|
+
* // "nextPageToken": "my_nextPageToken"
|
|
7191
7301
|
* // }
|
|
7192
7302
|
* }
|
|
7193
7303
|
*
|
|
@@ -7203,61 +7313,62 @@ export namespace chromemanagement_v1 {
|
|
|
7203
7313
|
* @param callback - Optional callback that handles the response.
|
|
7204
7314
|
* @returns A promise if used with async/await, or void if used with a callback.
|
|
7205
7315
|
*/
|
|
7206
|
-
|
|
7207
|
-
params: Params$Resource$Customers$
|
|
7316
|
+
queryContentTransfersBreakdowns(
|
|
7317
|
+
params: Params$Resource$Customers$Enterprise$Securityinsights$Querycontenttransfersbreakdowns,
|
|
7208
7318
|
options: StreamMethodOptions
|
|
7209
7319
|
): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
7210
|
-
|
|
7211
|
-
params?: Params$Resource$Customers$
|
|
7320
|
+
queryContentTransfersBreakdowns(
|
|
7321
|
+
params?: Params$Resource$Customers$Enterprise$Securityinsights$Querycontenttransfersbreakdowns,
|
|
7212
7322
|
options?: MethodOptions
|
|
7213
7323
|
): Promise<
|
|
7214
|
-
GaxiosResponseWithHTTP2<Schema$
|
|
7324
|
+
GaxiosResponseWithHTTP2<Schema$GoogleChromeManagementVersionsV1QueryContentTransfersBreakdownsResponse>
|
|
7215
7325
|
>;
|
|
7216
|
-
|
|
7217
|
-
params: Params$Resource$Customers$
|
|
7326
|
+
queryContentTransfersBreakdowns(
|
|
7327
|
+
params: Params$Resource$Customers$Enterprise$Securityinsights$Querycontenttransfersbreakdowns,
|
|
7218
7328
|
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
7219
7329
|
callback: BodyResponseCallback<Readable>
|
|
7220
7330
|
): void;
|
|
7221
|
-
|
|
7222
|
-
params: Params$Resource$Customers$
|
|
7331
|
+
queryContentTransfersBreakdowns(
|
|
7332
|
+
params: Params$Resource$Customers$Enterprise$Securityinsights$Querycontenttransfersbreakdowns,
|
|
7223
7333
|
options:
|
|
7224
7334
|
| MethodOptions
|
|
7225
|
-
| BodyResponseCallback<Schema$
|
|
7226
|
-
callback: BodyResponseCallback<Schema$
|
|
7335
|
+
| BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1QueryContentTransfersBreakdownsResponse>,
|
|
7336
|
+
callback: BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1QueryContentTransfersBreakdownsResponse>
|
|
7227
7337
|
): void;
|
|
7228
|
-
|
|
7229
|
-
params: Params$Resource$Customers$
|
|
7230
|
-
callback: BodyResponseCallback<Schema$
|
|
7338
|
+
queryContentTransfersBreakdowns(
|
|
7339
|
+
params: Params$Resource$Customers$Enterprise$Securityinsights$Querycontenttransfersbreakdowns,
|
|
7340
|
+
callback: BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1QueryContentTransfersBreakdownsResponse>
|
|
7231
7341
|
): void;
|
|
7232
|
-
|
|
7233
|
-
callback: BodyResponseCallback<Schema$
|
|
7342
|
+
queryContentTransfersBreakdowns(
|
|
7343
|
+
callback: BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1QueryContentTransfersBreakdownsResponse>
|
|
7234
7344
|
): void;
|
|
7235
|
-
|
|
7345
|
+
queryContentTransfersBreakdowns(
|
|
7236
7346
|
paramsOrCallback?:
|
|
7237
|
-
| Params$Resource$Customers$
|
|
7238
|
-
| BodyResponseCallback<Schema$
|
|
7347
|
+
| Params$Resource$Customers$Enterprise$Securityinsights$Querycontenttransfersbreakdowns
|
|
7348
|
+
| BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1QueryContentTransfersBreakdownsResponse>
|
|
7239
7349
|
| BodyResponseCallback<Readable>,
|
|
7240
7350
|
optionsOrCallback?:
|
|
7241
7351
|
| MethodOptions
|
|
7242
7352
|
| StreamMethodOptions
|
|
7243
|
-
| BodyResponseCallback<Schema$
|
|
7353
|
+
| BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1QueryContentTransfersBreakdownsResponse>
|
|
7244
7354
|
| BodyResponseCallback<Readable>,
|
|
7245
7355
|
callback?:
|
|
7246
|
-
| BodyResponseCallback<Schema$
|
|
7356
|
+
| BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1QueryContentTransfersBreakdownsResponse>
|
|
7247
7357
|
| BodyResponseCallback<Readable>
|
|
7248
7358
|
):
|
|
7249
7359
|
| void
|
|
7250
7360
|
| Promise<
|
|
7251
|
-
GaxiosResponseWithHTTP2<Schema$
|
|
7361
|
+
GaxiosResponseWithHTTP2<Schema$GoogleChromeManagementVersionsV1QueryContentTransfersBreakdownsResponse>
|
|
7252
7362
|
>
|
|
7253
7363
|
| Promise<GaxiosResponseWithHTTP2<Readable>> {
|
|
7254
7364
|
let params = (paramsOrCallback ||
|
|
7255
|
-
{}) as Params$Resource$Customers$
|
|
7365
|
+
{}) as Params$Resource$Customers$Enterprise$Securityinsights$Querycontenttransfersbreakdowns;
|
|
7256
7366
|
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
7257
7367
|
|
|
7258
7368
|
if (typeof paramsOrCallback === 'function') {
|
|
7259
7369
|
callback = paramsOrCallback;
|
|
7260
|
-
params =
|
|
7370
|
+
params =
|
|
7371
|
+
{} as Params$Resource$Customers$Enterprise$Securityinsights$Querycontenttransfersbreakdowns;
|
|
7261
7372
|
options = {};
|
|
7262
7373
|
}
|
|
7263
7374
|
|
|
@@ -7271,8 +7382,761 @@ export namespace chromemanagement_v1 {
|
|
|
7271
7382
|
const parameters = {
|
|
7272
7383
|
options: Object.assign(
|
|
7273
7384
|
{
|
|
7274
|
-
url: (
|
|
7275
|
-
|
|
7385
|
+
url: (
|
|
7386
|
+
rootUrl +
|
|
7387
|
+
'/v1/{+customer}/enterprise/securityInsights:queryContentTransfersBreakdowns'
|
|
7388
|
+
).replace(/([^:]\/)\/+/g, '$1'),
|
|
7389
|
+
method: 'GET',
|
|
7390
|
+
apiVersion: '',
|
|
7391
|
+
},
|
|
7392
|
+
options
|
|
7393
|
+
),
|
|
7394
|
+
params,
|
|
7395
|
+
requiredParams: ['customer'],
|
|
7396
|
+
pathParams: ['customer'],
|
|
7397
|
+
context: this.context,
|
|
7398
|
+
};
|
|
7399
|
+
if (callback) {
|
|
7400
|
+
createAPIRequest<Schema$GoogleChromeManagementVersionsV1QueryContentTransfersBreakdownsResponse>(
|
|
7401
|
+
parameters,
|
|
7402
|
+
callback as BodyResponseCallback<unknown>
|
|
7403
|
+
);
|
|
7404
|
+
} else {
|
|
7405
|
+
return createAPIRequest<Schema$GoogleChromeManagementVersionsV1QueryContentTransfersBreakdownsResponse>(
|
|
7406
|
+
parameters
|
|
7407
|
+
);
|
|
7408
|
+
}
|
|
7409
|
+
}
|
|
7410
|
+
|
|
7411
|
+
/**
|
|
7412
|
+
* 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.
|
|
7413
|
+
* @example
|
|
7414
|
+
* ```js
|
|
7415
|
+
* // Before running the sample:
|
|
7416
|
+
* // - Enable the API at:
|
|
7417
|
+
* // https://console.developers.google.com/apis/api/chromemanagement.googleapis.com
|
|
7418
|
+
* // - Login into gcloud by running:
|
|
7419
|
+
* // ```sh
|
|
7420
|
+
* // $ gcloud auth application-default login
|
|
7421
|
+
* // ```
|
|
7422
|
+
* // - Install the npm module by running:
|
|
7423
|
+
* // ```sh
|
|
7424
|
+
* // $ npm install googleapis
|
|
7425
|
+
* // ```
|
|
7426
|
+
*
|
|
7427
|
+
* const {google} = require('googleapis');
|
|
7428
|
+
* const chromemanagement = google.chromemanagement('v1');
|
|
7429
|
+
*
|
|
7430
|
+
* async function main() {
|
|
7431
|
+
* const auth = new google.auth.GoogleAuth({
|
|
7432
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
7433
|
+
* scopes: [
|
|
7434
|
+
* 'https://www.googleapis.com/auth/chrome.management.securityinsights',
|
|
7435
|
+
* 'https://www.googleapis.com/auth/chrome.management.securityinsights.readonly',
|
|
7436
|
+
* ],
|
|
7437
|
+
* });
|
|
7438
|
+
*
|
|
7439
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
7440
|
+
* const authClient = await auth.getClient();
|
|
7441
|
+
* google.options({auth: authClient});
|
|
7442
|
+
*
|
|
7443
|
+
* // Do the magic
|
|
7444
|
+
* const res =
|
|
7445
|
+
* await chromemanagement.customers.enterprise.securityInsights.queryUrlVisits(
|
|
7446
|
+
* {
|
|
7447
|
+
* // Required. The customer ID in the format "customers/{customer_id\}".
|
|
7448
|
+
* customer: 'customers/my-customer',
|
|
7449
|
+
* // 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"`
|
|
7450
|
+
* filter: 'placeholder-value',
|
|
7451
|
+
* },
|
|
7452
|
+
* );
|
|
7453
|
+
* console.log(res.data);
|
|
7454
|
+
*
|
|
7455
|
+
* // Example response
|
|
7456
|
+
* // {
|
|
7457
|
+
* // "summaries": []
|
|
7458
|
+
* // }
|
|
7459
|
+
* }
|
|
7460
|
+
*
|
|
7461
|
+
* main().catch(e => {
|
|
7462
|
+
* console.error(e);
|
|
7463
|
+
* throw e;
|
|
7464
|
+
* });
|
|
7465
|
+
*
|
|
7466
|
+
* ```
|
|
7467
|
+
*
|
|
7468
|
+
* @param params - Parameters for request
|
|
7469
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
7470
|
+
* @param callback - Optional callback that handles the response.
|
|
7471
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
7472
|
+
*/
|
|
7473
|
+
queryUrlVisits(
|
|
7474
|
+
params: Params$Resource$Customers$Enterprise$Securityinsights$Queryurlvisits,
|
|
7475
|
+
options: StreamMethodOptions
|
|
7476
|
+
): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
7477
|
+
queryUrlVisits(
|
|
7478
|
+
params?: Params$Resource$Customers$Enterprise$Securityinsights$Queryurlvisits,
|
|
7479
|
+
options?: MethodOptions
|
|
7480
|
+
): Promise<
|
|
7481
|
+
GaxiosResponseWithHTTP2<Schema$GoogleChromeManagementVersionsV1QueryUrlVisitsResponse>
|
|
7482
|
+
>;
|
|
7483
|
+
queryUrlVisits(
|
|
7484
|
+
params: Params$Resource$Customers$Enterprise$Securityinsights$Queryurlvisits,
|
|
7485
|
+
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
7486
|
+
callback: BodyResponseCallback<Readable>
|
|
7487
|
+
): void;
|
|
7488
|
+
queryUrlVisits(
|
|
7489
|
+
params: Params$Resource$Customers$Enterprise$Securityinsights$Queryurlvisits,
|
|
7490
|
+
options:
|
|
7491
|
+
| MethodOptions
|
|
7492
|
+
| BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1QueryUrlVisitsResponse>,
|
|
7493
|
+
callback: BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1QueryUrlVisitsResponse>
|
|
7494
|
+
): void;
|
|
7495
|
+
queryUrlVisits(
|
|
7496
|
+
params: Params$Resource$Customers$Enterprise$Securityinsights$Queryurlvisits,
|
|
7497
|
+
callback: BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1QueryUrlVisitsResponse>
|
|
7498
|
+
): void;
|
|
7499
|
+
queryUrlVisits(
|
|
7500
|
+
callback: BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1QueryUrlVisitsResponse>
|
|
7501
|
+
): void;
|
|
7502
|
+
queryUrlVisits(
|
|
7503
|
+
paramsOrCallback?:
|
|
7504
|
+
| Params$Resource$Customers$Enterprise$Securityinsights$Queryurlvisits
|
|
7505
|
+
| BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1QueryUrlVisitsResponse>
|
|
7506
|
+
| BodyResponseCallback<Readable>,
|
|
7507
|
+
optionsOrCallback?:
|
|
7508
|
+
| MethodOptions
|
|
7509
|
+
| StreamMethodOptions
|
|
7510
|
+
| BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1QueryUrlVisitsResponse>
|
|
7511
|
+
| BodyResponseCallback<Readable>,
|
|
7512
|
+
callback?:
|
|
7513
|
+
| BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1QueryUrlVisitsResponse>
|
|
7514
|
+
| BodyResponseCallback<Readable>
|
|
7515
|
+
):
|
|
7516
|
+
| void
|
|
7517
|
+
| Promise<
|
|
7518
|
+
GaxiosResponseWithHTTP2<Schema$GoogleChromeManagementVersionsV1QueryUrlVisitsResponse>
|
|
7519
|
+
>
|
|
7520
|
+
| Promise<GaxiosResponseWithHTTP2<Readable>> {
|
|
7521
|
+
let params = (paramsOrCallback ||
|
|
7522
|
+
{}) as Params$Resource$Customers$Enterprise$Securityinsights$Queryurlvisits;
|
|
7523
|
+
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
7524
|
+
|
|
7525
|
+
if (typeof paramsOrCallback === 'function') {
|
|
7526
|
+
callback = paramsOrCallback;
|
|
7527
|
+
params =
|
|
7528
|
+
{} as Params$Resource$Customers$Enterprise$Securityinsights$Queryurlvisits;
|
|
7529
|
+
options = {};
|
|
7530
|
+
}
|
|
7531
|
+
|
|
7532
|
+
if (typeof optionsOrCallback === 'function') {
|
|
7533
|
+
callback = optionsOrCallback;
|
|
7534
|
+
options = {};
|
|
7535
|
+
}
|
|
7536
|
+
|
|
7537
|
+
const rootUrl =
|
|
7538
|
+
options.rootUrl || 'https://chromemanagement.googleapis.com/';
|
|
7539
|
+
const parameters = {
|
|
7540
|
+
options: Object.assign(
|
|
7541
|
+
{
|
|
7542
|
+
url: (
|
|
7543
|
+
rootUrl +
|
|
7544
|
+
'/v1/{+customer}/enterprise/securityInsights:queryUrlVisits'
|
|
7545
|
+
).replace(/([^:]\/)\/+/g, '$1'),
|
|
7546
|
+
method: 'GET',
|
|
7547
|
+
apiVersion: '',
|
|
7548
|
+
},
|
|
7549
|
+
options
|
|
7550
|
+
),
|
|
7551
|
+
params,
|
|
7552
|
+
requiredParams: ['customer'],
|
|
7553
|
+
pathParams: ['customer'],
|
|
7554
|
+
context: this.context,
|
|
7555
|
+
};
|
|
7556
|
+
if (callback) {
|
|
7557
|
+
createAPIRequest<Schema$GoogleChromeManagementVersionsV1QueryUrlVisitsResponse>(
|
|
7558
|
+
parameters,
|
|
7559
|
+
callback as BodyResponseCallback<unknown>
|
|
7560
|
+
);
|
|
7561
|
+
} else {
|
|
7562
|
+
return createAPIRequest<Schema$GoogleChromeManagementVersionsV1QueryUrlVisitsResponse>(
|
|
7563
|
+
parameters
|
|
7564
|
+
);
|
|
7565
|
+
}
|
|
7566
|
+
}
|
|
7567
|
+
|
|
7568
|
+
/**
|
|
7569
|
+
* 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.
|
|
7570
|
+
* @example
|
|
7571
|
+
* ```js
|
|
7572
|
+
* // Before running the sample:
|
|
7573
|
+
* // - Enable the API at:
|
|
7574
|
+
* // https://console.developers.google.com/apis/api/chromemanagement.googleapis.com
|
|
7575
|
+
* // - Login into gcloud by running:
|
|
7576
|
+
* // ```sh
|
|
7577
|
+
* // $ gcloud auth application-default login
|
|
7578
|
+
* // ```
|
|
7579
|
+
* // - Install the npm module by running:
|
|
7580
|
+
* // ```sh
|
|
7581
|
+
* // $ npm install googleapis
|
|
7582
|
+
* // ```
|
|
7583
|
+
*
|
|
7584
|
+
* const {google} = require('googleapis');
|
|
7585
|
+
* const chromemanagement = google.chromemanagement('v1');
|
|
7586
|
+
*
|
|
7587
|
+
* async function main() {
|
|
7588
|
+
* const auth = new google.auth.GoogleAuth({
|
|
7589
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
7590
|
+
* scopes: [
|
|
7591
|
+
* 'https://www.googleapis.com/auth/chrome.management.securityinsights',
|
|
7592
|
+
* 'https://www.googleapis.com/auth/chrome.management.securityinsights.readonly',
|
|
7593
|
+
* ],
|
|
7594
|
+
* });
|
|
7595
|
+
*
|
|
7596
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
7597
|
+
* const authClient = await auth.getClient();
|
|
7598
|
+
* google.options({auth: authClient});
|
|
7599
|
+
*
|
|
7600
|
+
* // Do the magic
|
|
7601
|
+
* const res =
|
|
7602
|
+
* await chromemanagement.customers.enterprise.securityInsights.queryUrlVisitsBreakdowns(
|
|
7603
|
+
* {
|
|
7604
|
+
* // Optional. The dimension to break down the URL visits by. Defaults to USER.
|
|
7605
|
+
* breakdown: 'placeholder-value',
|
|
7606
|
+
* // Required. The customer ID in the format "customers/{customer_id\}".
|
|
7607
|
+
* customer: 'customers/my-customer',
|
|
7608
|
+
* // 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"`
|
|
7609
|
+
* filter: 'placeholder-value',
|
|
7610
|
+
* // 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.
|
|
7611
|
+
* fixedTimeRange: 'placeholder-value',
|
|
7612
|
+
* // Optional. The metric to return the breakdowns for. Defaults to URL_VISITS_METRIC_TOTAL_SUSPICIOUS_URL_VISITS.
|
|
7613
|
+
* metric: 'placeholder-value',
|
|
7614
|
+
* // 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.
|
|
7615
|
+
* pageSize: 'placeholder-value',
|
|
7616
|
+
* // 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.
|
|
7617
|
+
* pageToken: 'placeholder-value',
|
|
7618
|
+
* },
|
|
7619
|
+
* );
|
|
7620
|
+
* console.log(res.data);
|
|
7621
|
+
*
|
|
7622
|
+
* // Example response
|
|
7623
|
+
* // {
|
|
7624
|
+
* // "nextPageToken": "my_nextPageToken",
|
|
7625
|
+
* // "urlVisitsBreakdowns": []
|
|
7626
|
+
* // }
|
|
7627
|
+
* }
|
|
7628
|
+
*
|
|
7629
|
+
* main().catch(e => {
|
|
7630
|
+
* console.error(e);
|
|
7631
|
+
* throw e;
|
|
7632
|
+
* });
|
|
7633
|
+
*
|
|
7634
|
+
* ```
|
|
7635
|
+
*
|
|
7636
|
+
* @param params - Parameters for request
|
|
7637
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
7638
|
+
* @param callback - Optional callback that handles the response.
|
|
7639
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
7640
|
+
*/
|
|
7641
|
+
queryUrlVisitsBreakdowns(
|
|
7642
|
+
params: Params$Resource$Customers$Enterprise$Securityinsights$Queryurlvisitsbreakdowns,
|
|
7643
|
+
options: StreamMethodOptions
|
|
7644
|
+
): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
7645
|
+
queryUrlVisitsBreakdowns(
|
|
7646
|
+
params?: Params$Resource$Customers$Enterprise$Securityinsights$Queryurlvisitsbreakdowns,
|
|
7647
|
+
options?: MethodOptions
|
|
7648
|
+
): Promise<
|
|
7649
|
+
GaxiosResponseWithHTTP2<Schema$GoogleChromeManagementVersionsV1QueryUrlVisitsBreakdownsResponse>
|
|
7650
|
+
>;
|
|
7651
|
+
queryUrlVisitsBreakdowns(
|
|
7652
|
+
params: Params$Resource$Customers$Enterprise$Securityinsights$Queryurlvisitsbreakdowns,
|
|
7653
|
+
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
7654
|
+
callback: BodyResponseCallback<Readable>
|
|
7655
|
+
): void;
|
|
7656
|
+
queryUrlVisitsBreakdowns(
|
|
7657
|
+
params: Params$Resource$Customers$Enterprise$Securityinsights$Queryurlvisitsbreakdowns,
|
|
7658
|
+
options:
|
|
7659
|
+
| MethodOptions
|
|
7660
|
+
| BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1QueryUrlVisitsBreakdownsResponse>,
|
|
7661
|
+
callback: BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1QueryUrlVisitsBreakdownsResponse>
|
|
7662
|
+
): void;
|
|
7663
|
+
queryUrlVisitsBreakdowns(
|
|
7664
|
+
params: Params$Resource$Customers$Enterprise$Securityinsights$Queryurlvisitsbreakdowns,
|
|
7665
|
+
callback: BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1QueryUrlVisitsBreakdownsResponse>
|
|
7666
|
+
): void;
|
|
7667
|
+
queryUrlVisitsBreakdowns(
|
|
7668
|
+
callback: BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1QueryUrlVisitsBreakdownsResponse>
|
|
7669
|
+
): void;
|
|
7670
|
+
queryUrlVisitsBreakdowns(
|
|
7671
|
+
paramsOrCallback?:
|
|
7672
|
+
| Params$Resource$Customers$Enterprise$Securityinsights$Queryurlvisitsbreakdowns
|
|
7673
|
+
| BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1QueryUrlVisitsBreakdownsResponse>
|
|
7674
|
+
| BodyResponseCallback<Readable>,
|
|
7675
|
+
optionsOrCallback?:
|
|
7676
|
+
| MethodOptions
|
|
7677
|
+
| StreamMethodOptions
|
|
7678
|
+
| BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1QueryUrlVisitsBreakdownsResponse>
|
|
7679
|
+
| BodyResponseCallback<Readable>,
|
|
7680
|
+
callback?:
|
|
7681
|
+
| BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1QueryUrlVisitsBreakdownsResponse>
|
|
7682
|
+
| BodyResponseCallback<Readable>
|
|
7683
|
+
):
|
|
7684
|
+
| void
|
|
7685
|
+
| Promise<
|
|
7686
|
+
GaxiosResponseWithHTTP2<Schema$GoogleChromeManagementVersionsV1QueryUrlVisitsBreakdownsResponse>
|
|
7687
|
+
>
|
|
7688
|
+
| Promise<GaxiosResponseWithHTTP2<Readable>> {
|
|
7689
|
+
let params = (paramsOrCallback ||
|
|
7690
|
+
{}) as Params$Resource$Customers$Enterprise$Securityinsights$Queryurlvisitsbreakdowns;
|
|
7691
|
+
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
7692
|
+
|
|
7693
|
+
if (typeof paramsOrCallback === 'function') {
|
|
7694
|
+
callback = paramsOrCallback;
|
|
7695
|
+
params =
|
|
7696
|
+
{} as Params$Resource$Customers$Enterprise$Securityinsights$Queryurlvisitsbreakdowns;
|
|
7697
|
+
options = {};
|
|
7698
|
+
}
|
|
7699
|
+
|
|
7700
|
+
if (typeof optionsOrCallback === 'function') {
|
|
7701
|
+
callback = optionsOrCallback;
|
|
7702
|
+
options = {};
|
|
7703
|
+
}
|
|
7704
|
+
|
|
7705
|
+
const rootUrl =
|
|
7706
|
+
options.rootUrl || 'https://chromemanagement.googleapis.com/';
|
|
7707
|
+
const parameters = {
|
|
7708
|
+
options: Object.assign(
|
|
7709
|
+
{
|
|
7710
|
+
url: (
|
|
7711
|
+
rootUrl +
|
|
7712
|
+
'/v1/{+customer}/enterprise/securityInsights:queryUrlVisitsBreakdowns'
|
|
7713
|
+
).replace(/([^:]\/)\/+/g, '$1'),
|
|
7714
|
+
method: 'GET',
|
|
7715
|
+
apiVersion: '',
|
|
7716
|
+
},
|
|
7717
|
+
options
|
|
7718
|
+
),
|
|
7719
|
+
params,
|
|
7720
|
+
requiredParams: ['customer'],
|
|
7721
|
+
pathParams: ['customer'],
|
|
7722
|
+
context: this.context,
|
|
7723
|
+
};
|
|
7724
|
+
if (callback) {
|
|
7725
|
+
createAPIRequest<Schema$GoogleChromeManagementVersionsV1QueryUrlVisitsBreakdownsResponse>(
|
|
7726
|
+
parameters,
|
|
7727
|
+
callback as BodyResponseCallback<unknown>
|
|
7728
|
+
);
|
|
7729
|
+
} else {
|
|
7730
|
+
return createAPIRequest<Schema$GoogleChromeManagementVersionsV1QueryUrlVisitsBreakdownsResponse>(
|
|
7731
|
+
parameters
|
|
7732
|
+
);
|
|
7733
|
+
}
|
|
7734
|
+
}
|
|
7735
|
+
}
|
|
7736
|
+
|
|
7737
|
+
export interface Params$Resource$Customers$Enterprise$Securityinsights$Checkenablementstatus extends StandardParameters {
|
|
7738
|
+
/**
|
|
7739
|
+
* Required. The customer to check the enablement status for. Format: customers/{customer_id\}
|
|
7740
|
+
*/
|
|
7741
|
+
customer?: string;
|
|
7742
|
+
}
|
|
7743
|
+
export interface Params$Resource$Customers$Enterprise$Securityinsights$Disable extends StandardParameters {
|
|
7744
|
+
/**
|
|
7745
|
+
* Required. The customer to disable insights for. Format: customers/{customer\}
|
|
7746
|
+
*/
|
|
7747
|
+
customer?: string;
|
|
7748
|
+
|
|
7749
|
+
/**
|
|
7750
|
+
* Request body metadata
|
|
7751
|
+
*/
|
|
7752
|
+
requestBody?: Schema$GoogleChromeManagementVersionsV1DisableInsightsRequest;
|
|
7753
|
+
}
|
|
7754
|
+
export interface Params$Resource$Customers$Enterprise$Securityinsights$Enable extends StandardParameters {
|
|
7755
|
+
/**
|
|
7756
|
+
* Required. The customer to enable insights for. Format: customers/{customer\}
|
|
7757
|
+
*/
|
|
7758
|
+
customer?: string;
|
|
7759
|
+
|
|
7760
|
+
/**
|
|
7761
|
+
* Request body metadata
|
|
7762
|
+
*/
|
|
7763
|
+
requestBody?: Schema$GoogleChromeManagementVersionsV1EnableInsightsRequest;
|
|
7764
|
+
}
|
|
7765
|
+
export interface Params$Resource$Customers$Enterprise$Securityinsights$Querycontenttransfers extends StandardParameters {
|
|
7766
|
+
/**
|
|
7767
|
+
* Required. The customer ID in the format "customers/{customer_id\}".
|
|
7768
|
+
*/
|
|
7769
|
+
customer?: string;
|
|
7770
|
+
/**
|
|
7771
|
+
* 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"`
|
|
7772
|
+
*/
|
|
7773
|
+
filter?: string;
|
|
7774
|
+
}
|
|
7775
|
+
export interface Params$Resource$Customers$Enterprise$Securityinsights$Querycontenttransfersbreakdowns extends StandardParameters {
|
|
7776
|
+
/**
|
|
7777
|
+
* Optional. The dimension to break down the content transfers by. Defaults to USER.
|
|
7778
|
+
*/
|
|
7779
|
+
breakdown?: string;
|
|
7780
|
+
/**
|
|
7781
|
+
* Required. The customer ID in the format "customers/{customer_id\}".
|
|
7782
|
+
*/
|
|
7783
|
+
customer?: string;
|
|
7784
|
+
/**
|
|
7785
|
+
* 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"`
|
|
7786
|
+
*/
|
|
7787
|
+
filter?: string;
|
|
7788
|
+
/**
|
|
7789
|
+
* 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.
|
|
7790
|
+
*/
|
|
7791
|
+
fixedTimeRange?: string;
|
|
7792
|
+
/**
|
|
7793
|
+
* Optional. The metric to return the breakdowns for. Defaults to CONTENT_TRANSFERS_METRIC_TOTAL_TRANSFERS.
|
|
7794
|
+
*/
|
|
7795
|
+
metric?: string;
|
|
7796
|
+
/**
|
|
7797
|
+
* 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.
|
|
7798
|
+
*/
|
|
7799
|
+
pageSize?: number;
|
|
7800
|
+
/**
|
|
7801
|
+
* 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.
|
|
7802
|
+
*/
|
|
7803
|
+
pageToken?: string;
|
|
7804
|
+
}
|
|
7805
|
+
export interface Params$Resource$Customers$Enterprise$Securityinsights$Queryurlvisits extends StandardParameters {
|
|
7806
|
+
/**
|
|
7807
|
+
* Required. The customer ID in the format "customers/{customer_id\}".
|
|
7808
|
+
*/
|
|
7809
|
+
customer?: string;
|
|
7810
|
+
/**
|
|
7811
|
+
* 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"`
|
|
7812
|
+
*/
|
|
7813
|
+
filter?: string;
|
|
7814
|
+
}
|
|
7815
|
+
export interface Params$Resource$Customers$Enterprise$Securityinsights$Queryurlvisitsbreakdowns extends StandardParameters {
|
|
7816
|
+
/**
|
|
7817
|
+
* Optional. The dimension to break down the URL visits by. Defaults to USER.
|
|
7818
|
+
*/
|
|
7819
|
+
breakdown?: string;
|
|
7820
|
+
/**
|
|
7821
|
+
* Required. The customer ID in the format "customers/{customer_id\}".
|
|
7822
|
+
*/
|
|
7823
|
+
customer?: string;
|
|
7824
|
+
/**
|
|
7825
|
+
* 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"`
|
|
7826
|
+
*/
|
|
7827
|
+
filter?: string;
|
|
7828
|
+
/**
|
|
7829
|
+
* 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.
|
|
7830
|
+
*/
|
|
7831
|
+
fixedTimeRange?: string;
|
|
7832
|
+
/**
|
|
7833
|
+
* Optional. The metric to return the breakdowns for. Defaults to URL_VISITS_METRIC_TOTAL_SUSPICIOUS_URL_VISITS.
|
|
7834
|
+
*/
|
|
7835
|
+
metric?: string;
|
|
7836
|
+
/**
|
|
7837
|
+
* 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.
|
|
7838
|
+
*/
|
|
7839
|
+
pageSize?: number;
|
|
7840
|
+
/**
|
|
7841
|
+
* 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.
|
|
7842
|
+
*/
|
|
7843
|
+
pageToken?: string;
|
|
7844
|
+
}
|
|
7845
|
+
|
|
7846
|
+
export class Resource$Customers$Profiles {
|
|
7847
|
+
context: APIRequestContext;
|
|
7848
|
+
commands: Resource$Customers$Profiles$Commands;
|
|
7849
|
+
constructor(context: APIRequestContext) {
|
|
7850
|
+
this.context = context;
|
|
7851
|
+
this.commands = new Resource$Customers$Profiles$Commands(this.context);
|
|
7852
|
+
}
|
|
7853
|
+
|
|
7854
|
+
/**
|
|
7855
|
+
* Deletes the data collected from a Chrome browser profile.
|
|
7856
|
+
* @example
|
|
7857
|
+
* ```js
|
|
7858
|
+
* // Before running the sample:
|
|
7859
|
+
* // - Enable the API at:
|
|
7860
|
+
* // https://console.developers.google.com/apis/api/chromemanagement.googleapis.com
|
|
7861
|
+
* // - Login into gcloud by running:
|
|
7862
|
+
* // ```sh
|
|
7863
|
+
* // $ gcloud auth application-default login
|
|
7864
|
+
* // ```
|
|
7865
|
+
* // - Install the npm module by running:
|
|
7866
|
+
* // ```sh
|
|
7867
|
+
* // $ npm install googleapis
|
|
7868
|
+
* // ```
|
|
7869
|
+
*
|
|
7870
|
+
* const {google} = require('googleapis');
|
|
7871
|
+
* const chromemanagement = google.chromemanagement('v1');
|
|
7872
|
+
*
|
|
7873
|
+
* async function main() {
|
|
7874
|
+
* const auth = new google.auth.GoogleAuth({
|
|
7875
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
7876
|
+
* scopes: ['https://www.googleapis.com/auth/chrome.management.profiles'],
|
|
7877
|
+
* });
|
|
7878
|
+
*
|
|
7879
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
7880
|
+
* const authClient = await auth.getClient();
|
|
7881
|
+
* google.options({auth: authClient});
|
|
7882
|
+
*
|
|
7883
|
+
* // Do the magic
|
|
7884
|
+
* const res = await chromemanagement.customers.profiles.delete({
|
|
7885
|
+
* // Required. Format: customers/{customer_id\}/profiles/{profile_permanent_id\}
|
|
7886
|
+
* name: 'customers/my-customer/profiles/my-profile',
|
|
7887
|
+
* });
|
|
7888
|
+
* console.log(res.data);
|
|
7889
|
+
*
|
|
7890
|
+
* // Example response
|
|
7891
|
+
* // {}
|
|
7892
|
+
* }
|
|
7893
|
+
*
|
|
7894
|
+
* main().catch(e => {
|
|
7895
|
+
* console.error(e);
|
|
7896
|
+
* throw e;
|
|
7897
|
+
* });
|
|
7898
|
+
*
|
|
7899
|
+
* ```
|
|
7900
|
+
*
|
|
7901
|
+
* @param params - Parameters for request
|
|
7902
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
7903
|
+
* @param callback - Optional callback that handles the response.
|
|
7904
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
7905
|
+
*/
|
|
7906
|
+
delete(
|
|
7907
|
+
params: Params$Resource$Customers$Profiles$Delete,
|
|
7908
|
+
options: StreamMethodOptions
|
|
7909
|
+
): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
7910
|
+
delete(
|
|
7911
|
+
params?: Params$Resource$Customers$Profiles$Delete,
|
|
7912
|
+
options?: MethodOptions
|
|
7913
|
+
): Promise<GaxiosResponseWithHTTP2<Schema$GoogleProtobufEmpty>>;
|
|
7914
|
+
delete(
|
|
7915
|
+
params: Params$Resource$Customers$Profiles$Delete,
|
|
7916
|
+
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
7917
|
+
callback: BodyResponseCallback<Readable>
|
|
7918
|
+
): void;
|
|
7919
|
+
delete(
|
|
7920
|
+
params: Params$Resource$Customers$Profiles$Delete,
|
|
7921
|
+
options: MethodOptions | BodyResponseCallback<Schema$GoogleProtobufEmpty>,
|
|
7922
|
+
callback: BodyResponseCallback<Schema$GoogleProtobufEmpty>
|
|
7923
|
+
): void;
|
|
7924
|
+
delete(
|
|
7925
|
+
params: Params$Resource$Customers$Profiles$Delete,
|
|
7926
|
+
callback: BodyResponseCallback<Schema$GoogleProtobufEmpty>
|
|
7927
|
+
): void;
|
|
7928
|
+
delete(callback: BodyResponseCallback<Schema$GoogleProtobufEmpty>): void;
|
|
7929
|
+
delete(
|
|
7930
|
+
paramsOrCallback?:
|
|
7931
|
+
| Params$Resource$Customers$Profiles$Delete
|
|
7932
|
+
| BodyResponseCallback<Schema$GoogleProtobufEmpty>
|
|
7933
|
+
| BodyResponseCallback<Readable>,
|
|
7934
|
+
optionsOrCallback?:
|
|
7935
|
+
| MethodOptions
|
|
7936
|
+
| StreamMethodOptions
|
|
7937
|
+
| BodyResponseCallback<Schema$GoogleProtobufEmpty>
|
|
7938
|
+
| BodyResponseCallback<Readable>,
|
|
7939
|
+
callback?:
|
|
7940
|
+
| BodyResponseCallback<Schema$GoogleProtobufEmpty>
|
|
7941
|
+
| BodyResponseCallback<Readable>
|
|
7942
|
+
):
|
|
7943
|
+
| void
|
|
7944
|
+
| Promise<GaxiosResponseWithHTTP2<Schema$GoogleProtobufEmpty>>
|
|
7945
|
+
| Promise<GaxiosResponseWithHTTP2<Readable>> {
|
|
7946
|
+
let params = (paramsOrCallback ||
|
|
7947
|
+
{}) as Params$Resource$Customers$Profiles$Delete;
|
|
7948
|
+
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
7949
|
+
|
|
7950
|
+
if (typeof paramsOrCallback === 'function') {
|
|
7951
|
+
callback = paramsOrCallback;
|
|
7952
|
+
params = {} as Params$Resource$Customers$Profiles$Delete;
|
|
7953
|
+
options = {};
|
|
7954
|
+
}
|
|
7955
|
+
|
|
7956
|
+
if (typeof optionsOrCallback === 'function') {
|
|
7957
|
+
callback = optionsOrCallback;
|
|
7958
|
+
options = {};
|
|
7959
|
+
}
|
|
7960
|
+
|
|
7961
|
+
const rootUrl =
|
|
7962
|
+
options.rootUrl || 'https://chromemanagement.googleapis.com/';
|
|
7963
|
+
const parameters = {
|
|
7964
|
+
options: Object.assign(
|
|
7965
|
+
{
|
|
7966
|
+
url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
|
|
7967
|
+
method: 'DELETE',
|
|
7968
|
+
apiVersion: '',
|
|
7969
|
+
},
|
|
7970
|
+
options
|
|
7971
|
+
),
|
|
7972
|
+
params,
|
|
7973
|
+
requiredParams: ['name'],
|
|
7974
|
+
pathParams: ['name'],
|
|
7975
|
+
context: this.context,
|
|
7976
|
+
};
|
|
7977
|
+
if (callback) {
|
|
7978
|
+
createAPIRequest<Schema$GoogleProtobufEmpty>(
|
|
7979
|
+
parameters,
|
|
7980
|
+
callback as BodyResponseCallback<unknown>
|
|
7981
|
+
);
|
|
7982
|
+
} else {
|
|
7983
|
+
return createAPIRequest<Schema$GoogleProtobufEmpty>(parameters);
|
|
7984
|
+
}
|
|
7985
|
+
}
|
|
7986
|
+
|
|
7987
|
+
/**
|
|
7988
|
+
* Gets a Chrome browser profile with customer ID and profile permanent ID.
|
|
7989
|
+
* @example
|
|
7990
|
+
* ```js
|
|
7991
|
+
* // Before running the sample:
|
|
7992
|
+
* // - Enable the API at:
|
|
7993
|
+
* // https://console.developers.google.com/apis/api/chromemanagement.googleapis.com
|
|
7994
|
+
* // - Login into gcloud by running:
|
|
7995
|
+
* // ```sh
|
|
7996
|
+
* // $ gcloud auth application-default login
|
|
7997
|
+
* // ```
|
|
7998
|
+
* // - Install the npm module by running:
|
|
7999
|
+
* // ```sh
|
|
8000
|
+
* // $ npm install googleapis
|
|
8001
|
+
* // ```
|
|
8002
|
+
*
|
|
8003
|
+
* const {google} = require('googleapis');
|
|
8004
|
+
* const chromemanagement = google.chromemanagement('v1');
|
|
8005
|
+
*
|
|
8006
|
+
* async function main() {
|
|
8007
|
+
* const auth = new google.auth.GoogleAuth({
|
|
8008
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
8009
|
+
* scopes: [
|
|
8010
|
+
* 'https://www.googleapis.com/auth/chrome.management.profiles',
|
|
8011
|
+
* 'https://www.googleapis.com/auth/chrome.management.profiles.readonly',
|
|
8012
|
+
* ],
|
|
8013
|
+
* });
|
|
8014
|
+
*
|
|
8015
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
8016
|
+
* const authClient = await auth.getClient();
|
|
8017
|
+
* google.options({auth: authClient});
|
|
8018
|
+
*
|
|
8019
|
+
* // Do the magic
|
|
8020
|
+
* const res = await chromemanagement.customers.profiles.get({
|
|
8021
|
+
* // Required. Format: customers/{customer_id\}/profiles/{profile_permanent_id\}
|
|
8022
|
+
* name: 'customers/my-customer/profiles/my-profile',
|
|
8023
|
+
* });
|
|
8024
|
+
* console.log(res.data);
|
|
8025
|
+
*
|
|
8026
|
+
* // Example response
|
|
8027
|
+
* // {
|
|
8028
|
+
* // "affiliationState": "my_affiliationState",
|
|
8029
|
+
* // "annotatedLocation": "my_annotatedLocation",
|
|
8030
|
+
* // "annotatedUser": "my_annotatedUser",
|
|
8031
|
+
* // "attestationCredential": {},
|
|
8032
|
+
* // "browserChannel": "my_browserChannel",
|
|
8033
|
+
* // "browserVersion": "my_browserVersion",
|
|
8034
|
+
* // "deviceInfo": {},
|
|
8035
|
+
* // "displayName": "my_displayName",
|
|
8036
|
+
* // "etag": "my_etag",
|
|
8037
|
+
* // "extensionCount": "my_extensionCount",
|
|
8038
|
+
* // "firstEnrollmentTime": "my_firstEnrollmentTime",
|
|
8039
|
+
* // "identityProvider": "my_identityProvider",
|
|
8040
|
+
* // "lastActivityTime": "my_lastActivityTime",
|
|
8041
|
+
* // "lastPolicyFetchTime": "my_lastPolicyFetchTime",
|
|
8042
|
+
* // "lastPolicySyncTime": "my_lastPolicySyncTime",
|
|
8043
|
+
* // "lastStatusReportTime": "my_lastStatusReportTime",
|
|
8044
|
+
* // "name": "my_name",
|
|
8045
|
+
* // "osPlatformType": "my_osPlatformType",
|
|
8046
|
+
* // "osPlatformVersion": "my_osPlatformVersion",
|
|
8047
|
+
* // "osVersion": "my_osVersion",
|
|
8048
|
+
* // "policyCount": "my_policyCount",
|
|
8049
|
+
* // "profileId": "my_profileId",
|
|
8050
|
+
* // "profilePermanentId": "my_profilePermanentId",
|
|
8051
|
+
* // "reportingData": {},
|
|
8052
|
+
* // "supportsFcmNotifications": false,
|
|
8053
|
+
* // "userEmail": "my_userEmail",
|
|
8054
|
+
* // "userId": "my_userId"
|
|
8055
|
+
* // }
|
|
8056
|
+
* }
|
|
8057
|
+
*
|
|
8058
|
+
* main().catch(e => {
|
|
8059
|
+
* console.error(e);
|
|
8060
|
+
* throw e;
|
|
8061
|
+
* });
|
|
8062
|
+
*
|
|
8063
|
+
* ```
|
|
8064
|
+
*
|
|
8065
|
+
* @param params - Parameters for request
|
|
8066
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
8067
|
+
* @param callback - Optional callback that handles the response.
|
|
8068
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
8069
|
+
*/
|
|
8070
|
+
get(
|
|
8071
|
+
params: Params$Resource$Customers$Profiles$Get,
|
|
8072
|
+
options: StreamMethodOptions
|
|
8073
|
+
): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
8074
|
+
get(
|
|
8075
|
+
params?: Params$Resource$Customers$Profiles$Get,
|
|
8076
|
+
options?: MethodOptions
|
|
8077
|
+
): Promise<
|
|
8078
|
+
GaxiosResponseWithHTTP2<Schema$GoogleChromeManagementVersionsV1ChromeBrowserProfile>
|
|
8079
|
+
>;
|
|
8080
|
+
get(
|
|
8081
|
+
params: Params$Resource$Customers$Profiles$Get,
|
|
8082
|
+
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
8083
|
+
callback: BodyResponseCallback<Readable>
|
|
8084
|
+
): void;
|
|
8085
|
+
get(
|
|
8086
|
+
params: Params$Resource$Customers$Profiles$Get,
|
|
8087
|
+
options:
|
|
8088
|
+
| MethodOptions
|
|
8089
|
+
| BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1ChromeBrowserProfile>,
|
|
8090
|
+
callback: BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1ChromeBrowserProfile>
|
|
8091
|
+
): void;
|
|
8092
|
+
get(
|
|
8093
|
+
params: Params$Resource$Customers$Profiles$Get,
|
|
8094
|
+
callback: BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1ChromeBrowserProfile>
|
|
8095
|
+
): void;
|
|
8096
|
+
get(
|
|
8097
|
+
callback: BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1ChromeBrowserProfile>
|
|
8098
|
+
): void;
|
|
8099
|
+
get(
|
|
8100
|
+
paramsOrCallback?:
|
|
8101
|
+
| Params$Resource$Customers$Profiles$Get
|
|
8102
|
+
| BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1ChromeBrowserProfile>
|
|
8103
|
+
| BodyResponseCallback<Readable>,
|
|
8104
|
+
optionsOrCallback?:
|
|
8105
|
+
| MethodOptions
|
|
8106
|
+
| StreamMethodOptions
|
|
8107
|
+
| BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1ChromeBrowserProfile>
|
|
8108
|
+
| BodyResponseCallback<Readable>,
|
|
8109
|
+
callback?:
|
|
8110
|
+
| BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1ChromeBrowserProfile>
|
|
8111
|
+
| BodyResponseCallback<Readable>
|
|
8112
|
+
):
|
|
8113
|
+
| void
|
|
8114
|
+
| Promise<
|
|
8115
|
+
GaxiosResponseWithHTTP2<Schema$GoogleChromeManagementVersionsV1ChromeBrowserProfile>
|
|
8116
|
+
>
|
|
8117
|
+
| Promise<GaxiosResponseWithHTTP2<Readable>> {
|
|
8118
|
+
let params = (paramsOrCallback ||
|
|
8119
|
+
{}) as Params$Resource$Customers$Profiles$Get;
|
|
8120
|
+
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
8121
|
+
|
|
8122
|
+
if (typeof paramsOrCallback === 'function') {
|
|
8123
|
+
callback = paramsOrCallback;
|
|
8124
|
+
params = {} as Params$Resource$Customers$Profiles$Get;
|
|
8125
|
+
options = {};
|
|
8126
|
+
}
|
|
8127
|
+
|
|
8128
|
+
if (typeof optionsOrCallback === 'function') {
|
|
8129
|
+
callback = optionsOrCallback;
|
|
8130
|
+
options = {};
|
|
8131
|
+
}
|
|
8132
|
+
|
|
8133
|
+
const rootUrl =
|
|
8134
|
+
options.rootUrl || 'https://chromemanagement.googleapis.com/';
|
|
8135
|
+
const parameters = {
|
|
8136
|
+
options: Object.assign(
|
|
8137
|
+
{
|
|
8138
|
+
url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
|
|
8139
|
+
method: 'GET',
|
|
7276
8140
|
apiVersion: '',
|
|
7277
8141
|
},
|
|
7278
8142
|
options
|
|
@@ -8965,6 +9829,167 @@ export namespace chromemanagement_v1 {
|
|
|
8965
9829
|
}
|
|
8966
9830
|
}
|
|
8967
9831
|
|
|
9832
|
+
/**
|
|
9833
|
+
* Generate report of installed Chrome versions on managed profiles.
|
|
9834
|
+
* @example
|
|
9835
|
+
* ```js
|
|
9836
|
+
* // Before running the sample:
|
|
9837
|
+
* // - Enable the API at:
|
|
9838
|
+
* // https://console.developers.google.com/apis/api/chromemanagement.googleapis.com
|
|
9839
|
+
* // - Login into gcloud by running:
|
|
9840
|
+
* // ```sh
|
|
9841
|
+
* // $ gcloud auth application-default login
|
|
9842
|
+
* // ```
|
|
9843
|
+
* // - Install the npm module by running:
|
|
9844
|
+
* // ```sh
|
|
9845
|
+
* // $ npm install googleapis
|
|
9846
|
+
* // ```
|
|
9847
|
+
*
|
|
9848
|
+
* const {google} = require('googleapis');
|
|
9849
|
+
* const chromemanagement = google.chromemanagement('v1');
|
|
9850
|
+
*
|
|
9851
|
+
* async function main() {
|
|
9852
|
+
* const auth = new google.auth.GoogleAuth({
|
|
9853
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
9854
|
+
* scopes: [
|
|
9855
|
+
* 'https://www.googleapis.com/auth/chrome.management.reports.readonly',
|
|
9856
|
+
* ],
|
|
9857
|
+
* });
|
|
9858
|
+
*
|
|
9859
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
9860
|
+
* const authClient = await auth.getClient();
|
|
9861
|
+
* google.options({auth: authClient});
|
|
9862
|
+
*
|
|
9863
|
+
* // Do the magic
|
|
9864
|
+
* const res =
|
|
9865
|
+
* await chromemanagement.customers.reports.countChromeProfileVersions({
|
|
9866
|
+
* // Required. Customer id or "my_customer" to use the customer associated to the account making the request.
|
|
9867
|
+
* customer: 'customers/my-customer',
|
|
9868
|
+
* // 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
|
|
9869
|
+
* filter: 'placeholder-value',
|
|
9870
|
+
* // The ID of the organizational unit. If omitted, all data will be returned.
|
|
9871
|
+
* orgUnitId: 'placeholder-value',
|
|
9872
|
+
* // Optional. Maximum number of results to return. Maximum and default are 100.
|
|
9873
|
+
* pageSize: 'placeholder-value',
|
|
9874
|
+
* // Optional. Token to specify the page of the request to be returned.
|
|
9875
|
+
* pageToken: 'placeholder-value',
|
|
9876
|
+
* });
|
|
9877
|
+
* console.log(res.data);
|
|
9878
|
+
*
|
|
9879
|
+
* // Example response
|
|
9880
|
+
* // {
|
|
9881
|
+
* // "nextPageToken": "my_nextPageToken",
|
|
9882
|
+
* // "profileBrowserVersions": [],
|
|
9883
|
+
* // "totalSize": 0
|
|
9884
|
+
* // }
|
|
9885
|
+
* }
|
|
9886
|
+
*
|
|
9887
|
+
* main().catch(e => {
|
|
9888
|
+
* console.error(e);
|
|
9889
|
+
* throw e;
|
|
9890
|
+
* });
|
|
9891
|
+
*
|
|
9892
|
+
* ```
|
|
9893
|
+
*
|
|
9894
|
+
* @param params - Parameters for request
|
|
9895
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
9896
|
+
* @param callback - Optional callback that handles the response.
|
|
9897
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
9898
|
+
*/
|
|
9899
|
+
countChromeProfileVersions(
|
|
9900
|
+
params: Params$Resource$Customers$Reports$Countchromeprofileversions,
|
|
9901
|
+
options: StreamMethodOptions
|
|
9902
|
+
): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
9903
|
+
countChromeProfileVersions(
|
|
9904
|
+
params?: Params$Resource$Customers$Reports$Countchromeprofileversions,
|
|
9905
|
+
options?: MethodOptions
|
|
9906
|
+
): Promise<
|
|
9907
|
+
GaxiosResponseWithHTTP2<Schema$GoogleChromeManagementV1CountChromeProfileVersionsResponse>
|
|
9908
|
+
>;
|
|
9909
|
+
countChromeProfileVersions(
|
|
9910
|
+
params: Params$Resource$Customers$Reports$Countchromeprofileversions,
|
|
9911
|
+
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
9912
|
+
callback: BodyResponseCallback<Readable>
|
|
9913
|
+
): void;
|
|
9914
|
+
countChromeProfileVersions(
|
|
9915
|
+
params: Params$Resource$Customers$Reports$Countchromeprofileversions,
|
|
9916
|
+
options:
|
|
9917
|
+
| MethodOptions
|
|
9918
|
+
| BodyResponseCallback<Schema$GoogleChromeManagementV1CountChromeProfileVersionsResponse>,
|
|
9919
|
+
callback: BodyResponseCallback<Schema$GoogleChromeManagementV1CountChromeProfileVersionsResponse>
|
|
9920
|
+
): void;
|
|
9921
|
+
countChromeProfileVersions(
|
|
9922
|
+
params: Params$Resource$Customers$Reports$Countchromeprofileversions,
|
|
9923
|
+
callback: BodyResponseCallback<Schema$GoogleChromeManagementV1CountChromeProfileVersionsResponse>
|
|
9924
|
+
): void;
|
|
9925
|
+
countChromeProfileVersions(
|
|
9926
|
+
callback: BodyResponseCallback<Schema$GoogleChromeManagementV1CountChromeProfileVersionsResponse>
|
|
9927
|
+
): void;
|
|
9928
|
+
countChromeProfileVersions(
|
|
9929
|
+
paramsOrCallback?:
|
|
9930
|
+
| Params$Resource$Customers$Reports$Countchromeprofileversions
|
|
9931
|
+
| BodyResponseCallback<Schema$GoogleChromeManagementV1CountChromeProfileVersionsResponse>
|
|
9932
|
+
| BodyResponseCallback<Readable>,
|
|
9933
|
+
optionsOrCallback?:
|
|
9934
|
+
| MethodOptions
|
|
9935
|
+
| StreamMethodOptions
|
|
9936
|
+
| BodyResponseCallback<Schema$GoogleChromeManagementV1CountChromeProfileVersionsResponse>
|
|
9937
|
+
| BodyResponseCallback<Readable>,
|
|
9938
|
+
callback?:
|
|
9939
|
+
| BodyResponseCallback<Schema$GoogleChromeManagementV1CountChromeProfileVersionsResponse>
|
|
9940
|
+
| BodyResponseCallback<Readable>
|
|
9941
|
+
):
|
|
9942
|
+
| void
|
|
9943
|
+
| Promise<
|
|
9944
|
+
GaxiosResponseWithHTTP2<Schema$GoogleChromeManagementV1CountChromeProfileVersionsResponse>
|
|
9945
|
+
>
|
|
9946
|
+
| Promise<GaxiosResponseWithHTTP2<Readable>> {
|
|
9947
|
+
let params = (paramsOrCallback ||
|
|
9948
|
+
{}) as Params$Resource$Customers$Reports$Countchromeprofileversions;
|
|
9949
|
+
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
9950
|
+
|
|
9951
|
+
if (typeof paramsOrCallback === 'function') {
|
|
9952
|
+
callback = paramsOrCallback;
|
|
9953
|
+
params =
|
|
9954
|
+
{} as Params$Resource$Customers$Reports$Countchromeprofileversions;
|
|
9955
|
+
options = {};
|
|
9956
|
+
}
|
|
9957
|
+
|
|
9958
|
+
if (typeof optionsOrCallback === 'function') {
|
|
9959
|
+
callback = optionsOrCallback;
|
|
9960
|
+
options = {};
|
|
9961
|
+
}
|
|
9962
|
+
|
|
9963
|
+
const rootUrl =
|
|
9964
|
+
options.rootUrl || 'https://chromemanagement.googleapis.com/';
|
|
9965
|
+
const parameters = {
|
|
9966
|
+
options: Object.assign(
|
|
9967
|
+
{
|
|
9968
|
+
url: (
|
|
9969
|
+
rootUrl + '/v1/{+customer}/reports:countChromeProfileVersions'
|
|
9970
|
+
).replace(/([^:]\/)\/+/g, '$1'),
|
|
9971
|
+
method: 'GET',
|
|
9972
|
+
apiVersion: '',
|
|
9973
|
+
},
|
|
9974
|
+
options
|
|
9975
|
+
),
|
|
9976
|
+
params,
|
|
9977
|
+
requiredParams: ['customer'],
|
|
9978
|
+
pathParams: ['customer'],
|
|
9979
|
+
context: this.context,
|
|
9980
|
+
};
|
|
9981
|
+
if (callback) {
|
|
9982
|
+
createAPIRequest<Schema$GoogleChromeManagementV1CountChromeProfileVersionsResponse>(
|
|
9983
|
+
parameters,
|
|
9984
|
+
callback as BodyResponseCallback<unknown>
|
|
9985
|
+
);
|
|
9986
|
+
} else {
|
|
9987
|
+
return createAPIRequest<Schema$GoogleChromeManagementV1CountChromeProfileVersionsResponse>(
|
|
9988
|
+
parameters
|
|
9989
|
+
);
|
|
9990
|
+
}
|
|
9991
|
+
}
|
|
9992
|
+
|
|
8968
9993
|
/**
|
|
8969
9994
|
* Generate report of installed Chrome versions.
|
|
8970
9995
|
* @example
|
|
@@ -10518,6 +11543,28 @@ export namespace chromemanagement_v1 {
|
|
|
10518
11543
|
*/
|
|
10519
11544
|
readMask?: string;
|
|
10520
11545
|
}
|
|
11546
|
+
export interface Params$Resource$Customers$Reports$Countchromeprofileversions extends StandardParameters {
|
|
11547
|
+
/**
|
|
11548
|
+
* Required. Customer id or "my_customer" to use the customer associated to the account making the request.
|
|
11549
|
+
*/
|
|
11550
|
+
customer?: string;
|
|
11551
|
+
/**
|
|
11552
|
+
* 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
|
|
11553
|
+
*/
|
|
11554
|
+
filter?: string;
|
|
11555
|
+
/**
|
|
11556
|
+
* The ID of the organizational unit. If omitted, all data will be returned.
|
|
11557
|
+
*/
|
|
11558
|
+
orgUnitId?: string;
|
|
11559
|
+
/**
|
|
11560
|
+
* Optional. Maximum number of results to return. Maximum and default are 100.
|
|
11561
|
+
*/
|
|
11562
|
+
pageSize?: number;
|
|
11563
|
+
/**
|
|
11564
|
+
* Optional. Token to specify the page of the request to be returned.
|
|
11565
|
+
*/
|
|
11566
|
+
pageToken?: string;
|
|
11567
|
+
}
|
|
10521
11568
|
export interface Params$Resource$Customers$Reports$Countchromeversions extends StandardParameters {
|
|
10522
11569
|
/**
|
|
10523
11570
|
* Required. Customer id or "my_customer" to use the customer associated to the account making the request.
|