Skip to content

Commit

Permalink
fix: Replace string-template with url-template (#1108)
Browse files Browse the repository at this point in the history
  • Loading branch information
MennoTammens authored and JustinBeckwith committed Apr 19, 2018
1 parent 71cd7f7 commit 786b0a4
Show file tree
Hide file tree
Showing 113 changed files with 3,498 additions and 3,486 deletions.
22 changes: 11 additions & 11 deletions package-lock.json

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

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"google-auth-library": "^1.3.1",
"pify": "^3.0.0",
"qs": "^6.5.1",
"string-template": "^1.0.0",
"url-template": "^2.0.8",
"uuid": "^3.2.1"
},
"files": [
Expand Down Expand Up @@ -102,7 +102,7 @@
"@types/qs": "^6.5.1",
"@types/rimraf": "^2.0.2",
"@types/source-map-support": "^0.4.0",
"@types/string-template": "^1.0.2",
"@types/url-template": "^2.0.28",
"@types/tmp": "^0.0.33",
"@types/uuid": "^3.4.3",
"axios": "^0.18.0",
Expand Down
2 changes: 1 addition & 1 deletion src/apis/abusiveexperiencereport/v1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ export class Resource$Sites {
const parameters = {
options: Object.assign(
{
url: (rootUrl + '/v1/{name}').replace(/([^:]\/)\/+/g, '$1'),
url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
method: 'GET'
},
options),
Expand Down
69 changes: 35 additions & 34 deletions src/apis/adexchangebuyer2/v2beta1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -510,7 +510,8 @@ export interface Schema$Date {
*/
day: number;
/**
* Month of year. Must be from 1 to 12.
* Month of year. Must be from 1 to 12, or 0 if specifying a date without a
* month.
*/
month: number;
/**
Expand All @@ -535,9 +536,9 @@ export interface Schema$Disapproval {
/**
* A generic empty message that you can re-use to avoid defining duplicated
* empty messages in your APIs. A typical example is to use it as the request or
* the response type of an API method. For instance: service Foo {
* rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } The
* JSON representation for `Empty` is empty JSON object `{}`.
* the response type of an API method. For instance: service Foo { rpc
* Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } The JSON
* representation for `Empty` is empty JSON object `{}`.
*/
export interface Schema$Empty {}
/**
Expand Down Expand Up @@ -1017,8 +1018,8 @@ export interface Schema$MetricValue {
* If value is exact, variance is 0. Can be used to calculate margin of error
* as a percentage of value, using the following formula, where Z is the
* standard constant that depends on the desired size of the confidence
* interval (e.g. for 90% confidence interval, use Z = 1.645):
* marginOfError = 100 * Z * sqrt(variance) / value
* interval (e.g. for 90% confidence interval, use Z = 1.645): marginOfError =
* 100 * Z * sqrt(variance) / value
*/
variance: string;
}
Expand Down Expand Up @@ -2562,7 +2563,7 @@ export class Resource$Bidders$Accounts$Filtersets {
const parameters = {
options: Object.assign(
{
url: (rootUrl + '/v2beta1/{ownerName}/filterSets')
url: (rootUrl + '/v2beta1/{+ownerName}/filterSets')
.replace(/([^:]\/)\/+/g, '$1'),
method: 'POST'
},
Expand Down Expand Up @@ -2615,7 +2616,7 @@ export class Resource$Bidders$Accounts$Filtersets {
const parameters = {
options: Object.assign(
{
url: (rootUrl + '/v2beta1/{name}').replace(/([^:]\/)\/+/g, '$1'),
url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
method: 'DELETE'
},
options),
Expand Down Expand Up @@ -2667,7 +2668,7 @@ export class Resource$Bidders$Accounts$Filtersets {
const parameters = {
options: Object.assign(
{
url: (rootUrl + '/v2beta1/{name}').replace(/([^:]\/)\/+/g, '$1'),
url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
method: 'GET'
},
options),
Expand Down Expand Up @@ -2725,7 +2726,7 @@ export class Resource$Bidders$Accounts$Filtersets {
const parameters = {
options: Object.assign(
{
url: (rootUrl + '/v2beta1/{ownerName}/filterSets')
url: (rootUrl + '/v2beta1/{+ownerName}/filterSets')
.replace(/([^:]\/)\/+/g, '$1'),
method: 'GET'
},
Expand Down Expand Up @@ -2795,7 +2796,7 @@ export class Resource$Bidders$Accounts$Filtersets$Bidmetrics {
const parameters = {
options: Object.assign(
{
url: (rootUrl + '/v2beta1/{filterSetName}/bidMetrics')
url: (rootUrl + '/v2beta1/{+filterSetName}/bidMetrics')
.replace(/([^:]\/)\/+/g, '$1'),
method: 'GET'
},
Expand Down Expand Up @@ -2868,7 +2869,7 @@ export class Resource$Bidders$Accounts$Filtersets$Bidresponseerrors {
const parameters = {
options: Object.assign(
{
url: (rootUrl + '/v2beta1/{filterSetName}/bidResponseErrors')
url: (rootUrl + '/v2beta1/{+filterSetName}/bidResponseErrors')
.replace(/([^:]\/)\/+/g, '$1'),
method: 'GET'
},
Expand Down Expand Up @@ -2945,7 +2946,7 @@ export class Resource$Bidders$Accounts$Filtersets$Bidresponseswithoutbids {
const parameters = {
options: Object.assign(
{
url: (rootUrl + '/v2beta1/{filterSetName}/bidResponsesWithoutBids')
url: (rootUrl + '/v2beta1/{+filterSetName}/bidResponsesWithoutBids')
.replace(/([^:]\/)\/+/g, '$1'),
method: 'GET'
},
Expand Down Expand Up @@ -3021,7 +3022,7 @@ export class Resource$Bidders$Accounts$Filtersets$Filteredbidrequests {
const parameters = {
options: Object.assign(
{
url: (rootUrl + '/v2beta1/{filterSetName}/filteredBidRequests')
url: (rootUrl + '/v2beta1/{+filterSetName}/filteredBidRequests')
.replace(/([^:]\/)\/+/g, '$1'),
method: 'GET'
},
Expand Down Expand Up @@ -3101,7 +3102,7 @@ export class Resource$Bidders$Accounts$Filtersets$Filteredbids {
const parameters = {
options: Object.assign(
{
url: (rootUrl + '/v2beta1/{filterSetName}/filteredBids')
url: (rootUrl + '/v2beta1/{+filterSetName}/filteredBids')
.replace(/([^:]\/)\/+/g, '$1'),
method: 'GET'
},
Expand Down Expand Up @@ -3178,7 +3179,7 @@ export class Resource$Bidders$Accounts$Filtersets$Filteredbids$Creatives {
{
url:
(rootUrl +
'/v2beta1/{filterSetName}/filteredBids/{creativeStatusId}/creatives')
'/v2beta1/{+filterSetName}/filteredBids/{creativeStatusId}/creatives')
.replace(/([^:]\/)\/+/g, '$1'),
method: 'GET'
},
Expand Down Expand Up @@ -3258,7 +3259,7 @@ export class Resource$Bidders$Accounts$Filtersets$Filteredbids$Details {
{
url:
(rootUrl +
'/v2beta1/{filterSetName}/filteredBids/{creativeStatusId}/details')
'/v2beta1/{+filterSetName}/filteredBids/{creativeStatusId}/details')
.replace(/([^:]\/)\/+/g, '$1'),
method: 'GET'
},
Expand Down Expand Up @@ -3334,7 +3335,7 @@ export class Resource$Bidders$Accounts$Filtersets$Impressionmetrics {
const parameters = {
options: Object.assign(
{
url: (rootUrl + '/v2beta1/{filterSetName}/impressionMetrics')
url: (rootUrl + '/v2beta1/{+filterSetName}/impressionMetrics')
.replace(/([^:]\/)\/+/g, '$1'),
method: 'GET'
},
Expand Down Expand Up @@ -3407,7 +3408,7 @@ export class Resource$Bidders$Accounts$Filtersets$Losingbids {
const parameters = {
options: Object.assign(
{
url: (rootUrl + '/v2beta1/{filterSetName}/losingBids')
url: (rootUrl + '/v2beta1/{+filterSetName}/losingBids')
.replace(/([^:]\/)\/+/g, '$1'),
method: 'GET'
},
Expand Down Expand Up @@ -3483,7 +3484,7 @@ export class Resource$Bidders$Accounts$Filtersets$Nonbillablewinningbids {
const parameters = {
options: Object.assign(
{
url: (rootUrl + '/v2beta1/{filterSetName}/nonBillableWinningBids')
url: (rootUrl + '/v2beta1/{+filterSetName}/nonBillableWinningBids')
.replace(/([^:]\/)\/+/g, '$1'),
method: 'GET'
},
Expand Down Expand Up @@ -3577,7 +3578,7 @@ export class Resource$Bidders$Filtersets {
const parameters = {
options: Object.assign(
{
url: (rootUrl + '/v2beta1/{ownerName}/filterSets')
url: (rootUrl + '/v2beta1/{+ownerName}/filterSets')
.replace(/([^:]\/)\/+/g, '$1'),
method: 'POST'
},
Expand Down Expand Up @@ -3630,7 +3631,7 @@ export class Resource$Bidders$Filtersets {
const parameters = {
options: Object.assign(
{
url: (rootUrl + '/v2beta1/{name}').replace(/([^:]\/)\/+/g, '$1'),
url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
method: 'DELETE'
},
options),
Expand Down Expand Up @@ -3682,7 +3683,7 @@ export class Resource$Bidders$Filtersets {
const parameters = {
options: Object.assign(
{
url: (rootUrl + '/v2beta1/{name}').replace(/([^:]\/)\/+/g, '$1'),
url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
method: 'GET'
},
options),
Expand Down Expand Up @@ -3740,7 +3741,7 @@ export class Resource$Bidders$Filtersets {
const parameters = {
options: Object.assign(
{
url: (rootUrl + '/v2beta1/{ownerName}/filterSets')
url: (rootUrl + '/v2beta1/{+ownerName}/filterSets')
.replace(/([^:]\/)\/+/g, '$1'),
method: 'GET'
},
Expand Down Expand Up @@ -3810,7 +3811,7 @@ export class Resource$Bidders$Filtersets$Bidmetrics {
const parameters = {
options: Object.assign(
{
url: (rootUrl + '/v2beta1/{filterSetName}/bidMetrics')
url: (rootUrl + '/v2beta1/{+filterSetName}/bidMetrics')
.replace(/([^:]\/)\/+/g, '$1'),
method: 'GET'
},
Expand Down Expand Up @@ -3883,7 +3884,7 @@ export class Resource$Bidders$Filtersets$Bidresponseerrors {
const parameters = {
options: Object.assign(
{
url: (rootUrl + '/v2beta1/{filterSetName}/bidResponseErrors')
url: (rootUrl + '/v2beta1/{+filterSetName}/bidResponseErrors')
.replace(/([^:]\/)\/+/g, '$1'),
method: 'GET'
},
Expand Down Expand Up @@ -3959,7 +3960,7 @@ export class Resource$Bidders$Filtersets$Bidresponseswithoutbids {
const parameters = {
options: Object.assign(
{
url: (rootUrl + '/v2beta1/{filterSetName}/bidResponsesWithoutBids')
url: (rootUrl + '/v2beta1/{+filterSetName}/bidResponsesWithoutBids')
.replace(/([^:]\/)\/+/g, '$1'),
method: 'GET'
},
Expand Down Expand Up @@ -4034,7 +4035,7 @@ export class Resource$Bidders$Filtersets$Filteredbidrequests {
const parameters = {
options: Object.assign(
{
url: (rootUrl + '/v2beta1/{filterSetName}/filteredBidRequests')
url: (rootUrl + '/v2beta1/{+filterSetName}/filteredBidRequests')
.replace(/([^:]\/)\/+/g, '$1'),
method: 'GET'
},
Expand Down Expand Up @@ -4113,7 +4114,7 @@ export class Resource$Bidders$Filtersets$Filteredbids {
const parameters = {
options: Object.assign(
{
url: (rootUrl + '/v2beta1/{filterSetName}/filteredBids')
url: (rootUrl + '/v2beta1/{+filterSetName}/filteredBids')
.replace(/([^:]\/)\/+/g, '$1'),
method: 'GET'
},
Expand Down Expand Up @@ -4189,7 +4190,7 @@ export class Resource$Bidders$Filtersets$Filteredbids$Creatives {
{
url:
(rootUrl +
'/v2beta1/{filterSetName}/filteredBids/{creativeStatusId}/creatives')
'/v2beta1/{+filterSetName}/filteredBids/{creativeStatusId}/creatives')
.replace(/([^:]\/)\/+/g, '$1'),
method: 'GET'
},
Expand Down Expand Up @@ -4268,7 +4269,7 @@ export class Resource$Bidders$Filtersets$Filteredbids$Details {
{
url:
(rootUrl +
'/v2beta1/{filterSetName}/filteredBids/{creativeStatusId}/details')
'/v2beta1/{+filterSetName}/filteredBids/{creativeStatusId}/details')
.replace(/([^:]\/)\/+/g, '$1'),
method: 'GET'
},
Expand Down Expand Up @@ -4344,7 +4345,7 @@ export class Resource$Bidders$Filtersets$Impressionmetrics {
const parameters = {
options: Object.assign(
{
url: (rootUrl + '/v2beta1/{filterSetName}/impressionMetrics')
url: (rootUrl + '/v2beta1/{+filterSetName}/impressionMetrics')
.replace(/([^:]\/)\/+/g, '$1'),
method: 'GET'
},
Expand Down Expand Up @@ -4417,7 +4418,7 @@ export class Resource$Bidders$Filtersets$Losingbids {
const parameters = {
options: Object.assign(
{
url: (rootUrl + '/v2beta1/{filterSetName}/losingBids')
url: (rootUrl + '/v2beta1/{+filterSetName}/losingBids')
.replace(/([^:]\/)\/+/g, '$1'),
method: 'GET'
},
Expand Down Expand Up @@ -4492,7 +4493,7 @@ export class Resource$Bidders$Filtersets$Nonbillablewinningbids {
const parameters = {
options: Object.assign(
{
url: (rootUrl + '/v2beta1/{filterSetName}/nonBillableWinningBids')
url: (rootUrl + '/v2beta1/{+filterSetName}/nonBillableWinningBids')
.replace(/([^:]\/)\/+/g, '$1'),
method: 'GET'
},
Expand Down
2 changes: 1 addition & 1 deletion src/apis/adexperiencereport/v1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ export class Resource$Sites {
const parameters = {
options: Object.assign(
{
url: (rootUrl + '/v1/{name}').replace(/([^:]\/)\/+/g, '$1'),
url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
method: 'GET'
},
options),
Expand Down
Loading

0 comments on commit 786b0a4

Please sign in to comment.