Skip to content

Commit

Permalink
feat!: run the generator (#2053)
Browse files Browse the repository at this point in the history
  • Loading branch information
JustinBeckwith committed Apr 23, 2020
1 parent 20409df commit 1124249
Show file tree
Hide file tree
Showing 111 changed files with 23,570 additions and 6,402 deletions.
4 changes: 2 additions & 2 deletions samples/test/test.samples.blog.js
Expand Up @@ -23,7 +23,7 @@ const samples = {
post: require('../blogger/insert'),
};

const baseUrl = 'https://www.googleapis.com';
const baseUrl = 'https://blogger.googleapis.com';

for (const p in samples) {
if (samples[p]) {
Expand All @@ -38,7 +38,7 @@ describe('blogger samples', () => {

it('should insert a blog post', async () => {
const scope = nock(baseUrl)
.post(`/blogger/v3/blogs/4340475495955554224/posts`)
.post(`/v3/blogs/4340475495955554224/posts`)
.reply(200, {});
const data = await samples.post.runSample();
assert(data);
Expand Down
12 changes: 6 additions & 6 deletions src/apis/adsense/v1.4.ts
Expand Up @@ -232,7 +232,7 @@ export namespace adsense_v1_4 {
/**
* The header information of the columns requested in the report. This is a list of headers; one for each dimension in the request, followed by one for each metric in the request.
*/
headers?: Array<{type?: string; currency?: string; name?: string}> | null;
headers?: Array<{name?: string; type?: string; currency?: string}> | null;
/**
* Kind this is, in this case adsense#report.
*/
Expand Down Expand Up @@ -263,11 +263,11 @@ export namespace adsense_v1_4 {
* The colors which are included in the style. These are represented as six hexadecimal characters, similar to HTML color codes, but without the leading hash.
*/
colors?: {
text?: string;
background?: string;
url?: string;
title?: string;
border?: string;
text?: string;
} | null;
/**
* The style of the corners in the ad (deprecated: never populated, ignored).
Expand All @@ -292,7 +292,7 @@ export namespace adsense_v1_4 {
*/
contentAdsSettings?: {
type?: string;
backupOption?: {color?: string; type?: string; url?: string};
backupOption?: {type?: string; url?: string; color?: string};
size?: string;
} | null;
/**
Expand All @@ -303,10 +303,10 @@ export namespace adsense_v1_4 {
* Settings specific to feed ads (AFF) - deprecated.
*/
feedAdsSettings?: {
frequency?: number;
minimumWordCount?: number;
type?: string;
adPosition?: string;
frequency?: number;
minimumWordCount?: number;
} | null;
/**
* Unique identifier of this ad unit. This should be considered an opaque identifier; it is not safe to rely on it being in any particular format.
Expand Down Expand Up @@ -413,10 +413,10 @@ export namespace adsense_v1_4 {
* The targeting information of this custom channel, if activated.
*/
targetingInfo?: {
siteLanguage?: string;
adsAppearOn?: string;
description?: string;
location?: string;
siteLanguage?: string;
} | null;
}
export interface Schema$CustomChannels {
Expand Down
6 changes: 3 additions & 3 deletions src/apis/adsensehost/v4.1.ts
Expand Up @@ -196,11 +196,11 @@ export namespace adsensehost_v4_1 {
* The colors included in the style. These are represented as six hexadecimal characters, similar to HTML color codes, but without the leading hash.
*/
colors?: {
url?: string;
title?: string;
border?: string;
text?: string;
background?: string;
url?: string;
} | null;
/**
* The style of the corners in the ad (deprecated: never populated, ignored).
Expand All @@ -224,9 +224,9 @@ export namespace adsensehost_v4_1 {
* Settings specific to content ads (AFC) and highend mobile content ads (AFMC - deprecated).
*/
contentAdsSettings?: {
backupOption?: {color?: string; type?: string; url?: string};
size?: string;
type?: string;
backupOption?: {url?: string; color?: string; type?: string};
} | null;
/**
* Custom style information specific to this ad unit.
Expand Down Expand Up @@ -358,7 +358,7 @@ export namespace adsensehost_v4_1 {
/**
* The header information of the columns requested in the report. This is a list of headers; one for each dimension in the request, followed by one for each metric in the request.
*/
headers?: Array<{currency?: string; name?: string; type?: string}> | null;
headers?: Array<{name?: string; type?: string; currency?: string}> | null;
/**
* Kind this is, in this case adsensehost#report.
*/
Expand Down
62 changes: 31 additions & 31 deletions src/apis/analytics/v3.ts
Expand Up @@ -408,7 +408,7 @@ export namespace analytics_v3 {
* Account ID to which this custom data source belongs.
*/
accountId?: string | null;
childLink?: {type?: string; href?: string} | null;
childLink?: {href?: string; type?: string} | null;
/**
* Time this custom data source was created.
*/
Expand All @@ -433,7 +433,7 @@ export namespace analytics_v3 {
/**
* Parent link for this custom data source. Points to the web property to which this custom data source belongs.
*/
parentLink?: {href?: string; type?: string} | null;
parentLink?: {type?: string; href?: string} | null;
/**
* IDs of views (profiles) linked to the custom data source.
*/
Expand Down Expand Up @@ -535,7 +535,7 @@ export namespace analytics_v3 {
/**
* Parent link for the custom dimension. Points to the property to which the custom dimension belongs.
*/
parentLink?: {type?: string; href?: string} | null;
parentLink?: {href?: string; type?: string} | null;
/**
* Scope of the custom dimension: HIT, SESSION, USER or PRODUCT.
*/
Expand Down Expand Up @@ -883,7 +883,7 @@ export namespace analytics_v3 {
/**
* Parent link for an experiment. Points to the view (profile) to which this experiment belongs.
*/
parentLink?: {href?: string; type?: string} | null;
parentLink?: {type?: string; href?: string} | null;
/**
* View (Profile) ID to which this experiment belongs. This field is read-only.
*/
Expand Down Expand Up @@ -928,11 +928,11 @@ export namespace analytics_v3 {
* Array of variations. The first variation in the array is the original. The number of variations may not change once an experiment is in the RUNNING state. At least two variations are required before status can be set to RUNNING.
*/
variations?: Array<{
name?: string;
weight?: number;
url?: string;
won?: boolean;
status?: string;
name?: string;
weight?: number;
}> | null;
/**
* Web property ID to which this experiment belongs. The web property ID is of the form UA-XXXXX-YY. This field is read-only.
Expand Down Expand Up @@ -996,19 +996,19 @@ export namespace analytics_v3 {
* Details for the filter of the type ADVANCED.
*/
advancedDetails?: {
overrideOutputField?: boolean;
fieldBIndex?: number;
outputConstructor?: string;
fieldBRequired?: boolean;
fieldAIndex?: number;
extractA?: string;
fieldA?: string;
outputToFieldIndex?: number;
fieldB?: string;
fieldARequired?: boolean;
fieldB?: string;
caseSensitive?: boolean;
outputToField?: string;
extractB?: string;
overrideOutputField?: boolean;
fieldBIndex?: number;
} | null;
/**
* Time this filter was created.
Expand Down Expand Up @@ -1046,11 +1046,11 @@ export namespace analytics_v3 {
* Details for the filter of the type SEARCH_AND_REPLACE.
*/
searchAndReplaceDetails?: {
replaceString?: string;
caseSensitive?: boolean;
field?: string;
searchString?: string;
fieldIndex?: number;
replaceString?: string;
caseSensitive?: boolean;
} | null;
/**
* Link for this filter.
Expand Down Expand Up @@ -1181,7 +1181,7 @@ export namespace analytics_v3 {
*/
dataLastRefreshed?: string | null;
dataTable?: {
cols?: Array<{type?: string; id?: string; label?: string}>;
cols?: Array<{id?: string; label?: string; type?: string}>;
rows?: Array<{c?: Array<{v?: string}>}>;
} | null;
/**
Expand Down Expand Up @@ -1219,17 +1219,17 @@ export namespace analytics_v3 {
* Analytics data request query parameters.
*/
query?: {
dimensions?: string;
'end-date'?: string;
filters?: string;
sort?: string[];
'max-results'?: number;
metrics?: string[];
segment?: string;
'start-index'?: number;
'start-date'?: string;
'start-index'?: number;
ids?: string;
samplingLevel?: string;
dimensions?: string;
'end-date'?: string;
} | null;
/**
* Analytics data rows, where each row contains a list of dimension values followed by the metric values. The order of dimensions and metrics is same as specified in the request.
Expand Down Expand Up @@ -1304,7 +1304,7 @@ export namespace analytics_v3 {
/**
* Parent link for a goal. Points to the view (profile) to which this goal belongs.
*/
parentLink?: {type?: string; href?: string} | null;
parentLink?: {href?: string; type?: string} | null;
/**
* View (Profile) ID to which this goal belongs.
*/
Expand All @@ -1329,7 +1329,7 @@ export namespace analytics_v3 {
matchType?: string;
caseSensitive?: boolean;
firstStepRequired?: boolean;
steps?: Array<{name?: string; number?: number; url?: string}>;
steps?: Array<{number?: number; url?: string; name?: string}>;
} | null;
/**
* Goal value.
Expand Down Expand Up @@ -1486,9 +1486,9 @@ export namespace analytics_v3 {
* Column headers that list dimension names followed by the metric names. The order of dimensions and metrics is same as specified in the request.
*/
columnHeaders?: Array<{
dataType?: string;
columnType?: string;
name?: string;
dataType?: string;
}> | null;
/**
* Determines if the Analytics data contains sampled data.
Expand Down Expand Up @@ -1518,17 +1518,18 @@ export namespace analytics_v3 {
* Information for the view (profile), for which the Analytics data was requested.
*/
profileInfo?: {
profileName?: string;
webPropertyId?: string;
accountId?: string;
profileId?: string;
internalWebPropertyId?: string;
tableId?: string;
profileName?: string;
} | null;
/**
* Analytics data request query parameters.
*/
query?: {
samplingLevel?: string;
dimensions?: string;
'end-date'?: string;
filters?: string;
Expand All @@ -1539,7 +1540,6 @@ export namespace analytics_v3 {
'start-date'?: string;
segment?: string;
ids?: string;
samplingLevel?: string;
} | null;
/**
* Analytics data rows, where each row contains a list of dimension values followed by the metric values. The order of dimensions and metrics is same as specified in the request.
Expand Down Expand Up @@ -1589,7 +1589,7 @@ export namespace analytics_v3 {
/**
* Child link for this view (profile). Points to the list of goals for this view (profile).
*/
childLink?: {href?: string; type?: string} | null;
childLink?: {type?: string; href?: string} | null;
/**
* Time this view (profile) was created.
*/
Expand Down Expand Up @@ -1633,7 +1633,7 @@ export namespace analytics_v3 {
/**
* Parent link for this view (profile). Points to the web property to which this view (profile) belongs.
*/
parentLink?: {href?: string; type?: string} | null;
parentLink?: {type?: string; href?: string} | null;
/**
* Permissions the user has for this view (profile).
*/
Expand Down Expand Up @@ -1868,23 +1868,23 @@ export namespace analytics_v3 {
* Information for the view (profile), for which the real time data was requested.
*/
profileInfo?: {
tableId?: string;
profileName?: string;
webPropertyId?: string;
accountId?: string;
profileId?: string;
internalWebPropertyId?: string;
tableId?: string;
profileName?: string;
} | null;
/**
* Real time data request query parameters.
*/
query?: {
ids?: string;
dimensions?: string;
filters?: string;
sort?: string[];
'max-results'?: number;
metrics?: string[];
ids?: string;
dimensions?: string;
filters?: string;
} | null;
/**
* Real time data rows, where each row contains a list of dimension values followed by the metric values. The order of dimensions and metrics is same as specified in the request.
Expand Down Expand Up @@ -1956,7 +1956,7 @@ export namespace analytics_v3 {
*/
stateBasedAudienceDefinition?: {
includeConditions?: Schema$IncludeConditions;
excludeConditions?: {segment?: string; exclusionDuration?: string};
excludeConditions?: {exclusionDuration?: string; segment?: string};
} | null;
/**
* Time this remarketing audience was last modified.
Expand Down Expand Up @@ -2093,7 +2093,7 @@ export namespace analytics_v3 {
/**
* Download details for a file stored in Google Cloud Storage.
*/
cloudStorageDownloadDetails?: {bucketId?: string; objectId?: string} | null;
cloudStorageDownloadDetails?: {objectId?: string; bucketId?: string} | null;
/**
* Time this unsampled report was created.
*/
Expand Down Expand Up @@ -2357,7 +2357,7 @@ export namespace analytics_v3 {
/**
* Child link for this web property. Points to the list of views (profiles) for this web property.
*/
childLink?: {type?: string; href?: string} | null;
childLink?: {href?: string; type?: string} | null;
/**
* Time this web property was created.
*/
Expand Down Expand Up @@ -2401,7 +2401,7 @@ export namespace analytics_v3 {
/**
* Parent link for this web property. Points to the account to which this web property belongs.
*/
parentLink?: {href?: string; type?: string} | null;
parentLink?: {type?: string; href?: string} | null;
/**
* Permissions the user has for this web property.
*/
Expand Down
6 changes: 3 additions & 3 deletions src/apis/androidpublisher/v2.ts
Expand Up @@ -2457,15 +2457,15 @@ export namespace androidpublisher_v2 {

/**
* androidpublisher.edits.deobfuscationfiles.upload
* @desc Uploads the deobfuscation file of the specified APK. If a deobfuscation file already exists, it will be replaced.
* @desc Uploads the deobfuscation file of the specified APK. If a deobfuscation or symbolication file already exists, it will be replaced. See https://developer.android.com/studio/build/shrink-code to learn more about deobfuscation files.
* @alias androidpublisher.edits.deobfuscationfiles.upload
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {integer} params.apkVersionCode The version code of the APK whose deobfuscation file is being uploaded.
* @param {string} params.deobfuscationFileType
* @param {string} params.editId Unique identifier for this edit.
* @param {string} params.packageName Unique identifier of the Android app for which the deobfuscatiuon files are being uploaded; for example, "com.spiffygame".
* @param {string} params.packageName Unique identifier of the Android app for which the deobfuscation files are being uploaded; for example, "com.spiffygame".
* @param {object} params.media Media object
* @param {string} params.media.mimeType Media mime-type
* @param {string|object} params.media.body Media body contents
Expand Down Expand Up @@ -2579,7 +2579,7 @@ export namespace androidpublisher_v2 {
*/
editId?: string;
/**
* Unique identifier of the Android app for which the deobfuscatiuon files are being uploaded; for example, "com.spiffygame".
* Unique identifier of the Android app for which the deobfuscation files are being uploaded; for example, "com.spiffygame".
*/
packageName?: string;

Expand Down

0 comments on commit 1124249

Please sign in to comment.