Skip to content

Commit

Permalink
chore: run the generator, fixing samples (#1197)
Browse files Browse the repository at this point in the history
This fixes the samples from `var google = require()` to
`const {google} = require()`.
  • Loading branch information
fhinkel authored and JustinBeckwith committed Jun 2, 2018
1 parent 162c464 commit e7f2ec4
Show file tree
Hide file tree
Showing 68 changed files with 39,722 additions and 8,919 deletions.
4,339 changes: 2,551 additions & 1,788 deletions package-lock.json

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions src/apis/adexchangebuyer2/v2beta1.ts
Expand Up @@ -2468,7 +2468,7 @@ export namespace adexchangebuyer2_v2beta1 {
* @param {string} params.accountId The account to list the creatives from. Specify "-" to list all creatives the current user has access to.
* @param {integer=} params.pageSize Requested page size. The server may return fewer creatives than requested (due to timeout constraint) even if more are available via another call. If unspecified, server will pick an appropriate default. Acceptable values are 1 to 1000, inclusive.
* @param {string=} params.pageToken A token identifying a page of results the server should return. Typically, this is the value of ListCreativesResponse.next_page_token returned from the previous call to 'ListCreatives' method.
* @param {string=} params.query An optional query string to filter creatives. If no filter is specified, all active creatives will be returned. Supported queries are: <ul> <li>accountId=<i>account_id_string</i> <li>creativeId=<i>creative_id_string</i> <li>dealsStatus: {approved, conditionally_approved, disapproved, not_checked} <li>openAuctionStatus: {approved, conditionally_approved, disapproved, not_checked} <li>attribute: {a numeric attribute from the list of attributes} <li>disapprovalReason: {a reason from DisapprovalReason} </ul> Example: 'accountId=12345 AND (dealsStatus:disapproved AND disapprovalReason:unacceptable_content) OR attribute:47'
* @param {string=} params.query An optional query string to filter creatives. If no filter is specified, all active creatives will be returned. <p>Supported queries are: <ul> <li>accountId=<i>account_id_string</i> <li>creativeId=<i>creative_id_string</i> <li>dealsStatus: {approved, conditionally_approved, disapproved, not_checked} <li>openAuctionStatus: {approved, conditionally_approved, disapproved, not_checked} <li>attribute: {a numeric attribute from the list of attributes} <li>disapprovalReason: {a reason from DisapprovalReason} </ul> Example: 'accountId=12345 AND (dealsStatus:disapproved AND disapprovalReason:unacceptable_content) OR attribute:47'
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
Expand Down Expand Up @@ -2807,7 +2807,7 @@ export namespace adexchangebuyer2_v2beta1 {
pageToken?: string;
/**
* An optional query string to filter creatives. If no filter is specified,
* all active creatives will be returned. Supported queries are: <ul>
* all active creatives will be returned. <p>Supported queries are: <ul>
* <li>accountId=<i>account_id_string</i>
* <li>creativeId=<i>creative_id_string</i> <li>dealsStatus: {approved,
* conditionally_approved, disapproved, not_checked}
Expand Down
139 changes: 139 additions & 0 deletions src/apis/analytics/v3.ts
Expand Up @@ -54,6 +54,7 @@ export namespace analytics_v3 {
management: Resource$Management;
metadata: Resource$Metadata;
provisioning: Resource$Provisioning;
userDeletion: Resource$Userdeletion;

constructor(options: GlobalOptions, google?: GoogleConfigurable) {
this._options = options || {};
Expand All @@ -64,6 +65,7 @@ export namespace analytics_v3 {
this.management = new Resource$Management(this);
this.metadata = new Resource$Metadata(this);
this.provisioning = new Resource$Provisioning(this);
this.userDeletion = new Resource$Userdeletion(this);
}

getRoot() {
Expand Down Expand Up @@ -2386,6 +2388,32 @@ export namespace analytics_v3 {
*/
totalResults?: number;
}
/**
* JSON template for a user deletion request resource.
*/
export interface Schema$UserDeletionRequest {
/**
* This marks the point in time for which all user data before should be
* deleted
*/
deletionRequestTime?: string;
/**
* Firebase Project Id
*/
firebaseProjectId?: string;
/**
* User ID.
*/
id?: any;
/**
* Value is &quot;analytics#userDeletionRequest&quot;.
*/
kind?: string;
/**
* Web property ID of the form UA-XXXXX-YY.
*/
webPropertyId?: string;
}
/**
* JSON template for a user reference.
*/
Expand Down Expand Up @@ -11164,4 +11192,115 @@ export namespace analytics_v3 {
*/
requestBody?: Schema$AccountTreeRequest;
}


export class Resource$Userdeletion {
root: Analytics;
userDeletionRequest: Resource$Userdeletion$Userdeletionrequest;
constructor(root: Analytics) {
this.root = root;
this.getRoot.bind(this);
this.userDeletionRequest =
new Resource$Userdeletion$Userdeletionrequest(root);
}

getRoot() {
return this.root;
}
}


export class Resource$Userdeletion$Userdeletionrequest {
root: Analytics;
constructor(root: Analytics) {
this.root = root;
this.getRoot.bind(this);
}

getRoot() {
return this.root;
}


/**
* analytics.userDeletion.userDeletionRequest.upsert
* @desc Insert or update a user deletion requests.
* @alias analytics.userDeletion.userDeletionRequest.upsert
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {().UserDeletionRequest} params.resource Request body data
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
upsert(
params?: Params$Resource$Userdeletion$Userdeletionrequest$Upsert,
options?: MethodOptions): AxiosPromise<Schema$UserDeletionRequest>;
upsert(
params: Params$Resource$Userdeletion$Userdeletionrequest$Upsert,
options: MethodOptions|BodyResponseCallback<Schema$UserDeletionRequest>,
callback: BodyResponseCallback<Schema$UserDeletionRequest>): void;
upsert(
params: Params$Resource$Userdeletion$Userdeletionrequest$Upsert,
callback: BodyResponseCallback<Schema$UserDeletionRequest>): void;
upsert(callback: BodyResponseCallback<Schema$UserDeletionRequest>): void;
upsert(
paramsOrCallback?:
Params$Resource$Userdeletion$Userdeletionrequest$Upsert|
BodyResponseCallback<Schema$UserDeletionRequest>,
optionsOrCallback?: MethodOptions|
BodyResponseCallback<Schema$UserDeletionRequest>,
callback?: BodyResponseCallback<Schema$UserDeletionRequest>):
void|AxiosPromise<Schema$UserDeletionRequest> {
let params = (paramsOrCallback || {}) as
Params$Resource$Userdeletion$Userdeletionrequest$Upsert;
let options = (optionsOrCallback || {}) as MethodOptions;

if (typeof paramsOrCallback === 'function') {
callback = paramsOrCallback;
params = {} as Params$Resource$Userdeletion$Userdeletionrequest$Upsert;
options = {};
}

if (typeof optionsOrCallback === 'function') {
callback = optionsOrCallback;
options = {};
}

const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
const parameters = {
options: Object.assign(
{
url: (rootUrl +
'/analytics/v3/userDeletion/userDeletionRequests:upsert')
.replace(/([^:]\/)\/+/g, '$1'),
method: 'POST'
},
options),
params,
requiredParams: [],
pathParams: [],
context: this.getRoot()
};
if (callback) {
createAPIRequest<Schema$UserDeletionRequest>(parameters, callback);
} else {
return createAPIRequest<Schema$UserDeletionRequest>(parameters);
}
}
}

export interface Params$Resource$Userdeletion$Userdeletionrequest$Upsert {
/**
* Auth client or API Key for the request
*/
auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient;


/**
* Request body metadata
*/
requestBody?: Schema$UserDeletionRequest;
}
}
119 changes: 117 additions & 2 deletions src/apis/androidmanagement/v1.ts
Expand Up @@ -116,6 +116,19 @@ export namespace androidmanagement_v1 {
*/
title?: string;
}
/**
* An app-related event.
*/
export interface Schema$ApplicationEvent {
/**
* The creation time of the event.
*/
createTime?: string;
/**
* App event type.
*/
eventType?: string;
}
/**
* A permission required by the app.
*/
Expand Down Expand Up @@ -149,6 +162,10 @@ export namespace androidmanagement_v1 {
* The scopes delegated to the app from Android Device Policy.
*/
delegatedScopes?: string[];
/**
* Whether the app should be disabled, but app data is preserved.
*/
disabled?: boolean;
/**
* The type of installation to perform.
*/
Expand Down Expand Up @@ -199,6 +216,82 @@ export namespace androidmanagement_v1 {
*/
permissionGrants?: Schema$PermissionGrant[];
}
/**
* Information reported about an installed app.
*/
export interface Schema$ApplicationReport {
/**
* The source of the package.
*/
applicationSource?: string;
/**
* The display name of the app.
*/
displayName?: string;
/**
* List of app events. The most recent 20 events are stored in the list.
*/
events?: Schema$ApplicationEvent[];
/**
* The package name of the app that installed this app.
*/
installerPackageName?: string;
/**
* Package name of the app.
*/
packageName?: string;
/**
* The SHA-256 hash of the app&#39;s APK file, which can be used to verify
* the app hasn&#39;t been modified. Each byte of the hash value is
* represented as a two-digit hexadecimal number.
*/
packageSha256Hash?: string;
/**
* The SHA-1 hash of each android.content.pm.Signature
* (https://developer.android.com/reference/android/content/pm/Signature.html)
* associated with the app package. Each byte of each hash value is
* represented as a two-digit hexadecimal number.
*/
signingKeyCertFingerprints?: string[];
/**
* Application state.
*/
state?: string;
/**
* The app version code, which can be used to determine whether one version
* is more recent than another.
*/
versionCode?: number;
/**
* The app version as displayed to the user.
*/
versionName?: string;
}
/**
* A rule for automatically choosing a private key and certificate to
* authenticate the device to a server.
*/
export interface Schema$ChoosePrivateKeyRule {
/**
* The package names for which outgoing requests are subject to this rule.
* If no package names are specified, then the rule applies to all packages.
* For each package name listed, the rule applies to that package and all
* other packages that shared the same Android UID. The SHA256 hash of the
* signing key signatures of each package_name will be verified against
* those provided by Play
*/
packageNames?: string[];
/**
* The alias of the private key to be used.
*/
privateKeyAlias?: string;
/**
* The URL pattern to match against the URL of the outgoing request. The
* pattern may contain asterisk (*) wildcards. Any URL is matched if
* unspecified.
*/
urlPattern?: string;
}
/**
* A command.
*/
Expand Down Expand Up @@ -275,6 +368,12 @@ export namespace androidmanagement_v1 {
* The API level of the Android platform version running on the device.
*/
apiLevel?: number;
/**
* Reports for apps installed on the device. This information is only
* available when application_reports_enabled is true in the device&#39;s
* policy.
*/
applicationReports?: Schema$ApplicationReport[];
/**
* The name of the policy currently applied to the device.
*/
Expand Down Expand Up @@ -1137,6 +1236,13 @@ export namespace androidmanagement_v1 {
* Whether configuring cell broadcast is disabled.
*/
cellBroadcastsConfigDisabled?: boolean;
/**
* Rules for automatically choosing a private key and certificate to
* authenticate the device to a server. The rules are ordered by increasing
* precedence, so if an outgoing request matches more than one rule, the
* last rule defines which private key to use.
*/
choosePrivateKeyRules?: Schema$ChoosePrivateKeyRule[];
/**
* Rules declaring which mitigating actions to take when a device is not
* compliant with its policy. When the conditions for multiple rules are
Expand Down Expand Up @@ -1292,6 +1398,12 @@ export namespace androidmanagement_v1 {
* Default intent handler activities.
*/
persistentPreferredActivities?: Schema$PersistentPreferredActivity[];
/**
* Allows showing UI on a device for a user to choose a private key alias if
* there are no matching rules in ChoosePrivateKeyRules. For devices below
* Android P, setting this may leave enterprise keys vulnerable.
*/
privateKeySelectionEnabled?: boolean;
/**
* The network-independent global HTTP proxy. Typically proxies should be
* configured per-network in open_network_configuration. However for unusual
Expand Down Expand Up @@ -1379,8 +1491,7 @@ export namespace androidmanagement_v1 {
*/
usbFileTransferDisabled?: boolean;
/**
* Allows admins to toggle whether USB storge is enabled or disabled on
* user&#39;s devices.
* Whether USB storage is enabled.
*/
usbMassStorageEnabled?: boolean;
/**
Expand Down Expand Up @@ -1559,6 +1670,10 @@ export namespace androidmanagement_v1 {
* Settings controlling the behavior of status reports.
*/
export interface Schema$StatusReportingSettings {
/**
* Whether app reports are enabled.
*/
applicationReportsEnabled?: boolean;
/**
* Whether device settings reporting is enabled.
*/
Expand Down

0 comments on commit e7f2ec4

Please sign in to comment.