Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
feat: run the generator (#1257)
  • Loading branch information
eyqs authored and JustinBeckwith committed Jul 23, 2018
1 parent 03150ef commit 43459dd
Show file tree
Hide file tree
Showing 104 changed files with 21,979 additions and 2,055 deletions.
28 changes: 21 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 8 additions & 2 deletions src/apis/adexchangebuyer2/v2beta1.ts
Expand Up @@ -334,7 +334,7 @@ export namespace adexchangebuyer2_v2beta1 {
type?: string;
}
/**
* A creative and its classification data. Next ID: 35
* A creative and its classification data. Next ID: 36
*/
export interface Schema$Creative {
/**
Expand Down Expand Up @@ -1241,10 +1241,16 @@ export namespace adexchangebuyer2_v2beta1 {
*/
contexts?: Schema$ServingContext[];
/**
* Any disapprovals bound to this restriction. Only present if
* Disapproval bound to this restriction. Only present if
* status=DISAPPROVED. Can be used to filter the response of the
* creatives.list method.
*/
disapproval?: Schema$Disapproval;
/**
* Any disapprovals bound to this restriction. Only present if
* status=DISAPPROVED. Can be used to filter the response of the
* creatives.list method. Deprecated; please use disapproval field instead.
*/
disapprovalReasons?: Schema$Disapproval[];
/**
* The status of the creative in this context (for example, it has been
Expand Down
92 changes: 92 additions & 0 deletions src/apis/adsense/v1.4.ts
Expand Up @@ -179,6 +179,14 @@ export namespace adsense_v1_4 {
* The ad code snippet.
*/
adCode?: string;
/**
* The ad code snippet that goes in the body of an AMP page.
*/
ampBody?: string;
/**
* The ad code snippet that goes in the head of an AMP page.
*/
ampHead?: string;
/**
* Kind this is, in this case adsense#adCode.
*/
Expand Down Expand Up @@ -800,6 +808,75 @@ export namespace adsense_v1_4 {
}


/**
* adsense.accounts.adclients.getAdCode
* @desc Get ad code for a given ad client.
* @alias adsense.accounts.adclients.getAdCode
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {string} params.accountId Account which contains the ad client.
* @param {string} params.adClientId Ad client to get the code for.
* @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
*/
getAdCode(
params?: Params$Resource$Accounts$Adclients$Getadcode,
options?: MethodOptions): AxiosPromise<Schema$AdCode>;
getAdCode(
params: Params$Resource$Accounts$Adclients$Getadcode,
options: MethodOptions|BodyResponseCallback<Schema$AdCode>,
callback: BodyResponseCallback<Schema$AdCode>): void;
getAdCode(
params: Params$Resource$Accounts$Adclients$Getadcode,
callback: BodyResponseCallback<Schema$AdCode>): void;
getAdCode(callback: BodyResponseCallback<Schema$AdCode>): void;
getAdCode(
paramsOrCallback?: Params$Resource$Accounts$Adclients$Getadcode|
BodyResponseCallback<Schema$AdCode>,
optionsOrCallback?: MethodOptions|BodyResponseCallback<Schema$AdCode>,
callback?: BodyResponseCallback<Schema$AdCode>):
void|AxiosPromise<Schema$AdCode> {
let params = (paramsOrCallback || {}) as
Params$Resource$Accounts$Adclients$Getadcode;
let options = (optionsOrCallback || {}) as MethodOptions;

if (typeof paramsOrCallback === 'function') {
callback = paramsOrCallback;
params = {} as Params$Resource$Accounts$Adclients$Getadcode;
options = {};
}

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

const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
const parameters = {
options: Object.assign(
{
url:
(rootUrl +
'/adsense/v1.4/accounts/{accountId}/adclients/{adClientId}/adcode')
.replace(/([^:]\/)\/+/g, '$1'),
method: 'GET'
},
options),
params,
requiredParams: ['accountId', 'adClientId'],
pathParams: ['accountId', 'adClientId'],
context: this.getRoot()
};
if (callback) {
createAPIRequest<Schema$AdCode>(parameters, callback);
} else {
return createAPIRequest<Schema$AdCode>(parameters);
}
}


/**
* adsense.accounts.adclients.list
* @desc List all ad clients in the specified account.
Expand Down Expand Up @@ -869,6 +946,21 @@ export namespace adsense_v1_4 {
}
}

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

/**
* Account which contains the ad client.
*/
accountId?: string;
/**
* Ad client to get the code for.
*/
adClientId?: string;
}
export interface Params$Resource$Accounts$Adclients$List {
/**
* Auth client or API Key for the request
Expand Down
114 changes: 114 additions & 0 deletions src/apis/analytics/v3.ts
Expand Up @@ -1476,6 +1476,23 @@ export namespace analytics_v3 {
*/
username?: string;
}
/**
* JSON template for a hash Client Id request resource.
*/
export interface Schema$HashClientIdRequest {
clientId?: string;
kind?: string;
webPropertyId?: string;
}
/**
* JSON template for a hash Client Id response resource.
*/
export interface Schema$HashClientIdResponse {
clientId?: string;
hashedClientId?: string;
kind?: string;
webPropertyId?: string;
}
/**
* JSON template for an Analytics Remarketing Include Conditions.
*/
Expand Down Expand Up @@ -3071,6 +3088,7 @@ export namespace analytics_v3 {
accounts: Resource$Management$Accounts;
accountSummaries: Resource$Management$Accountsummaries;
accountUserLinks: Resource$Management$Accountuserlinks;
clientId: Resource$Management$Clientid;
customDataSources: Resource$Management$Customdatasources;
customDimensions: Resource$Management$Customdimensions;
customMetrics: Resource$Management$Custommetrics;
Expand All @@ -3093,6 +3111,7 @@ export namespace analytics_v3 {
this.accounts = new Resource$Management$Accounts(root);
this.accountSummaries = new Resource$Management$Accountsummaries(root);
this.accountUserLinks = new Resource$Management$Accountuserlinks(root);
this.clientId = new Resource$Management$Clientid(root);
this.customDataSources = new Resource$Management$Customdatasources(root);
this.customDimensions = new Resource$Management$Customdimensions(root);
this.customMetrics = new Resource$Management$Custommetrics(root);
Expand Down Expand Up @@ -3683,6 +3702,101 @@ export namespace analytics_v3 {
}


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

getRoot() {
return this.root;
}


/**
* analytics.management.clientId.hashClientId
* @desc Hashes the given Client ID.
* @alias analytics.management.clientId.hashClientId
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {().HashClientIdRequest} 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
*/
hashClientId(
params?: Params$Resource$Management$Clientid$Hashclientid,
options?: MethodOptions): AxiosPromise<Schema$HashClientIdResponse>;
hashClientId(
params: Params$Resource$Management$Clientid$Hashclientid,
options: MethodOptions|
BodyResponseCallback<Schema$HashClientIdResponse>,
callback: BodyResponseCallback<Schema$HashClientIdResponse>): void;
hashClientId(
params: Params$Resource$Management$Clientid$Hashclientid,
callback: BodyResponseCallback<Schema$HashClientIdResponse>): void;
hashClientId(callback: BodyResponseCallback<Schema$HashClientIdResponse>):
void;
hashClientId(
paramsOrCallback?: Params$Resource$Management$Clientid$Hashclientid|
BodyResponseCallback<Schema$HashClientIdResponse>,
optionsOrCallback?: MethodOptions|
BodyResponseCallback<Schema$HashClientIdResponse>,
callback?: BodyResponseCallback<Schema$HashClientIdResponse>):
void|AxiosPromise<Schema$HashClientIdResponse> {
let params = (paramsOrCallback || {}) as
Params$Resource$Management$Clientid$Hashclientid;
let options = (optionsOrCallback || {}) as MethodOptions;

if (typeof paramsOrCallback === 'function') {
callback = paramsOrCallback;
params = {} as Params$Resource$Management$Clientid$Hashclientid;
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/management/clientId:hashClientId')
.replace(/([^:]\/)\/+/g, '$1'),
method: 'POST'
},
options),
params,
requiredParams: [],
pathParams: [],
context: this.getRoot()
};
if (callback) {
createAPIRequest<Schema$HashClientIdResponse>(parameters, callback);
} else {
return createAPIRequest<Schema$HashClientIdResponse>(parameters);
}
}
}

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


/**
* Request body metadata
*/
requestBody?: Schema$HashClientIdRequest;
}


export class Resource$Management$Customdatasources {
root: Analytics;
constructor(root: Analytics) {
Expand Down

0 comments on commit 43459dd

Please sign in to comment.